lib/purecloud/models/user_me.rb in purecloud-0.56.1 vs lib/purecloud/models/user_me.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 @@ -99,10 +101,13 @@ attr_accessor :direct_reports # The first 50 superiors, direct reports, and siblings of this user. Mutually exclusive with superiors and direct reports expands. attr_accessor :adjacents + # The first 50 routing skills for user's organizations + attr_accessor :routing_skills + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -126,10 +131,12 @@ :'title' => :'title', :'username' => :'username', + :'manager' => :'manager', + :'images' => :'images', :'version' => :'version', :'routing_status' => :'routingStatus', @@ -166,10 +173,12 @@ :'direct_reports' => :'directReports', :'adjacents' => :'adjacents', + :'routing_skills' => :'routingSkills', + :'self_uri' => :'selfUri' } end @@ -184,10 +193,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', @@ -204,10 +214,11 @@ :'org_authorization' => :'Array<DomainOrganizationRole>', :'favorites' => :'Array<User>', :'superiors' => :'Array<User>', :'direct_reports' => :'Array<User>', :'adjacents' => :'Adjacents', + :'routing_skills' => :'Array<RoutingSkill>', :'self_uri' => :'String' } end @@ -260,10 +271,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 @@ -356,10 +371,16 @@ if attributes[:'adjacents'] self.adjacents = attributes[:'adjacents'] end + if attributes[:'routingSkills'] + if (value = attributes[:'routingSkills']).is_a?(Array) + self.routing_skills = value + end + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -385,10 +406,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 && @@ -405,20 +427,21 @@ org_authorization == o.org_authorization && favorites == o.favorites && superiors == o.superiors && direct_reports == o.direct_reports && adjacents == o.adjacents && + routing_skills == o.routing_skills && 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, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, date, geolocation_settings, organization, presence_definitions, locations, org_authorization, favorites, superiors, direct_reports, adjacents, 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, date, geolocation_settings, organization, presence_definitions, locations, org_authorization, favorites, superiors, direct_reports, adjacents, routing_skills, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)