mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-17 07:10:37 +00:00
feat(api): api update
This commit is contained in:
parent
a4ea37c362
commit
7a3837abea
4 changed files with 17 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
configured_endpoints: 1741
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-157e64fc5881826dc0017db780ebeefb1b9ff3d482bcc3d251a022eef8dc7107.yml
|
||||
openapi_spec_hash: 3b9f5ec40efeb9af2fe07f8fb0f89979
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f318e6f6ba519659336fbf171e097df5b67026a477451b17f92104f2b6a530d.yml
|
||||
openapi_spec_hash: d8d6ae156457ee8732072b74c1187b7d
|
||||
config_hash: d72c4fd125f1a13d55b0929439ad8189
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ class VirtualNetworksResource(SyncAPIResource):
|
|||
name: str,
|
||||
comment: str | NotGiven = NOT_GIVEN,
|
||||
is_default: bool | NotGiven = NOT_GIVEN,
|
||||
is_default_network: bool | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -75,6 +76,8 @@ class VirtualNetworksResource(SyncAPIResource):
|
|||
|
||||
is_default: If `true`, this virtual network is the default for the account.
|
||||
|
||||
is_default_network: If `true`, this virtual network is the default for the account.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -92,6 +95,7 @@ class VirtualNetworksResource(SyncAPIResource):
|
|||
"name": name,
|
||||
"comment": comment,
|
||||
"is_default": is_default,
|
||||
"is_default_network": is_default_network,
|
||||
},
|
||||
virtual_network_create_params.VirtualNetworkCreateParams,
|
||||
),
|
||||
|
|
@ -344,6 +348,7 @@ class AsyncVirtualNetworksResource(AsyncAPIResource):
|
|||
name: str,
|
||||
comment: str | NotGiven = NOT_GIVEN,
|
||||
is_default: bool | NotGiven = NOT_GIVEN,
|
||||
is_default_network: bool | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -363,6 +368,8 @@ class AsyncVirtualNetworksResource(AsyncAPIResource):
|
|||
|
||||
is_default: If `true`, this virtual network is the default for the account.
|
||||
|
||||
is_default_network: If `true`, this virtual network is the default for the account.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -380,6 +387,7 @@ class AsyncVirtualNetworksResource(AsyncAPIResource):
|
|||
"name": name,
|
||||
"comment": comment,
|
||||
"is_default": is_default,
|
||||
"is_default_network": is_default_network,
|
||||
},
|
||||
virtual_network_create_params.VirtualNetworkCreateParams,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -19,3 +19,6 @@ class VirtualNetworkCreateParams(TypedDict, total=False):
|
|||
|
||||
is_default: bool
|
||||
"""If `true`, this virtual network is the default for the account."""
|
||||
|
||||
is_default_network: bool
|
||||
"""If `true`, this virtual network is the default for the account."""
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class TestVirtualNetworks:
|
|||
name="us-east-1-vpc",
|
||||
comment="Staging VPC for data science",
|
||||
is_default=True,
|
||||
is_default_network=False,
|
||||
)
|
||||
assert_matches_type(VirtualNetwork, virtual_network, path=["response"])
|
||||
|
||||
|
|
@ -183,7 +184,7 @@ class TestVirtualNetworks:
|
|||
virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
|
||||
account_id="699d98642c564d2e855e9661899b7252",
|
||||
comment="Staging VPC for data science",
|
||||
is_default_network=True,
|
||||
is_default_network=False,
|
||||
name="us-east-1-vpc",
|
||||
)
|
||||
assert_matches_type(VirtualNetwork, virtual_network, path=["response"])
|
||||
|
|
@ -295,6 +296,7 @@ class TestAsyncVirtualNetworks:
|
|||
name="us-east-1-vpc",
|
||||
comment="Staging VPC for data science",
|
||||
is_default=True,
|
||||
is_default_network=False,
|
||||
)
|
||||
assert_matches_type(VirtualNetwork, virtual_network, path=["response"])
|
||||
|
||||
|
|
@ -443,7 +445,7 @@ class TestAsyncVirtualNetworks:
|
|||
virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
|
||||
account_id="699d98642c564d2e855e9661899b7252",
|
||||
comment="Staging VPC for data science",
|
||||
is_default_network=True,
|
||||
is_default_network=False,
|
||||
name="us-east-1-vpc",
|
||||
)
|
||||
assert_matches_type(VirtualNetwork, virtual_network, path=["response"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue