Skip to content
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1454
configured_endpoints: 1460
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24f32ff8cc230aecb28b850e99ed99f6f66fba898e64194d21052c4c2b869a24.yml
43 changes: 43 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8353,3 +8353,46 @@ Methods:
- <code title="put /zones/{zone_id}/leaked-credential-checks/detections/{detection_id}">client.leaked_credential_checks.detections.<a href="./src/cloudflare/resources/leaked_credential_checks/detections.py">update</a>(detection_id, \*, zone_id, \*\*<a href="src/cloudflare/types/leaked_credential_checks/detection_update_params.py">params</a>) -> <a href="./src/cloudflare/types/leaked_credential_checks/detection_update_response.py">DetectionUpdateResponse</a></code>
- <code title="get /zones/{zone_id}/leaked-credential-checks/detections">client.leaked_credential_checks.detections.<a href="./src/cloudflare/resources/leaked_credential_checks/detections.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/leaked_credential_checks/detection_list_response.py">SyncSinglePage[DetectionListResponse]</a></code>
- <code title="delete /zones/{zone_id}/leaked-credential-checks/detections/{detection_id}">client.leaked_credential_checks.detections.<a href="./src/cloudflare/resources/leaked_credential_checks/detections.py">delete</a>(detection_id, \*, zone_id) -> <a href="./src/cloudflare/types/leaked_credential_checks/detection_delete_response.py">object</a></code>

# ContentScanning

Types:

```python
from cloudflare.types import ContentScanningDisableResponse, ContentScanningEnableResponse
```

Methods:

- <code title="post /zones/{zone_id}/content-upload-scan/disable">client.content_scanning.<a href="./src/cloudflare/resources/content_scanning/content_scanning.py">disable</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning_disable_response.py">object</a></code>
- <code title="post /zones/{zone_id}/content-upload-scan/enable">client.content_scanning.<a href="./src/cloudflare/resources/content_scanning/content_scanning.py">enable</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning_enable_response.py">object</a></code>

## Payloads

Types:

```python
from cloudflare.types.content_scanning import (
PayloadCreateResponse,
PayloadListResponse,
PayloadDeleteResponse,
)
```

Methods:

- <code title="post /zones/{zone_id}/content-upload-scan/payloads">client.content_scanning.payloads.<a href="./src/cloudflare/resources/content_scanning/payloads.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/content_scanning/payload_create_params.py">params</a>) -> <a href="./src/cloudflare/types/content_scanning/payload_create_response.py">Optional[PayloadCreateResponse]</a></code>
- <code title="get /zones/{zone_id}/content-upload-scan/payloads">client.content_scanning.payloads.<a href="./src/cloudflare/resources/content_scanning/payloads.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning/payload_list_response.py">SyncSinglePage[PayloadListResponse]</a></code>
- <code title="delete /zones/{zone_id}/content-upload-scan/payloads/{expression_id}">client.content_scanning.payloads.<a href="./src/cloudflare/resources/content_scanning/payloads.py">delete</a>(expression_id, \*, zone_id) -> <a href="./src/cloudflare/types/content_scanning/payload_delete_response.py">Optional[PayloadDeleteResponse]</a></code>

## Settings

Types:

```python
from cloudflare.types.content_scanning import SettingGetResponse
```

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>
37 changes: 37 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
durable_objects,
request_tracers,
brand_protection,
content_scanning,
custom_hostnames,
resource_sharing,
mtls_certificates,
Expand Down Expand Up @@ -704,6 +705,12 @@ def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialC

return LeakedCredentialChecksResource(self)

@cached_property
def content_scanning(self) -> content_scanning.ContentScanningResource:
from .resources.content_scanning import ContentScanningResource

return ContentScanningResource(self)

@cached_property
def with_raw_response(self) -> CloudflareWithRawResponse:
return CloudflareWithRawResponse(self)
Expand Down Expand Up @@ -1457,6 +1464,12 @@ def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCreden

