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.



1240
1241
1242
# File 'lib/google/apis/spanner_v1/classes.rb', line 1240

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



1218
1219
1220
# File 'lib/google/apis/spanner_v1/classes.rb', line 1218

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)


1223
1224
1225
# File 'lib/google/apis/spanner_v1/classes.rb', line 1223

def commit_timestamp
  @commit_timestamp
end

#precommit_tokenGoogle::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



1231
1232
1233
# File 'lib/google/apis/spanner_v1/classes.rb', line 1231

def precommit_token
  @precommit_token
end

#snapshot_timestampString

If TransactionOptions.isolation_level is set to IsolationLevel. REPEATABLE_READ, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned. Corresponds to the JSON property snapshotTimestamp

Returns:

  • (String)


1238
1239
1240
# File 'lib/google/apis/spanner_v1/classes.rb', line 1238

def snapshot_timestamp
  @snapshot_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1245
1246
1247
1248
1249
1250
# File 'lib/google/apis/spanner_v1/classes.rb', line 1245

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)
  @snapshot_timestamp = args[:snapshot_timestamp] if args.key?(:snapshot_timestamp)
end