Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class RestoreChannel.
A RestoreChannel imposes constraints on where backups can be restored.
The RestoreChannel should be in the same project and region
as the backups. The backups can only be restored in the destination_project
.
Generated from protobuf message google.cloud.gkebackup.v1.RestoreChannel
Namespace
Google \ Cloud \ GkeBackup \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The fully qualified name of the RestoreChannel. projects/*/locations/*/restoreChannels/*
↳ destination_project
string
Required. Immutable. The project into which the backups will be restored. The format is projects/{projectId}
or projects/{projectNumber}
.
↳ uid
↳ create_time
↳ update_time
↳ labels
↳ description
string
Optional. User specified descriptive string for this RestoreChannel.
↳ etag
string
Output only. etag
is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestoreChannel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag
is returned in the response to GetRestoreChannel
, and systems are expected to put that etag in the request to UpdateRestoreChannel
or DeleteRestoreChannel
to ensure that their change will be applied to the same version of the resource.
↳ destination_project_id
string
Output only. The project_id where backups will be restored. Example Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return the project_id of the destination project.
getName
Identifier. The fully qualified name of the RestoreChannel.
projects/*/locations/*/restoreChannels/*
string
setName
Identifier. The fully qualified name of the RestoreChannel.
projects/*/locations/*/restoreChannels/*
var
string
$this
getDestinationProject
Required. Immutable. The project into which the backups will be restored.
The format is projects/{projectId}
or projects/{projectNumber}
.
string
setDestinationProject
Required. Immutable. The project into which the backups will be restored.
The format is projects/{projectId}
or projects/{projectNumber}
.
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 RestoreChannel was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when this RestoreChannel was created.
$this
getUpdateTime
Output only. The timestamp when this RestoreChannel was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when this RestoreChannel was last updated.
$this
getLabels
Optional. A set of custom labels supplied by user.
setLabels
Optional. A set of custom labels supplied by user.
$this
getDescription
Optional. User specified descriptive string for this RestoreChannel.
string
setDescription
Optional. User specified descriptive string for this RestoreChannel.
var
string
$this
getEtag
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a RestoreChannel from overwriting each
other. It is strongly suggested that systems make use of the 'etag' in the
read-modify-write cycle to perform RestoreChannel updates in order to
avoid race conditions: An etag
is returned in the response to GetRestoreChannel
, and systems are expected to put that etag in the
request to UpdateRestoreChannel
or DeleteRestoreChannel
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 RestoreChannel from overwriting each
other. It is strongly suggested that systems make use of the 'etag' in the
read-modify-write cycle to perform RestoreChannel updates in order to
avoid race conditions: An etag
is returned in the response to GetRestoreChannel
, and systems are expected to put that etag in the
request to UpdateRestoreChannel
or DeleteRestoreChannel
to
ensure that their change will be applied to the same version of the
resource.
var
string
$this
getDestinationProjectId
Output only. The project_id where backups will be restored.
Example Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return the project_id of the destination project.
string
setDestinationProjectId
Output only. The project_id where backups will be restored.
Example Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return the project_id of the destination project.
var
string
$this