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 createTime in descending order.

Request parameters:

parent - Required. The name of the app resource, which is the parent of the release resources. Format: projects/{project_number}/apps/{app_id} Value must have pattern ^projects/\[^/\]+/apps/\[^/\]+$.

filter - The expression to filter releases listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - releaseNotes.text supports = (can contain a wildcard character (*) at the beginning or end of the string) - createTime supports <, <=, > and >=, and expects an RFC-3339 formatted string Examples: - createTime <= "2021-09-08T00:00:00+04:00" - `releaseNotes.text="fixes" AND createTime

= "2021-09-08T00:00:00.0Z"-releaseNotes.text="v1.0.0-rc"`

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

pageSize - The maximum number of releases to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 releases are returned. Values above 100 are 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>);
}