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

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

Overview

Options for a transaction that can be used to read and write documents.

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

Returns a new instance of ReadWrite.



1904
1905
1906
# File 'generated/google/apis/firestore_v1/classes.rb', line 1904

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.

Returns:

  • (String)


1902
1903
1904
# File 'generated/google/apis/firestore_v1/classes.rb', line 1902

def retry_transaction
  @retry_transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1909
1910
1911
# File 'generated/google/apis/firestore_v1/classes.rb', line 1909

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