Class: Google::Apis::SqladminV1::InstancesRestoreBackupRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb

Overview

Database instance restore backup request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesRestoreBackupRequest

Returns a new instance of InstancesRestoreBackupRequest.



2645
2646
2647
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2645

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

Instance Attribute Details

#backupString

The name of the backup to restore from in following format: projects/project- id/backups/backup-uid Only one of restore_backup_context or backup can be passed to the input. Corresponds to the JSON property backup

Returns:

  • (String)


2632
2633
2634
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2632

def backup
  @backup
end

#restore_backup_contextGoogle::Apis::SqladminV1::RestoreBackupContext

Database instance restore from backup context. Backup context contains source instance id and project id. Corresponds to the JSON property restoreBackupContext



2638
2639
2640
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2638

def restore_backup_context
  @restore_backup_context
end

#restore_instance_settingsGoogle::Apis::SqladminV1::DatabaseInstance

A Cloud SQL instance resource. Corresponds to the JSON property restoreInstanceSettings



2643
2644
2645
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2643

def restore_instance_settings
  @restore_instance_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2650
2651
2652
2653
2654
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2650

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