Skip to content

Commit 0ddeaf4

Browse files
feat(api): api update
1 parent 2432b16 commit 0ddeaf4

5 files changed

Lines changed: 14 additions & 2 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: 1761
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f782604bbee6c6e01169cb67a3fb54e9433f9d5058122a6fccf1b542880d80ff.yml
3-
openapi_spec_hash: 9137ae92331df0a7b8900897ea7a59c4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-52fe0ebcbd9659cb9d111428183437c53ff6c8adfe97ffa4e80f934e28ba3d3c.yml
3+
openapi_spec_hash: 951f2fac0c6b1291702fae7239a0c3a4
44
config_hash: 150f1595200b5d085e0c40682eb2010b

src/cloudflare/resources/workflows/instances/instances.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def create(
8080
*,
8181
account_id: str,
8282
instance_id: str | NotGiven = NOT_GIVEN,
83+
instance_retention: object | NotGiven = NOT_GIVEN,
8384
params: object | NotGiven = NOT_GIVEN,
8485
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8586
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -109,6 +110,7 @@ def create(
109110
body=maybe_transform(
110111
{
111112
"instance_id": instance_id,
113+
"instance_retention": instance_retention,
112114
"params": params,
113115
},
114116
instance_create_params.InstanceCreateParams,
@@ -303,6 +305,7 @@ async def create(
303305
*,
304306
account_id: str,
305307
instance_id: str | NotGiven = NOT_GIVEN,
308+
instance_retention: object | NotGiven = NOT_GIVEN,
306309
params: object | NotGiven = NOT_GIVEN,
307310
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
308311
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -332,6 +335,7 @@ async def create(
332335
body=await async_maybe_transform(
333336
{
334337
"instance_id": instance_id,
338+
"instance_retention": instance_retention,
335339
"params": params,
336340
},
337341
instance_create_params.InstanceCreateParams,

src/cloudflare/types/workflows/instance_bulk_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ class InstanceBulkParams(TypedDict, total=False):
1717
class Body(TypedDict, total=False):
1818
instance_id: str
1919

20+
instance_retention: object
21+
2022
params: object

src/cloudflare/types/workflows/instance_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ class InstanceCreateParams(TypedDict, total=False):
1212

1313
instance_id: str
1414

15+
instance_retention: object
16+
1517
params: object

tests/api_resources/workflows/test_instances.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3838
workflow_name="x",
3939
account_id="account_id",
4040
instance_id="instance_id",
41+
instance_retention={},
4142
params={},
4243
)
4344
assert_matches_type(InstanceCreateResponse, instance, path=["response"])
@@ -159,6 +160,7 @@ def test_method_bulk_with_all_params(self, client: Cloudflare) -> None:
159160
body=[
160161
{
161162
"instance_id": "instance_id",
163+
"instance_retention": {},
162164
"params": {},
163165
}
164166
],
@@ -285,6 +287,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
285287
workflow_name="x",
286288
account_id="account_id",
287289
instance_id="instance_id",
290+
instance_retention={},
288291
params={},
289292
)
290293
assert_matches_type(InstanceCreateResponse, instance, path=["response"])
@@ -406,6 +409,7 @@ async def test_method_bulk_with_all_params(self, async_client: AsyncCloudflare)
406409
body=[
407410
{
408411
"instance_id": "instance_id",
412+
"instance_retention": {},
409413
"params": {},
410414
}
411415
],

0 commit comments

Comments
 (0)