Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::BackupLock.
BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backup_appliance_lock_info
def backup_appliance_lock_info() -> ::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo
Returns
- (::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo) — If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
#backup_appliance_lock_info=
def backup_appliance_lock_info=(value) -> ::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo
Parameter
- value (::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo) — If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
Returns
- (::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo) — If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
#lock_until_time
def lock_until_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
#lock_until_time=
def lock_until_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
Returns
- (::Google::Protobuf::Timestamp) — Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
#service_lock_info
def service_lock_info() -> ::Google::Cloud::BackupDR::V1::ServiceLockInfo
Returns
- (::Google::Cloud::BackupDR::V1::ServiceLockInfo) — Output only. Contains metadata about the lock exist for Google Cloud native backups.