|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | from typing import Any, List, Type, cast
|
6 |
| -from typing_extensions import Literal |
7 | 6 |
|
8 | 7 | import httpx
|
9 | 8 |
|
|
27 | 26 | make_request_options,
|
28 | 27 | )
|
29 | 28 | from ....types.intel.attack_surface_report import (
|
| 29 | + IssueType, |
30 | 30 | ProductParam,
|
31 | 31 | SubjectParam,
|
32 | 32 | IssueClassParam,
|
@@ -62,26 +62,8 @@ def list(
|
62 | 62 | dismissed: bool | NotGiven = NOT_GIVEN,
|
63 | 63 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
64 | 64 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
65 |
| - issue_type: List[ |
66 |
| - Literal[ |
67 |
| - "compliance_violation", |
68 |
| - "email_security", |
69 |
| - "exposed_infrastructure", |
70 |
| - "insecure_configuration", |
71 |
| - "weak_authentication", |
72 |
| - ] |
73 |
| - ] |
74 |
| - | NotGiven = NOT_GIVEN, |
75 |
| - issue_type_neq: List[ |
76 |
| - Literal[ |
77 |
| - "compliance_violation", |
78 |
| - "email_security", |
79 |
| - "exposed_infrastructure", |
80 |
| - "insecure_configuration", |
81 |
| - "weak_authentication", |
82 |
| - ] |
83 |
| - ] |
84 |
| - | NotGiven = NOT_GIVEN, |
| 65 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 66 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
85 | 67 | page: int | NotGiven = NOT_GIVEN,
|
86 | 68 | per_page: int | NotGiven = NOT_GIVEN,
|
87 | 69 | product: ProductParam | NotGiven = NOT_GIVEN,
|
@@ -154,26 +136,8 @@ def class_(
|
154 | 136 | dismissed: bool | NotGiven = NOT_GIVEN,
|
155 | 137 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
156 | 138 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
157 |
| - issue_type: List[ |
158 |
| - Literal[ |
159 |
| - "compliance_violation", |
160 |
| - "email_security", |
161 |
| - "exposed_infrastructure", |
162 |
| - "insecure_configuration", |
163 |
| - "weak_authentication", |
164 |
| - ] |
165 |
| - ] |
166 |
| - | NotGiven = NOT_GIVEN, |
167 |
| - issue_type_neq: List[ |
168 |
| - Literal[ |
169 |
| - "compliance_violation", |
170 |
| - "email_security", |
171 |
| - "exposed_infrastructure", |
172 |
| - "insecure_configuration", |
173 |
| - "weak_authentication", |
174 |
| - ] |
175 |
| - ] |
176 |
| - | NotGiven = NOT_GIVEN, |
| 139 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 140 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
177 | 141 | product: ProductParam | NotGiven = NOT_GIVEN,
|
178 | 142 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
179 | 143 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -287,26 +251,8 @@ def severity(
|
287 | 251 | dismissed: bool | NotGiven = NOT_GIVEN,
|
288 | 252 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
289 | 253 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
290 |
| - issue_type: List[ |
291 |
| - Literal[ |
292 |
| - "compliance_violation", |
293 |
| - "email_security", |
294 |
| - "exposed_infrastructure", |
295 |
| - "insecure_configuration", |
296 |
| - "weak_authentication", |
297 |
| - ] |
298 |
| - ] |
299 |
| - | NotGiven = NOT_GIVEN, |
300 |
| - issue_type_neq: List[ |
301 |
| - Literal[ |
302 |
| - "compliance_violation", |
303 |
| - "email_security", |
304 |
| - "exposed_infrastructure", |
305 |
| - "insecure_configuration", |
306 |
| - "weak_authentication", |
307 |
| - ] |
308 |
| - ] |
309 |
| - | NotGiven = NOT_GIVEN, |
| 254 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 255 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
310 | 256 | product: ProductParam | NotGiven = NOT_GIVEN,
|
311 | 257 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
312 | 258 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -371,26 +317,8 @@ def type(
|
371 | 317 | dismissed: bool | NotGiven = NOT_GIVEN,
|
372 | 318 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
373 | 319 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
374 |
| - issue_type: List[ |
375 |
| - Literal[ |
376 |
| - "compliance_violation", |
377 |
| - "email_security", |
378 |
| - "exposed_infrastructure", |
379 |
| - "insecure_configuration", |
380 |
| - "weak_authentication", |
381 |
| - ] |
382 |
| - ] |
383 |
| - | NotGiven = NOT_GIVEN, |
384 |
| - issue_type_neq: List[ |
385 |
| - Literal[ |
386 |
| - "compliance_violation", |
387 |
| - "email_security", |
388 |
| - "exposed_infrastructure", |
389 |
| - "insecure_configuration", |
390 |
| - "weak_authentication", |
391 |
| - ] |
392 |
| - ] |
393 |
| - | NotGiven = NOT_GIVEN, |
| 320 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 321 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
394 | 322 | product: ProductParam | NotGiven = NOT_GIVEN,
|
395 | 323 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
396 | 324 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -465,26 +393,8 @@ def list(
|
465 | 393 | dismissed: bool | NotGiven = NOT_GIVEN,
|
466 | 394 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
467 | 395 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
468 |
| - issue_type: List[ |
469 |
| - Literal[ |
470 |
| - "compliance_violation", |
471 |
| - "email_security", |
472 |
| - "exposed_infrastructure", |
473 |
| - "insecure_configuration", |
474 |
| - "weak_authentication", |
475 |
| - ] |
476 |
| - ] |
477 |
| - | NotGiven = NOT_GIVEN, |
478 |
| - issue_type_neq: List[ |
479 |
| - Literal[ |
480 |
| - "compliance_violation", |
481 |
| - "email_security", |
482 |
| - "exposed_infrastructure", |
483 |
| - "insecure_configuration", |
484 |
| - "weak_authentication", |
485 |
| - ] |
486 |
| - ] |
487 |
| - | NotGiven = NOT_GIVEN, |
| 396 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 397 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
488 | 398 | page: int | NotGiven = NOT_GIVEN,
|
489 | 399 | per_page: int | NotGiven = NOT_GIVEN,
|
490 | 400 | product: ProductParam | NotGiven = NOT_GIVEN,
|
@@ -557,26 +467,8 @@ async def class_(
|
557 | 467 | dismissed: bool | NotGiven = NOT_GIVEN,
|
558 | 468 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
559 | 469 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
560 |
| - issue_type: List[ |
561 |
| - Literal[ |
562 |
| - "compliance_violation", |
563 |
| - "email_security", |
564 |
| - "exposed_infrastructure", |
565 |
| - "insecure_configuration", |
566 |
| - "weak_authentication", |
567 |
| - ] |
568 |
| - ] |
569 |
| - | NotGiven = NOT_GIVEN, |
570 |
| - issue_type_neq: List[ |
571 |
| - Literal[ |
572 |
| - "compliance_violation", |
573 |
| - "email_security", |
574 |
| - "exposed_infrastructure", |
575 |
| - "insecure_configuration", |
576 |
| - "weak_authentication", |
577 |
| - ] |
578 |
| - ] |
579 |
| - | NotGiven = NOT_GIVEN, |
| 470 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 471 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
580 | 472 | product: ProductParam | NotGiven = NOT_GIVEN,
|
581 | 473 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
582 | 474 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -690,26 +582,8 @@ async def severity(
|
690 | 582 | dismissed: bool | NotGiven = NOT_GIVEN,
|
691 | 583 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
692 | 584 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
693 |
| - issue_type: List[ |
694 |
| - Literal[ |
695 |
| - "compliance_violation", |
696 |
| - "email_security", |
697 |
| - "exposed_infrastructure", |
698 |
| - "insecure_configuration", |
699 |
| - "weak_authentication", |
700 |
| - ] |
701 |
| - ] |
702 |
| - | NotGiven = NOT_GIVEN, |
703 |
| - issue_type_neq: List[ |
704 |
| - Literal[ |
705 |
| - "compliance_violation", |
706 |
| - "email_security", |
707 |
| - "exposed_infrastructure", |
708 |
| - "insecure_configuration", |
709 |
| - "weak_authentication", |
710 |
| - ] |
711 |
| - ] |
712 |
| - | NotGiven = NOT_GIVEN, |
| 585 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 586 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
713 | 587 | product: ProductParam | NotGiven = NOT_GIVEN,
|
714 | 588 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
715 | 589 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -774,26 +648,8 @@ async def type(
|
774 | 648 | dismissed: bool | NotGiven = NOT_GIVEN,
|
775 | 649 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
776 | 650 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
777 |
| - issue_type: List[ |
778 |
| - Literal[ |
779 |
| - "compliance_violation", |
780 |
| - "email_security", |
781 |
| - "exposed_infrastructure", |
782 |
| - "insecure_configuration", |
783 |
| - "weak_authentication", |
784 |
| - ] |
785 |
| - ] |
786 |
| - | NotGiven = NOT_GIVEN, |
787 |
| - issue_type_neq: List[ |
788 |
| - Literal[ |
789 |
| - "compliance_violation", |
790 |
| - "email_security", |
791 |
| - "exposed_infrastructure", |
792 |
| - "insecure_configuration", |
793 |
| - "weak_authentication", |
794 |
| - ] |
795 |
| - ] |
796 |
| - | NotGiven = NOT_GIVEN, |
| 651 | + issue_type: List[IssueType] | NotGiven = NOT_GIVEN, |
| 652 | + issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN, |
797 | 653 | product: ProductParam | NotGiven = NOT_GIVEN,
|
798 | 654 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
799 | 655 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
|
0 commit comments