lib/purecloud/models/user.rb in purecloud-0.56.1 vs lib/purecloud/models/user.rb in purecloud-0.57.1

- old
+ new

@@ -40,10 +40,12 @@ attr_accessor :title attr_accessor :username + attr_accessor :manager + attr_accessor :images # Required when updating a user, this value should be the current version of the user. The current version can be obtained with a GET on the user before doing a PATCH. attr_accessor :version @@ -96,10 +98,12 @@ :'title' => :'title', :'username' => :'username', + :'manager' => :'manager', + :'images' => :'images', :'version' => :'version', :'routing_status' => :'routingStatus', @@ -134,10 +138,11 @@ :'primary_contact_info' => :'Array<Contact>', :'addresses' => :'Array<Contact>', :'state' => :'String', :'title' => :'String', :'username' => :'String', + :'manager' => :'User', :'images' => :'Array<UserImage>', :'version' => :'Integer', :'routing_status' => :'RoutingStatus', :'presence' => :'UserPresence', :'conversation_summary' => :'UserConversationSummary', @@ -200,10 +205,14 @@ if attributes[:'username'] self.username = attributes[:'username'] end + if attributes[:'manager'] + self.manager = attributes[:'manager'] + end + if attributes[:'images'] if (value = attributes[:'images']).is_a?(Array) self.images = value end end @@ -273,10 +282,11 @@ primary_contact_info == o.primary_contact_info && addresses == o.addresses && state == o.state && title == o.title && username == o.username && + manager == o.manager && images == o.images && version == o.version && routing_status == o.routing_status && presence == o.presence && conversation_summary == o.conversation_summary && @@ -293,10 +303,10 @@ self == o end # Calculate hash code according to all attributes. def hash - [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, 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, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)