NAME
Google::Cloud::Backupdr::V1::RestoreTemplate - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/restore_template.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1::RestoreTemplate;
my $msg = Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate->new({
name => $name,
description => $description,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/restore_template.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate
A `RestoreTemplate` encapsulates DR readiness configurations for validating backups.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the RestoreTemplate.
$msg->description()/$msg->description($value)Type:
StringOptional. User-provided description of the restore template.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the restore template was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the restore template was last updated.
$msg->resource_type()/$msg->resource_type($value)Type:
StringRequired. Immutable. The specific type of the workload being restored. The format is "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance".
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate::LabelsEntry)Optional. User-defined labels.
$msg->backup_selection_config()/$msg->backup_selection_config($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplateCommon::BackupSelectionConfig)Required. Backup selection configuration.
$msg->pre_restore_config()/$msg->pre_restore_config($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplateCommon::PreRestoreConfig)Optional. Pre-restore configuration.
$msg->post_restore_config()/$msg->post_restore_config($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplateCommon::PostRestoreConfig)Optional. Post-restore configuration.
$msg->verification_config()/$msg->verification_config($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplateCommon::VerificationConfig)Optional. Verification configuration.
$msg->restore_properties()/$msg->restore_properties($value)Type:
Message(Google::Protobuf::Struct::Struct)Required. Defines target environments where the resource will be restored.
The target resource name in `restore_properties` supports the `{EXECUTION_ID}` token to dynamically generate unique resource names for each execution. During restore execution, every occurrence of `{EXECUTION_ID}` in the target resource name is replaced with the 8-character `RestoreTemplateExecution` ID (for example, `"restored-resource-{EXECUTION_ID}"` or `"restored-{EXECUTION_ID}-resource"` resolves to `"restored-resource-5d437b06"` or `"restored-5d437b06-resource"`).
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Backupdr::V1::RestoreTemplate::State)Output only. The state of the restore template.
$msg->execution_summary()/$msg->execution_summary($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplate::ExecutionSummary)Output only. Summary of the last execution.
$msg->etag()/$msg->etag($value)Type:
StringOptional. Etag for concurrency control.
Enum: RestoreTemplate::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2UPDATING=>3DELETING=>4
Google::Cloud::Backupdr::V1::RestoreTemplate::ExecutionSummary
Summary of the last execution.
Inherits from Protobuf::Message.
Accessors
$msg->last_execution()/$msg->last_execution($value)Type:
StringOutput only. The resource name of the last execution. Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
$msg->last_execution_state()/$msg->last_execution_state($value)Type:
Enum(Google::Cloud::Backupdr::V1::RestoreTemplateExecution::ExecutionState)Output only. The state of the last execution.
Google::Cloud::Backupdr::V1::RestoreTemplate::CreateRestoreTemplateRequest
Request message for creating a RestoreTemplate instance.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
$msg->restore_template_id()/$msg->restore_template_id($value)Type:
StringRequired. The ID of the restore template to create. The ID must be unique for the specified project and location.
$msg->restore_template()/$msg->restore_template($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate)Required. A RestoreTemplate resource.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Backupdr::V1::RestoreTemplate::GetRestoreTemplateRequest
Request message for getting a RestoreTemplate instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the restore template to retrieve. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}'
Google::Cloud::Backupdr::V1::RestoreTemplate::UpdateRestoreTemplateRequest
Request message for updating a RestoreTemplate instance.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update. Field mask is used to specify the fields to be overwritten in the RestoreTemplate resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.
$msg->restore_template()/$msg->restore_template($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate)Required. The restore template to update.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. Only validate the request, but do not perform mutations. The default is 'false'.
Google::Cloud::Backupdr::V1::RestoreTemplate::DeleteRestoreTemplateRequest
Request message for deleting a RestoreTemplate instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the restore template to delete. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}'
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
$msg->force()/$msg->force($value)Type:
BoolOptional. If set to true, any child RestoreTemplateExecutions will also be deleted. If false and the RestoreTemplate has any child executions, the request will fail.
Google::Cloud::Backupdr::V1::RestoreTemplate::RunRestoreTemplateRequest
Request message for running a RestoreTemplate.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the restore template to run. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}'
$msg->backup()/$msg->backup($value)Type:
StringOptional. The resource name of the Backup to restore from. If not specified, the latest backup matching the backup selection configuration in the RestoreTemplate will be used. Format: 'projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}'
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Backupdr::V1::RestoreTemplate::RunRestoreTemplateResponse
Response message for RunRestoreTemplate.
Inherits from Protobuf::Message.
Accessors
$msg->restore_template_execution()/$msg->restore_template_execution($value)Type:
StringOutput only. The resource name of the initiated RestoreTemplateExecution. Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
Google::Cloud::Backupdr::V1::RestoreTemplate::ListRestoreTemplatesRequest
Request message for listing RestoreTemplates.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which to list the restore templates. Format: `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListRestoreTemplates` call.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Field match expression used to filter the results.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Field by which to sort the results.
Google::Cloud::Backupdr::V1::RestoreTemplate::ListRestoreTemplatesResponse
Response message for listing RestoreTemplates.
Inherits from Protobuf::Message.
Accessors
$msg->restore_templates()/$msg->restore_templates($value)Type:
Message(Google::Cloud::Backupdr::V1::RestoreTemplate::RestoreTemplate)The list of RestoreTemplates.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token which may be sent as `page_token` in a subsequent `ListRestoreTemplates` call.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1::RestoreTemplate::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.