Class: Google::Apis::BackupdrV1::Backup
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::Backup
- 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
Message describing a Backup object.
Instance Attribute Summary collapse
-
#backup_appliance_backup_properties ⇒ Google::Apis::BackupdrV1::BackupApplianceBackupProperties
BackupApplianceBackupProperties represents BackupDR backup appliance's properties.
-
#backup_appliance_locks ⇒ Array<Google::Apis::BackupdrV1::BackupLock>
Optional.
-
#backup_type ⇒ String
Corresponds to the JSON property
backupType. -
#compute_instance_backup_properties ⇒ Google::Apis::BackupdrV1::ComputeInstanceBackupProperties
ComputeInstanceBackupProperties represents Compute Engine instance backup properties.
-
#consistency_time ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#enforced_retention_end_time ⇒ String
Optional.
-
#etag ⇒ String
Optional.
-
#expire_time ⇒ String
Optional.
-
#gcp_backup_plan_info ⇒ Google::Apis::BackupdrV1::GcpBackupPlanInfo
GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#resource_size_bytes ⇒ Fixnum
Output only.
-
#service_locks ⇒ Array<Google::Apis::BackupdrV1::BackupLock>
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Backup
constructor
A new instance of Backup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Backup
Returns a new instance of Backup.
457 458 459 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_appliance_backup_properties ⇒ Google::Apis::BackupdrV1::BackupApplianceBackupProperties
BackupApplianceBackupProperties represents BackupDR backup appliance's
properties.
Corresponds to the JSON property backupApplianceBackupProperties
371 372 373 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 371 def backup_appliance_backup_properties @backup_appliance_backup_properties end |
#backup_appliance_locks ⇒ Array<Google::Apis::BackupdrV1::BackupLock>
Optional. The list of BackupLocks taken by the accessor Backup Appliance.
Corresponds to the JSON property backupApplianceLocks
376 377 378 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 376 def backup_appliance_locks @backup_appliance_locks end |
#backup_type ⇒ String
Corresponds to the JSON property backupType
381 382 383 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 381 def backup_type @backup_type end |
#compute_instance_backup_properties ⇒ Google::Apis::BackupdrV1::ComputeInstanceBackupProperties
ComputeInstanceBackupProperties represents Compute Engine instance backup
properties.
Corresponds to the JSON property computeInstanceBackupProperties
387 388 389 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 387 def compute_instance_backup_properties @compute_instance_backup_properties end |
#consistency_time ⇒ String
Output only. The point in time when this backup was captured from the source.
Corresponds to the JSON property consistencyTime
392 393 394 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 392 def consistency_time @consistency_time end |
#create_time ⇒ String
Output only. The time when the instance was created.
Corresponds to the JSON property createTime
397 398 399 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 397 def create_time @create_time end |
#description ⇒ String
Output only. The description of the Backup instance (2048 characters or less).
Corresponds to the JSON property description
402 403 404 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 402 def description @description end |
#enforced_retention_end_time ⇒ String
Optional. The backup can not be deleted before this time.
Corresponds to the JSON property enforcedRetentionEndTime
407 408 409 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 407 def enforced_retention_end_time @enforced_retention_end_time end |
#etag ⇒ String
Optional. Server specified ETag to prevent updates from overwriting each other.
Corresponds to the JSON property etag
412 413 414 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 412 def etag @etag end |
#expire_time ⇒ String
Optional. When this backup is automatically expired.
Corresponds to the JSON property expireTime
417 418 419 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 417 def expire_time @expire_time end |
#gcp_backup_plan_info ⇒ Google::Apis::BackupdrV1::GcpBackupPlanInfo
GCPBackupPlanInfo captures the plan configuration details of Google Cloud
resources at the time of backup.
Corresponds to the JSON property gcpBackupPlanInfo
423 424 425 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 423 def gcp_backup_plan_info @gcp_backup_plan_info end |
#labels ⇒ Hash<String,String>
Optional. Resource labels to represent user provided metadata. No labels
currently defined.
Corresponds to the JSON property labels
429 430 431 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 429 def labels @labels end |
#name ⇒ String
Output only. Name of the resource.
Corresponds to the JSON property name
434 435 436 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 434 def name @name end |
#resource_size_bytes ⇒ Fixnum
Output only. source resource size in bytes at the time of the backup.
Corresponds to the JSON property resourceSizeBytes
439 440 441 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 439 def resource_size_bytes @resource_size_bytes end |
#service_locks ⇒ Array<Google::Apis::BackupdrV1::BackupLock>
Output only. The list of BackupLocks taken by the service to prevent the
deletion of the backup.
Corresponds to the JSON property serviceLocks
445 446 447 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 445 def service_locks @service_locks end |
#state ⇒ String
Output only. The Backup resource instance state.
Corresponds to the JSON property state
450 451 452 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 450 def state @state end |
#update_time ⇒ String
Output only. The time when the instance was updated.
Corresponds to the JSON property updateTime
455 456 457 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 455 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 462 def update!(**args) @backup_appliance_backup_properties = args[:backup_appliance_backup_properties] if args.key?(:backup_appliance_backup_properties) @backup_appliance_locks = args[:backup_appliance_locks] if args.key?(:backup_appliance_locks) @backup_type = args[:backup_type] if args.key?(:backup_type) @compute_instance_backup_properties = args[:compute_instance_backup_properties] if args.key?(:compute_instance_backup_properties) @consistency_time = args[:consistency_time] if args.key?(:consistency_time) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @enforced_retention_end_time = args[:enforced_retention_end_time] if args.key?(:enforced_retention_end_time) @etag = args[:etag] if args.key?(:etag) @expire_time = args[:expire_time] if args.key?(:expire_time) @gcp_backup_plan_info = args[:gcp_backup_plan_info] if args.key?(:gcp_backup_plan_info) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @resource_size_bytes = args[:resource_size_bytes] if args.key?(:resource_size_bytes) @service_locks = args[:service_locks] if args.key?(:service_locks) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |