Class: Google::Apis::FirestoreV1::ReadWrite
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::ReadWrite
- 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
-
#retry_transaction ⇒ String
An optional transaction to retry.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReadWrite
constructor
A new instance of ReadWrite.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReadWrite
Returns a new instance of ReadWrite.
3328 3329 3330 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#retry_transaction ⇒ String
An optional transaction to retry.
Corresponds to the JSON property retryTransaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
3326 3327 3328 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3326 def retry_transaction @retry_transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3333 3334 3335 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3333 def update!(**args) @retry_transaction = args[:retry_transaction] if args.key?(:retry_transaction) end |