deleteBackendStorage method
Removes the specified backend storage resource.
May throw BadRequestException.
May throw GatewayTimeoutException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter appId :
The app ID.
Parameter backendEnvironmentName :
The name of the backend environment.
Parameter resourceName :
The name of the storage resource.
Parameter serviceName :
The name of the storage service.
Implementation
Future<DeleteBackendStorageResponse> deleteBackendStorage({
required String appId,
required String backendEnvironmentName,
required String resourceName,
required ServiceName serviceName,
}) async {
final $payload = <String, dynamic>{
'resourceName': resourceName,
'serviceName': serviceName.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/backend/${Uri.encodeComponent(appId)}/storage/${Uri.encodeComponent(backendEnvironmentName)}/remove',
exceptionFnMap: _exceptionFns,
);
return DeleteBackendStorageResponse.fromJson(response);
}