40
40
HTTPConfigurationParam ,
41
41
HealthcheckDeleteResponse ,
42
42
healthcheck_edit_params ,
43
+ healthcheck_list_params ,
43
44
healthcheck_create_params ,
44
45
healthcheck_delete_params ,
45
46
healthcheck_update_params ,
@@ -278,6 +279,8 @@ def list(
278
279
self ,
279
280
* ,
280
281
zone_id : str ,
282
+ page : object | NotGiven = NOT_GIVEN ,
283
+ per_page : object | NotGiven = NOT_GIVEN ,
281
284
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
282
285
# The extra values given here take precedence over values defined on the client or passed to this method.
283
286
extra_headers : Headers | None = None ,
@@ -291,6 +294,10 @@ def list(
291
294
Args:
292
295
zone_id: Identifier
293
296
297
+ page: Page number of paginated results.
298
+
299
+ per_page: Maximum number of results per page. Must be a multiple of 5.
300
+
294
301
extra_headers: Send extra headers
295
302
296
303
extra_query: Add additional query parameters to the request
@@ -305,7 +312,17 @@ def list(
305
312
f"/zones/{ zone_id } /healthchecks" ,
306
313
page = SyncSinglePage [Healthcheck ],
307
314
options = make_request_options (
308
- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
315
+ extra_headers = extra_headers ,
316
+ extra_query = extra_query ,
317
+ extra_body = extra_body ,
318
+ timeout = timeout ,
319
+ query = maybe_transform (
320
+ {
321
+ "page" : page ,
322
+ "per_page" : per_page ,
323
+ },
324
+ healthcheck_list_params .HealthcheckListParams ,
325
+ ),
309
326
),
310
327
model = Healthcheck ,
311
328
)
@@ -740,6 +757,8 @@ def list(
740
757
self ,
741
758
* ,
742
759
zone_id : str ,
760
+ page : object | NotGiven = NOT_GIVEN ,
761
+ per_page : object | NotGiven = NOT_GIVEN ,
743
762
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
744
763
# The extra values given here take precedence over values defined on the client or passed to this method.
745
764
extra_headers : Headers | None = None ,
@@ -753,6 +772,10 @@ def list(
753
772
Args:
754
773
zone_id: Identifier
755
774
775
+ page: Page number of paginated results.
776
+
777
+ per_page: Maximum number of results per page. Must be a multiple of 5.
778
+
756
779
extra_headers: Send extra headers
757
780
758
781
extra_query: Add additional query parameters to the request
@@ -767,7 +790,17 @@ def list(
767
790
f"/zones/{ zone_id } /healthchecks" ,
768
791
page = AsyncSinglePage [Healthcheck ],
769
792
options = make_request_options (
770
- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
793
+ extra_headers = extra_headers ,
794
+ extra_query = extra_query ,
795
+ extra_body = extra_body ,
796
+ timeout = timeout ,
797
+ query = maybe_transform (
798
+ {
799
+ "page" : page ,
800
+ "per_page" : per_page ,
801
+ },
802
+ healthcheck_list_params .HealthcheckListParams ,
803
+ ),
771
804
),
772
805
model = Healthcheck ,
773
806
)
0 commit comments