Class: Google::Apis::DatastoreV1::BeginTransactionRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datastore_v1/classes.rb,
generated/google/apis/datastore_v1/representations.rb,
generated/google/apis/datastore_v1/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.


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

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

Instance Attribute Details

#transaction_optionsGoogle::Apis::DatastoreV1::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_v1/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_v1/classes.rb', line 101

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