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.



1768
1769
1770
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1768

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)


1766
1767
1768
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1766

def read_time
  @read_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1773
1774
1775
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1773

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