Skip to content

Commit f01d46e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#294)
1 parent f7797bc commit f01d46e

23 files changed

+340
-742
lines changed

api.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,7 @@ Types:
36873687
```python
36883688
from cloudflare.types.intel.attack_surface_report import (
36893689
IssueClass,
3690+
IssueType,
36903691
Product,
36913692
SeverityQueryParam,
36923693
Subject,
@@ -5404,16 +5405,24 @@ Methods:
54045405
Types:
54055406

54065407
```python
5407-
from cloudflare.types.zero_trust import Connection, Tunnel, TunnelListResponse, TunnelEditResponse
5408+
from cloudflare.types.zero_trust import (
5409+
Connection,
5410+
Tunnel,
5411+
TunnelCreateResponse,
5412+
TunnelListResponse,
5413+
TunnelDeleteResponse,
5414+
TunnelEditResponse,
5415+
TunnelGetResponse,
5416+
)
54085417
```
54095418

54105419
Methods:
54115420

5412-
- <code title="post /accounts/{account_id}/tunnels">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel.py">Tunnel</a></code>
5421+
- <code title="post /accounts/{account_id}/tunnels">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel_create_response.py">TunnelCreateResponse</a></code>
54135422
- <code title="get /accounts/{account_id}/tunnels">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel_list_response.py">SyncV4PagePaginationArray[TunnelListResponse]</a></code>
5414-
- <code title="delete /accounts/{account_id}/tunnels/{tunnel_id}">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">delete</a>(tunnel_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel.py">Tunnel</a></code>
5423+
- <code title="delete /accounts/{account_id}/tunnels/{tunnel_id}">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">delete</a>(tunnel_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel_delete_response.py">TunnelDeleteResponse</a></code>
54155424
- <code title="patch /accounts/{account_id}/cfd_tunnel/{tunnel_id}">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">edit</a>(tunnel_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/tunnel_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/tunnel_edit_response.py">TunnelEditResponse</a></code>
5416-
- <code title="get /accounts/{account_id}/tunnels/{tunnel_id}">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">get</a>(tunnel_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/tunnel.py">Tunnel</a></code>
5425+
- <code title="get /accounts/{account_id}/tunnels/{tunnel_id}">client.zero_trust.tunnels.<a href="./src/cloudflare/resources/zero_trust/tunnels/tunnels.py">get</a>(tunnel_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/tunnel_get_response.py">TunnelGetResponse</a></code>
54175426

54185427
### Configurations
54195428

src/cloudflare/resources/intel/attack_surface_report/issues.py

+17-161
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
from typing import Any, List, Type, cast
6-
from typing_extensions import Literal
76

87
import httpx
98

@@ -27,6 +26,7 @@
2726
make_request_options,
2827
)
2928
from ....types.intel.attack_surface_report import (
29+
IssueType,
3030
ProductParam,
3131
SubjectParam,
3232
IssueClassParam,
@@ -62,26 +62,8 @@ def list(
6262
dismissed: bool | NotGiven = NOT_GIVEN,
6363
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
6464
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,
8567
page: int | NotGiven = NOT_GIVEN,
8668
per_page: int | NotGiven = NOT_GIVEN,
8769
product: ProductParam | NotGiven = NOT_GIVEN,
@@ -154,26 +136,8 @@ def class_(
154136
dismissed: bool | NotGiven = NOT_GIVEN,
155137
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
156138
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,
177141
product: ProductParam | NotGiven = NOT_GIVEN,
178142
product_neq: ProductParam | NotGiven = NOT_GIVEN,
179143
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -287,26 +251,8 @@ def severity(
287251
dismissed: bool | NotGiven = NOT_GIVEN,
288252
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
289253
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,
310256
product: ProductParam | NotGiven = NOT_GIVEN,
311257
product_neq: ProductParam | NotGiven = NOT_GIVEN,
312258
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -371,26 +317,8 @@ def type(
371317
dismissed: bool | NotGiven = NOT_GIVEN,
372318
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
373319
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,
394322
product: ProductParam | NotGiven = NOT_GIVEN,
395323
product_neq: ProductParam | NotGiven = NOT_GIVEN,
396324
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -465,26 +393,8 @@ def list(
465393
dismissed: bool | NotGiven = NOT_GIVEN,
466394
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
467395
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,
488398
page: int | NotGiven = NOT_GIVEN,
489399
per_page: int | NotGiven = NOT_GIVEN,
490400
product: ProductParam | NotGiven = NOT_GIVEN,
@@ -557,26 +467,8 @@ async def class_(
557467
dismissed: bool | NotGiven = NOT_GIVEN,
558468
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
559469
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,
580472
product: ProductParam | NotGiven = NOT_GIVEN,
581473
product_neq: ProductParam | NotGiven = NOT_GIVEN,
582474
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -690,26 +582,8 @@ async def severity(
690582
dismissed: bool | NotGiven = NOT_GIVEN,
691583
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
692584
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,
713587
product: ProductParam | NotGiven = NOT_GIVEN,
714588
product_neq: ProductParam | NotGiven = NOT_GIVEN,
715589
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -774,26 +648,8 @@ async def type(
774648
dismissed: bool | NotGiven = NOT_GIVEN,
775649
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
776650
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,
797653
product: ProductParam | NotGiven = NOT_GIVEN,
798654
product_neq: ProductParam | NotGiven = NOT_GIVEN,
799655
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)