# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::VolumeBackup (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::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

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #complete_time

    def complete_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the associated underlying volume backup operation completed.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when this VolumeBackup resource was created.

### #disk_size_bytes

    def disk_size_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. The minimum size of the disk to which this VolumeBackup can be restored.

### #etag

    def etag() -> ::String

**Returns**

- (::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.

### #format

    def format() -> ::Google::Cloud::GkeBackup::V1::VolumeBackup::VolumeBackupFormat

**Returns**

- ([::Google::Cloud::GkeBackup::V1::VolumeBackup::VolumeBackupFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeBackup-VolumeBackupFormat)) --- Output only. The format used for the volume backup.

### #name

    def name() -> ::String

**Returns**

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

### #satisfies_pzi

    def satisfies_pzi() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. \[Output Only\] Reserved for future use.

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. \[Output Only\] Reserved for future use.

### #source_pvc

    def source_pvc() -> ::Google::Cloud::GkeBackup::V1::NamespacedName

**Returns**

- ([::Google::Cloud::GkeBackup::V1::NamespacedName](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-NamespacedName)) --- Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.

### #state

    def state() -> ::Google::Cloud::GkeBackup::V1::VolumeBackup::State

**Returns**

- ([::Google::Cloud::GkeBackup::V1::VolumeBackup::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeBackup-State)) --- Output only. The current state of this VolumeBackup.

### #state_message

    def state_message() -> ::String

**Returns**

- (::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.

### #storage_bytes

    def storage_bytes() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #uid

    def uid() -> ::String

**Returns**

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

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when this VolumeBackup resource was last updated.

### #volume_backup_handle

    def volume_backup_handle() -> ::String

**Returns**

- (::String) --- Output only. A storage system-specific opaque handle to the underlying volume backup.