Class: Google::Apis::BackupdrV1::InitiateBackupResponse
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::InitiateBackupResponse
- 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
-
#backup ⇒ String
The name of the backup that was created.
-
#base_backup_generation_id ⇒ Fixnum
The generation id of the base backup.
-
#new_backup_generation_id ⇒ Fixnum
The generation id of the new backup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InitiateBackupResponse
constructor
A new instance of InitiateBackupResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InitiateBackupResponse
Returns a new instance of InitiateBackupResponse.
4089 4090 4091 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 4089 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
The name of the backup that was created.
Corresponds to the JSON property backup
4077 4078 4079 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 4077 def backup @backup end |
#base_backup_generation_id ⇒ Fixnum
The generation id of the base backup. It is needed for the incremental backups.
Corresponds to the JSON property baseBackupGenerationId
4082 4083 4084 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 4082 def base_backup_generation_id @base_backup_generation_id end |
#new_backup_generation_id ⇒ Fixnum
The generation id of the new backup.
Corresponds to the JSON property newBackupGenerationId
4087 4088 4089 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 4087 def new_backup_generation_id @new_backup_generation_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4094 4095 4096 4097 4098 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 4094 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 |