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.
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.
798 799 800 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 798 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
791 792 793 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 791 def commit_stats @commit_stats end |
#commit_timestamp ⇒ String
The Cloud Spanner timestamp at which the transaction committed.
Corresponds to the JSON property commitTimestamp
796 797 798 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 796 def @commit_timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
803 804 805 806 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 803 def update!(**args) @commit_stats = args[:commit_stats] if args.key?(:commit_stats) @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp) end |