Skip to content

Commit ecf909a

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1113)
1 parent 08aa37f commit ecf909a

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1337
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8127f6c197e7f17e9eb9d99add7dff6ecbc8b5a90e298269e2070738ed4368e9.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-319be066e6772a95f120a1535c5606744bfbe0d4a5d0a17161f4369d5faf325c.yml

src/cloudflare/types/zero_trust/gateway/gateway_item.py

+3
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
class GatewayItem(BaseModel):
1212
created_at: Optional[datetime] = None
1313

14+
description: Optional[str] = None
15+
"""The description of the list item, if present"""
16+
1417
value: Optional[str] = None
1518
"""The value of the item in a list."""

src/cloudflare/types/zero_trust/gateway/gateway_item_param.py

+3
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414
class GatewayItemParam(TypedDict, total=False):
1515
created_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1616

17+
description: str
18+
"""The description of the list item, if present"""
19+
1720
value: str
1821
"""The value of the item in a list."""

tests/api_resources/zero_trust/gateway/test_lists.py

+12
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,17 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4242
items=[
4343
{
4444
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
45+
"description": "Austin office IP",
4546
"value": "8GE8721REF",
4647
},
4748
{
4849
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
50+
"description": "Austin office IP",
4951
"value": "8GE8721REF",
5052
},
5153
{
5254
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
55+
"description": "Austin office IP",
5356
"value": "8GE8721REF",
5457
},
5558
],
@@ -266,14 +269,17 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
266269
append=[
267270
{
268271
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
272+
"description": "Austin office IP",
269273
"value": "8GE8721REF",
270274
},
271275
{
272276
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
277+
"description": "Austin office IP",
273278
"value": "8GE8721REF",
274279
},
275280
{
276281
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
282+
"description": "Austin office IP",
277283
"value": "8GE8721REF",
278284
},
279285
],
@@ -392,14 +398,17 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
392398
items=[
393399
{
394400
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
401+
"description": "Austin office IP",
395402
"value": "8GE8721REF",
396403
},
397404
{
398405
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
406+
"description": "Austin office IP",
399407
"value": "8GE8721REF",
400408
},
401409
{
402410
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
411+
"description": "Austin office IP",
403412
"value": "8GE8721REF",
404413
},
405414
],
@@ -616,14 +625,17 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
616625
append=[
617626
{
618627
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
628+
"description": "Austin office IP",
619629
"value": "8GE8721REF",
620630
},
621631
{
622632
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
633+
"description": "Austin office IP",
623634
"value": "8GE8721REF",
624635
},
625636
{
626637
"created_at": parse_datetime("2014-01-01T05:20:00.12345Z"),
638+
"description": "Austin office IP",
627639
"value": "8GE8721REF",
628640
},
629641
],

0 commit comments

Comments
 (0)