Class: Google::Apis::SpannerV1::CommitResponse
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::CommitResponse
- 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
The response for Commit.
Instance Attribute Summary collapse
-
#commit_stats ⇒ Google::Apis::SpannerV1::CommitStats
Additional statistics about a commit.
-
#commit_timestamp ⇒ String
The Cloud Spanner timestamp at which the transaction committed.
-
#precommit_token ⇒ Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken
When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitResponse
constructor
A new instance of CommitResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CommitResponse
Returns a new instance of CommitResponse.
1353 1354 1355 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1353 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commit_stats ⇒ Google::Apis::SpannerV1::CommitStats
Additional statistics about a commit.
Corresponds to the JSON property commitStats
1338 1339 1340 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1338 def commit_stats @commit_stats end |
#commit_timestamp ⇒ String
The Cloud Spanner timestamp at which the transaction committed.
Corresponds to the JSON property commitTimestamp
1343 1344 1345 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1343 def @commit_timestamp end |
#precommit_token ⇒ Google::Apis::SpannerV1::MultiplexedSessionPrecommitToken
When a read-write transaction is executed on a multiplexed session, this
precommit token is sent back to the client as a part of the [Transaction]
message in the BeginTransaction response and also as a part of the [ResultSet]
and [PartialResultSet] responses.
Corresponds to the JSON property precommitToken
1351 1352 1353 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1351 def precommit_token @precommit_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1358 1359 1360 1361 1362 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1358 def update!(**args) @commit_stats = args[:commit_stats] if args.key?(:commit_stats) @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp) @precommit_token = args[:precommit_token] if args.key?(:precommit_token) end |