list method

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

Lists releases.

By default sorts by create_time in descending order.

Request parameters:

parent - Required. The parent Firebase app, which owns the releases. Format: projects/{project_number}/apps/{app} Value must have pattern ^projects/\[^/\]+/apps/\[^/\]+$.

filter - The expression that filters releases listed in the response. Supported fields: - release_notes.text supports = (can contain a wildcard * character at the beginning or end of the string) - create_time supports <, <=, > and >=, and expects an RFC-3339 formatted string Examples: - create_time <= "2021-09-08T00:00:00+04:00"

  • release_notes.text="bug fixes" AND create_time >= "2021-09-08T00:00:00.0Z" - release_notes.text="*v1.0.0-rc*"

orderBy - The fields used to order releases. Supported fields: - create_time To specify descending order for a field, append a "desc" suffix, for example, create_time desc. If this parameter is not set, releases will be ordered by create_time in descending order.

pageSize - The maximum number of releases to return. The service may return fewer than this value. If unspecified, at most 25 releases will be returned. The maximum value is 100; values above 100 will be coerced to 100.

pageToken - A page token, received from a previous ListReleases call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListReleases must match the call that provided the page token.

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

Completes with a GoogleFirebaseAppdistroV1ListReleasesResponse.

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<GoogleFirebaseAppdistroV1ListReleasesResponse> list(
  core.String parent, {
  core.String? filter,
  core.String? orderBy,
  core.int? pageSize,
  core.String? pageToken,
  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 ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1/' + core.Uri.encodeFull('$parent') + '/releases';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return GoogleFirebaseAppdistroV1ListReleasesResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}