getApkDetails method
Future<GetApkDetailsResponse>
getApkDetails(
- FileReference request, {
- String? bundleLocation_gcsPath,
- String? $fields,
Gets the details of an Android application APK.
request
- The metadata request object.
Request parameters:
bundleLocation_gcsPath
- A path to a file in Google Cloud Storage.
Example: gs://build-app-1414623860166/app%40debug-unaligned.apk These
paths are expected to be url encoded (percent encoding)
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GetApkDetailsResponse.
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<GetApkDetailsResponse> getApkDetails(
FileReference request, {
core.String? bundleLocation_gcsPath,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if (bundleLocation_gcsPath != null)
'bundleLocation.gcsPath': [bundleLocation_gcsPath],
if ($fields != null) 'fields': [$fields],
};
const url_ = 'v1/applicationDetailService/getApkDetails';
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return GetApkDetailsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}