Skip to content
Open
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
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2041
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9ba099b7936091cc984d2a24fc4d32c3ffcb1d71d86412c8c9084d201e16b3ac.yml
openapi_spec_hash: 45edc9a107cf5a5e3b204b230b0d336d
config_hash: be3f6e9410db673744447f9dbe92d922
configured_endpoints: 2058
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-27d7c57107c9203d814f63f6686c63b76aadb365ce0ee0549dfb214f40db12ef.yml
openapi_spec_hash: f46a7fc30fe001095a2b484fb6ada3e9
config_hash: b78af95529f71a3da2339b6fd717ed86
136 changes: 109 additions & 27 deletions api.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
content_scanning,
custom_hostnames,
resource_sharing,
resource_tagging,
token_validation,
browser_rendering,
mtls_certificates,
Expand Down Expand Up @@ -230,6 +231,7 @@
from .resources.content_scanning.content_scanning import ContentScanningResource, AsyncContentScanningResource
from .resources.custom_hostnames.custom_hostnames import CustomHostnamesResource, AsyncCustomHostnamesResource
from .resources.resource_sharing.resource_sharing import ResourceSharingResource, AsyncResourceSharingResource
from .resources.resource_tagging.resource_tagging import ResourceTaggingResource, AsyncResourceTaggingResource
from .resources.token_validation.token_validation import TokenValidationResource, AsyncTokenValidationResource
from .resources.browser_rendering.browser_rendering import BrowserRenderingResource, AsyncBrowserRenderingResource
from .resources.mtls_certificates.mtls_certificates import MTLSCertificatesResource, AsyncMTLSCertificatesResource
Expand Down Expand Up @@ -897,6 +899,12 @@ def resource_sharing(self) -> ResourceSharingResource:

return ResourceSharingResource(self)

@cached_property
def resource_tagging(self) -> ResourceTaggingResource:
from .resources.resource_tagging import ResourceTaggingResource

return ResourceTaggingResource(self)

@cached_property
def leaked_credential_checks(self) -> LeakedCredentialChecksResource:
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
Expand Down Expand Up @@ -1763,6 +1771,12 @@ def resource_sharing(self) -> AsyncResourceSharingResource:

return AsyncResourceSharingResource(self)

@cached_property
def resource_tagging(self) -> AsyncResourceTaggingResource:
from .resources.resource_tagging import AsyncResourceTaggingResource

return AsyncResourceTaggingResource(self)

@cached_property
def leaked_credential_checks(self) -> AsyncLeakedCredentialChecksResource:
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
Expand Down Expand Up @@ -2559,6 +2573,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawRes

return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)

@cached_property
def resource_tagging(self) -> resource_tagging.ResourceTaggingResourceWithRawResponse:
from .resources.resource_tagging import ResourceTaggingResourceWithRawResponse

return ResourceTaggingResourceWithRawResponse(self._client.resource_tagging)

@cached_property
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
Expand Down Expand Up @@ -3180,6 +3200,12 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithR

return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)

@cached_property
def resource_tagging(self) -> resource_tagging.AsyncResourceTaggingResourceWithRawResponse:
from .resources.resource_tagging import AsyncResourceTaggingResourceWithRawResponse

return AsyncResourceTaggingResourceWithRawResponse(self._client.resource_tagging)

@cached_property
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
Expand Down Expand Up @@ -3801,6 +3827,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStream

return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)

@cached_property
def resource_tagging(self) -> resource_tagging.ResourceTaggingResourceWithStreamingResponse:
from .resources.resource_tagging import ResourceTaggingResourceWithStreamingResponse

return ResourceTaggingResourceWithStreamingResponse(self._client.resource_tagging)

@cached_property
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
Expand Down Expand Up @@ -4430,6 +4462,12 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithS

return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)

@cached_property
def resource_tagging(self) -> resource_tagging.AsyncResourceTaggingResourceWithStreamingResponse:
from .resources.resource_tagging import AsyncResourceTaggingResourceWithStreamingResponse

return AsyncResourceTaggingResourceWithStreamingResponse(self._client.resource_tagging)

@cached_property
def leaked_credential_checks(
self,
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/abuse_reports/abuse_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def create(
host_notification: Literal["send", "send-anon"],
justification: str,
name: str,
owner_notification: Literal["send", "send-anon", "none"],
owner_notification: Literal["send", "send-anon"],
urls: str,
comments: str | Omit = omit,
company: str | Omit = omit,
Expand Down Expand Up @@ -866,7 +866,7 @@ def create(
host_notification: Literal["send"] | Literal["send", "send-anon"] | Omit = omit,
name: str,
original_work: str | Omit = omit,
owner_notification: Literal["send"] | Literal["send", "send-anon", "none"] | Literal["send", "send-anon"],
owner_notification: Literal["send"] | Literal["send", "send-anon"] | Literal["send", "send-anon", "none"],
signature: str | Omit = omit,
state: str | Omit = omit,
urls: str,
Expand Down Expand Up @@ -1299,7 +1299,7 @@ async def create(
host_notification: Literal["send", "send-anon"],
justification: str,
name: str,
owner_notification: Literal["send", "send-anon", "none"],
owner_notification: Literal["send", "send-anon"],
urls: str,
comments: str | Omit = omit,
company: str | Omit = omit,
Expand Down Expand Up @@ -1892,7 +1892,7 @@ async def create(
host_notification: Literal["send"] | Literal["send", "send-anon"] | Omit = omit,
name: str,
original_work: str | Omit = omit,
owner_notification: Literal["send"] | Literal["send", "send-anon", "none"] | Literal["send", "send-anon"],
owner_notification: Literal["send"] | Literal["send", "send-anon"] | Literal["send", "send-anon", "none"],
signature: str | Omit = omit,
state: str | Omit = omit,
urls: str,
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/resources/ai/models/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> SchemaGetResponse:
"""
Get Model Schema
Retrieves the input and output JSON schema definition for a Workers AI model.

Args:
model: Model Name
Expand Down Expand Up @@ -119,7 +119,7 @@ async def get(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> SchemaGetResponse:
"""
Get Model Schema
Retrieves the input and output JSON schema definition for a Workers AI model.

Args:
model: Model Name
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/ai/to_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def supported(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> SyncSinglePage[ToMarkdownSupportedResponse]:
"""
Get all converted formats supported
Lists all file formats supported for conversion to Markdown.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -92,7 +92,7 @@ def transform(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> SyncSinglePage[ToMarkdownTransformResponse]:
"""
Convert Files into Markdown
Converts uploaded files into Markdown format using Workers AI.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -156,7 +156,7 @@ def supported(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> AsyncPaginator[ToMarkdownSupportedResponse, AsyncSinglePage[ToMarkdownSupportedResponse]]:
"""
Get all converted formats supported
Lists all file formats supported for conversion to Markdown.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -191,7 +191,7 @@ def transform(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> AsyncPaginator[ToMarkdownTransformResponse, AsyncSinglePage[ToMarkdownTransformResponse]]:
"""
Convert Files into Markdown
Converts uploaded files into Markdown format using Workers AI.

Args:
extra_headers: Send extra headers
Expand Down
Loading
Loading