Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 28d11c6

Browse files
committedMar 4, 2025·
feat(api): api update (#2495)
1 parent 5ee09c6 commit 28d11c6

File tree

11 files changed

+1
-85
lines changed

11 files changed

+1
-85
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1570
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a35cfe958a64e907e1dfa4e6c46c03749184d496bf62e1a38ef50dbfec6c2a3c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cd4dda55299c2042f689d06bde060733f0a9717108a62f816b50af11a450225b.yml

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

-24
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def create(
9898
captive_portal: float | NotGiven = NOT_GIVEN,
9999
description: str | NotGiven = NOT_GIVEN,
100100
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
101-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
102101
enabled: bool | NotGiven = NOT_GIVEN,
103102
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
104103
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
@@ -144,10 +143,6 @@ def create(
144143
fall back to a best guess of the default/system DNS resolvers unless this policy
145144
option is set to `true`.
146145
147-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
148-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
149-
DoH connection operates outside of the WARP tunnel.
150-
151146
enabled: Whether the policy will be applied to matching devices.
152147
153148
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -193,7 +188,6 @@ def create(
193188
"captive_portal": captive_portal,
194189
"description": description,
195190
"disable_auto_fallback": disable_auto_fallback,
196-
"doh_in_tunnel": doh_in_tunnel,
197191
"enabled": enabled,
198192
"exclude_office_ips": exclude_office_ips,
199193
"lan_allow_minutes": lan_allow_minutes,
@@ -303,7 +297,6 @@ def edit(
303297
captive_portal: float | NotGiven = NOT_GIVEN,
304298
description: str | NotGiven = NOT_GIVEN,
305299
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
306-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
307300
enabled: bool | NotGiven = NOT_GIVEN,
308301
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
309302
match: str | NotGiven = NOT_GIVEN,
@@ -344,10 +337,6 @@ def edit(
344337
fall back to a best guess of the default/system DNS resolvers unless this policy
345338
option is set to `true`.
346339
347-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
348-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
349-
DoH connection operates outside of the WARP tunnel.
350-
351340
enabled: Whether the policy will be applied to matching devices.
352341
353342
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -391,7 +380,6 @@ def edit(
391380
"captive_portal": captive_portal,
392381
"description": description,
393382
"disable_auto_fallback": disable_auto_fallback,
394-
"doh_in_tunnel": doh_in_tunnel,
395383
"enabled": enabled,
396384
"exclude_office_ips": exclude_office_ips,
397385
"match": match,
@@ -504,7 +492,6 @@ async def create(
504492
captive_portal: float | NotGiven = NOT_GIVEN,
505493
description: str | NotGiven = NOT_GIVEN,
506494
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
507-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
508495
enabled: bool | NotGiven = NOT_GIVEN,
509496
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
510497
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
@@ -550,10 +537,6 @@ async def create(
550537
fall back to a best guess of the default/system DNS resolvers unless this policy
551538
option is set to `true`.
552539
553-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
554-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
555-
DoH connection operates outside of the WARP tunnel.
556-
557540
enabled: Whether the policy will be applied to matching devices.
558541
559542
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -599,7 +582,6 @@ async def create(
599582
"captive_portal": captive_portal,
600583
"description": description,
601584
"disable_auto_fallback": disable_auto_fallback,
602-
"doh_in_tunnel": doh_in_tunnel,
603585
"enabled": enabled,
604586
"exclude_office_ips": exclude_office_ips,
605587
"lan_allow_minutes": lan_allow_minutes,
@@ -709,7 +691,6 @@ async def edit(
709691
captive_portal: float | NotGiven = NOT_GIVEN,
710692
description: str | NotGiven = NOT_GIVEN,
711693
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
712-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
713694
enabled: bool | NotGiven = NOT_GIVEN,
714695
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
715696
match: str | NotGiven = NOT_GIVEN,
@@ -750,10 +731,6 @@ async def edit(
750731
fall back to a best guess of the default/system DNS resolvers unless this policy
751732
option is set to `true`.
752733
753-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
754-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
755-
DoH connection operates outside of the WARP tunnel.
756-
757734
enabled: Whether the policy will be applied to matching devices.
758735
759736
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -797,7 +774,6 @@ async def edit(
797774
"captive_portal": captive_portal,
798775
"description": description,
799776
"disable_auto_fallback": disable_auto_fallback,
800-
"doh_in_tunnel": doh_in_tunnel,
801777
"enabled": enabled,
802778
"exclude_office_ips": exclude_office_ips,
803779
"match": match,

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

-12
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def edit(
106106
auto_connect: float | NotGiven = NOT_GIVEN,
107107
captive_portal: float | NotGiven = NOT_GIVEN,
108108
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
109-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
110109
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
111110
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
112111
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
@@ -139,10 +138,6 @@ def edit(
139138
fall back to a best guess of the default/system DNS resolvers unless this policy
140139
option is set to `true`.
141140
142-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
143-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
144-
DoH connection operates outside of the WARP tunnel.
145-
146141
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
147142
148143
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
@@ -174,7 +169,6 @@ def edit(
174169
"auto_connect": auto_connect,
175170
"captive_portal": captive_portal,
176171
"disable_auto_fallback": disable_auto_fallback,
177-
"doh_in_tunnel": doh_in_tunnel,
178172
"exclude_office_ips": exclude_office_ips,
179173
"register_interface_ip_with_dns": register_interface_ip_with_dns,
180174
"service_mode_v2": service_mode_v2,
@@ -278,7 +272,6 @@ async def edit(
278272
auto_connect: float | NotGiven = NOT_GIVEN,
279273
captive_portal: float | NotGiven = NOT_GIVEN,
280274
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
281-
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
282275
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
283276
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
284277
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
@@ -311,10 +304,6 @@ async def edit(
311304
fall back to a best guess of the default/system DNS resolvers unless this policy
312305
option is set to `true`.
313306
314-
doh_in_tunnel: Determines how the WARP client sends DNS requests to Cloudflare Gateway. When
315-
`true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`, the
316-
DoH connection operates outside of the WARP tunnel.
317-
318307
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
319308
320309
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
@@ -346,7 +335,6 @@ async def edit(
346335
"auto_connect": auto_connect,
347336
"captive_portal": captive_portal,
348337
"disable_auto_fallback": disable_auto_fallback,
349-
"doh_in_tunnel": doh_in_tunnel,
350338
"exclude_office_ips": exclude_office_ips,
351339
"register_interface_ip_with_dns": register_interface_ip_with_dns,
352340
"service_mode_v2": service_mode_v2,

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

-7
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ class CustomCreateParams(TypedDict, total=False):
5151
option is set to `true`.
5252
"""
5353

54-
doh_in_tunnel: bool
55-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
56-
57-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
58-
the DoH connection operates outside of the WARP tunnel.
59-
"""
60-
6154
enabled: bool
6255
"""Whether the policy will be applied to matching devices."""
6356

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

-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ class CustomEditParams(TypedDict, total=False):
3838
option is set to `true`.
3939
"""
4040

41-
doh_in_tunnel: bool
42-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
43-
44-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
45-
the DoH connection operates outside of the WARP tunnel.
46-
"""
47-
4841
enabled: bool
4942
"""Whether the policy will be applied to matching devices."""
5043

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

-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ class DefaultEditParams(TypedDict, total=False):
3535
option is set to `true`.
3636
"""
3737

38-
doh_in_tunnel: bool
39-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
40-
41-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
42-
the DoH connection operates outside of the WARP tunnel.
43-
"""
44-
4538
exclude_office_ips: bool
4639
"""Whether to add Microsoft IPs to Split Tunnel exclusions."""
4740

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

-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ class DefaultEditResponse(BaseModel):
4747
option is set to `true`.
4848
"""
4949

50-
doh_in_tunnel: Optional[bool] = None
51-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
52-
53-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
54-
the DoH connection operates outside of the WARP tunnel.
55-
"""
56-
5750
enabled: Optional[bool] = None
5851
"""Whether the policy will be applied to matching devices."""
5952

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

-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ class DefaultGetResponse(BaseModel):
4747
option is set to `true`.
4848
"""
4949

50-
doh_in_tunnel: Optional[bool] = None
51-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
52-
53-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
54-
the DoH connection operates outside of the WARP tunnel.
55-
"""
56-
5750
enabled: Optional[bool] = None
5851
"""Whether the policy will be applied to matching devices."""
5952

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

-7
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ class SettingsPolicy(BaseModel):
5858
option is set to `true`.
5959
"""
6060

61-
doh_in_tunnel: Optional[bool] = None
62-
"""Determines how the WARP client sends DNS requests to Cloudflare Gateway.
63-
64-
When `true`, DNS traffic is sent over DoH inside the WARP tunnel. When `false`,
65-
the DoH connection operates outside of the WARP tunnel.
66-
"""
67-
6861
enabled: Optional[bool] = None
6962
"""Whether the policy will be applied to matching devices."""
7063

‎tests/api_resources/zero_trust/devices/policies/test_custom.py

-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4444
captive_portal=180,
4545
description="Policy for test teams.",
4646
disable_auto_fallback=True,
47-
doh_in_tunnel=True,
4847
enabled=True,
4948
exclude_office_ips=True,
5049
lan_allow_minutes=30,
@@ -211,7 +210,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
211210
captive_portal=180,
212211
description="Policy for test teams.",
213212
disable_auto_fallback=True,
214-
doh_in_tunnel=True,
215213
enabled=True,
216214
exclude_office_ips=True,
217215
match='user.identity == "test@cloudflare.com"',
@@ -353,7 +351,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
353351
captive_portal=180,
354352
description="Policy for test teams.",
355353
disable_auto_fallback=True,
356-
doh_in_tunnel=True,
357354
enabled=True,
358355
exclude_office_ips=True,
359356
lan_allow_minutes=30,
@@ -520,7 +517,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
520517
captive_portal=180,
521518
description="Policy for test teams.",
522519
disable_auto_fallback=True,
523-
doh_in_tunnel=True,
524520
enabled=True,
525521
exclude_office_ips=True,
526522
match='user.identity == "test@cloudflare.com"',

‎tests/api_resources/zero_trust/devices/policies/test_default.py

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
3434
auto_connect=0,
3535
captive_portal=180,
3636
disable_auto_fallback=True,
37-
doh_in_tunnel=True,
3837
exclude_office_ips=True,
3938
register_interface_ip_with_dns=True,
4039
service_mode_v2={
@@ -137,7 +136,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
137136
auto_connect=0,
138137
captive_portal=180,
139138
disable_auto_fallback=True,
140-
doh_in_tunnel=True,
141139
exclude_office_ips=True,
142140
register_interface_ip_with_dns=True,
143141
service_mode_v2={

0 commit comments

Comments
 (0)
Please sign in to comment.