exportBackupPlanTemplate method

Future<ExportBackupPlanTemplateOutput> exportBackupPlanTemplate({
  1. required String backupPlanId,
})

Returns the backup plan that is specified by the plan ID as a backup template.

May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException. May throw ResourceNotFoundException.

Parameter backupPlanId : Uniquely identifies a backup plan.

Implementation

Future<ExportBackupPlanTemplateOutput> exportBackupPlanTemplate({
  required String backupPlanId,
}) async {
  ArgumentError.checkNotNull(backupPlanId, 'backupPlanId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/backup/plans/${Uri.encodeComponent(backupPlanId)}/toTemplate/',
    exceptionFnMap: _exceptionFns,
  );
  return ExportBackupPlanTemplateOutput.fromJson(response);
}