Skip to content

Commit f6cb2e1

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 649bc99 commit f6cb2e1

16 files changed

Lines changed: 119 additions & 53 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bd1bc86694bdc2e2deb05f0e743afa87b94ff96a55b10fdd6a15b11fa7ee34c0.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6eb17c94a367941ef4fd3ad0750ea42308813e96e904d31b776ed848d849be90.yml
33
openapi_spec_hash: 9fa312b08e4ba5659a03d7143210437f
4-
config_hash: cbc31befc4267a7deb9d79b1767a2b65
4+
config_hash: b5608440cfd3f75f7cfabd36fbc7cd88

api.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,18 +2396,19 @@ Types:
23962396

23972397
```python
23982398
from cloudflare.types.workers.scripts import (
2399-
Deployment,
2399+
DeploymentCreateResponse,
24002400
DeploymentListResponse,
24012401
DeploymentDeleteResponse,
2402+
DeploymentGetResponse,
24022403
)
24032404
```
24042405

24052406
Methods:
24062407

2407-
- <code title="post /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">create</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/scripts/deployment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/deployment.py">Deployment</a></code>
2408+
- <code title="post /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">create</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/scripts/deployment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/deployment_create_response.py">DeploymentCreateResponse</a></code>
24082409
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">list</a>(script_name, \*, account_id) -> <a href="./src/cloudflare/types/workers/scripts/deployment_list_response.py">DeploymentListResponse</a></code>
24092410
- <code title="delete /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">delete</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment_delete_response.py">DeploymentDeleteResponse</a></code>
2410-
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">get</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment.py">Deployment</a></code>
2411+
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">get</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment_get_response.py">DeploymentGetResponse</a></code>
24112412

24122413
### Versions
24132414

src/cloudflare/resources/kv/namespaces/values.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ def update(
9696
9797
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
9898
99-
metadata: Associates arbitrary JSON data with a key/value pair.
100-
10199
extra_headers: Send extra headers
102100
103101
extra_query: Add additional query parameters to the request
@@ -310,8 +308,6 @@ async def update(
310308
311309
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
312310
313-
metadata: Associates arbitrary JSON data with a key/value pair.
314-
315311
extra_headers: Send extra headers
316312
317313
extra_query: Add additional query parameters to the request

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

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
from ...._wrappers import ResultWrapper
2121
from ...._base_client import make_request_options
2222
from ....types.workers.scripts import deployment_create_params
23-
from ....types.workers.scripts.deployment import Deployment
23+
from ....types.workers.scripts.deployment_get_response import DeploymentGetResponse
2424
from ....types.workers.scripts.deployment_list_response import DeploymentListResponse
25+
from ....types.workers.scripts.deployment_create_response import DeploymentCreateResponse
2526
from ....types.workers.scripts.deployment_delete_response import DeploymentDeleteResponse
2627

2728
__all__ = ["DeploymentsResource", "AsyncDeploymentsResource"]
@@ -62,7 +63,7 @@ def create(
6263
extra_query: Query | None = None,
6364
extra_body: Body | None = None,
6465
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
65-
) -> Deployment:
66+
) -> DeploymentCreateResponse:
6667
"""
6768
Deployments configure how
6869
[Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions)
@@ -105,9 +106,9 @@ def create(
105106
extra_body=extra_body,
106107
timeout=timeout,
107108
query=maybe_transform({"force": force}, deployment_create_params.DeploymentCreateParams),
108-
post_parser=ResultWrapper[Deployment]._unwrapper,
109+
post_parser=ResultWrapper[DeploymentCreateResponse]._unwrapper,
109110
),
110-
cast_to=cast(Type[Deployment], ResultWrapper[Deployment]),
111+
cast_to=cast(Type[DeploymentCreateResponse], ResultWrapper[DeploymentCreateResponse]),
111112
)
112113

113114
def list(
@@ -213,7 +214,7 @@ def get(
213214
extra_query: Query | None = None,
214215
extra_body: Body | None = None,
215216
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
216-
) -> Deployment:
217+
) -> DeploymentGetResponse:
217218
"""
218219
Get information about a Worker Deployment.
219220
@@ -243,9 +244,9 @@ def get(
243244
extra_query=extra_query,
244245
extra_body=extra_body,
245246
timeout=timeout,
246-
post_parser=ResultWrapper[Deployment]._unwrapper,
247+
post_parser=ResultWrapper[DeploymentGetResponse]._unwrapper,
247248
),
248-
cast_to=cast(Type[Deployment], ResultWrapper[Deployment]),
249+
cast_to=cast(Type[DeploymentGetResponse], ResultWrapper[DeploymentGetResponse]),
249250
)
250251

