|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Type, Optional, cast |
| 5 | +from typing import Type, Iterable, Optional, cast |
6 | 6 |
|
7 | 7 | import httpx
|
8 | 8 |
|
|
48 | 48 | from ......_base_client import AsyncPaginator, make_request_options
|
49 | 49 | from ......types.zero_trust.devices.policies import custom_edit_params, custom_create_params
|
50 | 50 | from ......types.zero_trust.devices.settings_policy import SettingsPolicy
|
| 51 | +from ......types.zero_trust.devices.split_tunnel_exclude_param import SplitTunnelExcludeParam |
51 | 52 |
|
52 | 53 | __all__ = ["CustomResource", "AsyncCustomResource"]
|
53 | 54 |
|
@@ -99,7 +100,9 @@ def create(
|
99 | 100 | description: str | NotGiven = NOT_GIVEN,
|
100 | 101 | disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
|
101 | 102 | enabled: bool | NotGiven = NOT_GIVEN,
|
| 103 | + exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
102 | 104 | exclude_office_ips: bool | NotGiven = NOT_GIVEN,
|
| 105 | + include: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
103 | 106 | lan_allow_minutes: float | NotGiven = NOT_GIVEN,
|
104 | 107 | lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
|
105 | 108 | register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
|
@@ -145,8 +148,14 @@ def create(
|
145 | 148 |
|
146 | 149 | enabled: Whether the policy will be applied to matching devices.
|
147 | 150 |
|
| 151 | + exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and |
| 152 | + 'include' cannot be set in the same request. |
| 153 | +
|
148 | 154 | exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
|
149 | 155 |
|
| 156 | + include: List of routes included in the WARP client's tunnel. Both 'exclude' and |
| 157 | + 'include' cannot be set in the same request. |
| 158 | +
|
150 | 159 | lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
|
151 | 160 | 0 will allow LAN access until the next WARP reconnection, such as a reboot or a
|
152 | 161 | laptop waking from sleep. Note that this field is omitted from the response if
|
@@ -189,7 +198,9 @@ def create(
|
189 | 198 | "description": description,
|
190 | 199 | "disable_auto_fallback": disable_auto_fallback,
|
191 | 200 | "enabled": enabled,
|
| 201 | + "exclude": exclude, |
192 | 202 | "exclude_office_ips": exclude_office_ips,
|
| 203 | + "include": include, |
193 | 204 | "lan_allow_minutes": lan_allow_minutes,
|
194 | 205 | "lan_allow_subnet_size": lan_allow_subnet_size,
|
195 | 206 | "register_interface_ip_with_dns": register_interface_ip_with_dns,
|
@@ -298,7 +309,9 @@ def edit(
|
298 | 309 | description: str | NotGiven = NOT_GIVEN,
|
299 | 310 | disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
|
300 | 311 | enabled: bool | NotGiven = NOT_GIVEN,
|
| 312 | + exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
301 | 313 | exclude_office_ips: bool | NotGiven = NOT_GIVEN,
|
| 314 | + include: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
302 | 315 | match: str | NotGiven = NOT_GIVEN,
|
303 | 316 | name: str | NotGiven = NOT_GIVEN,
|
304 | 317 | precedence: float | NotGiven = NOT_GIVEN,
|
@@ -339,8 +352,14 @@ def edit(
|
339 | 352 |
|
340 | 353 | enabled: Whether the policy will be applied to matching devices.
|
341 | 354 |
|
| 355 | + exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and |
| 356 | + 'include' cannot be set in the same request. |
| 357 | +
|
342 | 358 | exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
|
343 | 359 |
|
| 360 | + include: List of routes included in the WARP client's tunnel. Both 'exclude' and |
| 361 | + 'include' cannot be set in the same request. |
| 362 | +
|
344 | 363 | match: The wirefilter expression to match devices.
|
345 | 364 |
|
346 | 365 | name: The name of the device settings profile.
|
@@ -381,7 +400,9 @@ def edit(
|
381 | 400 | "description": description,
|
382 | 401 | "disable_auto_fallback": disable_auto_fallback,
|
383 | 402 | "enabled": enabled,
|
| 403 | + "exclude": exclude, |
384 | 404 | "exclude_office_ips": exclude_office_ips,
|
| 405 | + "include": include, |
385 | 406 | "match": match,
|
386 | 407 | "name": name,
|
387 | 408 | "precedence": precedence,
|
@@ -493,7 +514,9 @@ async def create(
|
493 | 514 | description: str | NotGiven = NOT_GIVEN,
|
494 | 515 | disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
|
495 | 516 | enabled: bool | NotGiven = NOT_GIVEN,
|
| 517 | + exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
496 | 518 | exclude_office_ips: bool | NotGiven = NOT_GIVEN,
|
| 519 | + include: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
497 | 520 | lan_allow_minutes: float | NotGiven = NOT_GIVEN,
|
498 | 521 | lan_allow_subnet_size: float | NotGiven = NOT_GIVEN,
|
499 | 522 | register_interface_ip_with_dns: bool | NotGiven = NOT_GIVEN,
|
@@ -539,8 +562,14 @@ async def create(
|
539 | 562 |
|
540 | 563 | enabled: Whether the policy will be applied to matching devices.
|
541 | 564 |
|
| 565 | + exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and |
| 566 | + 'include' cannot be set in the same request. |
| 567 | +
|
542 | 568 | exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
|
543 | 569 |
|
| 570 | + include: List of routes included in the WARP client's tunnel. Both 'exclude' and |
| 571 | + 'include' cannot be set in the same request. |
| 572 | +
|
544 | 573 | lan_allow_minutes: The amount of time in minutes a user is allowed access to their LAN. A value of
|
545 | 574 | 0 will allow LAN access until the next WARP reconnection, such as a reboot or a
|
546 | 575 | laptop waking from sleep. Note that this field is omitted from the response if
|
@@ -583,7 +612,9 @@ async def create(
|
583 | 612 | "description": description,
|
584 | 613 | "disable_auto_fallback": disable_auto_fallback,
|
585 | 614 | "enabled": enabled,
|
| 615 | + "exclude": exclude, |
586 | 616 | "exclude_office_ips": exclude_office_ips,
|
| 617 | + "include": include, |
587 | 618 | "lan_allow_minutes": lan_allow_minutes,
|
588 | 619 | "lan_allow_subnet_size": lan_allow_subnet_size,
|
589 | 620 | "register_interface_ip_with_dns": register_interface_ip_with_dns,
|
@@ -692,7 +723,9 @@ async def edit(
|
692 | 723 | description: str | NotGiven = NOT_GIVEN,
|
693 | 724 | disable_auto_fallback: bool | NotGiven = NOT_GIVEN,
|
694 | 725 | enabled: bool | NotGiven = NOT_GIVEN,
|
| 726 | + exclude: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
695 | 727 | exclude_office_ips: bool | NotGiven = NOT_GIVEN,
|
| 728 | + include: Iterable[SplitTunnelExcludeParam] | NotGiven = NOT_GIVEN, |
696 | 729 | match: str | NotGiven = NOT_GIVEN,
|
697 | 730 | name: str | NotGiven = NOT_GIVEN,
|
698 | 731 | precedence: float | NotGiven = NOT_GIVEN,
|
@@ -733,8 +766,14 @@ async def edit(
|
733 | 766 |
|
734 | 767 | enabled: Whether the policy will be applied to matching devices.
|
735 | 768 |
|
| 769 | + exclude: List of routes excluded in the WARP client's tunnel. Both 'exclude' and |
| 770 | + 'include' cannot be set in the same request. |
| 771 | +
|
736 | 772 | exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
|
737 | 773 |
|
| 774 | + include: List of routes included in the WARP client's tunnel. Both 'exclude' and |
| 775 | + 'include' cannot be set in the same request. |
| 776 | +
|
738 | 777 | match: The wirefilter expression to match devices.
|
739 | 778 |
|
740 | 779 | name: The name of the device settings profile.
|
@@ -775,7 +814,9 @@ async def edit(
|
775 | 814 | "description": description,
|
776 | 815 | "disable_auto_fallback": disable_auto_fallback,
|
777 | 816 | "enabled": enabled,
|
| 817 | + "exclude": exclude, |
778 | 818 | "exclude_office_ips": exclude_office_ips,
|
| 819 | + "include": include, |
779 | 820 | "match": match,
|
780 | 821 | "name": name,
|
781 | 822 | "precedence": precedence,
|
|
0 commit comments