2424from ...._base_client import AsyncPaginator , make_request_options
2525from ....types .zero_trust .gateway import location_create_params , location_update_params
2626from ....types .zero_trust .gateway .location import Location
27- from ....types .zero_trust .gateway .location_network_param import LocationNetworkParam
2827from ....types .zero_trust .gateway .location_delete_response import LocationDeleteResponse
2928
3029__all__ = ["LocationsResource" , "AsyncLocationsResource" ]
@@ -45,8 +44,9 @@ def create(
4544 account_id : str ,
4645 name : str ,
4746 client_default : bool | NotGiven = NOT_GIVEN ,
47+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
4848 ecs_support : bool | NotGiven = NOT_GIVEN ,
49- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
49+ networks : Iterable [location_create_params . Network ] | NotGiven = NOT_GIVEN ,
5050 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5151 # The extra values given here take precedence over values defined on the client or passed to this method.
5252 extra_headers : Headers | None = None ,
@@ -62,9 +62,17 @@ def create(
6262
6363 client_default: True if the location is the default location.
6464
65+ dns_destination_ips_id: The identifier of the pair of IPv4 addresses assigned to this location. When
66+ creating a location, if this field is absent or set with null, the pair of
67+ shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned.
68+ When updating a location, if the field is absent or set with null, the
69+ pre-assigned pair remains unchanged.
70+
6571 ecs_support: True if the location needs to resolve EDNS queries.
6672
6773 networks: A list of network ranges that requests from this location would originate from.
74+ A non-empty list is only effective if the ipv4 endpoint is enabled for this
75+ location.
6876
6977 extra_headers: Send extra headers
7078
@@ -82,6 +90,7 @@ def create(
8290 {
8391 "name" : name ,
8492 "client_default" : client_default ,
93+ "dns_destination_ips_id" : dns_destination_ips_id ,
8594 "ecs_support" : ecs_support ,
8695 "networks" : networks ,
8796 },
@@ -104,8 +113,9 @@ def update(
104113 account_id : str ,
105114 name : str ,
106115 client_default : bool | NotGiven = NOT_GIVEN ,
116+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
107117 ecs_support : bool | NotGiven = NOT_GIVEN ,
108- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
118+ networks : Iterable [location_update_params . Network ] | NotGiven = NOT_GIVEN ,
109119 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110120 # The extra values given here take precedence over values defined on the client or passed to this method.
111121 extra_headers : Headers | None = None ,
@@ -121,9 +131,17 @@ def update(
121131
122132 client_default: True if the location is the default location.
123133
134+ dns_destination_ips_id: The identifier of the pair of IPv4 addresses assigned to this location. When
135+ creating a location, if this field is absent or set with null, the pair of
136+ shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned.
137+ When updating a location, if the field is absent or set with null, the
138+ pre-assigned pair remains unchanged.
139+
124140 ecs_support: True if the location needs to resolve EDNS queries.
125141
126142 networks: A list of network ranges that requests from this location would originate from.
143+ A non-empty list is only effective if the ipv4 endpoint is enabled for this
144+ location.
127145
128146 extra_headers: Send extra headers
129147
@@ -143,6 +161,7 @@ def update(
143161 {
144162 "name" : name ,
145163 "client_default" : client_default ,
164+ "dns_destination_ips_id" : dns_destination_ips_id ,
146165 "ecs_support" : ecs_support ,
147166 "networks" : networks ,
148167 },
@@ -293,8 +312,9 @@ async def create(
293312 account_id : str ,
294313 name : str ,
295314 client_default : bool | NotGiven = NOT_GIVEN ,
315+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
296316 ecs_support : bool | NotGiven = NOT_GIVEN ,
297- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
317+ networks : Iterable [location_create_params . Network ] | NotGiven = NOT_GIVEN ,
298318 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
299319 # The extra values given here take precedence over values defined on the client or passed to this method.
300320 extra_headers : Headers | None = None ,
@@ -310,9 +330,17 @@ async def create(
310330
311331 client_default: True if the location is the default location.
312332
333+ dns_destination_ips_id: The identifier of the pair of IPv4 addresses assigned to this location. When
334+ creating a location, if this field is absent or set with null, the pair of
335+ shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned.
336+ When updating a location, if the field is absent or set with null, the
337+ pre-assigned pair remains unchanged.
338+
313339 ecs_support: True if the location needs to resolve EDNS queries.
314340
315341 networks: A list of network ranges that requests from this location would originate from.
342+ A non-empty list is only effective if the ipv4 endpoint is enabled for this
343+ location.
316344
317345 extra_headers: Send extra headers
318346
@@ -330,6 +358,7 @@ async def create(
330358 {
331359 "name" : name ,
332360 "client_default" : client_default ,
361+ "dns_destination_ips_id" : dns_destination_ips_id ,
333362 "ecs_support" : ecs_support ,
334363 "networks" : networks ,
335364 },
@@ -352,8 +381,9 @@ async def update(
352381 account_id : str ,
353382 name : str ,
354383 client_default : bool | NotGiven = NOT_GIVEN ,
384+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
355385 ecs_support : bool | NotGiven = NOT_GIVEN ,
356- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
386+ networks : Iterable [location_update_params . Network ] | NotGiven = NOT_GIVEN ,
357387 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
358388 # The extra values given here take precedence over values defined on the client or passed to this method.
359389 extra_headers : Headers | None = None ,
@@ -369,9 +399,17 @@ async def update(
369399
370400 client_default: True if the location is the default location.
371401
402+ dns_destination_ips_id: The identifier of the pair of IPv4 addresses assigned to this location. When
403+ creating a location, if this field is absent or set with null, the pair of
404+ shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned.
405+ When updating a location, if the field is absent or set with null, the
406+ pre-assigned pair remains unchanged.
407+
372408 ecs_support: True if the location needs to resolve EDNS queries.
373409
374410 networks: A list of network ranges that requests from this location would originate from.
411+ A non-empty list is only effective if the ipv4 endpoint is enabled for this
412+ location.
375413
376414 extra_headers: Send extra headers
377415
@@ -391,6 +429,7 @@ async def update(
391429 {
392430 "name" : name ,
393431 "client_default" : client_default ,
432+ "dns_destination_ips_id" : dns_destination_ips_id ,
394433 "ecs_support" : ecs_support ,
395434 "networks" : networks ,
396435 },
0 commit comments