Class: Google::Apis::SpannerV1::RollbackRequest

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 request for Rollback.

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) ⇒ RollbackRequest

Returns a new instance of RollbackRequest



2385
2386
2387
# File 'generated/google/apis/spanner_v1/classes.rb', line 2385

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

Instance Attribute Details

#transaction_idString

Required. The transaction to roll back. Corresponds to the JSON property transactionId NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2383
2384
2385
# File 'generated/google/apis/spanner_v1/classes.rb', line 2383

def transaction_id
  @transaction_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2390
2391
2392
# File 'generated/google/apis/spanner_v1/classes.rb', line 2390

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