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

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 a backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupInfo

Returns a new instance of BackupInfo.



146
147
148
# File 'lib/google/apis/spanner_v1/classes.rb', line 146

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

Instance Attribute Details

#backupString

Name of the backup. Corresponds to the JSON property backup

Returns:

  • (String)


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

def backup
  @backup
end

#create_timeString

The time the CreateBackup request was received. Corresponds to the JSON property createTime

Returns:

  • (String)


131
132
133
# File 'lib/google/apis/spanner_v1/classes.rb', line 131

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)


136
137
138
# File 'lib/google/apis/spanner_v1/classes.rb', line 136

def source_database
  @source_database
end

#version_timeString

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time. Corresponds to the JSON property versionTime

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/spanner_v1/classes.rb', line 144

def version_time
  @version_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



151
152
153
154
155
156
# File 'lib/google/apis/spanner_v1/classes.rb', line 151

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)
  @version_time = args[:version_time] if args.key?(:version_time)
end