getBackupPlanFromTemplate method
Future<GetBackupPlanFromTemplateOutput>
getBackupPlanFromTemplate({
- required String backupPlanTemplateId,
Returns the template specified by its templateId
as a backup
plan.
May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException. May throw ResourceNotFoundException.
Parameter backupPlanTemplateId
:
Uniquely identifies a stored backup plan template.
Implementation
Future<GetBackupPlanFromTemplateOutput> getBackupPlanFromTemplate({
required String backupPlanTemplateId,
}) async {
ArgumentError.checkNotNull(backupPlanTemplateId, 'backupPlanTemplateId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/backup/template/plans/${Uri.encodeComponent(backupPlanTemplateId)}/toPlan',
exceptionFnMap: _exceptionFns,
);
return GetBackupPlanFromTemplateOutput.fromJson(response);
}