NAME

Google::Cloud::Gkebackup::V1::Restore - Compiled Protocol Buffers messages for google/cloud/gkebackup/v1/restore.proto

SYNOPSIS

use Google::Cloud::Gkebackup::V1::Restore;

my $msg = Google::Cloud::Gkebackup::V1::Restore::Restore->new({
    name => $name,
    uid => $uid,
    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::Gkebackup::V1::Restore::Restore->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/gkebackup/v1/restore.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::Gkebackup::V1::Restore::Restore

Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`

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

    Type: String

    Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp when this Restore resource was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp when this Restore resource was last updated.

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

    Type: String

    Optional. User specified descriptive string for this Restore.

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

    Type: String

    Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.

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

    Type: String

    Output only. The target cluster into which this Restore will restore data. Valid formats:

    - `projects/*/locations/*/clusters/*`
    - `projects/*/zones/*/clusters/*`

    Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig)

    Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::Restore::LabelsEntry)

    A set of custom labels supplied by user.

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

    Type: Enum (Google::Cloud::Gkebackup::V1::Restore::State)

    Output only. The current state of the Restore.

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

    Type: String

    Output only. Human-readable description of why the Restore is in its current state. This field is only meant for human readability and should not be used programmatically as this field is not guaranteed to be consistent.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp of when the restore operation completed.

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

    Type: Int32

    Output only. Number of resources restored during the restore execution.

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

    Type: Int32

    Output only. Number of resources excluded during the restore execution.

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

    Type: Int32

    Output only. Number of resources that failed to be restored during the restore execution.

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

    Type: Int32

    Output only. Number of volumes restored during the restore execution.

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

    Type: String

    Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::Restore::Filter)

    Optional. Immutable. Filters resources for `Restore`. If not specified, the scope of the restore will remain the same as defined in the `RestorePlan`. If this is specified and no resources are matched by the `inclusion_filters` or everything is excluded by the `exclusion_filters`, nothing will be restored. This filter can only be specified if the value of [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode] is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or `MERGE_REPLACE_ON_CONFLICT`.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::VolumeDataRestorePolicyOverride)

    Optional. Immutable. Overrides the volume data restore policies selected in the Restore Config for override-scoped resources.

Enum: Restore::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • IN_PROGRESS => 2

  • SUCCEEDED => 3

  • FAILED => 4

  • DELETING => 5

  • VALIDATING => 6

Google::Cloud::Gkebackup::V1::Restore::RestoreConfig

Configuration of a restore.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Gkebackup::V1::RestoreConfig::VolumeDataRestorePolicy)

    Optional. Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).

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

    Type: Enum (Google::Cloud::Gkebackup::V1::RestoreConfig::ClusterResourceConflictPolicy)

    Optional. Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope] is not empty.

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

    Type: Enum (Google::Cloud::Gkebackup::V1::RestoreConfig::NamespacedResourceRestoreMode)

    Optional. Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::ClusterResourceRestoreScope)

    Optional. Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored.

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

    Type: Bool

    Restore all namespaced resources in the Backup if set to "True". Specifying this field to "False" is an error.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Common::Namespaces)

    A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Common::NamespacedNames)

    A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.

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

    Type: Bool

    Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Common::Namespaces)

    A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::SubstitutionRule)

    Optional. A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::TransformationRule)

    Optional. A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::VolumeDataRestorePolicyBinding)

    Optional. A table that binds volumes by their scope to a restore policy. Bindings must have a unique scope. Any volumes not scoped in the bindings are subject to the policy defined in volume_data_restore_policy.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::RestoreOrder)

    Optional. RestoreOrder contains custom ordering to use on a Restore.

Enum: RestoreConfig::VolumeDataRestorePolicy

  • VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED => 0

  • RESTORE_VOLUME_DATA_FROM_BACKUP => 1

  • REUSE_VOLUME_HANDLE_FROM_BACKUP => 2

  • NO_VOLUME_DATA_RESTORATION => 3

Enum: RestoreConfig::ClusterResourceConflictPolicy

  • CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED => 0

  • USE_EXISTING_VERSION => 1

  • USE_BACKUP_VERSION => 2

Enum: RestoreConfig::NamespacedResourceRestoreMode

  • NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED => 0

  • DELETE_AND_RESTORE => 1

  • FAIL_ON_CONFLICT => 2

  • MERGE_SKIP_ON_CONFLICT => 3

  • MERGE_REPLACE_VOLUME_ON_CONFLICT => 4

  • MERGE_REPLACE_ON_CONFLICT => 5

Google::Cloud::Gkebackup::V1::Restore::ResourceSelector

Defines a selector to identify a single or a group of resources. Conditions in the selector are optional, but at least one field should be set to a non-empty value. If a condition is not specified, no restrictions will be applied on that dimension. If more than one condition is specified, a resource will be selected if and only if all conditions are met.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::RestoreConfig::GroupKind)

    Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected.

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

    Type: String

    Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected.

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

    Type: String

    Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource itself will be restored if and only if any resources within the namespace are restored.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Restore::ResourceSelector::LabelsEntry)

    Optional. Selects resources using Kubernetes [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match.

Google::Cloud::Gkebackup::V1::Restore::VolumeDataRestorePolicyOverride

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Gkebackup::V1::Restore::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.