Class: Google::Apis::DatastoreV1beta3::Filter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datastore_v1beta3/classes.rb,
generated/google/apis/datastore_v1beta3/representations.rb,
generated/google/apis/datastore_v1beta3/representations.rb

Overview

A holder for any type of filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Filter

Returns a new instance of Filter.



301
302
303
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 301

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#composite_filterGoogle::Apis::DatastoreV1beta3::CompositeFilter

A filter that merges multiple other filters using the given operator. Corresponds to the JSON property compositeFilter



294
295
296
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 294

def composite_filter
  @composite_filter
end

#property_filterGoogle::Apis::DatastoreV1beta3::PropertyFilter

A filter on a specific property. Corresponds to the JSON property propertyFilter



299
300
301
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 299

def property_filter
  @property_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



306
307
308
309
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 306

def update!(**args)
  @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
  @property_filter = args[:property_filter] if args.key?(:property_filter)
end