Skip to content

Commit 1bd37b9

Browse files
feat(api): api update (#2343)
1 parent 2a3b8c5 commit 1bd37b9

File tree

73 files changed

+812
-2046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+812
-2046
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1490
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml
1+
configured_endpoints: 1488
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-79dcf532de6a833b06fffc1a0e915a5eb7e0d5c06cff6b411595367d598ef1ec.yml

api.md

+1-17
Original file line numberDiff line numberDiff line change
@@ -7804,15 +7804,11 @@ Methods:
78047804
Types:
78057805

78067806
```python
7807-
from cloudflare.types.origin_post_quantum_encryption import (
7808-
OriginPostQuantumEncryptionEditResponse,
7809-
OriginPostQuantumEncryptionGetResponse,
7810-
)
7807+
from cloudflare.types.origin_post_quantum_encryption import OriginPostQuantumEncryptionGetResponse
78117808
```
78127809

78137810
Methods:
78147811

7815-
- <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>
78167812
- <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>
78177813

78187814
# Speed
@@ -8488,18 +8484,6 @@ Methods:
84888484

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

8491-
# AbuseReports
8492-
8493-
Types:
8494-
8495-
```python
8496-
from cloudflare.types.abuse_reports import AbuseReportCreateResponse
8497-
```
8498-
8499-
Methods:
8500-
8501-
- <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>
8502-
85038487
# AI
85048488

85058489
Types:

src/cloudflare/_client.py

-38
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
dns_firewall,
9393
healthchecks,
9494
security_txt,
95-
abuse_reports,
9695
email_routing,
9796
magic_transit,
9897
waiting_rooms,
@@ -151,7 +150,6 @@
151150
from .resources.speed.speed import SpeedResource, AsyncSpeedResource
152151
from .resources.zones.zones import ZonesResource, AsyncZonesResource
153152
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
154-
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
155153
from .resources.images.images import ImagesResource, AsyncImagesResource
156154
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
157155
from .resources.stream.stream import StreamResource, AsyncStreamResource
@@ -820,12 +818,6 @@ def content_scanning(self) -> ContentScanningResource:
820818

821819
return ContentScanningResource(self)
822820

823-
@cached_property
824-
def abuse_reports(self) -> AbuseReportsResource:
825-
from .resources.abuse_reports import AbuseReportsResource
826-
827-
return AbuseReportsResource(self)
828-
829821
@cached_property
830822
def ai(self) -> AIResource:
831823
from .resources.ai import AIResource
@@ -1591,12 +1583,6 @@ def content_scanning(self) -> AsyncContentScanningResource:
15911583

15921584
return AsyncContentScanningResource(self)
15931585

1594-
@cached_property
1595-
def abuse_reports(self) -> AsyncAbuseReportsResource:
1596-
from .resources.abuse_reports import AsyncAbuseReportsResource
1597-
1598-
return AsyncAbuseReportsResource(self)
1599-
16001586
@cached_property
16011587
def ai(self) -> AsyncAIResource:
16021588
from .resources.ai import AsyncAIResource
@@ -2297,12 +2283,6 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes
22972283

22982284
return ContentScanningResourceWithRawResponse(self._client.content_scanning)
22992285

2300-
@cached_property
2301-
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
2302-
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse
2303-
2304-
return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2305-
23062286
@cached_property
23072287
def ai(self) -> ai.AIResourceWithRawResponse:
23082288
from .resources.ai import AIResourceWithRawResponse
@@ -2822,12 +2802,6 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR
28222802

28232803
return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)
28242804

2825-
@cached_property
2826-
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
2827-
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse
2828-
2829-
return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2830-
28312805
@cached_property
28322806
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
28332807
from .resources.ai import AsyncAIResourceWithRawResponse
@@ -3347,12 +3321,6 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream
33473321

33483322
return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)
33493323

3350-
@cached_property
3351-
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
3352-
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse
3353-
3354-
return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3355-
33563324
@cached_property
33573325
def ai(self) -> ai.AIResourceWithStreamingResponse:
33583326
from .resources.ai import AIResourceWithStreamingResponse
@@ -3882,12 +3850,6 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS
38823850

38833851
return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)
38843852

3885-
@cached_property
3886-
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
3887-
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse
3888-
3889-
return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3890-
38913853
@cached_property
38923854
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
38933855
from .resources.ai import AsyncAIResourceWithStreamingResponse

0 commit comments

Comments
 (0)