mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): OpenAPI spec update via Stainless API (#1113)
This commit is contained in:
parent
08aa37f91c
commit
ecf909a83d
4 changed files with 19 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,5 +11,8 @@ __all__ = ["GatewayItem"]
|
|||
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."""
|
||||
|
|
|
|||
|
|
@ -14,5 +14,8 @@ __all__ = ["GatewayItemParam"]
|
|||
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."""
|
||||
|
|
|
|||
|
|
@ -42,14 +42,17 @@ class TestLists:
|
|||
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 @@ class TestLists:
|
|||
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 @@ class TestAsyncLists:
|
|||
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 @@ class TestAsyncLists:
|
|||
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",
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue