NAME

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

SYNOPSIS

use Google::Cloud::Gkebackup::V1::Volume;

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

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

DESCRIPTION

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

Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.

  • $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 VolumeBackup resource was created.

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

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

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

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

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

    Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.

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

    Type: String

    Output only. A storage system-specific opaque handle to the underlying volume backup.

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

    Type: Enum (Google::Cloud::Gkebackup::V1::VolumeBackup::VolumeBackupFormat)

    Output only. The format used for the volume backup.

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

    Type: Int64

    Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.

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

    Type: Int64

    Output only. The minimum size of the disk to which this VolumeBackup can be restored.

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

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

    Output only. The timestamp when the associated underlying volume backup operation completed.

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

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

    Output only. The current state of this VolumeBackup.

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

    Type: String

    Output only. A human readable message explaining why the VolumeBackup is in its current state. This field is only meant for human consumption and should not be used programmatically as this field is not guaranteed to be consistent.

  • $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 volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.

  • $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: VolumeBackup::VolumeBackupFormat

  • VOLUME_BACKUP_FORMAT_UNSPECIFIED => 0

  • GCE_PERSISTENT_DISK => 1

Enum: VolumeBackup::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • SNAPSHOTTING => 2

  • UPLOADING => 3

  • SUCCEEDED => 4

  • FAILED => 5

  • DELETING => 6

  • CLEANED_UP => 7

Google::Cloud::Gkebackup::V1::Volume::VolumeRestore

Represents the operation of restoring a volume from a VolumeBackup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Full name of the VolumeRestore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`

  • $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 VolumeRestore resource was created.

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

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

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

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

    Type: String

    Output only. The full name of the VolumeBackup from which the volume will be restored. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.

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

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

    Output only. The reference to the target Kubernetes PVC to be restored.

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

    Type: String

    Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

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

    Type: Enum (Google::Cloud::Gkebackup::V1::VolumeRestore::VolumeType)

    Output only. The type of volume provisioned

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

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

    Output only. The timestamp when the associated underlying volume restoration completed.

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

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

    Output only. The current state of this VolumeRestore.

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

    Type: String

    Output only. A human readable message explaining why the VolumeRestore is in its current state.

  • $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 volume restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

Enum: VolumeRestore::VolumeType

  • VOLUME_TYPE_UNSPECIFIED => 0

  • GCE_PERSISTENT_DISK => 1

Enum: VolumeRestore::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • RESTORING => 2

  • SUCCEEDED => 3

  • FAILED => 4

  • DELETING => 5

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.