Class: Google::Apis::DatastoreV1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::Filter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1/classes.rb,
generated/google/apis/datastore_v1/representations.rb,
generated/google/apis/datastore_v1/representations.rb
Overview
A holder for any type of filter.
Instance Attribute Summary collapse
-
#composite_filter ⇒ Google::Apis::DatastoreV1::CompositeFilter
A filter that merges multiple other filters using the given operator.
-
#property_filter ⇒ Google::Apis::DatastoreV1::PropertyFilter
A filter on a specific property.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
466 467 468 |
# File 'generated/google/apis/datastore_v1/classes.rb', line 466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#composite_filter ⇒ Google::Apis::DatastoreV1::CompositeFilter
A filter that merges multiple other filters using the given operator.
Corresponds to the JSON property compositeFilter
464 465 466 |
# File 'generated/google/apis/datastore_v1/classes.rb', line 464 def composite_filter @composite_filter end |
#property_filter ⇒ Google::Apis::DatastoreV1::PropertyFilter
A filter on a specific property.
Corresponds to the JSON property propertyFilter
459 460 461 |
# File 'generated/google/apis/datastore_v1/classes.rb', line 459 def property_filter @property_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
471 472 473 474 |
# File 'generated/google/apis/datastore_v1/classes.rb', line 471 def update!(**args) @property_filter = args[:property_filter] if args.key?(:property_filter) @composite_filter = args[:composite_filter] if args.key?(:composite_filter) end |