# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::VolumeRestore (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::VolumeRestore.

Represents the operation of restoring a volume from a VolumeBackup.

## 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 restoration 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 VolumeRestore resource was created.

### #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 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.

### #name

    def name() -> ::String

**Returns**

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

### #state

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

**Returns**

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

### #state_message

    def state_message() -> ::String

**Returns**

- (::String) --- Output only. A human readable message explaining why the VolumeRestore is in its current state.

### #target_pvc

    def target_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. The reference to the target Kubernetes PVC to be restored.

### #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 VolumeRestore resource was last updated.

### #volume_backup

    def volume_backup() -> ::String

**Returns**

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

### #volume_handle

    def volume_handle() -> ::String

**Returns**

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

### #volume_type

    def volume_type() -> ::Google::Cloud::GkeBackup::V1::VolumeRestore::VolumeType

**Returns**

- ([::Google::Cloud::GkeBackup::V1::VolumeRestore::VolumeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-VolumeRestore-VolumeType)) --- Output only. The type of volume provisioned