Skip to content

Commit 3d5d0e0

Browse files
chore(api): update composite API spec
1 parent 35670b1 commit 3d5d0e0

File tree

418 files changed

+41719
-18193
lines changed

Some content is hidden

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

418 files changed

+41719
-18193
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1850
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
3-
openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
1+
configured_endpoints: 1875
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c17ba1999aa95652686a2474ad415475d728e5c831b79be5e540a82887b024a0.yml
3+
openapi_spec_hash: b68c7fcf549383e09823c071b1f2e037
44
config_hash: 4b8075dcc6a5884435b2e16c80fc020f

api.md

Lines changed: 146 additions & 40 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
dns_firewall,
9494
healthchecks,
9595
security_txt,
96+
abuse_reports,
9697
email_routing,
9798
magic_transit,
9899
organizations,
@@ -161,6 +162,7 @@
161162
from .resources.zones.zones import ZonesResource, AsyncZonesResource
162163
from .resources.custom_pages import CustomPagesResource, AsyncCustomPagesResource
163164
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
165+
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
164166
from .resources.images.images import ImagesResource, AsyncImagesResource
165167
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
166168
from .resources.stream.stream import StreamResource, AsyncStreamResource
@@ -871,6 +873,12 @@ def content_scanning(self) -> ContentScanningResource:
871873

872874
return ContentScanningResource(self)
873875

876+
@cached_property
877+
def abuse_reports(self) -> AbuseReportsResource:
878+
from .resources.abuse_reports import AbuseReportsResource
879+
880+
return AbuseReportsResource(self)
881+
874882
@cached_property
875883
def ai(self) -> AIResource:
876884
from .resources.ai import AIResource
@@ -1703,6 +1711,12 @@ def content_scanning(self) -> AsyncContentScanningResource:
17031711

17041712
return AsyncContentScanningResource(self)
17051713

1714+
@cached_property
1715+
def abuse_reports(self) -> AsyncAbuseReportsResource:
1716+
from .resources.abuse_reports import AsyncAbuseReportsResource
1717+
1718+
return AsyncAbuseReportsResource(self)
1719+
17061720
@cached_property
17071721
def ai(self) -> AsyncAIResource:
17081722
from .resources.ai import AsyncAIResource
@@ -2465,6 +2479,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes
24652479

24662480
return ContentScanningResourceWithRawResponse(self._client.content_scanning)
24672481

2482+
@cached_property
2483+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
2484+
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse
2485+
2486+
return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2487+
24682488
@cached_property
24692489
def ai(self) -> ai.AIResourceWithRawResponse:
24702490
from .resources.ai import AIResourceWithRawResponse
@@ -3044,6 +3064,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR
30443064

30453065
return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)
30463066

3067+
@cached_property
3068+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
3069+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse
3070+
3071+
return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
3072+
30473073
@cached_property
30483074
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
30493075
from .resources.ai import AsyncAIResourceWithRawResponse
@@ -3623,6 +3649,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream
36233649

36243650
return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)
36253651

3652+
@cached_property
3653+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
3654+
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse
3655+
3656+
return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3657+
36263658
@cached_property
36273659
def ai(self) -> ai.AIResourceWithStreamingResponse:
36283660
from .resources.ai import AIResourceWithStreamingResponse
@@ -4212,6 +4244,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS
42124244

42134245
return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)
42144246

4247+
@cached_property
4248+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
4249+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse
4250+
4251+
return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
4252+
42154253
@cached_property
42164254
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
42174255
from .resources.ai import AsyncAIResourceWithStreamingResponse

0 commit comments

Comments
 (0)