Class: Google::Apis::BackupdrV1::BackupLock
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::BackupLock
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
Instance Attribute Summary collapse
-
#backup_appliance_lock_info ⇒ Google::Apis::BackupdrV1::BackupApplianceLockInfo
BackupApplianceLockInfo contains metadata about the backupappliance that created the lock.
-
#lock_until_time ⇒ String
Required.
-
#service_lock_info ⇒ Google::Apis::BackupdrV1::ServiceLockInfo
ServiceLockInfo represents the details of a lock taken by the service on a Backup resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupLock
constructor
A new instance of BackupLock.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupLock
Returns a new instance of BackupLock.
792 793 794 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 792 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_appliance_lock_info ⇒ Google::Apis::BackupdrV1::BackupApplianceLockInfo
BackupApplianceLockInfo contains metadata about the backupappliance that
created the lock.
Corresponds to the JSON property backupApplianceLockInfo
778 779 780 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 778 def backup_appliance_lock_info @backup_appliance_lock_info end |
#lock_until_time ⇒ String
Required. The time after which this lock is not considered valid and will no
longer protect the Backup from deletion.
Corresponds to the JSON property lockUntilTime
784 785 786 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 784 def lock_until_time @lock_until_time end |
#service_lock_info ⇒ Google::Apis::BackupdrV1::ServiceLockInfo
ServiceLockInfo represents the details of a lock taken by the service on a
Backup resource.
Corresponds to the JSON property serviceLockInfo
790 791 792 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 790 def service_lock_info @service_lock_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
797 798 799 800 801 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 797 def update!(**args) @backup_appliance_lock_info = args[:backup_appliance_lock_info] if args.key?(:backup_appliance_lock_info) @lock_until_time = args[:lock_until_time] if args.key?(:lock_until_time) @service_lock_info = args[:service_lock_info] if args.key?(:service_lock_info) end |