Class: Google::Apis::SpannerV1::UpdateDatabaseDdlMetadata
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::UpdateDatabaseDdlMetadata
- 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
Metadata type for the operation returned by UpdateDatabaseDdl.
Instance Attribute Summary collapse
-
#commit_timestamps ⇒ Array<String>
Reports the commit timestamps of all statements that have succeeded so far, where
commit_timestamps[i]
is the commit timestamp for the statementstatements[i]
. -
#database ⇒ String
The database being modified.
-
#statements ⇒ Array<String>
For an update this list contains all the statements.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateDatabaseDdlMetadata
constructor
A new instance of UpdateDatabaseDdlMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateDatabaseDdlMetadata
Returns a new instance of UpdateDatabaseDdlMetadata
289 290 291 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commit_timestamps ⇒ Array<String>
Reports the commit timestamps of all statements that have
succeeded so far, where commit_timestamps[i]
is the commit
timestamp for the statement statements[i]
.
Corresponds to the JSON property commitTimestamps
287 288 289 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 287 def @commit_timestamps end |
#database ⇒ String
The database being modified.
Corresponds to the JSON property database
274 275 276 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 274 def database @database end |
#statements ⇒ Array<String>
For an update this list contains all the statements. For an
individual statement, this list contains only that statement.
Corresponds to the JSON property statements
280 281 282 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 280 def statements @statements end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
294 295 296 297 298 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 294 def update!(**args) @database = args[:database] if args.key?(:database) @statements = args[:statements] if args.key?(:statements) @commit_timestamps = args[:commit_timestamps] if args.key?(:commit_timestamps) end |