Class: Google::Apis::FirestoreV1::BeginTransactionRequest

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

Overview

The request for Firestore.BeginTransaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BeginTransactionRequest

Returns a new instance of BeginTransactionRequest.



309
310
311
# File 'lib/google/apis/firestore_v1/classes.rb', line 309

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

Instance Attribute Details

#optionsGoogle::Apis::FirestoreV1::TransactionOptions

Options for creating a new transaction. Corresponds to the JSON property options



307
308
309
# File 'lib/google/apis/firestore_v1/classes.rb', line 307

def options
  @options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



314
315
316
# File 'lib/google/apis/firestore_v1/classes.rb', line 314

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