File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
src/resources/healthchecks
tests/api-resources/healthchecks Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ export class Healthchecks extends APIResource {
44
44
params : HealthcheckListParams ,
45
45
options ?: Core . RequestOptions ,
46
46
) : Core . PagePromise < HealthchecksSinglePage , Healthcheck > {
47
- const { zone_id } = params ;
48
- return this . _client . getAPIList ( `/zones/${ zone_id } /healthchecks` , HealthchecksSinglePage , options ) ;
47
+ const { zone_id, ...query } = params ;
48
+ return this . _client . getAPIList ( `/zones/${ zone_id } /healthchecks` , HealthchecksSinglePage , {
49
+ query,
50
+ ...options ,
51
+ } ) ;
49
52
}
50
53
51
54
/**
@@ -528,9 +531,19 @@ export interface HealthcheckUpdateParams {
528
531
529
532
export interface HealthcheckListParams {
530
533
/**
531
- * Identifier
534
+ * Path param: Identifier
532
535
*/
533
536
zone_id : string ;
537
+
538
+ /**
539
+ * Query param: Page number of paginated results.
540
+ */
541
+ page ?: unknown ;
542
+
543
+ /**
544
+ * Query param: Maximum number of results per page. Must be a multiple of 5.
545
+ */
546
+ per_page ?: unknown ;
534
547
}
535
548
536
549
export interface HealthcheckDeleteParams {
Original file line number Diff line number Diff line change @@ -114,7 +114,11 @@ describe('resource healthchecks', () => {
114
114
115
115
// skipped: tests are disabled for the time being
116
116
test . skip ( 'list: required and optional params' , async ( ) => {
117
- const response = await cloudflare . healthchecks . list ( { zone_id : '023e105f4ecef8ad9ca31a8372d0c353' } ) ;
117
+ const response = await cloudflare . healthchecks . list ( {
118
+ zone_id : '023e105f4ecef8ad9ca31a8372d0c353' ,
119
+ page : { } ,
120
+ per_page : { } ,
121
+ } ) ;
118
122
} ) ;
119
123
120
124
// skipped: tests are disabled for the time being
You can’t perform that action at this time.
0 commit comments