Class: Google::Apis::DatastoreV1beta3::ReadOnly
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::ReadOnly
- 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
-
#read_time ⇒ String
Reads entities at the given time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReadOnly
constructor
A new instance of ReadOnly.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReadOnly
Returns a new instance of ReadOnly.
2129 2130 2131 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#read_time ⇒ String
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
2127 2128 2129 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2127 def read_time @read_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2134 2135 2136 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2134 def update!(**args) @read_time = args[:read_time] if args.key?(:read_time) end |