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

The configuration of a potential series of Restore operations to be performed
against Backups belong to a particular BackupPlan.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_plan

    def backup_plan() -> ::String

**Returns**

- (::String) --- Required. Immutable. A reference to the [BackupPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan "Google::Cloud::GkeBackup::V1::BackupPlan (class)") from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.

### #backup_plan=

    def backup_plan=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. A reference to the [BackupPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan "Google::Cloud::GkeBackup::V1::BackupPlan (class)") from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
**Returns**

- (::String) --- Required. Immutable. A reference to the [BackupPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan "Google::Cloud::GkeBackup::V1::BackupPlan (class)") from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.

### #cluster

    def cluster() -> ::String

**Returns**

- (::String) --- Required. Immutable. The target cluster into which Restores created via
  this RestorePlan will restore data. NOTE: the cluster's region must be the
  same as the RestorePlan. Valid formats:

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

### #cluster=

    def cluster=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Required. Immutable. The target cluster into which Restores created via
  this RestorePlan will restore data. NOTE: the cluster's region must be the
  same as the RestorePlan. Valid formats:
  - `projects/*/locations/*/clusters/*`
  - `projects/*/zones/*/clusters/*`
**Returns**

- (::String) --- Required. Immutable. The target cluster into which Restores created via
  this RestorePlan will restore data. NOTE: the cluster's region must be the
  same as the RestorePlan. Valid formats:

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

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

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. User specified descriptive string for this RestorePlan.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. User specified descriptive string for this RestorePlan.
**Returns**

- (::String) --- Optional. User specified descriptive string for this RestorePlan.

### #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 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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. A set of custom labels supplied by user.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. A set of custom labels supplied by user.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. A set of custom labels supplied by user.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.

### #restore_channel

    def restore_channel() -> ::String

**Returns**

- (::String) --- Output only. The fully qualified name of the RestoreChannel to be used to create a RestorePlan. This field is set only if the `backup_plan` is in a different project than the RestorePlan. Format: `projects/*/locations/*/restoreChannels/*`

### #restore_config

    def restore_config() -> ::Google::Cloud::GkeBackup::V1::RestoreConfig

**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig)) --- Required. Configuration of Restores created via this RestorePlan.

### #restore_config=

    def restore_config=(value) -> ::Google::Cloud::GkeBackup::V1::RestoreConfig

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::RestoreConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig)) --- Required. Configuration of Restores created via this RestorePlan.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig)) --- Required. Configuration of Restores created via this RestorePlan.

### #state

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

**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestorePlan::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestorePlan-State)) --- Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.

### #state_reason

    def state_reason() -> ::String

**Returns**

- (::String) --- Output only. Human-readable description of why RestorePlan 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.

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