Skip to content

Commit e7ff28c

Browse files
chore(api): update composite API spec
1 parent 98ef4c6 commit e7ff28c

26 files changed

Lines changed: 312 additions & 8 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1802
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-265ffaba3690e11385a365ea419eb054de2072fc0ec111ba25b0c03637cb040c.yml
3-
openapi_spec_hash: fad19563e8e1211858fb9a3919272c04
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31cd5d20a471a075a159a068380bc0071a5c7f982116717387528d0462d5dbca.yml
3+
openapi_spec_hash: 135377ab97fba9ef1d2b3ab2925fe919
44
config_hash: ac04197a992afb1d8c3b416fc46e8c8e

api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,8 +2472,8 @@ Methods:
24722472

24732473
- <code title="put /accounts/{account_id}/workers/scripts/{script_name}/secrets">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">update</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/scripts/secret_update_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/secret_update_response.py">Optional[SecretUpdateResponse]</a></code>
24742474
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/secrets">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">list</a>(script_name, \*, account_id) -> <a href="./src/cloudflare/types/workers/scripts/secret_list_response.py">SyncSinglePage[SecretListResponse]</a></code>
2475-
- <code title="delete /accounts/{account_id}/workers/scripts/{script_name}/secrets/{secret_name}">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">delete</a>(secret_name, \*, account_id, script_name) -> object</code>
2476-
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/secrets/{secret_name}">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">get</a>(secret_name, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/secret_get_response.py">Optional[SecretGetResponse]</a></code>
2475+
- <code title="delete /accounts/{account_id}/workers/scripts/{script_name}/secrets/{secret_name}">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">delete</a>(secret_name, \*, account_id, script_name, \*\*<a href="src/cloudflare/types/workers/scripts/secret_delete_params.py">params</a>) -> object</code>
2476+
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/secrets/{secret_name}">client.workers.scripts.secrets.<a href="./src/cloudflare/resources/workers/scripts/secrets.py">get</a>(secret_name, \*, account_id, script_name, \*\*<a href="src/cloudflare/types/workers/scripts/secret_get_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/secret_get_response.py">Optional[SecretGetResponse]</a></code>
24772477

24782478
### ScriptAndVersionSettings
24792479

@@ -5282,8 +5282,8 @@ Methods:
52825282

52835283
- <code title="put /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">update</a>(script_name, \*, account_id, dispatch_namespace, \*\*<a href="src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_params.py">params</a>) -> <a href="./src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_response.py">SecretUpdateResponse</a></code>
52845284
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">list</a>(script_name, \*, account_id, dispatch_namespace) -> <a href="./src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_list_response.py">SyncSinglePage[SecretListResponse]</a></code>
5285-
- <code title="delete /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name}">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">delete</a>(secret_name, \*, account_id, dispatch_namespace, script_name) -> object</code>
5286-
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name}">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">get</a>(secret_name, \*, account_id, dispatch_namespace, script_name) -> <a href="./src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py">SecretGetResponse</a></code>
5285+
- <code title="delete /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name}">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">delete</a>(secret_name, \*, account_id, dispatch_namespace, script_name, \*\*<a href="src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_delete_params.py">params</a>) -> object</code>
5286+
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name}">client.workers_for_platforms.dispatch.namespaces.scripts.secrets.<a href="./src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py">get</a>(secret_name, \*, account_id, dispatch_namespace, script_name, \*\*<a href="src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_params.py">params</a>) -> <a href="./src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py">SecretGetResponse</a></code>
52875287

52885288
##### Tags
52895289

