lib/purecloud/models/suggest_search_request.rb in purecloud-0.60.1 vs lib/purecloud/models/suggest_search_request.rb in purecloud-0.61.1

- old
+ new

@@ -16,30 +16,36 @@ require 'date' module PureCloud class SuggestSearchRequest + # Provides more details about a specified resource + attr_accessor :expand + # Resource domain type to search attr_accessor :types # Suggest query attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'expand' => :'expand', + :'types' => :'types', :'query' => :'query' } end # Attribute type mapping. def self.swagger_types { + :'expand' => :'Array<String>', :'types' => :'Array<String>', :'query' => :'Array<SuggestSearchCriteria>' } end @@ -49,10 +55,16 @@ # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} + if attributes[:'expand'] + if (value = attributes[:'expand']).is_a?(Array) + self.expand = value + end + end + if attributes[:'types'] if (value = attributes[:'types']).is_a?(Array) self.types = value end end @@ -67,10 +79,11 @@ # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && + expand == o.expand && types == o.types && query == o.query end # @see the `==` method @@ -78,10 +91,10 @@ self == o end # Calculate hash code according to all attributes. def hash - [types, query].hash + [expand, types, query].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)