NAME

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

SYNOPSIS

use Google::Cloud::Gkebackup::V1::Backup;

my $msg = Google::Cloud::Gkebackup::V1::Backup::Backup->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::Backup::Backup->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/gkebackup/v1/backup.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::Backup::Backup

Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The fully qualified name of the Backup. `projects/*/locations/*/backupPlans/*/backups/*`

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

    Type: String

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

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

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

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

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

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

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

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

    Type: Bool

    Output only. This flag indicates whether this Backup resource was created manually by a user or via a schedule in the BackupPlan. A value of True means that the Backup was created manually.

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

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

    Optional. A set of custom labels supplied by user.

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

    Type: Int32

    Optional. Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be "locked" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive).

    Defaults to parent BackupPlan's [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days] setting and may only be increased (either at creation time or in a subsequent update).

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

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

    Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).

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

    Type: Int32

    Optional. The age (in days) after which this Backup will be automatically deleted. Must be an integer value >= 0:

    - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be >= [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and <= 365.

    Once a Backup is created, this value may only be increased.

    Defaults to the parent BackupPlan's [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] value.

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

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

    Output only. The time at which this Backup will be automatically deleted (calculated from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).

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

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

    Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.

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

    Type: Bool

    Output only. If True, all namespaces were included in the Backup.

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

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

    Output only. If set, the list of namespaces that were included in the Backup.

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

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

    Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.

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

    Type: Bool

    Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data] value.

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

    Type: Bool

    Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets] value.

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

    Type: Message (Google::Cloud::Gkebackup::V1::Backup::Backup::ClusterMetadata)

    Output only. Information about the GKE cluster from which this Backup was created.

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

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

    Output only. Current state of the Backup

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

    Type: String

    Output only. Human-readable description of why the backup is in the 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. Completion time of the Backup

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

    Type: Int32

    Output only. The total number of Kubernetes resources included in the Backup.

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

    Type: Int32

    Output only. The total number of volume backups contained in the Backup.

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

    Type: Int64

    Output only. The total size of the Backup in bytes = config backup size + sum(volume backup sizes)

  • $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 backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform backup updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackup`, and systems are expected to put that etag in the request to `UpdateBackup` or `DeleteBackup` to ensure that their change will be applied to the same version of the resource.

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

    Type: String

    Optional. User specified descriptive string for this Backup.

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

    Type: Int32

    Output only. The total number of Kubernetes Pods contained in the Backup.

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

    Type: Int64

    Output only. The size of the config backup in bytes.

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

    Type: Bool

    Output only. If false, Backup will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore.

    Inherited from the parent BackupPlan's [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode] value.

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

    Type: Bool

    Output only. [Output Only] Reserved for future use.

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

    Type: Bool

    Output only. [Output Only] Reserved for future use.

Enum: Backup::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • IN_PROGRESS => 2

  • SUCCEEDED => 3

  • FAILED => 4

  • DELETING => 5

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.