lib/purecloud/models/users_search_response.rb in purecloud-0.40.1 vs lib/purecloud/models/users_search_response.rb in purecloud-0.41.1
- old
+ new
@@ -34,10 +34,12 @@
attr_accessor :types
attr_accessor :results
+ attr_accessor :aggregations
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'total' => :'total',
@@ -54,12 +56,14 @@
:'next_page' => :'nextPage',
:'types' => :'types',
- :'results' => :'results'
+ :'results' => :'results',
+ :'aggregations' => :'aggregations'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -70,11 +74,12 @@
:'page_number' => :'Integer',
:'previous_page' => :'String',
:'current_page' => :'String',
:'next_page' => :'String',
:'types' => :'Array<String>',
- :'results' => :'Array<User>'
+ :'results' => :'Array<User>',
+ :'aggregations' => :'Array<User>'
}
end
def initialize(attributes = {})
@@ -122,10 +127,16 @@
if (value = attributes[:'results']).is_a?(Array)
self.results = value
end
end
+ if attributes[:'aggregations']
+ if (value = attributes[:'aggregations']).is_a?(Array)
+ self.aggregations = value
+ end
+ end
+
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
@@ -136,20 +147,21 @@
page_number == o.page_number &&
previous_page == o.previous_page &&
current_page == o.current_page &&
next_page == o.next_page &&
types == o.types &&
- results == o.results
+ results == o.results &&
+ aggregations == o.aggregations
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [total, page_count, page_size, page_number, previous_page, current_page, next_page, types, results].hash
+ [total, page_count, page_size, page_number, previous_page, current_page, next_page, types, results, aggregations].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)