lib/purecloud/models/user_me.rb in purecloud-0.50.1 vs lib/purecloud/models/user_me.rb in purecloud-0.51.1

- old
+ new

@@ -84,10 +84,13 @@ attr_accessor :presence_definitions # The first 100 locations for user's organization attr_accessor :locations + # The first 100 organization roles, with applicable permission policies, for user's organization. + attr_accessor :org_authorization + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -141,10 +144,12 @@ :'presence_definitions' => :'presenceDefinitions', :'locations' => :'locations', + :'org_authorization' => :'orgAuthorization', + :'self_uri' => :'selfUri' } end @@ -174,10 +179,11 @@ :'date' => :'ServerDate', :'geolocation_settings' => :'GeolocationSettings', :'organization' => :'Organization', :'presence_definitions' => :'Array<OrganizationPresence>', :'locations' => :'Array<Location>', + :'org_authorization' => :'Array<DomainOrganizationRole>', :'self_uri' => :'String' } end @@ -298,10 +304,16 @@ if (value = attributes[:'locations']).is_a?(Array) self.locations = value end end + if attributes[:'orgAuthorization'] + if (value = attributes[:'orgAuthorization']).is_a?(Array) + self.org_authorization = value + end + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -342,20 +354,21 @@ date == o.date && geolocation_settings == o.geolocation_settings && organization == o.organization && presence_definitions == o.presence_definitions && locations == o.locations && + org_authorization == o.org_authorization && 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, self_uri].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, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)