34
34
AsyncPaginator ,
35
35
make_request_options ,
36
36
)
37
- from .....types .zero_trust .gateway import list_edit_params , list_create_params , list_update_params
37
+ from .....types .zero_trust .gateway import list_edit_params , list_list_params , list_create_params , list_update_params
38
38
from .....types .zero_trust .gateway .gateway_list import GatewayList
39
39
from .....types .zero_trust .gateway .gateway_item_param import GatewayItemParam
40
40
from .....types .zero_trust .gateway .list_create_response import ListCreateResponse
@@ -173,6 +173,7 @@ def list(
173
173
self ,
174
174
* ,
175
175
account_id : str ,
176
+ type : Literal ["SERIAL" , "URL" , "DOMAIN" , "EMAIL" , "IP" ] | NotGiven = NOT_GIVEN ,
176
177
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177
178
# The extra values given here take precedence over values defined on the client or passed to this method.
178
179
extra_headers : Headers | None = None ,
@@ -184,6 +185,8 @@ def list(
184
185
Fetches all Zero Trust lists for an account.
185
186
186
187
Args:
188
+ type: The type of list.
189
+
187
190
extra_headers: Send extra headers
188
191
189
192
extra_query: Add additional query parameters to the request
@@ -198,7 +201,11 @@ def list(
198
201
f"/accounts/{ account_id } /gateway/lists" ,
199
202
page = SyncSinglePage [GatewayList ],
200
203
options = make_request_options (
201
- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
204
+ extra_headers = extra_headers ,
205
+ extra_query = extra_query ,
206
+ extra_body = extra_body ,
207
+ timeout = timeout ,
208
+ query = maybe_transform ({"type" : type }, list_list_params .ListListParams ),
202
209
),
203
210
model = GatewayList ,
204
211
)
@@ -478,6 +485,7 @@ def list(
478
485
self ,
479
486
* ,
480
487
account_id : str ,
488
+ type : Literal ["SERIAL" , "URL" , "DOMAIN" , "EMAIL" , "IP" ] | NotGiven = NOT_GIVEN ,
481
489
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
482
490
# The extra values given here take precedence over values defined on the client or passed to this method.
483
491
extra_headers : Headers | None = None ,
@@ -489,6 +497,8 @@ def list(
489
497
Fetches all Zero Trust lists for an account.
490
498
491
499
Args:
500
+ type: The type of list.
501
+
492
502
extra_headers: Send extra headers
493
503
494
504
extra_query: Add additional query parameters to the request
@@ -503,7 +513,11 @@ def list(
503
513
f"/accounts/{ account_id } /gateway/lists" ,
504
514
page = AsyncSinglePage [GatewayList ],
505
515
options = make_request_options (
506
- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
516
+ extra_headers = extra_headers ,
517
+ extra_query = extra_query ,
518
+ extra_body = extra_body ,
519
+ timeout = timeout ,
520
+ query = maybe_transform ({"type" : type }, list_list_params .ListListParams ),
507
521
),
508
522
model = GatewayList ,
509
523
)
0 commit comments