lib/purecloud/models/content_query_request.rb in purecloud-0.18.0 vs lib/purecloud/models/content_query_request.rb in purecloud-0.25.0

- old
+ new

@@ -12,10 +12,12 @@ attr_accessor :sort attr_accessor :filters + attr_accessor :attribute_filters + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'query_phrase' => :'queryPhrase', @@ -26,12 +28,14 @@ :'facet_name_requests' => :'facetNameRequests', :'sort' => :'sort', - :'filters' => :'filters' + :'filters' => :'filters', + :'attribute_filters' => :'attributeFilters' + } end # Attribute type mapping. def self.swagger_types @@ -39,11 +43,12 @@ :'query_phrase' => :'String', :'page_number' => :'Integer', :'page_size' => :'Integer', :'facet_name_requests' => :'Array<String>', :'sort' => :'Array<ContentSortItem>', - :'filters' => :'Array<ContentFacetFilterItem>' + :'filters' => :'Array<ContentFacetFilterItem>', + :'attribute_filters' => :'Array<ContentAttributeFilterItem>' } end def initialize(attributes = {}) @@ -81,10 +86,16 @@ if (value = attributes[:'filters']).is_a?(Array) self.filters = value end end + if attributes[:'attributeFilters'] + if (value = attributes[:'attributeFilters']).is_a?(Array) + self.attribute_filters = value + end + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) @@ -92,20 +103,21 @@ query_phrase == o.query_phrase && page_number == o.page_number && page_size == o.page_size && facet_name_requests == o.facet_name_requests && sort == o.sort && - filters == o.filters + filters == o.filters && + attribute_filters == o.attribute_filters end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [query_phrase, page_number, page_size, facet_name_requests, sort, filters].hash + [query_phrase, page_number, page_size, facet_name_requests, sort, filters, attribute_filters].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)