class Google::Apis::DatastoreV1beta2::ReadOptions

Attributes

read_consistency[RW]

The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default. Corresponds to the JSON property `readConsistency` @return [String]

transaction[RW]

The transaction to use. Optional. Corresponds to the JSON property `transaction` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/datastore_v1beta2/classes.rb, line 960
def update!(**args)
  @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
  @transaction = args[:transaction] if args.key?(:transaction)
end