Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): manual updates #2349

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1488
configured_endpoints: 1493
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-de70b033c163b7a4d4a11c5c66a7bcf7162020c433006b0d6b2d3e43c5b24df4.yml
44 changes: 43 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2692,6 +2692,7 @@ from cloudflare.types.api_gateway import (
OperationCreateResponse,
OperationListResponse,
OperationDeleteResponse,
OperationBulkCreateResponse,
OperationBulkDeleteResponse,
OperationGetResponse,
)
Expand All @@ -2702,6 +2703,7 @@ Methods:
- <code title="post /zones/{zone_id}/api_gateway/operations/item">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_create_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_create_response.py">OperationCreateResponse</a></code>
- <code title="get /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_list_response.py">SyncV4PagePaginationArray[OperationListResponse]</a></code>
- <code title="delete /zones/{zone_id}/api_gateway/operations/{operation_id}">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">delete</a>(operation_id, \*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/operation_delete_response.py">OperationDeleteResponse</a></code>
- <code title="post /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">bulk_create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_bulk_create_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_bulk_create_response.py">OperationBulkCreateResponse</a></code>
- <code title="delete /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">bulk_delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/operation_bulk_delete_response.py">OperationBulkDeleteResponse</a></code>
- <code title="get /zones/{zone_id}/api_gateway/operations/{operation_id}">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">get</a>(operation_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_get_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_get_response.py">OperationGetResponse</a></code>

Expand Down Expand Up @@ -5647,6 +5649,30 @@ Methods:
- <code title="post /accounts/{account_id}/dex/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_create_response.py">Optional[CommandCreateResponse]</a></code>
- <code title="get /accounts/{account_id}/dex/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_list_response.py">SyncV4PagePagination[Optional[CommandListResponse]]</a></code>

#### Users

Types:

```python
from cloudflare.types.zero_trust.dex.commands import UserListResponse
```

Methods:

- <code title="get /accounts/{account_id}/dex/commands/users">client.zero_trust.dex.commands.users.<a href="./src/cloudflare/resources/zero_trust/dex/commands/users.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/commands/user_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/commands/user_list_response.py">Optional[UserListResponse]</a></code>

#### Devices

Types:

```python
from cloudflare.types.zero_trust.dex.commands import DeviceListResponse
```

Methods:

- <code title="get /accounts/{account_id}/dex/commands/devices">client.zero_trust.dex.commands.devices.<a href="./src/cloudflare/resources/zero_trust/dex/commands/devices.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/commands/device_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/commands/device_list_response.py">SyncV4PagePagination[Optional[DeviceListResponse]]</a></code>

#### Downloads

Methods:
Expand Down Expand Up @@ -7804,11 +7830,15 @@ Methods:
Types:

```python
from cloudflare.types.origin_post_quantum_encryption import OriginPostQuantumEncryptionGetResponse
from cloudflare.types.origin_post_quantum_encryption import (
OriginPostQuantumEncryptionUpdateResponse,
OriginPostQuantumEncryptionGetResponse,
)
```

Methods:

- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.origin_post_quantum_encryption.<a href="./src/cloudflare/resources/origin_post_quantum_encryption.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py">params</a>) -> <a href="./src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_response.py">Optional[OriginPostQuantumEncryptionUpdateResponse]</a></code>
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.origin_post_quantum_encryption.<a href="./src/cloudflare/resources/origin_post_quantum_encryption.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_get_response.py">Optional[OriginPostQuantumEncryptionGetResponse]</a></code>

# Speed
Expand Down Expand Up @@ -8484,6 +8514,18 @@ Methods:

- <code title="get /zones/{zone_id}/content-upload-scan/settings">client.content_scanning.settings.<a href="./src/cloudflare/resources/content_scanning/settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning/setting_get_response.py">SettingGetResponse</a></code>

# AbuseReports

Types:

```python
from cloudflare.types.abuse_reports import AbuseReportCreateResponse
```

Methods:

- <code title="post /accounts/{account_id}/abuse-reports/{report_type}">client.abuse_reports.<a href="./src/cloudflare/resources/abuse_reports.py">create</a>(report_type, \*, account_id, \*\*<a href="src/cloudflare/types/abuse_reports/abuse_report_create_params.py">params</a>) -> <a href="./src/cloudflare/types/abuse_reports/abuse_report_create_response.py">str</a></code>

# AI

Types:
Expand Down
38 changes: 38 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
dns_firewall,
healthchecks,
security_txt,
abuse_reports,
email_routing,
magic_transit,
waiting_rooms,
Expand Down Expand Up @@ -150,6 +151,7 @@
from .resources.speed.speed import SpeedResource, AsyncSpeedResource
from .resources.zones.zones import ZonesResource, AsyncZonesResource
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
from .resources.images.images import ImagesResource, AsyncImagesResource
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
from .resources.stream.stream import StreamResource, AsyncStreamResource
Expand Down Expand Up @@ -818,6 +820,12 @@ def content_scanning(self) -> ContentScanningResource:

return ContentScanningResource(self)

@cached_property
def abuse_reports(self) -> AbuseReportsResource:
from .resources.abuse_reports import AbuseReportsResource

return AbuseReportsResource(self)

@cached_property
def ai(self) -> AIResource:
from .resources.ai import AIResource
Expand Down Expand Up @@ -1583,6 +1591,12 @@ def content_scanning(self) -> AsyncContentScanningResource:

return AsyncContentScanningResource(self)

@cached_property
def abuse_reports(self) -> AsyncAbuseReportsResource:
from .resources.abuse_reports import AsyncAbuseReportsResource

return AsyncAbuseReportsResource(self)

@cached_property
def ai(self) -> AsyncAIResource:
from .resources.ai import AsyncAIResource
Expand Down Expand Up @@ -2283,6 +2297,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes

return ContentScanningResourceWithRawResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse

return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)

@cached_property
def ai(self) -> ai.AIResourceWithRawResponse:
from .resources.ai import AIResourceWithRawResponse
Expand Down Expand Up @@ -2802,6 +2822,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR

return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse

return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)

@cached_property
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
from .resources.ai import AsyncAIResourceWithRawResponse
Expand Down Expand Up @@ -3321,6 +3347,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream

return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse

return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)

@cached_property
def ai(self) -> ai.AIResourceWithStreamingResponse:
from .resources.ai import AIResourceWithStreamingResponse
Expand Down Expand Up @@ -3850,6 +3882,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS

return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse

return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)

@cached_property
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
from .resources.ai import AsyncAIResourceWithStreamingResponse
Expand Down
Loading