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): api update #2343

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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1490
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml
configured_endpoints: 1488
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-79dcf532de6a833b06fffc1a0e915a5eb7e0d5c06cff6b411595367d598ef1ec.yml
18 changes: 1 addition & 17 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7804,15 +7804,11 @@ Methods:
Types:

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

Methods:

- <code title="patch /zones/{zone_id}/cache/origin_post_quantum_encryption">client.origin_post_quantum_encryption.<a href="./src/cloudflare/resources/origin_post_quantum_encryption.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_response.py">Optional[OriginPostQuantumEncryptionEditResponse]</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 @@ -8488,18 +8484,6 @@ 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}/v1/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: 0 additions & 38 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
dns_firewall,
healthchecks,
security_txt,
abuse_reports,
email_routing,
magic_transit,
waiting_rooms,
Expand Down Expand Up @@ -151,7 +150,6 @@
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 @@ -820,12 +818,6 @@ 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 @@ -1591,12 +1583,6 @@ 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 @@ -2297,12 +2283,6 @@ 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 @@ -2822,12 +2802,6 @@ 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 @@ -3347,12 +3321,6 @@ 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 @@ -3882,12 +3850,6 @@ 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