class Google::Apis::DatastoreV1::TransactionOptions

Options for beginning a new transaction. Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests.

Attributes

read_only[RW]

Options specific to read-only transactions. Corresponds to the JSON property `readOnly` @return [Google::Apis::DatastoreV1::ReadOnly]

read_write[RW]

Options specific to read / write transactions. Corresponds to the JSON property `readWrite` @return [Google::Apis::DatastoreV1::ReadWrite]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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