Class: Google::Apis::BackupdrV1::Backup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Backup

Returns a new instance of Backup.



542
543
544
# File 'lib/google/apis/backupdr_v1/classes.rb', line 542

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backup_appliance_backup_propertiesGoogle::Apis::BackupdrV1::BackupApplianceBackupProperties

BackupApplianceBackupProperties represents BackupDR backup appliance's properties. Corresponds to the JSON property backupApplianceBackupProperties



453
454
455
# File 'lib/google/apis/backupdr_v1/classes.rb', line 453

def backup_appliance_backup_properties
  @backup_appliance_backup_properties
end

#backup_appliance_locksArray<Google::Apis::BackupdrV1::BackupLock>

Optional. The list of BackupLocks taken by the accessor Backup Appliance. Corresponds to the JSON property backupApplianceLocks



458
459
460
# File 'lib/google/apis/backupdr_v1/classes.rb', line 458

def backup_appliance_locks
  @backup_appliance_locks
end

#backup_typeString

Output only. Type of the backup, unspecified, scheduled or ondemand. Corresponds to the JSON property backupType

Returns:

  • (String)


463
464
465
# File 'lib/google/apis/backupdr_v1/classes.rb', line 463

def backup_type
  @backup_type
end

#compute_instance_backup_propertiesGoogle::Apis::BackupdrV1::ComputeInstanceBackupProperties

ComputeInstanceBackupProperties represents Compute Engine instance backup properties. Corresponds to the JSON property computeInstanceBackupProperties



469
470
471
# File 'lib/google/apis/backupdr_v1/classes.rb', line 469

def compute_instance_backup_properties
  @compute_instance_backup_properties
end

#consistency_timeString

Output only. The point in time when this backup was captured from the source. Corresponds to the JSON property consistencyTime

Returns:

  • (String)


474
475
476
# File 'lib/google/apis/backupdr_v1/classes.rb', line 474

def consistency_time
  @consistency_time
end

#create_timeString

Output only. The time when the instance was created. Corresponds to the JSON property createTime

Returns:

  • (String)


479
480
481
# File 'lib/google/apis/backupdr_v1/classes.rb', line 479

def create_time
  @create_time
end

#descriptionString

Output only. The description of the Backup instance (2048 characters or less). Corresponds to the JSON property description

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/backupdr_v1/classes.rb', line 484

def description
  @description
end

#enforced_retention_end_timeString

Optional. The backup can not be deleted before this time. Corresponds to the JSON property enforcedRetentionEndTime

Returns:

  • (String)


489
490
491
# File 'lib/google/apis/backupdr_v1/classes.rb', line 489

def enforced_retention_end_time
  @enforced_retention_end_time
end

#etagString

Optional. Server specified ETag to prevent updates from overwriting each other. Corresponds to the JSON property etag

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/backupdr_v1/classes.rb', line 494

def etag
  @etag
end

#expire_timeString

Optional. When this backup is automatically expired. Corresponds to the JSON property expireTime

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/backupdr_v1/classes.rb', line 499

def expire_time
  @expire_time
end

#gcp_backup_plan_infoGoogle::Apis::BackupdrV1::GcpBackupPlanInfo

GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup. Corresponds to the JSON property gcpBackupPlanInfo



505
506
507
# File 'lib/google/apis/backupdr_v1/classes.rb', line 505

def gcp_backup_plan_info
  @gcp_backup_plan_info
end

#labelsHash<String,String>

Optional. Resource labels to represent user provided metadata. No labels currently defined. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


511
512
513
# File 'lib/google/apis/backupdr_v1/classes.rb', line 511

def labels
  @labels
end

#nameString

Output only. Identifier. Name of the backup to create. It must have the format "projects//locations//backupVaults//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. Corresponds to the JSON property name

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/backupdr_v1/classes.rb', line 519

def name
  @name
end

#resource_size_bytesFixnum

Output only. source resource size in bytes at the time of the backup. Corresponds to the JSON property resourceSizeBytes

Returns:

  • (Fixnum)


524
525
526
# File 'lib/google/apis/backupdr_v1/classes.rb', line 524

def resource_size_bytes
  @resource_size_bytes
end

#service_locksArray<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



530
531
532
# File 'lib/google/apis/backupdr_v1/classes.rb', line 530

def service_locks
  @service_locks
end

#stateString

Output only. The Backup resource instance state. Corresponds to the JSON property state

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/backupdr_v1/classes.rb', line 535

def state
  @state
end

#update_timeString

Output only. The time when the instance was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/backupdr_v1/classes.rb', line 540

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
# File 'lib/google/apis/backupdr_v1/classes.rb', line 547

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