Class: Google::Apis::DatastoreV1::ReadOnly

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/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.



1953
1954
1955
# File 'lib/google/apis/datastore_v1/classes.rb', line 1953

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)


1951
1952
1953
# File 'lib/google/apis/datastore_v1/classes.rb', line 1951

def read_time
  @read_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1958
1959
1960
# File 'lib/google/apis/datastore_v1/classes.rb', line 1958

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