Skip to content

Commit 6c97352

Browse files
feat(api): api update (#2313)
1 parent f7ca287 commit 6c97352

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2530
-1369
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1490
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-deec6a3026245e9d34c70161312299d938e328e4e8a8a28517fd9930adb7b6f2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fec3d9d9680cac6ccc3e9d846afa5f8b26d2d05bd522b5039f60002f3e0cdc98.yml

api.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,20 +2280,7 @@ Methods:
22802280
Types:
22812281

22822282
```python
2283-
from cloudflare.types.workers import (
2284-
Binding,
2285-
D1Binding,
2286-
DispatchNamespaceBinding,
2287-
DurableObjectBinding,
2288-
KVNamespaceBinding,
2289-
MigrationStep,
2290-
MTLSCERTBinding,
2291-
PlacementConfiguration,
2292-
R2Binding,
2293-
ServiceBinding,
2294-
SingleStepMigration,
2295-
WorkerMetadata,
2296-
)
2283+
from cloudflare.types.workers import MigrationStep, SingleStepMigration, WorkerMetadata
22972284
```
22982285

22992286
## Routes
@@ -2337,15 +2324,15 @@ Methods:
23372324
Types:
23382325

23392326
```python
2340-
from cloudflare.types.workers import Script, ScriptSetting, ScriptUpdateResponse
2327+
from cloudflare.types.workers import Script, ScriptSetting, ScriptUpdateResponse, ScriptGetResponse
23412328
```
23422329

23432330
Methods:
23442331

23452332
- <code title="put /accounts/{account_id}/workers/scripts/{script_name}">client.workers.scripts.<a href="./src/cloudflare/resources/workers/scripts/scripts.py">update</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/script_update_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/script_update_response.py">Optional[ScriptUpdateResponse]</a></code>
23462333
- <code title="get /accounts/{account_id}/workers/scripts">client.workers.scripts.<a href="./src/cloudflare/resources/workers/scripts/scripts.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/workers/script.py">SyncSinglePage[Script]</a></code>
23472334
- <code title="delete /accounts/{account_id}/workers/scripts/{script_name}">client.workers.scripts.<a href="./src/cloudflare/resources/workers/scripts/scripts.py">delete</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/script_delete_params.py">params</a>) -> None</code>
2348-
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}">client.workers.scripts.<a href="./src/cloudflare/resources/workers/scripts/scripts.py">get</a>(script_name, \*, account_id) -> BinaryAPIResponse</code>
2335+
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}">client.workers.scripts.<a href="./src/cloudflare/resources/workers/scripts/scripts.py">get</a>(script_name, \*, account_id) -> str</code>
23492336

23502337
### Assets
23512338

src/cloudflare/resources/workers/assets/upload.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ def create(
6161
extra_body: Body | None = None,
6262
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6363
) -> Optional[UploadCreateResponse]:
64-
"""
65-
Upload assets ahead of creating a Worker version.
64+
"""Upload assets ahead of creating a Worker version.
65+
66+
To learn more about the direct
67+
uploads of assets, see
68+
https://developers.cloudflare.com/workers/static-assets/direct-upload/
6669
6770
Args:
6871
account_id: Identifier
@@ -134,8 +137,11 @@ async def create(
134137
extra_body: Body | None = None,
135138
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
136139
) -> Optional[UploadCreateResponse]:
137-
"""
138-
Upload assets ahead of creating a Worker version.
140+
"""Upload assets ahead of creating a Worker version.
141+
142+
To learn more about the direct
143+
uploads of assets, see
144+
https://developers.cloudflare.com/workers/static-assets/direct-upload/
139145
140146
Args:
141147
account_id: Identifier

src/cloudflare/resources/workers/scripts/assets/upload.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ def create(
6060
extra_body: Body | None = None,
6161
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6262
) -> Optional[UploadCreateResponse]:
63-
"""
64-
Start uploading a collection of assets for use in a Worker version.
63+
"""Start uploading a collection of assets for use in a Worker version.
64+
65+
To learn
66+
more about the direct uploads of assets, see
67+
https://developers.cloudflare.com/workers/static-assets/direct-upload/
6568
6669
Args:
6770
account_id: Identifier
@@ -130,8 +133,11 @@ async def create(
130133
extra_body: Body | None = None,
131134
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132135
) -> Optional[UploadCreateResponse]:
133-
"""
134-
Start uploading a collection of assets for use in a Worker version.
136+
"""Start uploading a collection of assets for use in a Worker version.
137+
138+
To learn
139+
more about the direct uploads of assets, see
140+
https://developers.cloudflare.com/workers/static-assets/direct-upload/
135141
136142
Args:
137143
account_id: Identifier

0 commit comments

Comments
 (0)