Skip to content

Commit 25d39d1

Browse files
feat(api): api update (#2458)
1 parent 7b08f99 commit 25d39d1

File tree

11 files changed

+157
-1
lines changed

11 files changed

+157
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1528
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ee6b0ebcaaeb5fabb294c801955fade228195fe720429fe46bc98a5c03c74e41.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a9e85bad713be0131dc6634e1c1e9b76c69f06887fffc104202fd7c18898dcb5.yml

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ 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,
101102
enabled: bool | NotGiven = NOT_GIVEN,
102103
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
103104
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
104105
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
106+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
105107
service_mode_v2: custom_create_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
106108
support_url: str | NotGiven = NOT_GIVEN,
107109
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -142,6 +144,10 @@ def create(
142144
fall back to a best guess of the default/system DNS resolvers unless this policy
143145
option is set to `true`.
144146
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+
145151
enabled: Whether the policy will be applied to matching devices.
146152
147153
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -154,6 +160,9 @@ def create(
154160
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
155161
omitted from the response if null or unset.
156162
163+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
164+
your on-premises DNS server.
165+
157166
support_url: The URL to launch when the Send Feedback button is clicked.
158167
159168
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -184,10 +193,12 @@ def create(
184193
"captive_portal": captive_portal,
185194
"description": description,
186195
"disable_auto_fallback": disable_auto_fallback,
196+
"doh_in_tunnel": doh_in_tunnel,
187197
"enabled": enabled,
188198
"exclude_office_ips": exclude_office_ips,
189199
"lan_allow_minutes": lan_allow_minutes,
190200
"lan_allow_subnet_size": lan_allow_subnet_size,
201+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
191202
"service_mode_v2": service_mode_v2,
192203
"support_url": support_url,
193204
"switch_locked": switch_locked,
@@ -292,11 +303,13 @@ def edit(
292303
captive_portal: float | NotGiven = NOT_GIVEN,
293304
description: str | NotGiven = NOT_GIVEN,
294305
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
306+
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
295307
enabled: bool | NotGiven = NOT_GIVEN,
296308
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
297309
match: str | NotGiven = NOT_GIVEN,
298310
name: str | NotGiven = NOT_GIVEN,
299311
precedence: float | NotGiven = NOT_GIVEN,
312+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
300313
service_mode_v2: custom_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
301314
support_url: str | NotGiven = NOT_GIVEN,
302315
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -331,6 +344,10 @@ def edit(
331344
fall back to a best guess of the default/system DNS resolvers unless this policy
332345
option is set to `true`.
333346
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+
334351
enabled: Whether the policy will be applied to matching devices.
335352
336353
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -342,6 +359,9 @@ def edit(
342359
precedence: The precedence of the policy. Lower values indicate higher precedence. Policies
343360
will be evaluated in ascending order of this field.
344361
362+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
363+
your on-premises DNS server.
364+
345365
support_url: The URL to launch when the Send Feedback button is clicked.
346366
347367
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -371,11 +391,13 @@ def edit(
371391
"captive_portal": captive_portal,
372392
"description": description,
373393
"disable_auto_fallback": disable_auto_fallback,
394+
"doh_in_tunnel": doh_in_tunnel,
374395
"enabled": enabled,
375396
"exclude_office_ips": exclude_office_ips,
376397
"match": match,
377398
"name": name,
378399
"precedence": precedence,
400+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
379401
"service_mode_v2": service_mode_v2,
380402
"support_url": support_url,
381403
"switch_locked": switch_locked,
@@ -482,10 +504,12 @@ async def create(
482504
captive_portal: float | NotGiven = NOT_GIVEN,
483505
description: str | NotGiven = NOT_GIVEN,
484506
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
507+
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
485508
enabled: bool | NotGiven = NOT_GIVEN,
486509
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
487510
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
488511
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
512+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
489513
service_mode_v2: custom_create_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
490514
support_url: str | NotGiven = NOT_GIVEN,
491515
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -526,6 +550,10 @@ async def create(
526550
fall back to a best guess of the default/system DNS resolvers unless this policy
527551
option is set to `true`.
528552
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+
529557
enabled: Whether the policy will be applied to matching devices.
530558
531559
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -538,6 +566,9 @@ async def create(
538566
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
539567
omitted from the response if null or unset.
540568
569+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
570+
your on-premises DNS server.
571+
541572
support_url: The URL to launch when the Send Feedback button is clicked.
542573
543574
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -568,10 +599,12 @@ async def create(
568599
"captive_portal": captive_portal,
569600
"description": description,
570601
"disable_auto_fallback": disable_auto_fallback,
602+
"doh_in_tunnel": doh_in_tunnel,
571603
"enabled": enabled,
572604
"exclude_office_ips": exclude_office_ips,
573605
"lan_allow_minutes": lan_allow_minutes,
574606
"lan_allow_subnet_size": lan_allow_subnet_size,
607+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
575608
"service_mode_v2": service_mode_v2,
576609
"support_url": support_url,
577610
"switch_locked": switch_locked,
@@ -676,11 +709,13 @@ async def edit(
676709
captive_portal: float | NotGiven = NOT_GIVEN,
677710
description: str | NotGiven = NOT_GIVEN,
678711
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
712+
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
679713
enabled: bool | NotGiven = NOT_GIVEN,
680714
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
681715
match: str | NotGiven = NOT_GIVEN,
682716
name: str | NotGiven = NOT_GIVEN,
683717
precedence: float | NotGiven = NOT_GIVEN,
718+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
684719
service_mode_v2: custom_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
685720
support_url: str | NotGiven = NOT_GIVEN,
686721
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -715,6 +750,10 @@ async def edit(
715750
fall back to a best guess of the default/system DNS resolvers unless this policy
716751
option is set to `true`.
717752
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+
718757
enabled: Whether the policy will be applied to matching devices.
719758
720759
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
@@ -726,6 +765,9 @@ async def edit(
726765
precedence: The precedence of the policy. Lower values indicate higher precedence. Policies
727766
will be evaluated in ascending order of this field.
728767
768+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
769+
your on-premises DNS server.
770+
729771
support_url: The URL to launch when the Send Feedback button is clicked.
730772
731773
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -755,11 +797,13 @@ async def edit(
755797
"captive_portal": captive_portal,
756798
"description": description,
757799
"disable_auto_fallback": disable_auto_fallback,
800+
"doh_in_tunnel": doh_in_tunnel,
758801
"enabled": enabled,
759802
"exclude_office_ips": exclude_office_ips,
760803
"match": match,
761804
"name": name,
762805
"precedence": precedence,
806+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
763807
"service_mode_v2": service_mode_v2,
764808
"support_url": support_url,
765809
"switch_locked": switch_locked,

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ 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,
109110
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
111+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
110112
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
111113
support_url: str | NotGiven = NOT_GIVEN,
112114
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -137,8 +139,15 @@ def edit(
137139
fall back to a best guess of the default/system DNS resolvers unless this policy
138140
option is set to `true`.
139141
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+
140146
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
141147
148+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
149+
your on-premises DNS server.
150+
142151
support_url: The URL to launch when the Send Feedback button is clicked.
143152
144153
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -165,7 +174,9 @@ def edit(
165174
"auto_connect": auto_connect,
166175
"captive_portal": captive_portal,
167176
"disable_auto_fallback": disable_auto_fallback,
177+
"doh_in_tunnel": doh_in_tunnel,
168178
"exclude_office_ips": exclude_office_ips,
179+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
169180
"service_mode_v2": service_mode_v2,
170181
"support_url": support_url,
171182
"switch_locked": switch_locked,
@@ -267,7 +278,9 @@ async def edit(
267278
auto_connect: float | NotGiven = NOT_GIVEN,
268279
captive_portal: float | NotGiven = NOT_GIVEN,
269280
disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
281+
doh_in_tunnel: bool | NotGiven = NOT_GIVEN,
270282
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
283+
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
271284
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
272285
support_url: str | NotGiven = NOT_GIVEN,
273286
switch_locked: bool | NotGiven = NOT_GIVEN,
@@ -298,8 +311,15 @@ async def edit(
298311
fall back to a best guess of the default/system DNS resolvers unless this policy
299312
option is set to `true`.
300313
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+
301318
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
302319
320+
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
321+
your on-premises DNS server.
322+
303323
support_url: The URL to launch when the Send Feedback button is clicked.
304324
305325
switch_locked: Whether to allow the user to turn off the WARP switch and disconnect the client.
@@ -326,7 +346,9 @@ async def edit(
326346
"auto_connect": auto_connect,
327347
"captive_portal": captive_portal,
328348
"disable_auto_fallback": disable_auto_fallback,
349+
"doh_in_tunnel": doh_in_tunnel,
329350
"exclude_office_ips": exclude_office_ips,
351+
"register_interface_ip_with_dns": register_interface_ip_with_dns,
330352
"service_mode_v2": service_mode_v2,
331353
"support_url": support_url,
332354
"switch_locked": switch_locked,

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ 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+
5461
enabled: bool
5562
"""Whether the policy will be applied to matching devices."""
5663

@@ -71,6 +78,12 @@ class CustomCreateParams(TypedDict, total=False):
7178
Note that this field is omitted from the response if null or unset.
7279
"""
7380

81+
register_interface_ip_with_dns: bool
82+
"""
83+
Determines if the operating system will register WARP's local interface IP with
84+
your on-premises DNS server.
85+
"""
86+
7487
service_mode_v2: ServiceModeV2
7588

7689
support_url: str

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ 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+
4148
enabled: bool
4249
"""Whether the policy will be applied to matching devices."""
4350

@@ -57,6 +64,12 @@ class CustomEditParams(TypedDict, total=False):
5764
order of this field.
5865
"""
5966

67+
register_interface_ip_with_dns: bool
68+
"""
69+
Determines if the operating system will register WARP's local interface IP with
70+
your on-premises DNS server.
71+
"""
72+
6073
service_mode_v2: ServiceModeV2
6174

6275
support_url: str

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,22 @@ 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+
3845
exclude_office_ips: bool
3946
"""Whether to add Microsoft IPs to Split Tunnel exclusions."""
4047

48+
register_interface_ip_with_dns: bool
49+
"""
50+
Determines if the operating system will register WARP's local interface IP with
51+
your on-premises DNS server.
52+
"""
53+
4154
service_mode_v2: ServiceModeV2
4255

4356
support_url: str

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ 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+
5057
enabled: Optional[bool] = None
5158
"""Whether the policy will be applied to matching devices."""
5259

@@ -61,6 +68,12 @@ class DefaultEditResponse(BaseModel):
6168

6269
include: Optional[List[SplitTunnelInclude]] = None
6370

71+
register_interface_ip_with_dns: Optional[bool] = None
72+
"""
73+
Determines if the operating system will register WARP's local interface IP with
74+
your on-premises DNS server.
75+
"""
76+
6477
service_mode_v2: Optional[ServiceModeV2] = None
6578

6679
support_url: Optional[str] = None

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ 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+
5057
enabled: Optional[bool] = None
5158
"""Whether the policy will be applied to matching devices."""
5259

@@ -61,6 +68,12 @@ class DefaultGetResponse(BaseModel):
6168

6269
include: Optional[List[SplitTunnelInclude]] = None
6370

71+
register_interface_ip_with_dns: Optional[bool] = None
72+
"""
73+
Determines if the operating system will register WARP's local interface IP with
74+
your on-premises DNS server.
75+
"""
76+
6477
service_mode_v2: Optional[ServiceModeV2] = None
6578

6679
support_url: Optional[str] = None

0 commit comments

Comments
 (0)