Class: Google::Apis::SpannerV1::BackupInfo
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::BackupInfo
- 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
-
#backup ⇒ String
Name of the backup.
-
#create_time ⇒ String
The time the CreateBackup request was received.
-
#source_database ⇒ String
Name of the database the backup was created from.
-
#version_time ⇒ String
The backup contains an externally consistent copy of
source_database
at the timestamp specified byversion_time
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupInfo
constructor
A new instance of BackupInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupInfo
Returns a new instance of BackupInfo.
167 168 169 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
Name of the backup.
Corresponds to the JSON property backup
147 148 149 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 147 def backup @backup end |
#create_time ⇒ String
The time the CreateBackup request was received.
Corresponds to the JSON property createTime
152 153 154 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 152 def create_time @create_time end |
#source_database ⇒ String
Name of the database the backup was created from.
Corresponds to the JSON property sourceDatabase
157 158 159 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 157 def source_database @source_database end |
#version_time ⇒ String
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
165 166 167 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 165 def version_time @version_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
172 173 174 175 176 177 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 172 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 |