Class: Google::Apis::SpannerV1::BackupInfo

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

Overview

Information about a backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BackupInfo

Returns a new instance of BackupInfo.



128
129
130
# File 'generated/google/apis/spanner_v1/classes.rb', line 128

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

Instance Attribute Details

#backupString

Name of the backup. Corresponds to the JSON property backup

Returns:

  • (String)


115
116
117
# File 'generated/google/apis/spanner_v1/classes.rb', line 115

def backup
  @backup
end

#create_timeString

The backup contains an externally consistent copy of source_database at the timestamp specified by create_time. Corresponds to the JSON property createTime

Returns:

  • (String)


121
122
123
# File 'generated/google/apis/spanner_v1/classes.rb', line 121

def create_time
  @create_time
end

#source_databaseString

Name of the database the backup was created from. Corresponds to the JSON property sourceDatabase

Returns:

  • (String)


126
127
128
# File 'generated/google/apis/spanner_v1/classes.rb', line 126

def source_database
  @source_database
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
137
# File 'generated/google/apis/spanner_v1/classes.rb', line 133

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