NAME

Google::Cloud::Backupdr::V1beta::RestoreTemplate - Compiled Protocol Buffers messages for google/cloud/backupdr/v1beta/restore_template.proto

SYNOPSIS

use Google::Cloud::Backupdr::V1beta::RestoreTemplate;

my $msg = Google::Cloud::Backupdr::V1beta::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::V1beta::RestoreTemplate::RestoreTemplate->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1beta/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::V1beta::RestoreTemplate::RestoreTemplate

A `RestoreTemplate` encapsulates DR readiness configurations for validating backups.

Inherits from Protobuf::Message.

Accessors

Enum: RestoreTemplate::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • UPDATING => 3

  • DELETING => 4

Google::Cloud::Backupdr::V1beta::RestoreTemplate::ExecutionSummary

Summary of the last execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->last_execution() / $msg->last_execution($value)

    Type: String

    Output 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::V1beta::RestoreTemplateExecution::ExecutionState)

    Output only. The state of the last execution.

Google::Cloud::Backupdr::V1beta::RestoreTemplate::CreateRestoreTemplateRequest

Request message for creating a RestoreTemplate instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.

  • $msg->restore_template_id() / $msg->restore_template_id($value)

    Type: String

    Required. 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::V1beta::RestoreTemplate::RestoreTemplate)

    Required. A RestoreTemplate resource.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. 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::V1beta::RestoreTemplate::GetRestoreTemplateRequest

Request message for getting a RestoreTemplate instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the restore template to retrieve. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}'

Google::Cloud::Backupdr::V1beta::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::V1beta::RestoreTemplate::RestoreTemplate)

    Required. The restore template to update.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. 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: Bool

    Optional. Only validate the request, but do not perform mutations. The default is 'false'.

Google::Cloud::Backupdr::V1beta::RestoreTemplate::DeleteRestoreTemplateRequest

Request message for deleting a RestoreTemplate instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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: String

    Optional. 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: Bool

    Optional. 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::V1beta::RestoreTemplate::RunRestoreTemplateRequest

Request message for running a RestoreTemplate.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the restore template to run. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}'

  • $msg->backup() / $msg->backup($value)

    Type: String

    Optional. 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: String

    Optional. 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::V1beta::RestoreTemplate::RunRestoreTemplateResponse

Response message for RunRestoreTemplate.

Inherits from Protobuf::Message.

Accessors

  • $msg->restore_template_execution() / $msg->restore_template_execution($value)

    Type: String

    Output only. The resource name of the initiated RestoreTemplateExecution. Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`

Google::Cloud::Backupdr::V1beta::RestoreTemplate::ListRestoreTemplatesRequest

Request message for listing RestoreTemplates.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location from which to list the restore templates. Format: `projects/{project}/locations/{location}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of items to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListRestoreTemplates` call.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Field match expression used to filter the results.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. Field by which to sort the results.

Google::Cloud::Backupdr::V1beta::RestoreTemplate::ListRestoreTemplatesResponse

Response message for listing RestoreTemplates.

Inherits from Protobuf::Message.

Accessors

  • $msg->restore_templates() / $msg->restore_templates($value)

    Type: Message (Google::Cloud::Backupdr::V1beta::RestoreTemplate::RestoreTemplate)

    The list of RestoreTemplates.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token which may be sent as `page_token` in a subsequent `ListRestoreTemplates` call.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1beta::RestoreTemplate::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.