Class: Google::Apis::FirestoreV1::ReadWrite

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

Options for a transaction that can be used to read and write documents. Firestore does not allow 3rd party auth requests to create read-write. transactions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReadWrite



3755
3756
3757
# File 'lib/google/apis/firestore_v1/classes.rb', line 3755

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

Instance Attribute Details

#retry_transactionString

An optional transaction to retry. Corresponds to the JSON property retryTransaction NOTE: Values are automatically base64 encoded/decoded in the client library.



3753
3754
3755
# File 'lib/google/apis/firestore_v1/classes.rb', line 3753

def retry_transaction
  @retry_transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3760
3761
3762
# File 'lib/google/apis/firestore_v1/classes.rb', line 3760

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