list method

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

Lists rollouts for a backend.

Request parameters:

parent - Required. The parent backend in the format: projects/{project}/locations/{locationId}/backends/{backendId}. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/backends/\[^/\]+$.

filter - Optional. A filter to narrow down results to a preferred subset. Learn more about filtering in Google's AIP 160 standard.

orderBy - Optional. Hint for how to order the results. Supported fields are name and createTime. To specify descending order, append a desc suffix.

pageSize - Optional. The maximum number of results to return. If not set, the service selects a default.

pageToken - Optional. A page token received from the nextPageToken field in the response. Send that page token to receive the subsequent page.

showDeleted - Optional. If true, the request returns soft-deleted resources that haven't been fully-deleted yet.

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

Completes with a ListRolloutsResponse.

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<ListRolloutsResponse> list(
  core.String parent, {
  core.String? filter,
  core.String? orderBy,
  core.int? pageSize,
  core.String? pageToken,
  core.bool? showDeleted,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (filter != null) 'filter': [filter],
    if (orderBy != null) 'orderBy': [orderBy],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/rollouts';

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