Google Cloud Backup Dr V1 Client - Class BackupLock (0.6.2)

Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupLock.

BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.

Generated from protobuf message google.cloud.backupdr.v1.BackupLock

Namespace

Google \ Cloud \ BackupDR \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ lock_until_time
Google\Protobuf\Timestamp

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

↳ backup_appliance_lock_info
BackupApplianceLockInfo

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

↳ service_lock_info
ServiceLockInfo

Output only. Contains metadata about the lock exist for Google Cloud native backups.

getLockUntilTime

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

Returns
Type
Description

hasLockUntilTime

clearLockUntilTime

setLockUntilTime

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

Parameter
Name
Description
Returns
Type
Description
$this

getBackupApplianceLockInfo

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

Returns
Type
Description

hasBackupApplianceLockInfo

setBackupApplianceLockInfo

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

Parameter
Name
Description
Returns
Type
Description
$this

getServiceLockInfo

Output only. Contains metadata about the lock exist for Google Cloud native backups.

Returns
Type
Description

hasServiceLockInfo

setServiceLockInfo

Output only. Contains metadata about the lock exist for Google Cloud native backups.

Parameter
Name
Description
Returns
Type
Description
$this

getClientLockInfo

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: