batchDelete method
Future<GoogleProtobufEmpty>
batchDelete(
- GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest request,
- String parent, {
- String? $fields,
Deletes releases.
A maximum of 100 releases can be deleted per request.
request
- The metadata request object.
Request parameters:
parent
- Required. The parent Firebase app, which owns the releases.
Format: projects/{project_number}/apps/{app}
Value must have pattern ^projects/\[^/\]+/apps/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleProtobufEmpty.
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<GoogleProtobufEmpty> batchDelete(
GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest request,
core.String parent, {
core.String? $fields,
}) async {
final _body = convert.json.encode(request);
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url =
'v1/' + core.Uri.encodeFull('$parent') + '/releases:batchDelete';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleProtobufEmpty.fromJson(
_response as core.Map<core.String, core.dynamic>);
}