lib/purecloud/models/user.rb in purecloud-0.57.1 vs lib/purecloud/models/user.rb in purecloud-0.58.1
- old
+ new
@@ -71,10 +71,13 @@
attr_accessor :authorization
# Skills possessed by the user
attr_accessor :profile_skills
+ # The user placement at each site location.
+ attr_accessor :locations
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -120,10 +123,12 @@
:'authorization' => :'authorization',
:'profile_skills' => :'profileSkills',
+ :'locations' => :'locations',
+
:'self_uri' => :'selfUri'
}
end
@@ -149,10 +154,11 @@
:'out_of_office' => :'OutOfOffice',
:'geolocation' => :'Geolocation',
:'station' => :'UserStations',
:'authorization' => :'UserAuthorization',
:'profile_skills' => :'Array<String>',
+ :'locations' => :'Array<Location>',
:'self_uri' => :'String'
}
end
@@ -253,10 +259,16 @@
if (value = attributes[:'profileSkills']).is_a?(Array)
self.profile_skills = value
end
end
+ if attributes[:'locations']
+ if (value = attributes[:'locations']).is_a?(Array)
+ self.locations = value
+ end
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -293,20 +305,21 @@
out_of_office == o.out_of_office &&
geolocation == o.geolocation &&
station == o.station &&
authorization == o.authorization &&
profile_skills == o.profile_skills &&
+ locations == o.locations &&
self_uri == o.self_uri
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, self_uri].hash
+ [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)