Class: Google::Apis::DatastoreV1beta3::ReadOnly

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb

Overview

Options specific to read-only transactions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReadOnly

Returns a new instance of ReadOnly.



1778
1779
1780
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1778

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#read_timeString

Reads entities at the given time. This may not be older than 60 seconds. Corresponds to the JSON property readTime

Returns:

  • (String)


1776
1777
1778
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1776

def read_time
  @read_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1783
1784
1785
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1783

def update!(**args)
  @read_time = args[:read_time] if args.key?(:read_time)
end