lib/purecloud/models/user.rb in purecloud-0.68.1 vs lib/purecloud/models/user.rb in purecloud-0.69.1

- old
+ new

@@ -74,10 +74,13 @@ attr_accessor :profile_skills # The user placement at each site location. attr_accessor :locations + # The groups the user is a member of + attr_accessor :groups + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -125,10 +128,12 @@ :'profile_skills' => :'profileSkills', :'locations' => :'locations', + :'groups' => :'groups', + :'self_uri' => :'selfUri' } end @@ -155,10 +160,11 @@ :'geolocation' => :'Geolocation', :'station' => :'UserStations', :'authorization' => :'UserAuthorization', :'profile_skills' => :'Array<String>', :'locations' => :'Array<Location>', + :'groups' => :'Array<Group>', :'self_uri' => :'String' } end @@ -265,10 +271,16 @@ if (value = attributes[:'locations']).is_a?(Array) self.locations = value end end + if attributes[:'groups'] + if (value = attributes[:'groups']).is_a?(Array) + self.groups = value + end + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -306,20 +318,21 @@ geolocation == o.geolocation && station == o.station && authorization == o.authorization && profile_skills == o.profile_skills && locations == o.locations && + groups == o.groups && 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, locations, 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, groups, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)