download method
Download a release This endpoint is authenticated with the token query param.
To make a request to this endpoint, use the URL returned by ListReleases, in the download_url field on each Release, which contains an expiring token that validates calls using that URL only.
Request parameters:
name
- Required. The name of the release to download Format:
devices/{device}/testerApps/{tester_app}/releases/{release}
Value must have pattern
^devices/\[^/\]+/testerApps/\[^/\]+/releases/\[^/\]+$
.
testerClient
- The tester client which this download request is coming
from
Possible string values are:
- "TESTER_CLIENT_UNSPECIFIED" : Tester client unspecified
- "ANDROID_TESTER_APP" : App Tester native android app
- "WEB" : Web-based tester client (Android & iOS)
- "IOS_SDK" : iOS SDK (new build alerts)
- "ANDROID_SDK" : Android SDK (new build alerts)
token
- Required. A temporary signed token verifying the URL This is set
in DownloadUrlCreator and validated in DownloadReleaseAction using
RequestUrlVerifier
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleApiHttpBody.
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<GoogleApiHttpBody> download(
core.String name, {
core.String? testerClient,
core.String? token,
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if (testerClient != null) 'testerClient': [testerClient],
if (token != null) 'token': [token],
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1alpha/' + core.Uri.encodeFull('$name') + ':download';
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return GoogleApiHttpBody.fromJson(
_response as core.Map<core.String, core.dynamic>);
}