list method

Future<ListExecutionsResponse> list(
  1. String parent, {
  2. String? continue_,
  3. String? fieldSelector,
  4. bool? includeUninitialized,
  5. String? labelSelector,
  6. int? limit,
  7. String? resourceVersion,
  8. bool? watch,
  9. String? $fields,
})

List executions.

Request parameters:

parent - Required. The namespace from which the executions should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID Value must have pattern ^namespaces/\[^/\]+$.

continue_ - Optional. Optional encoded string to continue paging.

fieldSelector - Optional. Not supported by Cloud Run.

includeUninitialized - Optional. Not supported by Cloud Run.

labelSelector - Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.

limit - Optional. The maximum number of the records that should be returned.

resourceVersion - Optional. Not supported by Cloud Run.

watch - Optional. Not supported by Cloud Run.

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

Completes with a ListExecutionsResponse.

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<ListExecutionsResponse> list(
  core.String parent, {
  core.String? continue_,
  core.String? fieldSelector,
  core.bool? includeUninitialized,
  core.String? labelSelector,
  core.int? limit,
  core.String? resourceVersion,
  core.bool? watch,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (continue_ != null) 'continue': [continue_],
    if (fieldSelector != null) 'fieldSelector': [fieldSelector],
    if (includeUninitialized != null)
      'includeUninitialized': ['${includeUninitialized}'],
    if (labelSelector != null) 'labelSelector': [labelSelector],
    if (limit != null) 'limit': ['${limit}'],
    if (resourceVersion != null) 'resourceVersion': [resourceVersion],
    if (watch != null) 'watch': ['${watch}'],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'apis/run.googleapis.com/v1/' +
      core.Uri.encodeFull('$parent') +
      '/executions';

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