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

Constructor Details

#initialize(**args) ⇒ BeginTransactionRequest

Returns a new instance of BeginTransactionRequest.



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

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



94
95
96
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 94

def transaction_options
  @transaction_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 101

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