Skip to content

Commit 90035b1

Browse files
feat(api): api update
1 parent 3e7d58a commit 90035b1

7 files changed

Lines changed: 16 additions & 16 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: 1775
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7fec511369a0cdd1964ae80a4c5494a2cf1c32edffe9e0c357cc0e954d4b364d.yml
3-
openapi_spec_hash: 7e7412d812db9d97d204be8b6313c6ff
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4595f0857b20ab50f25d4659de8bb3f52d17e97902891e93ffe81d2eb2996477.yml
3+
openapi_spec_hash: 93099cd50af0c833278cc49acbbef94e
44
config_hash: 4a37da9893560914a7ac1a75cc01202a

src/cloudflare/resources/zero_trust/gateway/locations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create(
5555
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
5656
ecs_support: bool | NotGiven = NOT_GIVEN,
5757
endpoints: EndpointParam | NotGiven = NOT_GIVEN,
58-
networks: Iterable[location_create_params.Network] | NotGiven = NOT_GIVEN,
58+
networks: Optional[Iterable[location_create_params.Network]] | NotGiven = NOT_GIVEN,
5959
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6060
# The extra values given here take precedence over values defined on the client or passed to this method.
6161
extra_headers: Headers | None = None,
@@ -130,7 +130,7 @@ def update(
130130
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
131131
ecs_support: bool | NotGiven = NOT_GIVEN,
132132
endpoints: EndpointParam | NotGiven = NOT_GIVEN,
133-
networks: Iterable[location_update_params.Network] | NotGiven = NOT_GIVEN,
133+
networks: Optional[Iterable[location_update_params.Network]] | NotGiven = NOT_GIVEN,
134134
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
135135
# The extra values given here take precedence over values defined on the client or passed to this method.
136136
extra_headers: Headers | None = None,
@@ -341,7 +341,7 @@ async def create(
341341
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
342342
ecs_support: bool | NotGiven = NOT_GIVEN,
343343
endpoints: EndpointParam | NotGiven = NOT_GIVEN,
344-
networks: Iterable[location_create_params.Network] | NotGiven = NOT_GIVEN,
344+
networks: Optional[Iterable[location_create_params.Network]] | NotGiven = NOT_GIVEN,
345345
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
346346
# The extra values given here take precedence over values defined on the client or passed to this method.
347347
extra_headers: Headers | None = None,
@@ -416,7 +416,7 @@ async def update(
416416
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
417417
ecs_support: bool | NotGiven = NOT_GIVEN,
418418
endpoints: EndpointParam | NotGiven = NOT_GIVEN,
419-
networks: Iterable[location_update_params.Network] | NotGiven = NOT_GIVEN,
419+
networks: Optional[Iterable[location_update_params.Network]] | NotGiven = NOT_GIVEN,
420420
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
421421
# The extra values given here take precedence over values defined on the client or passed to this method.
422422
extra_headers: Headers | None = None,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import TypedDict
77

88
from .ip_network_param import IPNetworkParam
@@ -14,7 +14,7 @@ class DOHEndpointParam(TypedDict, total=False):
1414
enabled: bool
1515
"""True if the endpoint is enabled for this location."""
1616

17-
networks: Iterable[IPNetworkParam]
17+
networks: Optional[Iterable[IPNetworkParam]]
1818
"""A list of allowed source IP network ranges for this endpoint.
1919
2020
When empty, all source IPs are allowed. A non-empty list is only effective if

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import TypedDict
77

88
from .ip_network_param import IPNetworkParam
@@ -14,7 +14,7 @@ class DOTEndpointParam(TypedDict, total=False):
1414
enabled: bool
1515
"""True if the endpoint is enabled for this location."""
1616

17-
networks: Iterable[IPNetworkParam]
17+
networks: Optional[Iterable[IPNetworkParam]]
1818
"""A list of allowed source IP network ranges for this endpoint.
1919
2020
When empty, all source IPs are allowed. A non-empty list is only effective if

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import TypedDict
77

88
from .ipv6_network_param import IPV6NetworkParam
@@ -14,7 +14,7 @@ class IPV6EndpointParam(TypedDict, total=False):
1414
enabled: bool
1515
"""True if the endpoint is enabled for this location."""
1616

17-
networks: Iterable[IPV6NetworkParam]
17+
networks: Optional[Iterable[IPV6NetworkParam]]
1818
"""A list of allowed source IPv6 network ranges for this endpoint.
1919
2020
When empty, all source IPs are allowed. A non-empty list is only effective if

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import Required, TypedDict
77

88
from .endpoint_param import EndpointParam
@@ -38,7 +38,7 @@ class LocationCreateParams(TypedDict, total=False):
3838
endpoints configuration remains unchanged.
3939
"""
4040

41-
networks: Iterable[Network]
41+
networks: Optional[Iterable[Network]]
4242
"""A list of network ranges that requests from this location would originate from.
4343
4444
A non-empty list is only effective if the ipv4 endpoint is enabled for this

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Iterable, Optional
66
from typing_extensions import Required, TypedDict
77

88
from .endpoint_param import EndpointParam
@@ -38,7 +38,7 @@ class LocationUpdateParams(TypedDict, total=False):
3838
endpoints configuration remains unchanged.
3939
"""
4040

41-
networks: Iterable[Network]
41+
networks: Optional[Iterable[Network]]
4242
"""A list of network ranges that requests from this location would originate from.
4343
4444
A non-empty list is only effective if the ipv4 endpoint is enabled for this

0 commit comments

Comments
 (0)