return AsyncLeakedCredentialChecksResource(self)

@cached_property
def content_scanning(self) -> content_scanning.AsyncContentScanningResource:
from .resources.content_scanning import AsyncContentScanningResource

return AsyncContentScanningResource(self)

@cached_property
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
return AsyncCloudflareWithRawResponse(self)
Expand Down Expand Up @@ -2145,6 +2158,12 @@ def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialC

return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)

@cached_property
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
from .resources.content_scanning import ContentScanningResourceWithRawResponse

return ContentScanningResourceWithRawResponse(self._client.content_scanning)


class AsyncCloudflareWithRawResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -2652,6 +2671,12 @@ def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCreden

return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)

@cached_property
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse

return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)


class CloudflareWithStreamedResponse:
_client: Cloudflare
Expand Down Expand Up @@ -3159,6 +3184,12 @@ def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialC

return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)

@cached_property
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse

return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)


class AsyncCloudflareWithStreamedResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -3676,6 +3707,12 @@ def leaked_credential_checks(

return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)

@cached_property
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
from .resources.content_scanning import AsyncContentScanningResourceWithStreamingResponse

return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)


Client = Cloudflare

Expand Down
14 changes: 14 additions & 0 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .content_scanning import (
ContentScanningResource,
AsyncContentScanningResource,
ContentScanningResourceWithRawResponse,
AsyncContentScanningResourceWithRawResponse,
ContentScanningResourceWithStreamingResponse,
AsyncContentScanningResourceWithStreamingResponse,
)
from .leaked_credential_checks import (
LeakedCredentialChecksResource,
AsyncLeakedCredentialChecksResource,
Expand All @@ -16,4 +24,10 @@
"AsyncLeakedCredentialChecksResourceWithRawResponse",
"LeakedCredentialChecksResourceWithStreamingResponse",
"AsyncLeakedCredentialChecksResourceWithStreamingResponse",
"ContentScanningResource",
"AsyncContentScanningResource",
"ContentScanningResourceWithRawResponse",
"AsyncContentScanningResourceWithRawResponse",
"ContentScanningResourceWithStreamingResponse",
"AsyncContentScanningResourceWithStreamingResponse",
]
47 changes: 47 additions & 0 deletions src/cloudflare/resources/content_scanning/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .payloads import (
PayloadsResource,
AsyncPayloadsResource,
PayloadsResourceWithRawResponse,
AsyncPayloadsResourceWithRawResponse,
PayloadsResourceWithStreamingResponse,
AsyncPayloadsResourceWithStreamingResponse,
)
from .settings import (
SettingsResource,
AsyncSettingsResource,
SettingsResourceWithRawResponse,
AsyncSettingsResourceWithRawResponse,
SettingsResourceWithStreamingResponse,
AsyncSettingsResourceWithStreamingResponse,
)
from .content_scanning import (
ContentScanningResource,
AsyncContentScanningResource,
ContentScanningResourceWithRawResponse,
AsyncContentScanningResourceWithRawResponse,
ContentScanningResourceWithStreamingResponse,
AsyncContentScanningResourceWithStreamingResponse,
)

__all__ = [
"PayloadsResource",
"AsyncPayloadsResource",
"PayloadsResourceWithRawResponse",
"AsyncPayloadsResourceWithRawResponse",
"PayloadsResourceWithStreamingResponse",
"AsyncPayloadsResourceWithStreamingResponse",
"SettingsResource",
"AsyncSettingsResource",
"SettingsResourceWithRawResponse",
"AsyncSettingsResourceWithRawResponse",
"SettingsResourceWithStreamingResponse",
"AsyncSettingsResourceWithStreamingResponse",
"ContentScanningResource",
"AsyncContentScanningResource",
"ContentScanningResourceWithRawResponse",
"AsyncContentScanningResourceWithRawResponse",
"ContentScanningResourceWithStreamingResponse",
"AsyncContentScanningResourceWithStreamingResponse",
]
Loading