Skip to content

Commit 9949651

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#2194)
1 parent d4deaed commit 9949651

21 files changed

+298
-608
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1448
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a87c8380ec40a8719b4385109e29fd5ec40c54f39d6fe216861c55e43ab74fd3.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4acaaed718bd08d16e3866d5ad032fbf2bbfeb978df2cf5164edb81fe41e4f89.yml

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-
APIShieldOperationModel,
2687+
APIShield,
26882688
OperationCreateResponse,
26892689
OperationListResponse,
26902690
OperationDeleteResponse,

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

+5-6
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@
3131
SchemaValidationResourceWithStreamingResponse,
3232
AsyncSchemaValidationResourceWithStreamingResponse,
3333
)
34-
from ....types.api_gateway import operation_get_params, operation_list_params
34+
from ....types.api_gateway import operation_get_params, operation_list_params, operation_create_params
3535
from ....types.api_gateway.operation_get_response import OperationGetResponse
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
3939
from ....types.api_gateway.operation_bulk_delete_response import OperationBulkDeleteResponse
40-
from ....types.api_gateway.api_shield_operation_model_param import APIShieldOperationModelParam
4140

4241
__all__ = ["OperationsResource", "AsyncOperationsResource"]
4342

@@ -70,7 +69,7 @@ def create(
7069
self,
7170
*,
7271
zone_id: str,
73-
body: Iterable[APIShieldOperationModelParam],
72+
body: Iterable[operation_create_params.Body],
7473
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7574
# The extra values given here take precedence over values defined on the client or passed to this method.
7675
extra_headers: Headers | None = None,
@@ -101,7 +100,7 @@ def create(
101100
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
102101
return self._post(
103102
f"/zones/{zone_id}/api_gateway/operations",
104-
body=maybe_transform(body, Iterable[APIShieldOperationModelParam]),
103+
body=maybe_transform(body, Iterable[operation_create_params.Body]),
105104
options=make_request_options(
106105
extra_headers=extra_headers,
107106
extra_query=extra_query,
@@ -345,7 +344,7 @@ async def create(
345344
self,
346345
*,
347346
zone_id: str,
348-
body: Iterable[APIShieldOperationModelParam],
347+
body: Iterable[operation_create_params.Body],
349348
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
350349
# The extra values given here take precedence over values defined on the client or passed to this method.
351350
extra_headers: Headers | None = None,
@@ -376,7 +375,7 @@ async def create(
376375
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
377376
return await self._post(
378377
f"/zones/{zone_id}/api_gateway/operations",
379-
body=await async_maybe_transform(body, Iterable[APIShieldOperationModelParam]),
378+
body=await async_maybe_transform(body, Iterable[operation_create_params.Body]),
380379
options=make_request_options(
381380
extra_headers=extra_headers,
382381
extra_query=extra_query,

src/cloudflare/resources/zero_trust/access/applications/applications.py

+12-24
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ def create(
216216
217217
self_hosted_domains: List of domains that Access will secure.
218218
219-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
220-
foo.
219+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
221220
222221
session_duration: The amount of time that tokens issued for this application will be valid. Must
223222
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -409,8 +408,7 @@ def create(
409408
410409
self_hosted_domains: List of domains that Access will secure.
411410
412-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
413-
foo.
411+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
414412
415413
session_duration: The amount of time that tokens issued for this application will be valid. Must
416414
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -534,8 +532,7 @@ def create(
534532
535533
self_hosted_domains: List of domains that Access will secure.
536534
537-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
538-
foo.
535+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
539536
540537
session_duration: The amount of time that tokens issued for this application will be valid. Must
541538
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -1098,8 +1095,7 @@ def update(
10981095
10991096
self_hosted_domains: List of domains that Access will secure.
11001097
1101-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
1102-
foo.
1098+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
11031099
11041100
session_duration: The amount of time that tokens issued for this application will be valid. Must
11051101
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -1297,8 +1293,7 @@ def update(
12971293
12981294
self_hosted_domains: List of domains that Access will secure.
12991295
1300-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
1301-
foo.
1296+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
13021297
13031298
session_duration: The amount of time that tokens issued for this application will be valid. Must
13041299
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -1425,8 +1420,7 @@ def update(
14251420
14261421
self_hosted_domains: List of domains that Access will secure.
14271422
1428-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
1429-
foo.
1423+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
14301424
14311425
session_duration: The amount of time that tokens issued for this application will be valid. Must
14321426
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -2290,8 +2284,7 @@ async def create(
22902284
22912285
self_hosted_domains: List of domains that Access will secure.
22922286
2293-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
2294-
foo.
2287+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
22952288
22962289
session_duration: The amount of time that tokens issued for this application will be valid. Must
22972290
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -2483,8 +2476,7 @@ async def create(
24832476
24842477
self_hosted_domains: List of domains that Access will secure.
24852478
2486-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
2487-
foo.
2479+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
24882480
24892481
session_duration: The amount of time that tokens issued for this application will be valid. Must
24902482
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -2608,8 +2600,7 @@ async def create(
26082600
26092601
self_hosted_domains: List of domains that Access will secure.
26102602
2611-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
2612-
foo.
2603+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
26132604
26142605
session_duration: The amount of time that tokens issued for this application will be valid. Must
26152606
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -3172,8 +3163,7 @@ async def update(
31723163
31733164
self_hosted_domains: List of domains that Access will secure.
31743165
3175-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
3176-
foo.
3166+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
31773167
31783168
session_duration: The amount of time that tokens issued for this application will be valid. Must
31793169
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -3371,8 +3361,7 @@ async def update(
33713361
33723362
self_hosted_domains: List of domains that Access will secure.
33733363
3374-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
3375-
foo.
3364+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
33763365
33773366
session_duration: The amount of time that tokens issued for this application will be valid. Must
33783367
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,
@@ -3499,8 +3488,7 @@ async def update(
34993488
35003489
self_hosted_domains: List of domains that Access will secure.
35013490
3502-
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy
3503-
foo.
3491+
service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy.
35043492
35053493
session_duration: The amount of time that tokens issued for this application will be valid. Must
35063494
be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms,

src/cloudflare/types/addressing/address_map_create_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class IP(BaseModel):
1313
created_at: Optional[datetime] = None
1414

1515
ip: Optional[str] = None
16-
"""An IPv4 or IPv6 address. foo"""
16+
"""An IPv4 or IPv6 address."""
1717

1818

1919
class Membership(BaseModel):

src/cloudflare/types/addressing/address_map_get_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class IP(BaseModel):
1313
created_at: Optional[datetime] = None
1414

1515
ip: Optional[str] = None
16-
"""An IPv4 or IPv6 address. foo"""
16+
"""An IPv4 or IPv6 address."""
1717

1818

1919
class Membership(BaseModel):

src/cloudflare/types/api_gateway/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from .message import Message as Message
66
from .settings import Settings as Settings
7+
from .api_shield import APIShield as APIShield
78
from .configuration import Configuration as Configuration
89
from .public_schema import PublicSchema as PublicSchema
910
from .schema_upload import SchemaUpload as SchemaUpload
@@ -22,9 +23,7 @@
2223
from .operation_create_response import OperationCreateResponse as OperationCreateResponse
2324
from .operation_delete_response import OperationDeleteResponse as OperationDeleteResponse
2425
from .user_schema_create_params import UserSchemaCreateParams as UserSchemaCreateParams
25-
from .api_shield_operation_model import APIShieldOperationModel as APIShieldOperationModel
2626
from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams
2727
from .user_schema_delete_response import UserSchemaDeleteResponse as UserSchemaDeleteResponse
2828
from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse
2929
from .operation_bulk_delete_response import OperationBulkDeleteResponse as OperationBulkDeleteResponse
30-
from .api_shield_operation_model_param import APIShieldOperationModelParam as APIShieldOperationModelParam

0 commit comments

Comments
 (0)