Class: Google::Apis::DatastoreV1beta2::Filter
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::Filter
- 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 holder for any type of filter. Exactly one field should be specified.
Instance Attribute Summary collapse
-
#composite_filter ⇒ Google::Apis::DatastoreV1beta2::CompositeFilter
A filter that merges the multiple other filters using the given operation.
-
#property_filter ⇒ Google::Apis::DatastoreV1beta2::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.
267 268 269 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#composite_filter ⇒ Google::Apis::DatastoreV1beta2::CompositeFilter
A filter that merges the multiple other filters using the given operation.
Corresponds to the JSON property compositeFilter
260 261 262 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 260 def composite_filter @composite_filter end |
#property_filter ⇒ Google::Apis::DatastoreV1beta2::PropertyFilter
A filter on a specific property.
Corresponds to the JSON property propertyFilter
265 266 267 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 265 def property_filter @property_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
272 273 274 275 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 272 def update!(**args) @composite_filter = args[:composite_filter] if args.key?(:composite_filter) @property_filter = args[:property_filter] if args.key?(:property_filter) end |