lib/purecloud/models/user_me.rb in purecloud-0.57.1 vs lib/purecloud/models/user_me.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 PureCloud system date time.
attr_accessor :date
# Geolocation settings for user's organization.
attr_accessor :geolocation_settings
@@ -83,12 +86,12 @@
attr_accessor :organization
# The first 100 presence definitions for user's organization.
attr_accessor :presence_definitions
- # The first 100 locations for user's organization
- attr_accessor :locations
+ # The first 100 site locations for user's organization
+ attr_accessor :location_definitions
# The first 100 organization roles, with applicable permission policies, for user's organization.
attr_accessor :org_authorization
# The first 50 favorited users.
@@ -153,19 +156,21 @@
:'authorization' => :'authorization',
:'profile_skills' => :'profileSkills',
+ :'locations' => :'locations',
+
:'date' => :'date',
:'geolocation_settings' => :'geolocationSettings',
:'organization' => :'organization',
:'presence_definitions' => :'presenceDefinitions',
- :'locations' => :'locations',
+ :'location_definitions' => :'locationDefinitions',
:'org_authorization' => :'orgAuthorization',
:'favorites' => :'favorites',
@@ -204,15 +209,16 @@
:'out_of_office' => :'OutOfOffice',
:'geolocation' => :'Geolocation',
:'station' => :'UserStations',
:'authorization' => :'UserAuthorization',
:'profile_skills' => :'Array<String>',
+ :'locations' => :'Array<Location>',
:'date' => :'ServerDate',
:'geolocation_settings' => :'GeolocationSettings',
:'organization' => :'Organization',
:'presence_definitions' => :'Array<OrganizationPresence>',
- :'locations' => :'Array<Location>',
+ :'location_definitions' => :'Array<LocationDefinition>',
:'org_authorization' => :'Array<DomainOrganizationRole>',
:'favorites' => :'Array<User>',
:'superiors' => :'Array<User>',
:'direct_reports' => :'Array<User>',
:'adjacents' => :'Adjacents',
@@ -319,10 +325,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[:'date']
self.date = attributes[:'date']
end
if attributes[:'geolocationSettings']
@@ -337,13 +349,13 @@
if (value = attributes[:'presenceDefinitions']).is_a?(Array)
self.presence_definitions = value
end
end
- if attributes[:'locations']
- if (value = attributes[:'locations']).is_a?(Array)
- self.locations = value
+ if attributes[:'locationDefinitions']
+ if (value = attributes[:'locationDefinitions']).is_a?(Array)
+ self.location_definitions = value
end
end
if attributes[:'orgAuthorization']
if (value = attributes[:'orgAuthorization']).is_a?(Array)
@@ -417,15 +429,16 @@
out_of_office == o.out_of_office &&
geolocation == o.geolocation &&
station == o.station &&
authorization == o.authorization &&
profile_skills == o.profile_skills &&
+ locations == o.locations &&
date == o.date &&
geolocation_settings == o.geolocation_settings &&
organization == o.organization &&
presence_definitions == o.presence_definitions &&
- locations == o.locations &&
+ location_definitions == o.location_definitions &&
org_authorization == o.org_authorization &&
favorites == o.favorites &&
superiors == o.superiors &&
direct_reports == o.direct_reports &&
adjacents == o.adjacents &&
@@ -438,10 +451,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, 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
+ [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, date, geolocation_settings, organization, presence_definitions, location_definitions, 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)