Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class RestorePlan.
The configuration of a potential series of Restore operations to be performed against Backups belong to a particular BackupPlan.
Next id: 13
Generated from protobuf message google.cloud.gkebackup.v1.RestorePlan
Namespace
Google \ Cloud \ GkeBackup \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The full name of the RestorePlan resource. Format: projects/*/locations/*/restorePlans/*
.
↳ uid
↳ create_time
↳ update_time
Google\Protobuf\Timestamp
Output only. The timestamp when this RestorePlan resource was last updated.
↳ description
string
User specified descriptive string for this RestorePlan.
↳ backup_plan
string
Required. Immutable. A reference to the BackupPlan
from which Backups may be used as the source for Restores created via this RestorePlan. Format: projects/*/locations/*/backupPlans/*
.
↳ cluster
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/*
↳ restore_config
Google\Cloud\GkeBackup\V1\RestoreConfig
Required. Configuration of Restores created via this RestorePlan.
↳ labels
↳ etag
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.
↳ state
int
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
↳ state_reason
string
Output only. Human-readable description of why RestorePlan is in the current state
getName
Output only. The full name of the RestorePlan resource.
Format: projects/*/locations/*/restorePlans/*
.
string
setName
Output only. The full name of the RestorePlan resource.
Format: projects/*/locations/*/restorePlans/*
.
var
string
$this
getUid
Output only. Server generated global unique identifier of UUID format.
string
setUid
Output only. Server generated global unique identifier of UUID format.
var
string
$this
getCreateTime
Output only. The timestamp when this RestorePlan resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when this RestorePlan resource was created.
$this
getUpdateTime
Output only. The timestamp when this RestorePlan resource was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when this RestorePlan resource was last updated.
$this
getDescription
User specified descriptive string for this RestorePlan.
string
setDescription
User specified descriptive string for this RestorePlan.
var
string
$this
getBackupPlan
Required. Immutable. A reference to the BackupPlan
from which Backups may
be used as the source for Restores created via this RestorePlan. Format: projects/*/locations/*/backupPlans/*
.
string
setBackupPlan
Required. Immutable. A reference to the BackupPlan
from which Backups may
be used as the source for Restores created via this RestorePlan. Format: projects/*/locations/*/backupPlans/*
.
var
string
$this
getCluster
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/*
string
setCluster
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/*
var
string
$this
getRestoreConfig
Required. Configuration of Restores created via this RestorePlan.
hasRestoreConfig
clearRestoreConfig
setRestoreConfig
Required. Configuration of Restores created via this RestorePlan.
$this
getLabels
A set of custom labels supplied by user.
setLabels
A set of custom labels supplied by user.
$this
getEtag
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.
string
setEtag
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.
var
string
$this
getState
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
int
setState
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
var
int
$this
getStateReason
Output only. Human-readable description of why RestorePlan is in the
current state
string
setStateReason
Output only. Human-readable description of why RestorePlan is in the
current state
var
string
$this