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

Inherits:
Object
  • Object
show all
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

The response for Commit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CommitResponse

Returns a new instance of CommitResponse.



688
689
690
# File 'generated/google/apis/spanner_v1/classes.rb', line 688

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

Instance Attribute Details

#commit_timestampString

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

Returns:

  • (String)


686
687
688
# File 'generated/google/apis/spanner_v1/classes.rb', line 686

def commit_timestamp
  @commit_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
# File 'generated/google/apis/spanner_v1/classes.rb', line 693

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