list method

Future<ListDeviceTierConfigsResponse> list(
  1. String packageName, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? $fields,
})

Returns created device tier configs, ordered by descending creation time.

Request parameters:

packageName - Package name of the app.

pageSize - The maximum number of device tier configs to return. The service may return fewer than this value. If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending creation time.

pageToken - A page token, received from a previous ListDeviceTierConfigs call. Provide this to retrieve the subsequent page.

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

Completes with a ListDeviceTierConfigsResponse.

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

  final url_ = 'androidpublisher/v3/applications/' +
      commons.escapeVariable('$packageName') +
      '/deviceTierConfigs';

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