Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent f7797bc commit f01d46e
Show file tree
Hide file tree
Showing 23 changed files with 340 additions and 742 deletions.
17 changes: 13 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3687,6 +3687,7 @@ Types:
```python
from cloudflare.types.intel.attack_surface_report import (
IssueClass,
IssueType,
Product,
SeverityQueryParam,
Subject,
Expand Down Expand Up @@ -5404,16 +5405,24 @@ Methods:
Types:

```python
from cloudflare.types.zero_trust import Connection, Tunnel, TunnelListResponse, TunnelEditResponse
from cloudflare.types.zero_trust import (
Connection,
Tunnel,
TunnelCreateResponse,
TunnelListResponse,
TunnelDeleteResponse,
TunnelEditResponse,
TunnelGetResponse,
)
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

### Configurations

Expand Down
178 changes: 17 additions & 161 deletions src/cloudflare/resources/intel/attack_surface_report/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from typing import Any, List, Type, cast
from typing_extensions import Literal

import httpx

Expand All @@ -27,6 +26,7 @@
make_request_options,
)
from ....types.intel.attack_surface_report import (
IssueType,
ProductParam,
SubjectParam,
IssueClassParam,
Expand Down Expand Up @@ -62,26 +62,8 @@ def list(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -154,26 +136,8 @@ def class_(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -287,26 +251,8 @@ def severity(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -371,26 +317,8 @@ def type(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -465,26 +393,8 @@ def list(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -557,26 +467,8 @@ async def class_(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -690,26 +582,8 @@ async def severity(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -774,26 +648,8 @@ async def type(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type: List[IssueType] | NotGiven = NOT_GIVEN,
issue_type_neq: List[IssueType] | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down
Loading

0 comments on commit f01d46e

Please sign in to comment.