Class: Google::Apis::DatastoreV1beta2::PropertyFilter
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::PropertyFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb
Overview
A filter on a specific property.
Instance Attribute Summary collapse
-
#operator ⇒ String
The operator to filter by.
-
#property ⇒ Google::Apis::DatastoreV1beta2::PropertyReference
A reference to a property relative to the kind expressions.
-
#value ⇒ Google::Apis::DatastoreV1beta2::Value
A message that can hold any of the supported value types and associated metadata.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PropertyFilter
constructor
A new instance of PropertyFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PropertyFilter
Returns a new instance of PropertyFilter.
761 762 763 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operator ⇒ String
The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan,
greaterThanOrEqual, equal, or hasAncestor.
Corresponds to the JSON property operator
748 749 750 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 748 def operator @operator end |
#property ⇒ Google::Apis::DatastoreV1beta2::PropertyReference
A reference to a property relative to the kind expressions.
Corresponds to the JSON property property
753 754 755 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 753 def property @property end |
#value ⇒ Google::Apis::DatastoreV1beta2::Value
A message that can hold any of the supported value types and associated
metadata.
Corresponds to the JSON property value
759 760 761 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 759 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
766 767 768 769 770 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 766 def update!(**args) @operator = args[:operator] if args.key?(:operator) @property = args[:property] if args.key?(:property) @value = args[:value] if args.key?(:value) end |