Class: Google::Apis::DatastoreV1beta3::BeginTransactionRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb

Overview

The request for Datastore.BeginTransaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BeginTransactionRequest

Returns a new instance of BeginTransactionRequest.



265
266
267
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 265

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

Instance Attribute Details

#transaction_optionsGoogle::Apis::DatastoreV1beta3::TransactionOptions

Options for beginning a new transaction. Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests. Corresponds to the JSON property transactionOptions



263
264
265
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 263

def transaction_options
  @transaction_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 270

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