Class: Google::Apis::DatastoreV1::ReadOnly
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::ReadOnly
- 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
-
#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.
2480 2481 2482 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2480 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
2478 2479 2480 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2478 def read_time @read_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2485 2486 2487 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2485 def update!(**args) @read_time = args[:read_time] if args.key?(:read_time) end |