24
24
from ...._base_client import AsyncPaginator , make_request_options
25
25
from ....types .zero_trust .gateway import location_create_params , location_update_params
26
26
from ....types .zero_trust .gateway .location import Location
27
- from ....types .zero_trust .gateway .location_network_param import LocationNetworkParam
28
27
from ....types .zero_trust .gateway .location_delete_response import LocationDeleteResponse
29
28
30
29
__all__ = ["LocationsResource" , "AsyncLocationsResource" ]
@@ -45,8 +44,9 @@ def create(
45
44
account_id : str ,
46
45
name : str ,
47
46
client_default : bool | NotGiven = NOT_GIVEN ,
47
+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
48
48
ecs_support : bool | NotGiven = NOT_GIVEN ,
49
- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
49
+ networks : Iterable [location_create_params . Network ] | NotGiven = NOT_GIVEN ,
50
50
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
51
# The extra values given here take precedence over values defined on the client or passed to this method.
52
52
extra_headers : Headers | None = None ,
@@ -62,9 +62,17 @@ def create(
62
62
63
63
client_default: True if the location is the default location.
64
64
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
+
65
71
ecs_support: True if the location needs to resolve EDNS queries.
66
72
67
73
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.
68
76
69
77
extra_headers: Send extra headers
70
78
@@ -82,6 +90,7 @@ def create(
82
90
{
83
91
"name" : name ,
84
92
"client_default" : client_default ,
93
+ "dns_destination_ips_id" : dns_destination_ips_id ,
85
94
"ecs_support" : ecs_support ,
86
95
"networks" : networks ,
87
96
},
@@ -104,8 +113,9 @@ def update(
104
113
account_id : str ,
105
114
name : str ,
106
115
client_default : bool | NotGiven = NOT_GIVEN ,
116
+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
107
117
ecs_support : bool | NotGiven = NOT_GIVEN ,
108
- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
118
+ networks : Iterable [location_update_params . Network ] | NotGiven = NOT_GIVEN ,
109
119
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110
120
# The extra values given here take precedence over values defined on the client or passed to this method.
111
121
extra_headers : Headers | None = None ,
@@ -121,9 +131,17 @@ def update(
121
131
122
132
client_default: True if the location is the default location.
123
133
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
+
124
140
ecs_support: True if the location needs to resolve EDNS queries.
125
141
126
142
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.
127
145
128
146
extra_headers: Send extra headers
129
147
@@ -143,6 +161,7 @@ def update(
143
161
{
144
162
"name" : name ,
145
163
"client_default" : client_default ,
164
+ "dns_destination_ips_id" : dns_destination_ips_id ,
146
165
"ecs_support" : ecs_support ,
147
166
"networks" : networks ,
148
167
},
@@ -293,8 +312,9 @@ async def create(
293
312
account_id : str ,
294
313
name : str ,
295
314
client_default : bool | NotGiven = NOT_GIVEN ,
315
+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
296
316
ecs_support : bool | NotGiven = NOT_GIVEN ,
297
- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
317
+ networks : Iterable [location_create_params . Network ] | NotGiven = NOT_GIVEN ,
298
318
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
299
319
# The extra values given here take precedence over values defined on the client or passed to this method.
300
320
extra_headers : Headers | None = None ,
@@ -310,9 +330,17 @@ async def create(
310
330
311
331
client_default: True if the location is the default location.
312
332
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
+
313
339
ecs_support: True if the location needs to resolve EDNS queries.
314
340
315
341
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.
316
344
317
345
extra_headers: Send extra headers
318
346
@@ -330,6 +358,7 @@ async def create(
330
358
{
331
359
"name" : name ,
332
360
"client_default" : client_default ,
361
+ "dns_destination_ips_id" : dns_destination_ips_id ,
333
362
"ecs_support" : ecs_support ,
334
363
"networks" : networks ,
335
364
},
@@ -352,8 +381,9 @@ async def update(
352
381
account_id : str ,
353
382
name : str ,
354
383
client_default : bool | NotGiven = NOT_GIVEN ,
384
+ dns_destination_ips_id : str | NotGiven = NOT_GIVEN ,
355
385
ecs_support : bool | NotGiven = NOT_GIVEN ,
356
- networks : Iterable [LocationNetworkParam ] | NotGiven = NOT_GIVEN ,
386
+ networks : Iterable [location_update_params . Network ] | NotGiven = NOT_GIVEN ,
357
387
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
358
388
# The extra values given here take precedence over values defined on the client or passed to this method.
359
389
extra_headers : Headers | None = None ,
@@ -369,9 +399,17 @@ async def update(
369
399
370
400
client_default: True if the location is the default location.
371
401
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
+
372
408
ecs_support: True if the location needs to resolve EDNS queries.
373
409
374
410
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.
375
413
376
414
extra_headers: Send extra headers
377
415
@@ -391,6 +429,7 @@ async def update(
391
429
{
392
430
"name" : name ,
393
431
"client_default" : client_default ,
432
+ "dns_destination_ips_id" : dns_destination_ips_id ,
394
433
"ecs_support" : ecs_support ,
395
434
"networks" : networks ,
396
435
},
0 commit comments