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.



1971
1972
1973
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1971

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

Instance Attribute Details

#read_timeString

Reads entities at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days. Corresponds to the JSON property readTime

Returns:

  • (String)


1969
1970
1971
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1969

def read_time
  @read_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1976
1977
1978
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1976

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