Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class Backup.
Message describing a Backup object.
Generated from protobuf message google.cloud.backupdr.v1.Backup
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. Name of the backup to create. It must have the format "projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"
. {backup}
cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
↳ description
string
Output only. The description of the Backup instance (2048 characters or less).
↳ create_time
↳ update_time
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Resource labels to represent user provided metadata. No labels currently defined.
↳ enforced_retention_end_time
↳ expire_time
↳ consistency_time
Google\Protobuf\Timestamp
Output only. The point in time when this backup was captured from the source.
↳ etag
string
Optional. Server specified ETag to prevent updates from overwriting each other.
↳ state
int
Output only. The Backup resource instance state.
↳ service_locks
array< BackupLock
>
Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
↳ backup_appliance_locks
↳ compute_instance_backup_properties
↳ backup_appliance_backup_properties
↳ backup_type
int
Output only. Type of the backup, unspecified, scheduled or ondemand.
↳ gcp_backup_plan_info
↳ resource_size_bytes
int|string
Output only. source resource size in bytes at the time of the backup.
getName
Output only. Identifier. Name of the backup to create. It must have the
format "projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"
.
{backup}
cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
string
setName
Output only. Identifier. Name of the backup to create. It must have the
format "projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"
.
{backup}
cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
var
string
$this
getDescription
Output only. The description of the Backup instance (2048 characters or less).
string
hasDescription
clearDescription
setDescription
Output only. The description of the Backup instance (2048 characters or less).
var
string
$this
getCreateTime
Output only. The time when the instance was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the instance was created.
$this
getUpdateTime
Output only. The time when the instance was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the instance was updated.
$this
getLabels
Optional. Resource labels to represent user provided metadata.
No labels currently defined.
setLabels
Optional. Resource labels to represent user provided metadata.
No labels currently defined.
$this
getEnforcedRetentionEndTime
Optional. The backup can not be deleted before this time.
hasEnforcedRetentionEndTime
clearEnforcedRetentionEndTime
setEnforcedRetentionEndTime
Optional. The backup can not be deleted before this time.
$this
getExpireTime
Optional. When this backup is automatically expired.
hasExpireTime
clearExpireTime
setExpireTime
Optional. When this backup is automatically expired.
$this
getConsistencyTime
Output only. The point in time when this backup was captured from the source.
hasConsistencyTime
clearConsistencyTime
setConsistencyTime
Output only. The point in time when this backup was captured from the source.
$this
getEtag
Optional. Server specified ETag to prevent updates from overwriting each other.
string
hasEtag
clearEtag
setEtag
Optional. Server specified ETag to prevent updates from overwriting each other.
var
string
$this
getState
Output only. The Backup resource instance state.
int
setState
Output only. The Backup resource instance state.
var
int
$this
getServiceLocks
Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
setServiceLocks
Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
$this
getBackupApplianceLocks
Optional. The list of BackupLocks taken by the accessor Backup Appliance.
setBackupApplianceLocks
Optional. The list of BackupLocks taken by the accessor Backup Appliance.
$this
getComputeInstanceBackupProperties
Output only. Compute Engine specific backup properties.
hasComputeInstanceBackupProperties
setComputeInstanceBackupProperties
Output only. Compute Engine specific backup properties.
$this
getBackupApplianceBackupProperties
Output only. Backup Appliance specific backup properties.
hasBackupApplianceBackupProperties
setBackupApplianceBackupProperties
Output only. Backup Appliance specific backup properties.
$this
getBackupType
Output only. Type of the backup, unspecified, scheduled or ondemand.
int
setBackupType
Output only. Type of the backup, unspecified, scheduled or ondemand.
var
int
$this
getGcpBackupPlanInfo
Output only. Configuration for a Google Cloud resource.
hasGcpBackupPlanInfo
setGcpBackupPlanInfo
Output only. Configuration for a Google Cloud resource.
$this
getResourceSizeBytes
Output only. source resource size in bytes at the time of the backup.
int|string
setResourceSizeBytes
Output only. source resource size in bytes at the time of the backup.
var
int|string
$this
getBackupProperties
string
getPlanInfo
string