list method

Future<GoogleCloudRunV2ListExecutionsResponse> list(
  1. String parent, {
  2. int? pageSize,
  3. String? pageToken,
  4. bool? showDeleted,
  5. String? $fields,
})

Lists Executions from a Job.

Results are sorted by creation time, descending.

Request parameters:

parent - Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/jobs/\[^/\]+$.

pageSize - Maximum number of Executions to return in this call.

pageToken - A page token received from a previous call to ListExecutions. All other parameters must match.

showDeleted - If true, returns deleted (but unexpired) resources along with active ones.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudRunV2ListExecutionsResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<GoogleCloudRunV2ListExecutionsResponse> list(
  core.String parent, {
  core.int? pageSize,
  core.String? pageToken,
  core.bool? showDeleted,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/executions';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudRunV2ListExecutionsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}