Class: Google::Apis::SpannerV1::CommitResponse

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

The response for Commit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitResponse

Returns a new instance of CommitResponse.



712
713
714
# File 'lib/google/apis/spanner_v1/classes.rb', line 712

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

Instance Attribute Details

#commit_statsGoogle::Apis::SpannerV1::CommitStats

Additional statistics about a commit. Corresponds to the JSON property commitStats



705
706
707
# File 'lib/google/apis/spanner_v1/classes.rb', line 705

def commit_stats
  @commit_stats
end

#commit_timestampString

The Cloud Spanner timestamp at which the transaction committed. Corresponds to the JSON property commitTimestamp

Returns:

  • (String)


710
711
712
# File 'lib/google/apis/spanner_v1/classes.rb', line 710

def commit_timestamp
  @commit_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



717
718
719
720
# File 'lib/google/apis/spanner_v1/classes.rb', line 717

def update!(**args)
  @commit_stats = args[:commit_stats] if args.key?(:commit_stats)
  @commit_timestamp = args[:commit_timestamp] if args.key?(:commit_timestamp)
end