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.



1620
1621
1622
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1620

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)


1618
1619
1620
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1618

def read_time
  @read_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1625
1626
1627
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1625

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