Skip to content

Commit 71efbfa

Browse files
feat(api): api update
1 parent 3697eac commit 71efbfa

File tree

10 files changed

+89
-5
lines changed

10 files changed

+89
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1706
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ea9331550ccad56948f6d6119883d24cb4fb8fa751e154e961e597413d2af53.yml
3-
openapi_spec_hash: 746765f33e07ba93552c08db3d874680
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc26bcbc11bb9b772d29d427bcfee05087ae21aac92aec44e9aedef0cb4bda9b.yml
3+
openapi_spec_hash: 1aba408edaeb76d287543e736a0c3932
44
config_hash: 67f412c990647f3cb598378fa22a9db5

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ def edit(
311311
exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN,
312312
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
313313
include: Iterable[SplitTunnelIncludeParam] | NotGiven = NOT_GIVEN,
314+
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
315+
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
314316
match: str | NotGiven = NOT_GIVEN,
315317
name: str | NotGiven = NOT_GIVEN,
316318
precedence: float | NotGiven = NOT_GIVEN,
@@ -357,6 +359,14 @@ def edit(
357359
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
358360
'include' cannot be set in the same request.
359361
362+
lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
363+
0 will allow LAN access until the next WARP reconnection, such as a reboot or a
364+
laptop waking from sleep. Note that this field is omitted from the response if
365+
null or unset.
366+
367+
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
368+
omitted from the response if null or unset.
369+
360370
match: The wirefilter expression to match devices. Available values: "identity.email",
361371
"identity.groups.id", "identity.groups.name", "identity.groups.email",
362372
"identity.service_token_uuid", "identity.saml_attributes", "network", "os.name",
@@ -403,6 +413,8 @@ def edit(
403413
"exclude": exclude,
404414
"exclude_office_ips": exclude_office_ips,
405415
"include": include,
416+
"lan_allow_minutes": lan_allow_minutes,
417+
"lan_allow_subnet_size": lan_allow_subnet_size,
406418
"match": match,
407419
"name": name,
408420
"precedence": precedence,
@@ -725,6 +737,8 @@ async def edit(
725737
exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN,
726738
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
727739
include: Iterable[SplitTunnelIncludeParam] | NotGiven = NOT_GIVEN,
740+
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
741+
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
728742
match: str | NotGiven = NOT_GIVEN,
729743
name: str | NotGiven = NOT_GIVEN,
730744
precedence: float | NotGiven = NOT_GIVEN,
@@ -771,6 +785,14 @@ async def edit(
771785
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
772786
'include' cannot be set in the same request.
773787
788+
lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
789+
0 will allow LAN access until the next WARP reconnection, such as a reboot or a
790+
laptop waking from sleep. Note that this field is omitted from the response if
791+
null or unset.
792+
793+
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
794+
omitted from the response if null or unset.
795+
774796
match: The wirefilter expression to match devices. Available values: "identity.email",
775797
"identity.groups.id", "identity.groups.name", "identity.groups.email",
776798
"identity.service_token_uuid", "identity.saml_attributes", "network", "os.name",
@@ -817,6 +839,8 @@ async def edit(
817839
"exclude": exclude,
818840
"exclude_office_ips": exclude_office_ips,
819841
"include": include,
842+
"lan_allow_minutes": lan_allow_minutes,
843+
"lan_allow_subnet_size": lan_allow_subnet_size,
820844
"match": match,
821845
"name": name,
822846
"precedence": precedence,

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def edit(
108108
exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN,
109109
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
110110
include: Iterable[SplitTunnelIncludeParam] | NotGiven = NOT_GIVEN,
111+
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
112+
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
111113
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
112114
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
113115
support_url: str | NotGiven = NOT_GIVEN,
@@ -147,6 +149,14 @@ def edit(
147149
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
148150
'include' cannot be set in the same request.
149151
152+
lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
153+
0 will allow LAN access until the next WARP reconnection, such as a reboot or a
154+
laptop waking from sleep. Note that this field is omitted from the response if
155+
null or unset.
156+
157+
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
158+
omitted from the response if null or unset.
159+
150160
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
151161
your on-premises DNS server.
152162
@@ -179,6 +189,8 @@ def edit(
179189
"exclude": exclude,
180190
"exclude_office_ips": exclude_office_ips,
181191
"include": include,
192+
"lan_allow_minutes": lan_allow_minutes,
193+
"lan_allow_subnet_size": lan_allow_subnet_size,
182194
"register_interface_ip_with_dns": register_interface_ip_with_dns,
183195
"service_mode_v2": service_mode_v2,
184196
"support_url": support_url,
@@ -284,6 +296,8 @@ async def edit(
284296
exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN,
285297
exclude_office_ips: bool | NotGiven = NOT_GIVEN,
286298
include: Iterable[SplitTunnelIncludeParam] | NotGiven = NOT_GIVEN,
299+
lan_allow_minutes: float | NotGiven = NOT_GIVEN,
300+
lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
287301
register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
288302
service_mode_v2: default_edit_params.ServiceModeV2 | NotGiven = NOT_GIVEN,
289303
support_url: str | NotGiven = NOT_GIVEN,
@@ -323,6 +337,14 @@ async def edit(
323337
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
324338
'include' cannot be set in the same request.
325339
340+
lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
341+
0 will allow LAN access until the next WARP reconnection, such as a reboot or a
342+
laptop waking from sleep. Note that this field is omitted from the response if
343+
null or unset.
344+
345+
lan_allow_subnet_size: The size of the subnet for the local access network. Note that this field is
346+
omitted from the response if null or unset.
347+
326348
register_interface_ip_with_dns: Determines if the operating system will register WARP's local interface IP with
327349
your on-premises DNS server.
328350
@@ -355,6 +377,8 @@ async def edit(
355377
"exclude": exclude,
356378
"exclude_office_ips": exclude_office_ips,
357379
"include": include,
380+
"lan_allow_minutes": lan_allow_minutes,
381+
"lan_allow_subnet_size": lan_allow_subnet_size,
358382
"register_interface_ip_with_dns": register_interface_ip_with_dns,
359383
"service_mode_v2": service_mode_v2,
360384
"support_url": support_url,

src/cloudflare/types/zero_trust/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Device(BaseModel):
3434
deleted: Optional[bool] = None
3535
"""True if the device was deleted."""
3636

37-
device_type: Optional[Literal["windows", "mac", "linux", "android", "ios"]] = None
37+
device_type: Optional[Literal["windows", "mac", "linux", "android", "ios", "chromeos"]] = None
3838

3939
ip: Optional[str] = None
4040
"""IPv4 or IPv6 address."""

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010

1111
class DeviceMatch(BaseModel):
12-
platform: Optional[Literal["windows", "mac", "linux", "android", "ios"]] = None
12+
platform: Optional[Literal["windows", "mac", "linux", "android", "ios", "chromeos"]] = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99

1010
class DeviceMatchParam(TypedDict, total=False):
11-
platform: Literal["windows", "mac", "linux", "android", "ios"]
11+
platform: Literal["windows", "mac", "linux", "android", "ios", "chromeos"]

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ class CustomEditParams(TypedDict, total=False):
6060
Both 'exclude' and 'include' cannot be set in the same request.
6161
"""
6262

63+
lan_allow_minutes: float
64+
"""The amount of time in minutes a user is allowed access to their LAN.
65+
66+
A value of 0 will allow LAN access until the next WARP reconnection, such as a
67+
reboot or a laptop waking from sleep. Note that this field is omitted from the
68+
response if null or unset.
69+
"""
70+
71+
lan_allow_subnet_size: float
72+
"""The size of the subnet for the local access network.
73+
74+
Note that this field is omitted from the response if null or unset.
75+
"""
76+
6377
match: str
6478
"""The wirefilter expression to match devices.
6579

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@ class DefaultEditParams(TypedDict, total=False):
5454
Both 'exclude' and 'include' cannot be set in the same request.
5555
"""
5656

57+
lan_allow_minutes: float
58+
"""The amount of time in minutes a user is allowed access to their LAN.
59+
60+
A value of 0 will allow LAN access until the next WARP reconnection, such as a
61+
reboot or a laptop waking from sleep. Note that this field is omitted from the
62+
response if null or unset.
63+
"""
64+
65+
lan_allow_subnet_size: float
66+
"""The size of the subnet for the local access network.
67+
68+
Note that this field is omitted from the response if null or unset.
69+
"""
70+
5771
register_interface_ip_with_dns: bool
5872
"""
5973
Determines if the operating system will register WARP's local interface IP with

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
236236
"description": "Include testing domains in the tunnel",
237237
}
238238
],
239+
lan_allow_minutes=30,
240+
lan_allow_subnet_size=24,
239241
match='identity.email == "test@cloudflare.com"',
240242
name="Allow Developers",
241243
precedence=100,
@@ -567,6 +569,8 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
567569
"description": "Include testing domains in the tunnel",
568570
}
569571
],
572+
lan_allow_minutes=30,
573+
lan_allow_subnet_size=24,
570574
match='identity.email == "test@cloudflare.com"',
571575
name="Allow Developers",
572576
precedence=100,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
4747
"description": "Include testing domains in the tunnel",
4848
}
4949
],
50+
lan_allow_minutes=30,
51+
lan_allow_subnet_size=24,
5052
register_interface_ip_with_dns=True,
5153
service_mode_v2={
5254
"mode": "proxy",
@@ -161,6 +163,8 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
161163
"description": "Include testing domains in the tunnel",
162164
}
163165
],
166+
lan_allow_minutes=30,
167+
lan_allow_subnet_size=24,
164168
register_interface_ip_with_dns=True,
165169
service_mode_v2={
166170
"mode": "proxy",

0 commit comments

Comments
 (0)