class Google::Apis::FirestoreV1::TransactionOptions

Options for creating a new transaction.

Attributes

read_only[RW]

Options for a transaction that can only be used to read documents. Corresponds to the JSON property `readOnly` @return [Google::Apis::FirestoreV1::ReadOnly]

read_write[RW]

Options for a transaction that can be used to read and write documents. Corresponds to the JSON property `readWrite` @return [Google::Apis::FirestoreV1::ReadWrite]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 2337
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1/classes.rb, line 2342
def update!(**args)
  @read_only = args[:read_only] if args.key?(:read_only)
  @read_write = args[:read_write] if args.key?(:read_write)
end