delete method
Removes a ShaCertificate from the specified AndroidApp.
Request parameters:
name
- The resource name of the ShaCertificate to remove from the parent
AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID
/sha/SHA_HASH Refer to the ShaCertificate
[name
](../projects.androidApps.sha#ShaCertificate.FIELDS.name) field
for details about PROJECT_IDENTIFIER, APP_ID, and SHA_HASH values. You can
obtain the full resource name of the ShaCertificate
from the response of
[ListShaCertificates
](../projects.androidApps.sha/list) or the
original [CreateShaCertificate
](../projects.androidApps.sha/create).
Value must have pattern
^projects/\[^/\]+/androidApps/\[^/\]+/sha/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Empty.
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<Empty> delete(
core.String name, {
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1beta1/' + core.Uri.encodeFull('$name');
final _response = await _requester.request(
_url,
'DELETE',
queryParams: _queryParams,
);
return Empty.fromJson(_response as core.Map<core.String, core.dynamic>);
}