Google Cloud Gke Backup V1 Client - Class RestorePlan (0.6.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 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: 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 array|Google\Protobuf\Internal\MapField

A set of custom labels supplied by user.

↳ 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/*.

Returns
TypeDescription
string

setName

Output only. The full name of the RestorePlan resource.

Format: projects/*/locations/*/restorePlans/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUid

Output only. Server generated global unique identifier of UUID format.

Returns
TypeDescription
string

setUid

Output only. Server generated global unique identifier of UUID format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when this RestorePlan resource was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when this RestorePlan resource was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The timestamp when this RestorePlan resource was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when this RestorePlan resource was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDescription

User specified descriptive string for this RestorePlan.

Returns
TypeDescription
string

setDescription

User specified descriptive string for this RestorePlan.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getRestoreConfig

Required. Configuration of Restores created via this RestorePlan.

Returns
TypeDescription
Google\Cloud\GkeBackup\V1\RestoreConfig|null

hasRestoreConfig

clearRestoreConfig

setRestoreConfig

Required. Configuration of Restores created via this RestorePlan.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\RestoreConfig
Returns
TypeDescription
$this

getLabels

A set of custom labels supplied by user.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

A set of custom labels supplied by user.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.

Returns
TypeDescription
int

setState

Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateReason

Output only. Human-readable description of why RestorePlan is in the current state

Returns
TypeDescription
string

setStateReason

Output only. Human-readable description of why RestorePlan is in the current state

Parameter
NameDescription
var string
Returns
TypeDescription
$this