Skip to content

Commit

Permalink
feat(api): manual updates (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 10, 2024
1 parent 39bd39c commit f70b142
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 51 deletions.
18 changes: 12 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8326,13 +8326,16 @@ Methods:
Types:

```python
from cloudflare.types import LeakedCredentialCheckCreateResponse, LeakedCredentialCheckGetResponse
from cloudflare.types.leaked_credential_checks import (
LeakedCredentialCheckCreateResponse,
LeakedCredentialCheckGetResponse,
)
```

Methods:

- <code title="post /zones/{zone_id}/leaked-credential-checks">client.leaked_credential_checks.<a href="./src/cloudflare/resources/leaked_credential_checks/leaked_credential_checks.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/leaked_credential_check_create_params.py">params</a>) -> <a href="./src/cloudflare/types/leaked_credential_check_create_response.py">LeakedCredentialCheckCreateResponse</a></code>
- <code title="get /zones/{zone_id}/leaked-credential-checks">client.leaked_credential_checks.<a href="./src/cloudflare/resources/leaked_credential_checks/leaked_credential_checks.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/leaked_credential_check_get_response.py">LeakedCredentialCheckGetResponse</a></code>
- <code title="post /zones/{zone_id}/leaked-credential-checks">client.leaked_credential_checks.<a href="./src/cloudflare/resources/leaked_credential_checks/leaked_credential_checks.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/leaked_credential_checks/leaked_credential_check_create_params.py">params</a>) -> <a href="./src/cloudflare/types/leaked_credential_checks/leaked_credential_check_create_response.py">LeakedCredentialCheckCreateResponse</a></code>
- <code title="get /zones/{zone_id}/leaked-credential-checks">client.leaked_credential_checks.<a href="./src/cloudflare/resources/leaked_credential_checks/leaked_credential_checks.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/leaked_credential_checks/leaked_credential_check_get_response.py">LeakedCredentialCheckGetResponse</a></code>

## Detections

Expand All @@ -8359,13 +8362,16 @@ Methods:
Types:

```python
from cloudflare.types import ContentScanningDisableResponse, ContentScanningEnableResponse
from cloudflare.types.content_scanning 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>
- <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/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/content_scanning_enable_response.py">object</a></code>

## Payloads

Expand Down
32 changes: 0 additions & 32 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
# 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,
LeakedCredentialChecksResourceWithRawResponse,
AsyncLeakedCredentialChecksResourceWithRawResponse,
LeakedCredentialChecksResourceWithStreamingResponse,
AsyncLeakedCredentialChecksResourceWithStreamingResponse,
)

__all__ = [
"LeakedCredentialChecksResource",
"AsyncLeakedCredentialChecksResource",
"LeakedCredentialChecksResourceWithRawResponse",
"AsyncLeakedCredentialChecksResourceWithRawResponse",
"LeakedCredentialChecksResourceWithStreamingResponse",
"AsyncLeakedCredentialChecksResourceWithStreamingResponse",
"ContentScanningResource",
"AsyncContentScanningResource",
"ContentScanningResourceWithRawResponse",
"AsyncContentScanningResourceWithRawResponse",
"ContentScanningResourceWithStreamingResponse",
"AsyncContentScanningResourceWithStreamingResponse",
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import httpx

from ...types import leaked_credential_check_create_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -30,8 +29,11 @@
)
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from ...types.leaked_credential_check_get_response import LeakedCredentialCheckGetResponse
from ...types.leaked_credential_check_create_response import LeakedCredentialCheckCreateResponse
from ...types.leaked_credential_checks import leaked_credential_check_create_params
from ...types.leaked_credential_checks.leaked_credential_check_get_response import LeakedCredentialCheckGetResponse
from ...types.leaked_credential_checks.leaked_credential_check_create_response import (
LeakedCredentialCheckCreateResponse,
)

__all__ = ["LeakedCredentialChecksResource", "AsyncLeakedCredentialChecksResource"]

Expand Down
7 changes: 0 additions & 7 deletions src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,3 @@
CertificateRequestType as CertificateRequestType,
TokenConditionCIDRList as TokenConditionCIDRList,
)
from .leaked_credential_check_get_response import LeakedCredentialCheckGetResponse as LeakedCredentialCheckGetResponse
from .leaked_credential_check_create_params import (
LeakedCredentialCheckCreateParams as LeakedCredentialCheckCreateParams,
)
from .leaked_credential_check_create_response import (
LeakedCredentialCheckCreateResponse as LeakedCredentialCheckCreateResponse,
)
7 changes: 7 additions & 0 deletions src/cloudflare/types/leaked_credential_checks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@
from .detection_update_params import DetectionUpdateParams as DetectionUpdateParams
from .detection_create_response import DetectionCreateResponse as DetectionCreateResponse
from .detection_update_response import DetectionUpdateResponse as DetectionUpdateResponse
from .leaked_credential_check_get_response import LeakedCredentialCheckGetResponse as LeakedCredentialCheckGetResponse
from .leaked_credential_check_create_params import (
LeakedCredentialCheckCreateParams as LeakedCredentialCheckCreateParams,
)
from .leaked_credential_check_create_response import (
LeakedCredentialCheckCreateResponse as LeakedCredentialCheckCreateResponse,
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Optional

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["LeakedCredentialCheckCreateResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Optional

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["LeakedCredentialCheckGetResponse"]

Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_leaked_credential_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
from cloudflare.types.leaked_credential_checks import (
LeakedCredentialCheckGetResponse,
LeakedCredentialCheckCreateResponse,
)
Expand Down

0 comments on commit f70b142

Please sign in to comment.