Skip to content

Commit

Permalink
chore: trigger rebuild (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 29, 2025
1 parent a2a04c9 commit 0a1dd9f
Show file tree
Hide file tree
Showing 565 changed files with 29,279 additions and 13,605 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1460
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6bb90de90ae3ffcac71bd91b9ad7338325a7ca45b28c334b686b427877b4d849.yml
configured_endpoints: 1494
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-817b1412335b2bc367169247bf8a10b29dbadb82b77df71df5ef5f3470fc974b.yml
434 changes: 323 additions & 111 deletions api.md

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

if TYPE_CHECKING:
from .resources import (
ai,
d1,
kv,
r2,
Expand Down Expand Up @@ -91,6 +92,7 @@
dns_firewall,
healthchecks,
security_txt,
abuse_reports,
email_routing,
magic_transit,
waiting_rooms,
Expand Down Expand Up @@ -122,6 +124,7 @@
origin_post_quantum_encryption,
)
from .resources.ips import IPsResource, AsyncIPsResource
from .resources.ai.ai import AIResource, AsyncAIResource
from .resources.d1.d1 import D1Resource, AsyncD1Resource
from .resources.kv.kv import KVResource, AsyncKVResource
from .resources.r2.r2 import R2Resource, AsyncR2Resource
Expand All @@ -148,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 @@ -816,6 +820,18 @@ 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

return AIResource(self)

@cached_property
def with_raw_response(self) -> CloudflareWithRawResponse:
return CloudflareWithRawResponse(self)
Expand Down Expand Up @@ -1575,6 +1591,18 @@ 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

return AsyncAIResource(self)

@cached_property
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
return AsyncCloudflareWithRawResponse(self)
Expand Down Expand Up @@ -2269,6 +2297,18 @@ 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

return AIResourceWithRawResponse(self._client.ai)


class AsyncCloudflareWithRawResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -2782,6 +2822,18 @@ 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

return AsyncAIResourceWithRawResponse(self._client.ai)


class CloudflareWithStreamedResponse:
_client: Cloudflare
Expand Down Expand Up @@ -3295,6 +3347,18 @@ 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

return AIResourceWithStreamingResponse(self._client.ai)


class AsyncCloudflareWithStreamedResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -3818,6 +3882,18 @@ 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

return AsyncAIResourceWithStreamingResponse(self._client.ai)


Client = Cloudflare

Expand Down
Loading

0 comments on commit 0a1dd9f

Please sign in to comment.