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

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

Overview

The request for Datastore.BeginTransaction.

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

Returns a new instance of BeginTransactionRequest



98
99
100
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 98

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



96
97
98
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 96

def transaction_options
  @transaction_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



103
104
105
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 103

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