Class: Google::Apis::SpannerV1::RestoreInfo

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

Overview

Information about the database restore.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestoreInfo

Returns a new instance of RestoreInfo.



2974
2975
2976
# File 'lib/google/apis/spanner_v1/classes.rb', line 2974

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

Instance Attribute Details

#backup_infoGoogle::Apis::SpannerV1::BackupInfo

Information about a backup. Corresponds to the JSON property backupInfo



2967
2968
2969
# File 'lib/google/apis/spanner_v1/classes.rb', line 2967

def backup_info
  @backup_info
end

#source_typeString

The type of the restore source. Corresponds to the JSON property sourceType

Returns:

  • (String)


2972
2973
2974
# File 'lib/google/apis/spanner_v1/classes.rb', line 2972

def source_type
  @source_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2979
2980
2981
2982
# File 'lib/google/apis/spanner_v1/classes.rb', line 2979

def update!(**args)
  @backup_info = args[:backup_info] if args.key?(:backup_info)
  @source_type = args[:source_type] if args.key?(:source_type)
end