appRecoveries method

Future<ListAppRecoveriesResponse> appRecoveries(
  1. String packageName, {
  2. String? versionCode,
  3. String? $fields,
})

List all app recovery action resources associated with a particular package name and app version.

Request parameters:

packageName - Required. Package name of the app for which list of recovery actions is requested.

versionCode - Required. Version code targeted by the list of recovery actions.

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

Completes with a ListAppRecoveriesResponse.

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

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

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