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: 11
Generated from protobuf message google.cloud.gkebackup.v1.RestorePlan
Namespace
Google \ Cloud \ GkeBackup \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. The full name of the RestorePlan resource. Format: |
↳ uid |
string
Output only. Server generated global unique identifier of UUID format. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The timestamp when this RestorePlan resource was created. |
↳ 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: |
↳ 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: - |
↳ restore_config |
Google\Cloud\GkeBackup\V1\RestoreConfig
Required. Configuration of Restores created via this RestorePlan. |
↳ labels |
array|Google\Protobuf\Internal\MapField
A set of custom labels supplied by user. |
↳ etag |
string
Output only. |
getName
Output only. The full name of the RestorePlan resource.
Format: projects/*/locations/*/restorePlans/*
.
Returns | |
---|---|
Type | Description |
string |
setName
Output only. The full name of the RestorePlan resource.
Format: projects/*/locations/*/restorePlans/*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUid
Output only. Server generated global unique identifier of UUID format.
Returns | |
---|---|
Type | Description |
string |
setUid
Output only. Server generated global unique identifier of UUID format.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
Output only. The timestamp when this RestorePlan resource was created.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when this RestorePlan resource was created.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. The timestamp when this RestorePlan resource was last updated.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when this RestorePlan resource was last updated.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
User specified descriptive string for this RestorePlan.
Returns | |
---|---|
Type | Description |
string |
setDescription
User specified descriptive string for this RestorePlan.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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/*
.
Returns | |
---|---|
Type | Description |
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/*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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/*
Returns | |
---|---|
Type | Description |
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/*
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRestoreConfig
Required. Configuration of Restores created via this RestorePlan.
Returns | |
---|---|
Type | Description |
Google\Cloud\GkeBackup\V1\RestoreConfig|null |
hasRestoreConfig
clearRestoreConfig
setRestoreConfig
Required. Configuration of Restores created via this RestorePlan.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\GkeBackup\V1\RestoreConfig
|
Returns | |
---|---|
Type | Description |
$this |
getLabels
A set of custom labels supplied by user.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setLabels
A set of custom labels supplied by user.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$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.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |