Skip to content

Commit dbdd926

Browse files
chore(api): update composite API spec
1 parent 58e1844 commit dbdd926

11 files changed

Lines changed: 157 additions & 7 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2283
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: fcbb1d06511fd70c310313541db5984d
3+
openapi_spec_hash: 839aec3fa271d0f8cbc78bdd81415bd5
44
config_hash: af64aebd155c327064f15fb62f55c6fc

src/cloudflare/resources/zero_trust/devices/policies/custom/custom.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def create(
9797
captive_portal: float | Omit = omit,
9898
description: str | Omit = omit,
9999
disable_auto_fallback: bool | Omit = omit,
100+
dns_search_suffixes: Iterable[custom_create_params.DNSSearchSuffix] | Omit = omit,
100101
enabled: bool | Omit = omit,
101102
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
102103
exclude_office_ips: bool | Omit = omit,
@@ -149,6 +150,9 @@ def create(
149150
fall back to a best guess of the default/system DNS resolvers unless this policy
150151
option is set to `true`.
151152
153+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
154+
order. Use an empty array to clear.
155+
152156
enabled: Whether the policy will be applied to matching devices.
153157
154158
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
@@ -205,6 +209,7 @@ def create(
205209
"captive_portal": captive_portal,
206210
"description": description,
207211
"disable_auto_fallback": disable_auto_fallback,
212+
"dns_search_suffixes": dns_search_suffixes,
208213
"enabled": enabled,
209214
"exclude": exclude,
210215
"exclude_office_ips": exclude_office_ips,
@@ -318,6 +323,7 @@ def edit(
318323
captive_portal: float | Omit = omit,
319324
description: str | Omit = omit,
320325
disable_auto_fallback: bool | Omit = omit,
326+
dns_search_suffixes: Iterable[custom_edit_params.DNSSearchSuffix] | Omit = omit,
321327
enabled: bool | Omit = omit,
322328
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
323329
exclude_office_ips: bool | Omit = omit,
@@ -362,6 +368,9 @@ def edit(
362368
fall back to a best guess of the default/system DNS resolvers unless this policy
363369
option is set to `true`.
364370
371+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
372+
order. Use an empty array to clear.
373+
365374
enabled: Whether the policy will be applied to matching devices.
366375
367376
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
@@ -429,6 +438,7 @@ def edit(
429438
"captive_portal": captive_portal,
430439
"description": description,
431440
"disable_auto_fallback": disable_auto_fallback,
441+
"dns_search_suffixes": dns_search_suffixes,
432442
"enabled": enabled,
433443
"exclude": exclude,
434444
"exclude_office_ips": exclude_office_ips,
@@ -547,6 +557,7 @@ async def create(
547557
captive_portal: float | Omit = omit,
548558
description: str | Omit = omit,
549559
disable_auto_fallback: bool | Omit = omit,
560+
dns_search_suffixes: Iterable[custom_create_params.DNSSearchSuffix] | Omit = omit,
550561
enabled: bool | Omit = omit,
551562
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
552563
exclude_office_ips: bool | Omit = omit,
@@ -599,6 +610,9 @@ async def create(
599610
fall back to a best guess of the default/system DNS resolvers unless this policy
600611
option is set to `true`.
601612
613+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
614+
order. Use an empty array to clear.
615+
602616
enabled: Whether the policy will be applied to matching devices.
603617
604618
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
@@ -655,6 +669,7 @@ async def create(
655669
"captive_portal": captive_portal,
656670
"description": description,
657671
"disable_auto_fallback": disable_auto_fallback,
672+
"dns_search_suffixes": dns_search_suffixes,
658673
"enabled": enabled,
659674
"exclude": exclude,
660675
"exclude_office_ips": exclude_office_ips,
@@ -768,6 +783,7 @@ async def edit(
768783
captive_portal: float | Omit = omit,
769784
description: str | Omit = omit,
770785
disable_auto_fallback: bool | Omit = omit,
786+
dns_search_suffixes: Iterable[custom_edit_params.DNSSearchSuffix] | Omit = omit,
771787
enabled: bool | Omit = omit,
772788
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
773789
exclude_office_ips: bool | Omit = omit,
@@ -812,6 +828,9 @@ async def edit(
812828
fall back to a best guess of the default/system DNS resolvers unless this policy
813829
option is set to `true`.
814830
831+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
832+
order. Use an empty array to clear.
833+
815834
enabled: Whether the policy will be applied to matching devices.
816835
817836
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
@@ -879,6 +898,7 @@ async def edit(
879898
"captive_portal": captive_portal,
880899
"description": description,
881900
"disable_auto_fallback": disable_auto_fallback,
901+
"dns_search_suffixes": dns_search_suffixes,
882902
"enabled": enabled,
883903
"exclude": exclude,
884904
"exclude_office_ips": exclude_office_ips,

src/cloudflare/resources/zero_trust/devices/policies/default/default.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def edit(
105105
auto_connect: float | Omit = omit,
106106
captive_portal: float | Omit = omit,
107107
disable_auto_fallback: bool | Omit = omit,
108+
dns_search_suffixes: Iterable[default_edit_params.DNSSearchSuffix] | Omit = omit,
108109
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
109110
exclude_office_ips: bool | Omit = omit,
110111
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
@@ -143,6 +144,9 @@ def edit(
143144
fall back to a best guess of the default/system DNS resolvers unless this policy
144145
option is set to `true`.
145146
147+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
148+
order. Use an empty array to clear.
149+
146150
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
147151
'include' cannot be set in the same request.
148152
@@ -193,6 +197,7 @@ def edit(
193197
"auto_connect": auto_connect,
194198
"captive_portal": captive_portal,
195199
"disable_auto_fallback": disable_auto_fallback,
200+
"dns_search_suffixes": dns_search_suffixes,
196201
"exclude": exclude,
197202
"exclude_office_ips": exclude_office_ips,
198203
"include": include,
@@ -302,6 +307,7 @@ async def edit(
302307
auto_connect: float | Omit = omit,
303308
captive_portal: float | Omit = omit,
304309
disable_auto_fallback: bool | Omit = omit,
310+
dns_search_suffixes: Iterable[default_edit_params.DNSSearchSuffix] | Omit = omit,
305311
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
306312
exclude_office_ips: bool | Omit = omit,
307313
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
@@ -340,6 +346,9 @@ async def edit(
340346
fall back to a best guess of the default/system DNS resolvers unless this policy
341347
option is set to `true`.
342348
349+
dns_search_suffixes: List of DNS search suffixes to apply to clients. Suffixes are evaluated in
350+
order. Use an empty array to clear.
351+
343352
exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and
344353
'include' cannot be set in the same request.
345354
@@ -390,6 +399,7 @@ async def edit(
390399
"auto_connect": auto_connect,
391400
"captive_portal": captive_portal,
392401
"disable_auto_fallback": disable_auto_fallback,
402+
"dns_search_suffixes": dns_search_suffixes,
393403
"exclude": exclude,
394404
"exclude_office_ips": exclude_office_ips,
395405
"include": include,

src/cloudflare/types/zero_trust/devices/policies/custom_create_params.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ..split_tunnel_exclude_param import SplitTunnelExcludeParam
1010
from ..split_tunnel_include_param import SplitTunnelIncludeParam
1111

12-
__all__ = ["CustomCreateParams", "ServiceModeV2", "VirtualNetworks"]
12+
__all__ = ["CustomCreateParams", "DNSSearchSuffix", "ServiceModeV2", "VirtualNetworks"]
1313

1414

1515
class CustomCreateParams(TypedDict, total=False):
@@ -61,6 +61,12 @@ class CustomCreateParams(TypedDict, total=False):
6161
option is set to `true`.
6262
"""
6363

64+
dns_search_suffixes: Iterable[DNSSearchSuffix]
65+
"""List of DNS search suffixes to apply to clients.
66+
67+
Suffixes are evaluated in order. Use an empty array to clear.
68+
"""
69+
6470
enabled: bool
6571
"""Whether the policy will be applied to matching devices."""
6672

@@ -122,6 +128,14 @@ class CustomCreateParams(TypedDict, total=False):
122128
"""Virtual network access settings for the device."""
123129

124130

131+
class DNSSearchSuffix(TypedDict, total=False):
132+
suffix: Required[str]
133+
"""The DNS search suffix to append when resolving short hostnames."""
134+
135+
description: str
136+
"""A description of the DNS search suffix."""
137+
138+
125139
class ServiceModeV2(TypedDict, total=False):
126140
mode: str
127141
"""The mode to run the WARP client under."""

src/cloudflare/types/zero_trust/devices/policies/custom_edit_params.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ..split_tunnel_exclude_param import SplitTunnelExcludeParam
1010
from ..split_tunnel_include_param import SplitTunnelIncludeParam
1111

12-
__all__ = ["CustomEditParams", "ServiceModeV2", "VirtualNetworks"]
12+
__all__ = ["CustomEditParams", "DNSSearchSuffix", "ServiceModeV2", "VirtualNetworks"]
1313

1414

1515
class CustomEditParams(TypedDict, total=False):
@@ -43,6 +43,12 @@ class CustomEditParams(TypedDict, total=False):
4343
option is set to `true`.
4444
"""
4545

46+
dns_search_suffixes: Iterable[DNSSearchSuffix]
47+
"""List of DNS search suffixes to apply to clients.
48+
49+
Suffixes are evaluated in order. Use an empty array to clear.
50+
"""
51+
4652
enabled: bool
4753
"""Whether the policy will be applied to matching devices."""
4854

@@ -122,6 +128,14 @@ class CustomEditParams(TypedDict, total=False):
122128
"""Virtual network access settings for the device."""
123129

124130

131+
class DNSSearchSuffix(TypedDict, total=False):
132+
suffix: Required[str]
133+
"""The DNS search suffix to append when resolving short hostnames."""
134+
135+
description: str
136+
"""A description of the DNS search suffix."""
137+
138+
125139
class ServiceModeV2(TypedDict, total=False):
126140
mode: str
127141
"""The mode to run the WARP client under."""

src/cloudflare/types/zero_trust/devices/policies/default_edit_params.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ..split_tunnel_exclude_param import SplitTunnelExcludeParam
1010
from ..split_tunnel_include_param import SplitTunnelIncludeParam
1111

12-
__all__ = ["DefaultEditParams", "ServiceModeV2", "VirtualNetworks"]
12+
__all__ = ["DefaultEditParams", "DNSSearchSuffix", "ServiceModeV2", "VirtualNetworks"]
1313

1414

1515
class DefaultEditParams(TypedDict, total=False):
@@ -40,6 +40,12 @@ class DefaultEditParams(TypedDict, total=False):
4040
option is set to `true`.
4141
"""
4242

43+
dns_search_suffixes: Iterable[DNSSearchSuffix]
44+
"""List of DNS search suffixes to apply to clients.
45+
46+
Suffixes are evaluated in order. Use an empty array to clear.
47+
"""
48+
4349
exclude: Iterable[SplitTunnelExcludeParam]
4450
"""List of routes excluded in the WARP client's tunnel.
4551
@@ -98,6 +104,14 @@ class DefaultEditParams(TypedDict, total=False):
98104
"""Virtual network access settings for the device."""
99105

100106

107+
class DNSSearchSuffix(TypedDict, total=False):
108+
suffix: Required[str]
109+
"""The DNS search suffix to append when resolving short hostnames."""
110+
111+
description: str
112+
"""A description of the DNS search suffix."""
113+
114+
101115
class ServiceModeV2(TypedDict, total=False):
102116
mode: str
103117
"""The mode to run the WARP client under."""

src/cloudflare/types/zero_trust/devices/policies/default_edit_response.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
from ..split_tunnel_exclude import SplitTunnelExclude
88
from ..split_tunnel_include import SplitTunnelInclude
99

10-
__all__ = ["DefaultEditResponse", "ServiceModeV2", "VirtualNetworks"]
10+
__all__ = ["DefaultEditResponse", "DNSSearchSuffix", "ServiceModeV2", "VirtualNetworks"]
11+
12+
13+
class DNSSearchSuffix(BaseModel):
14+
suffix: str
15+
"""The DNS search suffix to append when resolving short hostnames."""
16+
17+
description: Optional[str] = None
18+
"""A description of the DNS search suffix."""
1119

1220

1321
class ServiceModeV2(BaseModel):
@@ -60,6 +68,12 @@ class DefaultEditResponse(BaseModel):
6068
option is set to `true`.
6169
"""
6270

71+
dns_search_suffixes: Optional[List[DNSSearchSuffix]] = None
72+
"""List of DNS search suffixes to apply to clients.
73+
74+
Suffixes are evaluated in order. Use an empty array to clear.
75+
"""
76+
6377
enabled: Optional[bool] = None
6478
"""Whether the policy will be applied to matching devices."""
6579

src/cloudflare/types/zero_trust/devices/policies/default_get_response.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
from ..split_tunnel_exclude import SplitTunnelExclude
88
from ..split_tunnel_include import SplitTunnelInclude
99

10-
__all__ = ["DefaultGetResponse", "ServiceModeV2", "VirtualNetworks"]
10+
__all__ = ["DefaultGetResponse", "DNSSearchSuffix", "ServiceModeV2", "VirtualNetworks"]
11+
12+
13+
class DNSSearchSuffix(BaseModel):
14+
suffix: str
15+
"""The DNS search suffix to append when resolving short hostnames."""
16+
17+
description: Optional[str] = None
18+
"""A description of the DNS search suffix."""
1119

1220

1321
class ServiceModeV2(BaseModel):
@@ -60,6 +68,12 @@ class DefaultGetResponse(BaseModel):
6068
option is set to `true`.
6169
"""
6270

71+
dns_search_suffixes: Optional[List[DNSSearchSuffix]] = None
72+
"""List of DNS search suffixes to apply to clients.
73+
74+
Suffixes are evaluated in order. Use an empty array to clear.
75+
"""
76+
6377
enabled: Optional[bool] = None
6478
"""Whether the policy will be applied to matching devices."""
6579

src/cloudflare/types/zero_trust/devices/settings_policy.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
from .split_tunnel_exclude import SplitTunnelExclude
88
from .split_tunnel_include import SplitTunnelInclude
99

10-
__all__ = ["SettingsPolicy", "ServiceModeV2", "TargetTest", "VirtualNetworks"]
10+
__all__ = ["SettingsPolicy", "DNSSearchSuffix", "ServiceModeV2", "TargetTest", "VirtualNetworks"]
11+
12+
13+
class DNSSearchSuffix(BaseModel):
14+
suffix: str
15+
"""The DNS search suffix to append when resolving short hostnames."""
16+
17+
description: Optional[str] = None
18+
"""A description of the DNS search suffix."""
1119

1220

1321
class ServiceModeV2(BaseModel):
@@ -71,6 +79,12 @@ class SettingsPolicy(BaseModel):
7179
option is set to `true`.
7280
"""
7381

82+
dns_search_suffixes: Optional[List[DNSSearchSuffix]] = None
83+
"""List of DNS search suffixes to apply to clients.
84+
85+
Suffixes are evaluated in order. Use an empty array to clear.
86+
"""
87+
7488
enabled: Optional[bool] = None
7589
"""Whether the policy will be applied to matching devices."""
7690

0 commit comments

Comments
 (0)