Class: Google::Apis::DatastoreV1beta3::ReadOptions
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::ReadOptions
- 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
The options shared by read requests.
Instance Attribute Summary collapse
-
#read_consistency ⇒ String
The non-transactional read consistency to use.
-
#read_time ⇒ String
Reads entities as they were at the given time.
-
#transaction ⇒ String
The identifier of the transaction in which to read.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReadOptions
constructor
A new instance of ReadOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReadOptions
Returns a new instance of ReadOptions.
1800 1801 1802 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1800 def initialize(**args) update!(**args) end |
Instance Attribute Details
#read_consistency ⇒ String
The non-transactional read consistency to use.
Corresponds to the JSON property readConsistency
1785 1786 1787 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1785 def read_consistency @read_consistency end |
#read_time ⇒ String
Reads entities as they were at the given time. This may not be older than 270
seconds. This value is only supported for Cloud Firestore in Datastore mode.
Corresponds to the JSON property readTime
1791 1792 1793 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1791 def read_time @read_time end |
#transaction ⇒ String
The identifier of the transaction in which to read. A transaction identifier
is returned by a call to Datastore.BeginTransaction.
Corresponds to the JSON property transaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
1798 1799 1800 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1798 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1805 1806 1807 1808 1809 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1805 def update!(**args) @read_consistency = args[:read_consistency] if args.key?(:read_consistency) @read_time = args[:read_time] if args.key?(:read_time) @transaction = args[:transaction] if args.key?(:transaction) end |