listJobsWithHttpInfo method

Future<Response> listJobsWithHttpInfo({
  1. int? page,
  2. int? perPage,
  3. String? status,
})

List validation jobs

List all validation jobs for the authenticated account.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> listJobsWithHttpInfo({ int? page, int? perPage, String? status, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/jobs';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (perPage != null) {
    queryParams.addAll(_queryParams('', 'per_page', perPage));
  }
  if (status != null) {
    queryParams.addAll(_queryParams('', 'status', status));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}