class Google::Apis::DatastoreV1beta3::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::DatastoreV1beta3::ReadOnly]
read_write[RW]
Options specific to read / write transactions. Corresponds to the JSON property `readWrite` @return [Google::Apis::DatastoreV1beta3::ReadWrite]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/datastore_v1beta3/classes.rb, line 1657 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_v1beta3/classes.rb, line 1662 def update!(**args) @read_only = args[:read_only] if args.key?(:read_only) @read_write = args[:read_write] if args.key?(:read_write) end