Class: Google::Apis::DatastoreV1beta2::CompositeFilter

Inherits:
Object
  • Object
show all
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 that merges the multiple other filters using the given operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CompositeFilter

Returns a new instance of CompositeFilter.


198
199
200
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 198

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

Instance Attribute Details

#filtersArray<Google::Apis::DatastoreV1beta2::Filter>

The list of filters to combine. Must contain at least one filter. Corresponds to the JSON property filters


191
192
193
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 191

def filters
  @filters
end

#operatorString

The operator for combining multiple filters. Only "and" is currently supported. Corresponds to the JSON property operator

Returns:

  • (String)

196
197
198
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 196

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


203
204
205
206
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 203

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