cloneBackend method
This operation clones an existing backend.
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 targetEnvironmentName :
The name of the destination backend environment to be created.
Implementation
Future<CloneBackendResponse> cloneBackend({
required String appId,
required String backendEnvironmentName,
required String targetEnvironmentName,
}) async {
final $payload = <String, dynamic>{
'targetEnvironmentName': targetEnvironmentName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/backend/${Uri.encodeComponent(appId)}/environments/${Uri.encodeComponent(backendEnvironmentName)}/clone',
exceptionFnMap: _exceptionFns,
);
return CloneBackendResponse.fromJson(response);
}