Class: Google::Apis::BackupdrV1::InitiateBackupResponse

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

Response message for InitiateBackup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InitiateBackupResponse

Returns a new instance of InitiateBackupResponse.



2526
2527
2528
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2526

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

Instance Attribute Details

#backupString

The name of the backup that was created. Corresponds to the JSON property backup

Returns:

  • (String)


2514
2515
2516
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2514

def backup
  @backup
end

#base_backup_generation_idFixnum

The generation id of the base backup. It is needed for the incremental backups. Corresponds to the JSON property baseBackupGenerationId

Returns:

  • (Fixnum)


2519
2520
2521
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2519

def base_backup_generation_id
  @base_backup_generation_id
end

#new_backup_generation_idFixnum

The generation id of the new backup. Corresponds to the JSON property newBackupGenerationId

Returns:

  • (Fixnum)


2524
2525
2526
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2524

def new_backup_generation_id
  @new_backup_generation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2531
2532
2533
2534
2535
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2531

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @base_backup_generation_id = args[:base_backup_generation_id] if args.key?(:base_backup_generation_id)
  @new_backup_generation_id = args[:new_backup_generation_id] if args.key?(:new_backup_generation_id)
end