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

Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class Restore.

Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself.

Next id: 18

Generated from protobuf message google.cloud.gkebackup.v1.Restore

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 Restore resource. Format: projects/*/locations/*/restorePlans/*/restores/*

↳ uid string

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

↳ create_time Google\Protobuf\Timestamp

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

↳ update_time Google\Protobuf\Timestamp

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

↳ description string

User specified descriptive string for this Restore.

↳ backup string

Required. Immutable. A reference to the Backup used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's backup_plan. Format: projects/*/locations/*/backupPlans/*/backups/*.

↳ cluster string

Output only. The target cluster into which this Restore will restore data. Valid formats: - projects/*/locations/*/clusters/* - projects/*/zones/*/clusters/* Inherited from parent RestorePlan's cluster value.

↳ restore_config Google\Cloud\GkeBackup\V1\RestoreConfig

Output only. Configuration of the Restore. Inherited from parent RestorePlan's restore_config.

↳ labels array|Google\Protobuf\Internal\MapField

A set of custom labels supplied by user.

↳ state int

Output only. The current state of the Restore.

↳ state_reason string

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

↳ complete_time Google\Protobuf\Timestamp

Output only. Timestamp of when the restore operation completed.

↳ resources_restored_count int

Output only. Number of resources restored during the restore execution.

↳ resources_excluded_count int

Output only. Number of resources excluded during the restore execution.

↳ resources_failed_count int

Output only. Number of resources that failed to be restored during the restore execution.

↳ volumes_restored_count int

Output only. Number of volumes restored during the restore execution.

↳ 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 GetRestore, and systems are expected to put that etag in the request to UpdateRestore or DeleteRestore to ensure that their change will be applied to the same version of the resource.

getName

Output only. The full name of the Restore resource.

Format: projects/*/locations/*/restorePlans/*/restores/*

Returns
TypeDescription
string

setName

Output only. The full name of the Restore resource.

Format: projects/*/locations/*/restorePlans/*/restores/*

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

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

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

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

getDescription

User specified descriptive string for this Restore.

Returns
TypeDescription
string

setDescription

User specified descriptive string for this Restore.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBackup

Required. Immutable. A reference to the Backup used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's backup_plan. Format: projects/*/locations/*/backupPlans/*/backups/*.

Returns
TypeDescription
string

setBackup

Required. Immutable. A reference to the Backup used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's backup_plan. Format: projects/*/locations/*/backupPlans/*/backups/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCluster

Output only. The target cluster into which this Restore will restore data.

Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/* Inherited from parent RestorePlan's cluster value.
Returns
TypeDescription
string

setCluster

Output only. The target cluster into which this Restore will restore data.

Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/* Inherited from parent RestorePlan's cluster value.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRestoreConfig

Output only. Configuration of the Restore. Inherited from parent RestorePlan's restore_config.

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

hasRestoreConfig

clearRestoreConfig

setRestoreConfig

Output only. Configuration of the Restore. Inherited from parent RestorePlan's restore_config.

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

getState

Output only. The current state of the Restore.

Returns
TypeDescription
int

setState

Output only. The current state of the Restore.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateReason

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

Returns
TypeDescription
string

setStateReason

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCompleteTime

Output only. Timestamp of when the restore operation completed.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCompleteTime

clearCompleteTime

setCompleteTime

Output only. Timestamp of when the restore operation completed.

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

getResourcesRestoredCount

Output only. Number of resources restored during the restore execution.

Returns
TypeDescription
int

setResourcesRestoredCount

Output only. Number of resources restored during the restore execution.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getResourcesExcludedCount

Output only. Number of resources excluded during the restore execution.

Returns
TypeDescription
int

setResourcesExcludedCount

Output only. Number of resources excluded during the restore execution.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getResourcesFailedCount

Output only. Number of resources that failed to be restored during the restore execution.

Returns
TypeDescription
int

setResourcesFailedCount

Output only. Number of resources that failed to be restored during the restore execution.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVolumesRestoredCount

Output only. Number of volumes restored during the restore execution.

Returns
TypeDescription
int

setVolumesRestoredCount

Output only. Number of volumes restored during the restore execution.

Parameter
NameDescription
var int
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 GetRestore, and systems are expected to put that etag in the request to UpdateRestore or DeleteRestore 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 GetRestore, and systems are expected to put that etag in the request to UpdateRestore or DeleteRestore to ensure that their change will be applied to the same version of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this