diff --git a/.stats.yml b/.stats.yml index cfe7672b318..21d48660c43 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1337 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8127f6c197e7f17e9eb9d99add7dff6ecbc8b5a90e298269e2070738ed4368e9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-319be066e6772a95f120a1535c5606744bfbe0d4a5d0a17161f4369d5faf325c.yml diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_item.py b/src/cloudflare/types/zero_trust/gateway/gateway_item.py index 44efdae06e5..7d6c7f3cdd1 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_item.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_item.py @@ -11,5 +11,8 @@ class GatewayItem(BaseModel): created_at: Optional[datetime] = None + description: Optional[str] = None + """The description of the list item, if present""" + value: Optional[str] = None """The value of the item in a list.""" diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_item_param.py b/src/cloudflare/types/zero_trust/gateway/gateway_item_param.py index 819b853caa8..b9354f12b21 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_item_param.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_item_param.py @@ -14,5 +14,8 @@ class GatewayItemParam(TypedDict, total=False): created_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] + description: str + """The description of the list item, if present""" + value: str """The value of the item in a list.""" diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py index d7fdc097741..08692169cfc 100644 --- a/tests/api_resources/zero_trust/gateway/test_lists.py +++ b/tests/api_resources/zero_trust/gateway/test_lists.py @@ -42,14 +42,17 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None: items=[ { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, ], @@ -266,14 +269,17 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None: append=[ { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, ], @@ -392,14 +398,17 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare items=[ { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, ], @@ -616,14 +625,17 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) append=[ { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, { "created_at": parse_datetime("2014-01-01T05:20:00.12345Z"), + "description": "Austin office IP", "value": "8GE8721REF", }, ],