@@ -840,7 +840,11 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory {
840
840
return requestContext ;
841
841
}
842
842
843
- public async listTests ( _options ?: Configuration ) : Promise < RequestContext > {
843
+ public async listTests (
844
+ pageSize ?: string ,
845
+ pageNumber ?: string ,
846
+ _options ?: Configuration
847
+ ) : Promise < RequestContext > {
844
848
const _config = _options || this . configuration ;
845
849
846
850
// Path Params
@@ -854,6 +858,20 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory {
854
858
requestContext . setHeaderParam ( "Accept" , "application/json" ) ;
855
859
requestContext . setHttpConfig ( _config . httpConfig ) ;
856
860
861
+ // Query Params
862
+ if ( pageSize !== undefined ) {
863
+ requestContext . setQueryParam (
864
+ "page_size" ,
865
+ ObjectSerializer . serialize ( pageSize , "string" , "" )
866
+ ) ;
867
+ }
868
+ if ( pageNumber !== undefined ) {
869
+ requestContext . setQueryParam (
870
+ "page_number" ,
871
+ ObjectSerializer . serialize ( pageNumber , "string" , "" )
872
+ ) ;
873
+ }
874
+
857
875
// Apply auth methods
858
876
applySecurityAuthentication ( _config , requestContext , [
859
877
"AuthZ" ,
@@ -3008,6 +3026,19 @@ export interface SyntheticsApiGetTestRequest {
3008
3026
publicId : string ;
3009
3027
}
3010
3028
3029
+ export interface SyntheticsApiListTestsRequest {
3030
+ /**
3031
+ * Used for pagination. The number of tests returned in the page.
3032
+ * @type string
3033
+ */
3034
+ pageSize ?: string ;
3035
+ /**
3036
+ * Used for pagination. Which page you want to retrieve. Starts at zero.
3037
+ * @type string
3038
+ */
3039
+ pageNumber ?: string ;
3040
+ }
3041
+
3011
3042
export interface SyntheticsApiTriggerCITestsRequest {
3012
3043
/**
3013
3044
* Details of the test to trigger.
@@ -3528,9 +3559,14 @@ export class SyntheticsApi {
3528
3559
* @param param The request object
3529
3560
*/
3530
3561
public listTests (
3562
+ param : SyntheticsApiListTestsRequest = { } ,
3531
3563
options ?: Configuration
3532
3564
) : Promise < SyntheticsListTestsResponse > {
3533
- const requestContextPromise = this . requestFactory . listTests ( options ) ;
3565
+ const requestContextPromise = this . requestFactory . listTests (
3566
+ param . pageSize ,
3567
+ param . pageNumber ,
3568
+ options
3569
+ ) ;
3534
3570
return requestContextPromise . then ( ( requestContext ) => {
3535
3571
return this . configuration . httpApi
3536
3572
. send ( requestContext )
0 commit comments