Skip to content

Commit 4b59193

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#2190)
1 parent 93cfe28 commit 4b59193

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ Types:
26842684

26852685
```python
26862686
from cloudflare.types.api_gateway import (
2687-
APIShieldOperation,
2687+
APIShieldOperationModel,
26882688
OperationCreateResponse,
26892689
OperationListResponse,
26902690
OperationDeleteResponse,

src/cloudflare/resources/api_gateway/operations/operations.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
from ....types.api_gateway.operation_list_response import OperationListResponse
3737
from ....types.api_gateway.operation_create_response import OperationCreateResponse
3838
from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
39-
from ....types.api_gateway.api_shield_operation_param import APIShieldOperationParam
4039
from ....types.api_gateway.operation_bulk_delete_response import OperationBulkDeleteResponse
40+
from ....types.api_gateway.api_shield_operation_model_param import APIShieldOperationModelParam
4141

4242
__all__ = ["OperationsResource", "AsyncOperationsResource"]
4343

@@ -70,7 +70,7 @@ def create(
7070
self,
7171
*,
7272
zone_id: str,
73-
body: Iterable[APIShieldOperationParam],
73+
body: Iterable[APIShieldOperationModelParam],
7474
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7575
# The extra values given here take precedence over values defined on the client or passed to this method.
7676
extra_headers: Headers | None = None,
@@ -101,7 +101,7 @@ def create(
101101
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
102102
return self._post(
103103
f"/zones/{zone_id}/api_gateway/operations",
104-
body=maybe_transform(body, Iterable[APIShieldOperationParam]),
104+
body=maybe_transform(body, Iterable[APIShieldOperationModelParam]),
105105
options=make_request_options(
106106
extra_headers=extra_headers,
107107
extra_query=extra_query,
@@ -345,7 +345,7 @@ async def create(
345345
self,
346346
*,
347347
zone_id: str,
348-
body: Iterable[APIShieldOperationParam],
348+
body: Iterable[APIShieldOperationModelParam],
349349
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
350350
# The extra values given here take precedence over values defined on the client or passed to this method.
351351
extra_headers: Headers | None = None,
@@ -376,7 +376,7 @@ async def create(
376376
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
377377
return await self._post(
378378
f"/zones/{zone_id}/api_gateway/operations",
379-
body=await async_maybe_transform(body, Iterable[APIShieldOperationParam]),
379+
body=await async_maybe_transform(body, Iterable[APIShieldOperationModelParam]),
380380
options=make_request_options(
381381
extra_headers=extra_headers,
382382
extra_query=extra_query,

src/cloudflare/types/api_gateway/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from .public_schema import PublicSchema as PublicSchema
99
from .schema_upload import SchemaUpload as SchemaUpload
1010
from .schema_list_params import SchemaListParams as SchemaListParams
11-
from .api_shield_operation import APIShieldOperation as APIShieldOperation
1211
from .operation_get_params import OperationGetParams as OperationGetParams
1312
from .schema_list_response import SchemaListResponse as SchemaListResponse
1413
from .operation_list_params import OperationListParams as OperationListParams
@@ -23,8 +22,9 @@
2322
from .operation_create_response import OperationCreateResponse as OperationCreateResponse
2423
from .operation_delete_response import OperationDeleteResponse as OperationDeleteResponse
2524
from .user_schema_create_params import UserSchemaCreateParams as UserSchemaCreateParams
26-
from .api_shield_operation_param import APIShieldOperationParam as APIShieldOperationParam
25+
from .api_shield_operation_model import APIShieldOperationModel as APIShieldOperationModel
2726
from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams
2827
from .user_schema_delete_response import UserSchemaDeleteResponse as UserSchemaDeleteResponse
2928
from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse
3029
from .operation_bulk_delete_response import OperationBulkDeleteResponse as OperationBulkDeleteResponse
30+
from .api_shield_operation_model_param import APIShieldOperationModelParam as APIShieldOperationModelParam

src/cloudflare/types/api_gateway/api_shield_operation.py src/cloudflare/types/api_gateway/api_shield_operation_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from ..._models import BaseModel
66

7-
__all__ = ["APIShieldOperation"]
7+
__all__ = ["APIShieldOperationModel"]
88

99

10-
class APIShieldOperation(BaseModel):
10+
class APIShieldOperationModel(BaseModel):
1111
endpoint: str
1212
"""
1313
The endpoint which can contain path parameter templates in curly braces, each

src/cloudflare/types/api_gateway/api_shield_operation_param.py src/cloudflare/types/api_gateway/api_shield_operation_model_param.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from typing_extensions import Literal, Required, TypedDict
66

7-
__all__ = ["APIShieldOperationParam"]
7+
__all__ = ["APIShieldOperationModelParam"]
88

99

10-
class APIShieldOperationParam(TypedDict, total=False):
10+
class APIShieldOperationModelParam(TypedDict, total=False):
1111
endpoint: Required[str]
1212
"""
1313
The endpoint which can contain path parameter templates in curly braces, each

src/cloudflare/types/api_gateway/operation_create_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Iterable
66
from typing_extensions import Required, TypedDict
77

8-
from .api_shield_operation_param import APIShieldOperationParam
8+
from .api_shield_operation_model_param import APIShieldOperationModelParam
99

1010
__all__ = ["OperationCreateParams"]
1111

@@ -14,4 +14,4 @@ class OperationCreateParams(TypedDict, total=False):
1414
zone_id: Required[str]
1515
"""Identifier"""
1616

17-
body: Required[Iterable[APIShieldOperationParam]]
17+
body: Required[Iterable[APIShieldOperationModelParam]]

src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from datetime import datetime
55
from typing_extensions import Literal, TypeAlias
66

7-
from .. import api_shield_operation
87
from ...._models import BaseModel
8+
from ..api_shield_operation_model import APIShieldOperationModel
99

1010
__all__ = [
1111
"OperationListResponse",
@@ -233,4 +233,4 @@ class APIShieldOperation(BaseModel):
233233
features: Optional[APIShieldOperationFeatures] = None
234234

235235

236-
OperationListResponse: TypeAlias = Union[APIShieldOperation, api_shield_operation.APIShieldOperation]
236+
OperationListResponse: TypeAlias = Union[APIShieldOperation, APIShieldOperationModel]

0 commit comments

Comments
 (0)