Class: Google::Apis::FirestoreV1beta1::TransactionOptions
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::TransactionOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb
Overview
Options for creating a new transaction.
Instance Attribute Summary collapse
-
#read_only ⇒ Google::Apis::FirestoreV1beta1::ReadOnly
Options for a transaction that can only be used to read documents.
-
#read_write ⇒ Google::Apis::FirestoreV1beta1::ReadWrite
Options for a transaction that can be used to read and write documents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransactionOptions
constructor
A new instance of TransactionOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TransactionOptions
Returns a new instance of TransactionOptions
1689 1690 1691 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#read_only ⇒ Google::Apis::FirestoreV1beta1::ReadOnly
Options for a transaction that can only be used to read documents.
Corresponds to the JSON property readOnly
1682 1683 1684 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1682 def read_only @read_only end |
#read_write ⇒ Google::Apis::FirestoreV1beta1::ReadWrite
Options for a transaction that can be used to read and write documents.
Corresponds to the JSON property readWrite
1687 1688 1689 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1687 def read_write @read_write end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1694 1695 1696 1697 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1694 def update!(**args) @read_only = args[:read_only] if args.key?(:read_only) @read_write = args[:read_write] if args.key?(:read_write) end |