lib/purecloud/models/user_me.rb in purecloud-0.53.1 vs lib/purecloud/models/user_me.rb in purecloud-0.54.1
- old
+ new
@@ -87,10 +87,22 @@
attr_accessor :locations
# The first 100 organization roles, with applicable permission policies, for user's organization.
attr_accessor :org_authorization
+ # The first 50 favorited users.
+ attr_accessor :favorites
+
+ # The first 50 superiors of this user.
+ attr_accessor :superiors
+
+ # The first 50 direct reports to this user.
+ 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 URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -146,10 +158,18 @@
:'locations' => :'locations',
:'org_authorization' => :'orgAuthorization',
+ :'favorites' => :'favorites',
+
+ :'superiors' => :'superiors',
+
+ :'direct_reports' => :'directReports',
+
+ :'adjacents' => :'adjacents',
+
:'self_uri' => :'selfUri'
}
end
@@ -180,10 +200,14 @@
:'geolocation_settings' => :'GeolocationSettings',
:'organization' => :'Organization',
:'presence_definitions' => :'Array<OrganizationPresence>',
:'locations' => :'Array<Location>',
:'org_authorization' => :'Array<DomainOrganizationRole>',
+ :'favorites' => :'Array<User>',
+ :'superiors' => :'Array<User>',
+ :'direct_reports' => :'Array<User>',
+ :'adjacents' => :'Adjacents',
:'self_uri' => :'String'
}
end
@@ -310,10 +334,32 @@
if (value = attributes[:'orgAuthorization']).is_a?(Array)
self.org_authorization = value
end
end
+ if attributes[:'favorites']
+ if (value = attributes[:'favorites']).is_a?(Array)
+ self.favorites = value
+ end
+ end
+
+ if attributes[:'superiors']
+ if (value = attributes[:'superiors']).is_a?(Array)
+ self.superiors = value
+ end
+ end
+
+ if attributes[:'directReports']
+ if (value = attributes[:'directReports']).is_a?(Array)
+ self.direct_reports = value
+ end
+ end
+
+ if attributes[:'adjacents']
+ self.adjacents = attributes[:'adjacents']
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -355,20 +401,24 @@
geolocation_settings == o.geolocation_settings &&
organization == o.organization &&
presence_definitions == o.presence_definitions &&
locations == o.locations &&
org_authorization == o.org_authorization &&
+ favorites == o.favorites &&
+ superiors == o.superiors &&
+ direct_reports == o.direct_reports &&
+ adjacents == o.adjacents &&
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, 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, favorites, superiors, direct_reports, adjacents, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)