251252

@@ -284,7 +285,7 @@ async def create(
284285
extra_query: Query | None = None,
285286
extra_body: Body | None = None,
286287
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
287-
) -> Deployment:
288+
) -> DeploymentCreateResponse:
288289
"""
289290
Deployments configure how
290291
[Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions)
@@ -327,9 +328,9 @@ async def create(
327328
extra_body=extra_body,
328329
timeout=timeout,
329330
query=await async_maybe_transform({"force": force}, deployment_create_params.DeploymentCreateParams),
330-
post_parser=ResultWrapper[Deployment]._unwrapper,
331+
post_parser=ResultWrapper[DeploymentCreateResponse]._unwrapper,
331332
),
332-
cast_to=cast(Type[Deployment], ResultWrapper[Deployment]),
333+
cast_to=cast(Type[DeploymentCreateResponse], ResultWrapper[DeploymentCreateResponse]),
333334
)
334335

335336
async def list(
@@ -435,7 +436,7 @@ async def get(
435436
extra_query: Query | None = None,
436437
extra_body: Body | None = None,
437438
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
438-
) -> Deployment:
439+
) -> DeploymentGetResponse:
439440
"""
440441
Get information about a Worker Deployment.
441442
@@ -465,9 +466,9 @@ async def get(
465466
extra_query=extra_query,
466467
extra_body=extra_body,
467468
timeout=timeout,
468-
post_parser=ResultWrapper[Deployment]._unwrapper,
469+
post_parser=ResultWrapper[DeploymentGetResponse]._unwrapper,
469470
),
470-
cast_to=cast(Type[Deployment], ResultWrapper[Deployment]),
471+
cast_to=cast(Type[DeploymentGetResponse], ResultWrapper[DeploymentGetResponse]),
471472
)
472473

473474

src/cloudflare/types/kv/namespace_bulk_get_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class WorkersKVBulkGetResult(BaseModel):
2020

2121
class WorkersKVBulkGetResultWithMetadataValues(BaseModel):
2222
metadata: object
23-
"""The metadata associated with the key."""
2423

2524
value: object
26-
"""The value associated with the key."""
2725

2826
expiration: Optional[float] = None
2927
"""

src/cloudflare/types/kv/namespace_bulk_update_params.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ class Body(TypedDict, total=False):
4343
"""Expires the key after a number of seconds. Must be at least 60."""
4444

4545
metadata: object
46-
"""Arbitrary JSON that is associated with a key."""

src/cloudflare/types/kv/namespaces/key.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ class Key(BaseModel):
2222
"""
2323

2424
metadata: Optional[object] = None
25-
"""Arbitrary JSON that is associated with a key."""

src/cloudflare/types/kv/namespaces/key_bulk_get_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class WorkersKVBulkGetResult(BaseModel):
2020

2121
class WorkersKVBulkGetResultWithMetadataValues(BaseModel):
2222
metadata: object
23-
"""The metadata associated with the key."""
2423

2524
value: object
26-
"""The value associated with the key."""
2725

2826
expiration: Optional[float] = None
2927
"""

src/cloudflare/types/kv/namespaces/key_bulk_update_params.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ class Body(TypedDict, total=False):
4343
"""Expires the key after a number of seconds. Must be at least 60."""
4444

4545
metadata: object
46-
"""Arbitrary JSON that is associated with a key."""

src/cloudflare/types/kv/namespaces/value_update_params.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ class ValueUpdateParams(TypedDict, total=False):
2727
"""Expires the key after a number of seconds. Must be at least 60."""
2828

2929
metadata: object
30-
"""Associates arbitrary JSON data with a key/value pair."""

0 commit comments

Comments
 (0)