src/cloudflare/resources/workers/scripts/secrets.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ...._wrappers import ResultWrapper
2121
from ....pagination import SyncSinglePage, AsyncSinglePage
2222
from ...._base_client import AsyncPaginator, make_request_options
23-
from ....types.workers.scripts import secret_update_params
23+
from ....types.workers.scripts import secret_get_params, secret_delete_params, secret_update_params
2424
from ....types.workers.scripts.secret_get_response import SecretGetResponse
2525
from ....types.workers.scripts.secret_list_response import SecretListResponse
2626
from ....types.workers.scripts.secret_update_response import SecretUpdateResponse
@@ -252,6 +252,7 @@ def delete(
252252
*,
253253
account_id: str,
254254
script_name: str,
255+
url_encoded: bool | NotGiven = NOT_GIVEN,
255256
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
256257
# The extra values given here take precedence over values defined on the client or passed to this method.
257258
extra_headers: Headers | None = None,
@@ -269,6 +270,8 @@ def delete(
269270
270271
secret_name: A JavaScript variable name for the secret binding.
271272
273+
url_encoded: Flag that indicates whether the secret name is URL encoded.
274+
272275
extra_headers: Send extra headers
273276
274277
extra_query: Add additional query parameters to the request
@@ -290,6 +293,7 @@ def delete(
290293
extra_query=extra_query,
291294
extra_body=extra_body,
292295
timeout=timeout,
296+
query=maybe_transform({"url_encoded": url_encoded}, secret_delete_params.SecretDeleteParams),
293297
post_parser=ResultWrapper[Optional[object]]._unwrapper,
294298
),
295299
cast_to=cast(Type[object], ResultWrapper[object]),
@@ -301,6 +305,7 @@ def get(
301305
*,
302306
account_id: str,
303307
script_name: str,
308+
url_encoded: bool | NotGiven = NOT_GIVEN,
304309
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
305310
# The extra values given here take precedence over values defined on the client or passed to this method.
306311
extra_headers: Headers | None = None,
@@ -318,6 +323,8 @@ def get(
318323
319324
secret_name: A JavaScript variable name for the secret binding.
320325
326+
url_encoded: Flag that indicates whether the secret name is URL encoded.
327+
321328
extra_headers: Send extra headers
322329
323330
extra_query: Add additional query parameters to the request
@@ -341,6 +348,7 @@ def get(
341348
extra_query=extra_query,
342349
extra_body=extra_body,
343350
timeout=timeout,
351+
query=maybe_transform({"url_encoded": url_encoded}, secret_get_params.SecretGetParams),
344352
post_parser=ResultWrapper[Optional[SecretGetResponse]]._unwrapper,
345353
),
346354
cast_to=cast(
@@ -574,6 +582,7 @@ async def delete(
574582
*,
575583
account_id: str,
576584
script_name: str,
585+
url_encoded: bool | NotGiven = NOT_GIVEN,
577586
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
578587
# The extra values given here take precedence over values defined on the client or passed to this method.
579588
extra_headers: Headers | None = None,
@@ -591,6 +600,8 @@ async def delete(
591600
592601
secret_name: A JavaScript variable name for the secret binding.
593602
603+
url_encoded: Flag that indicates whether the secret name is URL encoded.
604+
594605
extra_headers: Send extra headers
595606
596607
extra_query: Add additional query parameters to the request
@@ -612,6 +623,9 @@ async def delete(
612623
extra_query=extra_query,
613624
extra_body=extra_body,
614625
timeout=timeout,
626+
query=await async_maybe_transform(
627+
{"url_encoded": url_encoded}, secret_delete_params.SecretDeleteParams
628+
),
615629
post_parser=ResultWrapper[Optional[object]]._unwrapper,
616630
),
617631
cast_to=cast(Type[object], ResultWrapper[object]),
@@ -623,6 +637,7 @@ async def get(
623637
*,
624638
account_id: str,
625639
script_name: str,
640+
url_encoded: bool | NotGiven = NOT_GIVEN,
626641
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
627642
# The extra values given here take precedence over values defined on the client or passed to this method.
628643
extra_headers: Headers | None = None,
@@ -640,6 +655,8 @@ async def get(
640655
641656
secret_name: A JavaScript variable name for the secret binding.
642657
658+
url_encoded: Flag that indicates whether the secret name is URL encoded.
659+
643660
extra_headers: Send extra headers
644661
645662
extra_query: Add additional query parameters to the request
@@ -663,6 +680,7 @@ async def get(
663680
extra_query=extra_query,
664681
extra_body=extra_body,
665682
timeout=timeout,
683+
query=await async_maybe_transform({"url_encoded": url_encoded}, secret_get_params.SecretGetParams),
666684
post_parser=ResultWrapper[Optional[SecretGetResponse]]._unwrapper,
667685
),
668686
cast_to=cast(

src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
from ......_wrappers import ResultWrapper
2121
from ......pagination import SyncSinglePage, AsyncSinglePage
2222
from ......_base_client import AsyncPaginator, make_request_options
23-
from ......types.workers_for_platforms.dispatch.namespaces.scripts import secret_update_params
23+
from ......types.workers_for_platforms.dispatch.namespaces.scripts import (
24+
secret_get_params,
25+
secret_delete_params,
26+
secret_update_params,
27+
)
2428
from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_get_response import SecretGetResponse
2529
from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_list_response import SecretListResponse
2630
from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_update_response import SecretUpdateResponse
@@ -268,6 +272,7 @@ def delete(
268272
account_id: str,
269273
dispatch_namespace: str,
270274
script_name: str,
275+
url_encoded: bool | NotGiven = NOT_GIVEN,
271276
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
272277
# The extra values given here take precedence over values defined on the client or passed to this method.
273278
extra_headers: Headers | None = None,
@@ -287,6 +292,8 @@ def delete(
287292
288293
secret_name: A JavaScript variable name for the secret binding.
289294
295+
url_encoded: Flag that indicates whether the secret name is URL encoded.
296+
290297
extra_headers: Send extra headers
291298
292299
extra_query: Add additional query parameters to the request
@@ -310,6 +317,7 @@ def delete(
310317
extra_query=extra_query,
311318
extra_body=extra_body,
312319
timeout=timeout,
320+
query=maybe_transform({"url_encoded": url_encoded}, secret_delete_params.SecretDeleteParams),
313321
post_parser=ResultWrapper[Optional[object]]._unwrapper,
314322
),
315323
cast_to=cast(Type[object], ResultWrapper[object]),
@@ -322,6 +330,7 @@ def get(
322330
account_id: str,
323331
dispatch_namespace: str,
324332
script_name: str,
333+
url_encoded: bool | NotGiven = NOT_GIVEN,
325334
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
326335
# The extra values given here take precedence over values defined on the client or passed to this method.
327336
extra_headers: Headers | None = None,
@@ -342,6 +351,8 @@ def get(
342351
343352
secret_name: A JavaScript variable name for the secret binding.
344353
354+
url_encoded: Flag that indicates whether the secret name is URL encoded.
355+
345356
extra_headers: Send extra headers
346357
347358
extra_query: Add additional query parameters to the request
@@ -367,6 +378,7 @@ def get(
367378
extra_query=extra_query,
368379
extra_body=extra_body,
369380
timeout=timeout,
381+
query=maybe_transform({"url_encoded": url_encoded}, secret_get_params.SecretGetParams),
370382
post_parser=ResultWrapper[SecretGetResponse]._unwrapper,
371383
),
372384
cast_to=cast(
@@ -616,6 +628,7 @@ async def delete(
616628
account_id: str,
617629
dispatch_namespace: str,
618630
script_name: str,
631+
url_encoded: bool | NotGiven = NOT_GIVEN,
619632
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
620633
# The extra values given here take precedence over values defined on the client or passed to this method.
621634
extra_headers: Headers | None = None,
@@ -635,6 +648,8 @@ async def delete(
635648
636649
secret_name: A JavaScript variable name for the secret binding.
637650
651+
url_encoded: Flag that indicates whether the secret name is URL encoded.
652+
638653
extra_headers: Send extra headers
639654
640655
extra_query: Add additional query parameters to the request
@@ -658,6 +673,9 @@ async def delete(
658673
extra_query=extra_query,
659674
extra_body=extra_body,
660675
timeout=timeout,
676+
query=await async_maybe_transform(
677+
{"url_encoded": url_encoded}, secret_delete_params.SecretDeleteParams
678+
),
661679
post_parser=ResultWrapper[Optional[object]]._unwrapper,
662680
),
663681
cast_to=cast(Type[object], ResultWrapper[object]),
@@ -670,6 +688,7 @@ async def get(
670688
account_id: str,
671689
dispatch_namespace: str,
672690
script_name: str,
691+
url_encoded: bool | NotGiven = NOT_GIVEN,
673692
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
674693
# The extra values given here take precedence over values defined on the client or passed to this method.
675694
extra_headers: Headers | None = None,
@@ -690,6 +709,8 @@ async def get(
690709
691710
secret_name: A JavaScript variable name for the secret binding.
692711
712+
url_encoded: Flag that indicates whether the secret name is URL encoded.
713+
693714
extra_headers: Send extra headers
694715
695716
extra_query: Add additional query parameters to the request
@@ -715,6 +736,7 @@ async def get(
715736
extra_query=extra_query,
716737
extra_body=extra_body,
717738
timeout=timeout,
739+
query=await async_maybe_transform({"url_encoded": url_encoded}, secret_get_params.SecretGetParams),
718740
post_parser=ResultWrapper[SecretGetResponse]._unwrapper,
719741
),
720742
cast_to=cast(

src/cloudflare/types/workers/beta/workers/version.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ class BindingWorkersBindingKindR2Bucket(BaseModel):
328328
type: Literal["r2_bucket"]
329329
"""The kind of resource that the binding provides."""
330330

331+
jurisdiction: Optional[Literal["eu", "fedramp"]] = None
332+
"""
333+
The
334+
[jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
335+
of the R2 bucket.
336+
"""
337+
331338

332339
class BindingWorkersBindingKindSecretText(BaseModel):
333340
name: str

src/cloudflare/types/workers/beta/workers/version_create_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ class BindingWorkersBindingKindR2Bucket(TypedDict, total=False):
403403
type: Required[Literal["r2_bucket"]]
404404
"""The kind of resource that the binding provides."""
405405

406+
jurisdiction: Literal["eu", "fedramp"]
407+
"""
408+
The
409+
[jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
410+
of the R2 bucket.
411+
"""
412+
406413

407414
class BindingWorkersBindingKindSecretText(TypedDict, total=False):
408415
name: Required[str]

src/cloudflare/types/workers/script_update_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,13 @@ class MetadataBindingWorkersBindingKindR2Bucket(TypedDict, total=False):
354354
type: Required[Literal["r2_bucket"]]
355355
"""The kind of resource that the binding provides."""
356356

357+
jurisdiction: Literal["eu", "fedramp"]
358+
"""
359+
The
360+
[jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
361+
of the R2 bucket.
362+
"""
363+
357364

358365
class MetadataBindingWorkersBindingKindSecretText(TypedDict, total=False):
359366
name: Required[str]

src/cloudflare/types/workers/scripts/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
from .deployment import Deployment as Deployment
66
from .consumer_script import ConsumerScript as ConsumerScript
7+
from .secret_get_params import SecretGetParams as SecretGetParams
78
from .tail_get_response import TailGetResponse as TailGetResponse
89
from .tail_create_params import TailCreateParams as TailCreateParams
910
from .secret_get_response import SecretGetResponse as SecretGetResponse
1011
from .setting_edit_params import SettingEditParams as SettingEditParams
1112
from .version_list_params import VersionListParams as VersionListParams
13+
from .secret_delete_params import SecretDeleteParams as SecretDeleteParams
1214
from .secret_list_response import SecretListResponse as SecretListResponse
1315
from .secret_update_params import SecretUpdateParams as SecretUpdateParams
1416
from .tail_create_response import TailCreateResponse as TailCreateResponse

src/cloudflare/types/workers/scripts/script_and_version_setting_edit_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,13 @@ class SettingsBindingWorkersBindingKindR2Bucket(TypedDict, total=False):
294294
type: Required[Literal["r2_bucket"]]
295295
"""The kind of resource that the binding provides."""
296296

297+
jurisdiction: Literal["eu", "fedramp"]
298+
"""
299+
The
300+
[jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
301+
of the R2 bucket.
302+
"""
303+
297304

298305
class SettingsBindingWorkersBindingKindSecretText(TypedDict, total=False):
299306
name: Required[str]

src/cloudflare/types/workers/scripts/script_and_version_setting_edit_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ class BindingWorkersBindingKindR2Bucket(BaseModel):
286286
type: Literal["r2_bucket"]
287287
"""The kind of resource that the binding provides."""
288288

289+
jurisdiction: Optional[Literal["eu", "fedramp"]] = None
290+
"""
291+
The
292+
[jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
293+
of the R2 bucket.
294+
"""
295+
289296

290297
class BindingWorkersBindingKindSecretText(BaseModel):
291298
name: str

0 commit comments

Comments
 (0)