lib/purecloud/models/user_me.rb in purecloud-0.38.1 vs lib/purecloud/models/user_me.rb in purecloud-0.39.1
- old
+ new
@@ -66,13 +66,25 @@
attr_accessor :station
# Roles and permissions assigned to the user
attr_accessor :authorization
- # Details about the organization the user is a member of
+ # The PureCloud system date time.
+ attr_accessor :date
+
+ # Geolocation settings for user's organization.
+ attr_accessor :geolocation_settings
+
+ # Organization details for this user.
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 URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -114,12 +126,20 @@
:'station' => :'station',
:'authorization' => :'authorization',
+ :'date' => :'date',
+
+ :'geolocation_settings' => :'geolocationSettings',
+
:'organization' => :'organization',
+ :'presence_definitions' => :'presenceDefinitions',
+
+ :'locations' => :'locations',
+
:'self_uri' => :'selfUri'
}
end
@@ -143,11 +163,15 @@
:'conversation_summary' => :'UserConversationSummary',
:'out_of_office' => :'OutOfOffice',
:'geolocation' => :'Geolocation',
:'station' => :'UserStations',
:'authorization' => :'UserAuthorization',
+ :'date' => :'ServerDate',
+ :'geolocation_settings' => :'GeolocationSettings',
:'organization' => :'Organization',
+ :'presence_definitions' => :'Array<OrganizationPresence>',
+ :'locations' => :'Array<Location>',
:'self_uri' => :'String'
}
end
@@ -238,14 +262,34 @@
if attributes[:'authorization']
self.authorization = attributes[:'authorization']
end
+ if attributes[:'date']
+ self.date = attributes[:'date']
+ end
+
+ if attributes[:'geolocationSettings']
+ self.geolocation_settings = attributes[:'geolocationSettings']
+ end
+
if attributes[:'organization']
self.organization = attributes[:'organization']
end
+ if attributes[:'presenceDefinitions']
+ 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
+ end
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -280,21 +324,25 @@
conversation_summary == o.conversation_summary &&
out_of_office == o.out_of_office &&
geolocation == o.geolocation &&
station == o.station &&
authorization == o.authorization &&
+ date == o.date &&
+ geolocation_settings == o.geolocation_settings &&
organization == o.organization &&
+ presence_definitions == o.presence_definitions &&
+ locations == o.locations &&
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, organization, 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, date, geolocation_settings, organization, presence_definitions, locations, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)