purecloud 0.53.1 → 0.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/bin/notificationMappings.json +12 -0
  4. data/config-ruby.json +1 -1
  5. data/doc_out/ADFS.html.md +1 -1
  6. data/doc_out/Adjacents.html.md +15 -0
  7. data/doc_out/AgentActivityEntityListing.html.md +2 -2
  8. data/doc_out/AttemptLimitsEntityListing.html.md +2 -2
  9. data/doc_out/AttributeEntityListing.html.md +2 -2
  10. data/doc_out/CalibrationEntityListing.html.md +2 -2
  11. data/doc_out/CallConversationEntityListing.html.md +2 -2
  12. data/doc_out/CallConversationNotificationCallMediaParticipant.html.md +2 -0
  13. data/doc_out/CallConversationNotificationParticipants.html.md +3 -1
  14. data/doc_out/CallableTimeSetEntityListing.html.md +2 -2
  15. data/doc_out/CallbackConversationEntityListing.html.md +2 -2
  16. data/doc_out/CallbackConversationNotificationCallbackMediaParticipant.html.md +2 -0
  17. data/doc_out/CallbackConversationNotificationParticipants.html.md +2 -0
  18. data/doc_out/CampaignEntityListing.html.md +2 -2
  19. data/doc_out/CampaignSequenceEntityListing.html.md +2 -2
  20. data/doc_out/CertificateAuthorityEntityListing.html.md +2 -2
  21. data/doc_out/ChannelEntityListing.html.md +2 -2
  22. data/doc_out/ChatConversationEntityListing.html.md +2 -2
  23. data/doc_out/ChatConversationNotificationChatMediaParticipant.html.md +2 -0
  24. data/doc_out/ChatConversationNotificationParticipants.html.md +2 -0
  25. data/doc_out/CobrowseConversationEntityListing.html.md +2 -2
  26. data/doc_out/CobrowseConversationNotificationCobrowseMediaParticipant.html.md +2 -0
  27. data/doc_out/CobrowseConversationNotificationParticipants.html.md +2 -0
  28. data/doc_out/CommandStatusEntityListing.html.md +2 -2
  29. data/doc_out/ContactListEntityListing.html.md +2 -2
  30. data/doc_out/ConversationEntityListing.html.md +2 -2
  31. data/doc_out/ConversationNotificationParticipant.html.md +1 -0
  32. data/doc_out/ConversationNotificationParticipants.html.md +14 -13
  33. data/doc_out/CustomerInteractionCenter.html.md +1 -1
  34. data/doc_out/DIDEntityListing.html.md +2 -2
  35. data/doc_out/DIDPoolEntityListing.html.md +2 -2
  36. data/doc_out/DncListEntityListing.html.md +2 -2
  37. data/doc_out/DocumentAuditEntityListing.html.md +2 -2
  38. data/doc_out/DocumentEntityListing.html.md +2 -2
  39. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +2 -2
  40. data/doc_out/DomainEntityListing.html.md +2 -2
  41. data/doc_out/DomainEntityListingEvaluationForm.html.md +2 -2
  42. data/doc_out/DomainEntityListingQueryResult.html.md +2 -2
  43. data/doc_out/EdgeEntityListing.html.md +2 -2
  44. data/doc_out/EdgeGroupEntityListing.html.md +2 -2
  45. data/doc_out/EdgeLineEntityListing.html.md +2 -2
  46. data/doc_out/EmailConversationEntityListing.html.md +2 -2
  47. data/doc_out/EmailConversationNotificationEmailMediaParticipant.html.md +2 -0
  48. data/doc_out/EmailConversationNotificationParticipants.html.md +12 -10
  49. data/doc_out/EmailMessageListing.html.md +2 -2
  50. data/doc_out/EncryptionKeyEntityListing.html.md +2 -2
  51. data/doc_out/EndpointEntityListing.html.md +2 -2
  52. data/doc_out/EvaluationEntityListing.html.md +2 -2
  53. data/doc_out/EvaluationFormEntityListing.html.md +2 -2
  54. data/doc_out/EvaluatorActivityEntityListing.html.md +2 -2
  55. data/doc_out/ExtensionEntityListing.html.md +2 -2
  56. data/doc_out/ExtensionPoolEntityListing.html.md +2 -2
  57. data/doc_out/FaxDocumentEntityListing.html.md +2 -2
  58. data/doc_out/GroupEntityListing.html.md +2 -2
  59. data/doc_out/HeartBeatAlertContainer.html.md +2 -2
  60. data/doc_out/HeartBeatRuleContainer.html.md +2 -2
  61. data/doc_out/InboundDomainEntityListing.html.md +2 -2
  62. data/doc_out/InboundRouteEntityListing.html.md +2 -2
  63. data/doc_out/InteractionStatsAlertContainer.html.md +2 -2
  64. data/doc_out/InteractionStatsRuleContainer.html.md +2 -2
  65. data/doc_out/JsonNode.html.md +1 -1
  66. data/doc_out/KeywordSetEntityListing.html.md +2 -2
  67. data/doc_out/LanguageEntityListing.html.md +2 -2
  68. data/doc_out/LibraryEntityListing.html.md +2 -2
  69. data/doc_out/LineBaseEntityListing.html.md +2 -2
  70. data/doc_out/LineEntityListing.html.md +2 -2
  71. data/doc_out/LogicalInterfaceEntityListing.html.md +2 -2
  72. data/doc_out/OAuthClientEntityListing.html.md +2 -2
  73. data/doc_out/OAuthProviderEntityListing.html.md +2 -2
  74. data/doc_out/Okta.html.md +1 -1
  75. data/doc_out/OneLogin.html.md +1 -1
  76. data/doc_out/OrganizationPresenceEntityListing.html.md +2 -2
  77. data/doc_out/OrganizationRoleEntityListing.html.md +2 -2
  78. data/doc_out/OrphanRecordingListing.html.md +2 -2
  79. data/doc_out/OutboundRouteEntityListing.html.md +2 -2
  80. data/doc_out/PermissionCollectionEntityListing.html.md +2 -2
  81. data/doc_out/PhoneBaseEntityListing.html.md +2 -2
  82. data/doc_out/PhoneEntityListing.html.md +2 -2
  83. data/doc_out/PhoneMetaBaseEntityListing.html.md +2 -2
  84. data/doc_out/PhysicalInterfaceEntityListing.html.md +2 -2
  85. data/doc_out/PolicyEntityListing.html.md +2 -2
  86. data/doc_out/QualityAuditPage.html.md +2 -2
  87. data/doc_out/QueueEntityListing.html.md +2 -2
  88. data/doc_out/QueueMemberEntityListing.html.md +2 -2
  89. data/doc_out/QueueMemberNotification.html.md +16 -0
  90. data/doc_out/ReportMetaDataEntityListing.html.md +2 -2
  91. data/doc_out/ReportRunEntryEntityDomainListing.html.md +2 -2
  92. data/doc_out/ReportScheduleEntityListing.html.md +2 -2
  93. data/doc_out/ResponseEntityList.html.md +2 -2
  94. data/doc_out/ResponseEntityListing.html.md +2 -2
  95. data/doc_out/ResponseSetEntityListing.html.md +2 -2
  96. data/doc_out/RuleSetEntityListing.html.md +2 -2
  97. data/doc_out/Salesforce.html.md +1 -1
  98. data/doc_out/SchemaCategoryEntityListing.html.md +2 -2
  99. data/doc_out/SchemaReferenceEntityListing.html.md +2 -2
  100. data/doc_out/ScreenRecordingSessionListing.html.md +2 -2
  101. data/doc_out/ScreenShareConversationNotificationParticipants.html.md +3 -1
  102. data/doc_out/ScreenShareConversationNotificationScreenShareMediaParticipant.html.md +2 -0
  103. data/doc_out/SecurityProfileEntityListing.html.md +2 -2
  104. data/doc_out/ShareEntityListing.html.md +2 -2
  105. data/doc_out/SiteEntityListing.html.md +2 -2
  106. data/doc_out/SkillEntityListing.html.md +2 -2
  107. data/doc_out/SocialConversationNotificationParticipants.html.md +2 -0
  108. data/doc_out/SocialConversationNotificationSocialMediaParticipant.html.md +2 -0
  109. data/doc_out/StationEntityListing.html.md +2 -2
  110. data/doc_out/TagValueEntityListing.html.md +2 -2
  111. data/doc_out/TimeZoneEntityListing.html.md +2 -2
  112. data/doc_out/TrunkEntityListing.html.md +2 -2
  113. data/doc_out/TrunkMetabaseEntityListing.html.md +2 -2
  114. data/doc_out/UserEntityListing.html.md +2 -2
  115. data/doc_out/UserMe.html.md +4 -0
  116. data/doc_out/UserQueueEntityListing.html.md +2 -2
  117. data/doc_out/UserRecordingEntityListing.html.md +2 -2
  118. data/doc_out/UserRoutingStatusNotification.html.md +13 -0
  119. data/doc_out/UserRoutingStatusNotificationRoutingStatus.html.md +14 -0
  120. data/doc_out/UserSkillEntityListing.html.md +2 -2
  121. data/doc_out/UsersApi.html.md +246 -0
  122. data/doc_out/UsersEntityListing.html.md +2 -2
  123. data/doc_out/VideoConversationNotificationParticipants.html.md +2 -0
  124. data/doc_out/VideoConversationNotificationVideoMediaParticipant.html.md +2 -0
  125. data/doc_out/VoicemailMessageNotification.html.md +20 -0
  126. data/doc_out/WorkspaceEntityListing.html.md +2 -2
  127. data/doc_out/WorkspaceMemberEntityListing.html.md +2 -2
  128. data/doc_out/WrapupCodeEntityListing.html.md +2 -2
  129. data/doc_out/index.html.md +3 -3
  130. data/lib/purecloud.rb +5 -0
  131. data/lib/purecloud/api/users_api.rb +257 -0
  132. data/lib/purecloud/api_client.rb +1 -1
  133. data/lib/purecloud/models/adfs.rb +11 -11
  134. data/lib/purecloud/models/adjacents.rb +191 -0
  135. data/lib/purecloud/models/agent_activity_entity_listing.rb +21 -21
  136. data/lib/purecloud/models/attempt_limits_entity_listing.rb +21 -21
  137. data/lib/purecloud/models/attribute_entity_listing.rb +21 -21
  138. data/lib/purecloud/models/calibration_entity_listing.rb +21 -21
  139. data/lib/purecloud/models/call_conversation_entity_listing.rb +21 -21
  140. data/lib/purecloud/models/call_conversation_notification_call_media_participant.rb +21 -1
  141. data/lib/purecloud/models/call_conversation_notification_participants.rb +27 -7
  142. data/lib/purecloud/models/callable_time_set_entity_listing.rb +21 -21
  143. data/lib/purecloud/models/callback_conversation_entity_listing.rb +21 -21
  144. data/lib/purecloud/models/callback_conversation_notification_callback_media_participant.rb +21 -1
  145. data/lib/purecloud/models/callback_conversation_notification_participants.rb +21 -1
  146. data/lib/purecloud/models/campaign_entity_listing.rb +21 -21
  147. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +21 -21
  148. data/lib/purecloud/models/certificate_authority_entity_listing.rb +21 -21
  149. data/lib/purecloud/models/channel_entity_listing.rb +21 -21
  150. data/lib/purecloud/models/chat_conversation_entity_listing.rb +21 -21
  151. data/lib/purecloud/models/chat_conversation_notification_chat_media_participant.rb +21 -1
  152. data/lib/purecloud/models/chat_conversation_notification_participants.rb +21 -1
  153. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +21 -21
  154. data/lib/purecloud/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +21 -1
  155. data/lib/purecloud/models/cobrowse_conversation_notification_participants.rb +21 -1
  156. data/lib/purecloud/models/command_status_entity_listing.rb +21 -21
  157. data/lib/purecloud/models/contact_list_entity_listing.rb +21 -21
  158. data/lib/purecloud/models/conversation_entity_listing.rb +21 -21
  159. data/lib/purecloud/models/conversation_notification_participant.rb +11 -1
  160. data/lib/purecloud/models/conversation_notification_participants.rb +138 -128
  161. data/lib/purecloud/models/customer_interaction_center.rb +11 -11
  162. data/lib/purecloud/models/did_entity_listing.rb +21 -21
  163. data/lib/purecloud/models/did_pool_entity_listing.rb +21 -21
  164. data/lib/purecloud/models/dnc_list_entity_listing.rb +21 -21
  165. data/lib/purecloud/models/document_audit_entity_listing.rb +21 -21
  166. data/lib/purecloud/models/document_entity_listing.rb +21 -21
  167. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +21 -21
  168. data/lib/purecloud/models/domain_entity_listing.rb +21 -21
  169. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +21 -21
  170. data/lib/purecloud/models/domain_entity_listing_query_result.rb +21 -21
  171. data/lib/purecloud/models/edge_entity_listing.rb +21 -21
  172. data/lib/purecloud/models/edge_group_entity_listing.rb +21 -21
  173. data/lib/purecloud/models/edge_line_entity_listing.rb +21 -21
  174. data/lib/purecloud/models/email_conversation_entity_listing.rb +21 -21
  175. data/lib/purecloud/models/email_conversation_notification_email_media_participant.rb +21 -1
  176. data/lib/purecloud/models/email_conversation_notification_participants.rb +113 -93
  177. data/lib/purecloud/models/email_message_listing.rb +21 -21
  178. data/lib/purecloud/models/encryption_key_entity_listing.rb +21 -21
  179. data/lib/purecloud/models/endpoint_entity_listing.rb +21 -21
  180. data/lib/purecloud/models/evaluation_entity_listing.rb +21 -21
  181. data/lib/purecloud/models/evaluation_form_entity_listing.rb +21 -21
  182. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +21 -21
  183. data/lib/purecloud/models/extension_entity_listing.rb +21 -21
  184. data/lib/purecloud/models/extension_pool_entity_listing.rb +21 -21
  185. data/lib/purecloud/models/fax_document_entity_listing.rb +21 -21
  186. data/lib/purecloud/models/group_entity_listing.rb +21 -21
  187. data/lib/purecloud/models/heart_beat_alert_container.rb +21 -21
  188. data/lib/purecloud/models/heart_beat_rule_container.rb +21 -21
  189. data/lib/purecloud/models/inbound_domain_entity_listing.rb +21 -21
  190. data/lib/purecloud/models/inbound_route_entity_listing.rb +21 -21
  191. data/lib/purecloud/models/interaction_stats_alert_container.rb +21 -21
  192. data/lib/purecloud/models/interaction_stats_rule_container.rb +21 -21
  193. data/lib/purecloud/models/json_node.rb +13 -13
  194. data/lib/purecloud/models/keyword_set_entity_listing.rb +21 -21
  195. data/lib/purecloud/models/language_entity_listing.rb +21 -21
  196. data/lib/purecloud/models/library_entity_listing.rb +21 -21
  197. data/lib/purecloud/models/line_base_entity_listing.rb +21 -21
  198. data/lib/purecloud/models/line_entity_listing.rb +21 -21
  199. data/lib/purecloud/models/logical_interface_entity_listing.rb +21 -21
  200. data/lib/purecloud/models/o_auth_client_entity_listing.rb +21 -21
  201. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +21 -21
  202. data/lib/purecloud/models/okta.rb +11 -11
  203. data/lib/purecloud/models/one_login.rb +11 -11
  204. data/lib/purecloud/models/organization_presence_entity_listing.rb +21 -21
  205. data/lib/purecloud/models/organization_role_entity_listing.rb +21 -21
  206. data/lib/purecloud/models/orphan_recording_listing.rb +21 -21
  207. data/lib/purecloud/models/outbound_route_entity_listing.rb +21 -21
  208. data/lib/purecloud/models/permission_collection_entity_listing.rb +21 -21
  209. data/lib/purecloud/models/phone_base_entity_listing.rb +21 -21
  210. data/lib/purecloud/models/phone_entity_listing.rb +21 -21
  211. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +21 -21
  212. data/lib/purecloud/models/physical_interface_entity_listing.rb +21 -21
  213. data/lib/purecloud/models/policy_entity_listing.rb +21 -21
  214. data/lib/purecloud/models/quality_audit_page.rb +21 -21
  215. data/lib/purecloud/models/queue_entity_listing.rb +21 -21
  216. data/lib/purecloud/models/queue_member_entity_listing.rb +21 -21
  217. data/lib/purecloud/models/queue_member_notification.rb +195 -0
  218. data/lib/purecloud/models/report_meta_data_entity_listing.rb +21 -21
  219. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +21 -21
  220. data/lib/purecloud/models/report_schedule_entity_listing.rb +21 -21
  221. data/lib/purecloud/models/response_entity_list.rb +21 -21
  222. data/lib/purecloud/models/response_entity_listing.rb +21 -21
  223. data/lib/purecloud/models/response_set_entity_listing.rb +21 -21
  224. data/lib/purecloud/models/rule_set_entity_listing.rb +21 -21
  225. data/lib/purecloud/models/salesforce.rb +11 -11
  226. data/lib/purecloud/models/schema_category_entity_listing.rb +21 -21
  227. data/lib/purecloud/models/schema_reference_entity_listing.rb +21 -21
  228. data/lib/purecloud/models/screen_recording_session_listing.rb +21 -21
  229. data/lib/purecloud/models/screen_share_conversation_notification_participants.rb +31 -11
  230. data/lib/purecloud/models/screen_share_conversation_notification_screen_share_media_participant.rb +21 -1
  231. data/lib/purecloud/models/security_profile_entity_listing.rb +21 -21
  232. data/lib/purecloud/models/share_entity_listing.rb +21 -21
  233. data/lib/purecloud/models/site_entity_listing.rb +21 -21
  234. data/lib/purecloud/models/skill_entity_listing.rb +21 -21
  235. data/lib/purecloud/models/social_conversation_notification_participants.rb +21 -1
  236. data/lib/purecloud/models/social_conversation_notification_social_media_participant.rb +21 -1
  237. data/lib/purecloud/models/station_entity_listing.rb +21 -21
  238. data/lib/purecloud/models/tag_value_entity_listing.rb +21 -21
  239. data/lib/purecloud/models/time_zone_entity_listing.rb +21 -21
  240. data/lib/purecloud/models/trunk_entity_listing.rb +21 -21
  241. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +21 -21
  242. data/lib/purecloud/models/user_entity_listing.rb +21 -21
  243. data/lib/purecloud/models/user_me.rb +51 -1
  244. data/lib/purecloud/models/user_queue_entity_listing.rb +21 -21
  245. data/lib/purecloud/models/user_recording_entity_listing.rb +21 -21
  246. data/lib/purecloud/models/user_routing_status_notification.rb +165 -0
  247. data/lib/purecloud/models/user_routing_status_notification_routing_status.rb +184 -0
  248. data/lib/purecloud/models/user_skill_entity_listing.rb +21 -21
  249. data/lib/purecloud/models/users_entity_listing.rb +21 -21
  250. data/lib/purecloud/models/video_conversation_notification_participants.rb +21 -1
  251. data/lib/purecloud/models/video_conversation_notification_video_media_participant.rb +21 -1
  252. data/lib/purecloud/models/voicemail_message_notification.rb +235 -0
  253. data/lib/purecloud/models/workspace_entity_listing.rb +21 -21
  254. data/lib/purecloud/models/workspace_member_entity_listing.rb +21 -21
  255. data/lib/purecloud/models/wrapup_code_entity_listing.rb +21 -21
  256. data/lib/purecloud/version.rb +1 -1
  257. data/newVersion.md +1 -1
  258. data/swagger.json +1 -1
  259. data/version.json +1 -1
  260. metadata +12 -2
@@ -511,6 +511,68 @@ module PureCloud
511
511
  return data, status_code, headers
512
512
  end
513
513
 
514
+ # Get adjacents
515
+ #
516
+ # @param user_id User ID
517
+ # @param [Hash] opts the optional parameters
518
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
519
+ # @return [nil]
520
+ def get_user_id_adjacents(user_id, opts = {})
521
+ get_user_id_adjacents_with_http_info(user_id, opts)
522
+ return nil
523
+ end
524
+
525
+ # Get adjacents
526
+ #
527
+ # @param user_id User ID
528
+ # @param [Hash] opts the optional parameters
529
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
530
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
531
+ def get_user_id_adjacents_with_http_info(user_id, opts = {})
532
+ if @api_client.config.debugging
533
+ @api_client.config.logger.debug "Calling API: UsersApi#get_user_id_adjacents ..."
534
+ end
535
+
536
+ # verify the required parameter 'user_id' is set
537
+ fail "Missing the required parameter 'user_id' when calling get_user_id_adjacents" if user_id.nil?
538
+
539
+ # resource path
540
+ local_var_path = "/api/v2/users/{userId}/adjacents".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
541
+
542
+ # query parameters
543
+ query_params = {}
544
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
545
+
546
+ # header parameters
547
+ header_params = {}
548
+
549
+ # HTTP header 'Accept' (if needed)
550
+ _header_accept = ['application/json']
551
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
552
+
553
+ # HTTP header 'Content-Type'
554
+ _header_content_type = ['application/json']
555
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
556
+
557
+ # form parameters
558
+ form_params = {}
559
+
560
+ # http body (model)
561
+ post_body = nil
562
+
563
+ auth_names = ['PureCloud Auth']
564
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
565
+ :header_params => header_params,
566
+ :query_params => query_params,
567
+ :form_params => form_params,
568
+ :body => post_body,
569
+ :auth_names => auth_names)
570
+ if @api_client.config.debugging
571
+ @api_client.config.logger.debug "API called: UsersApi#get_user_id_adjacents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
572
+ end
573
+ return data, status_code, headers
574
+ end
575
+
514
576
  # Get a user's CallForwarding
515
577
  #
516
578
  # @param user_id User ID
@@ -571,6 +633,139 @@ module PureCloud
571
633
  return data, status_code, headers
572
634
  end
573
635
 
636
+ # Get direct reports
637
+ #
638
+ # @param user_id User ID
639
+ # @param [Hash] opts the optional parameters
640
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
641
+ # @return [nil]
642
+ def get_user_id_directreports(user_id, opts = {})
643
+ get_user_id_directreports_with_http_info(user_id, opts)
644
+ return nil
645
+ end
646
+
647
+ # Get direct reports
648
+ #
649
+ # @param user_id User ID
650
+ # @param [Hash] opts the optional parameters
651
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
652
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
653
+ def get_user_id_directreports_with_http_info(user_id, opts = {})
654
+ if @api_client.config.debugging
655
+ @api_client.config.logger.debug "Calling API: UsersApi#get_user_id_directreports ..."
656
+ end
657
+
658
+ # verify the required parameter 'user_id' is set
659
+ fail "Missing the required parameter 'user_id' when calling get_user_id_directreports" if user_id.nil?
660
+
661
+ # resource path
662
+ local_var_path = "/api/v2/users/{userId}/directreports".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
663
+
664
+ # query parameters
665
+ query_params = {}
666
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
667
+
668
+ # header parameters
669
+ header_params = {}
670
+
671
+ # HTTP header 'Accept' (if needed)
672
+ _header_accept = ['application/json']
673
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
674
+
675
+ # HTTP header 'Content-Type'
676
+ _header_content_type = ['application/json']
677
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
678
+
679
+ # form parameters
680
+ form_params = {}
681
+
682
+ # http body (model)
683
+ post_body = nil
684
+
685
+ auth_names = ['PureCloud Auth']
686
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
687
+ :header_params => header_params,
688
+ :query_params => query_params,
689
+ :form_params => form_params,
690
+ :body => post_body,
691
+ :auth_names => auth_names)
692
+ if @api_client.config.debugging
693
+ @api_client.config.logger.debug "API called: UsersApi#get_user_id_directreports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
694
+ end
695
+ return data, status_code, headers
696
+ end
697
+
698
+ # Get favorites
699
+ #
700
+ # @param user_id User ID
701
+ # @param [Hash] opts the optional parameters
702
+ # @option opts [Integer] :page_size Page size (default to 25)
703
+ # @option opts [Integer] :page_number Page number (default to 1)
704
+ # @option opts [String] :sort_order Sort order (default to ASC)
705
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
706
+ # @return [nil]
707
+ def get_user_id_favorites(user_id, opts = {})
708
+ get_user_id_favorites_with_http_info(user_id, opts)
709
+ return nil
710
+ end
711
+
712
+ # Get favorites
713
+ #
714
+ # @param user_id User ID
715
+ # @param [Hash] opts the optional parameters
716
+ # @option opts [Integer] :page_size Page size
717
+ # @option opts [Integer] :page_number Page number
718
+ # @option opts [String] :sort_order Sort order
719
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
720
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
721
+ def get_user_id_favorites_with_http_info(user_id, opts = {})
722
+ if @api_client.config.debugging
723
+ @api_client.config.logger.debug "Calling API: UsersApi#get_user_id_favorites ..."
724
+ end
725
+
726
+ # verify the required parameter 'user_id' is set
727
+ fail "Missing the required parameter 'user_id' when calling get_user_id_favorites" if user_id.nil?
728
+
729
+ # resource path
730
+ local_var_path = "/api/v2/users/{userId}/favorites".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
731
+
732
+ # query parameters
733
+ query_params = {}
734
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
735
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
736
+ query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
737
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
738
+
739
+ # header parameters
740
+ header_params = {}
741
+
742
+ # HTTP header 'Accept' (if needed)
743
+ _header_accept = ['application/json']
744
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
745
+
746
+ # HTTP header 'Content-Type'
747
+ _header_content_type = ['application/json']
748
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
749
+
750
+ # form parameters
751
+ form_params = {}
752
+
753
+ # http body (model)
754
+ post_body = nil
755
+
756
+ auth_names = ['PureCloud Auth']
757
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
758
+ :header_params => header_params,
759
+ :query_params => query_params,
760
+ :form_params => form_params,
761
+ :body => post_body,
762
+ :auth_names => auth_names)
763
+ if @api_client.config.debugging
764
+ @api_client.config.logger.debug "API called: UsersApi#get_user_id_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
765
+ end
766
+ return data, status_code, headers
767
+ end
768
+
574
769
  # Get a user's Geolocation
575
770
  #
576
771
  # @param user_id user Id
@@ -1078,6 +1273,68 @@ module PureCloud
1078
1273
  return data, status_code, headers
1079
1274
  end
1080
1275
 
1276
+ # Get superiors
1277
+ #
1278
+ # @param user_id User ID
1279
+ # @param [Hash] opts the optional parameters
1280
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1281
+ # @return [nil]
1282
+ def get_user_id_superiors(user_id, opts = {})
1283
+ get_user_id_superiors_with_http_info(user_id, opts)
1284
+ return nil
1285
+ end
1286
+
1287
+ # Get superiors
1288
+ #
1289
+ # @param user_id User ID
1290
+ # @param [Hash] opts the optional parameters
1291
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1292
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1293
+ def get_user_id_superiors_with_http_info(user_id, opts = {})
1294
+ if @api_client.config.debugging
1295
+ @api_client.config.logger.debug "Calling API: UsersApi#get_user_id_superiors ..."
1296
+ end
1297
+
1298
+ # verify the required parameter 'user_id' is set
1299
+ fail "Missing the required parameter 'user_id' when calling get_user_id_superiors" if user_id.nil?
1300
+
1301
+ # resource path
1302
+ local_var_path = "/api/v2/users/{userId}/superiors".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
1303
+
1304
+ # query parameters
1305
+ query_params = {}
1306
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1307
+
1308
+ # header parameters
1309
+ header_params = {}
1310
+
1311
+ # HTTP header 'Accept' (if needed)
1312
+ _header_accept = ['application/json']
1313
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1314
+
1315
+ # HTTP header 'Content-Type'
1316
+ _header_content_type = ['application/json']
1317
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1318
+
1319
+ # form parameters
1320
+ form_params = {}
1321
+
1322
+ # http body (model)
1323
+ post_body = nil
1324
+
1325
+ auth_names = ['PureCloud Auth']
1326
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1327
+ :header_params => header_params,
1328
+ :query_params => query_params,
1329
+ :form_params => form_params,
1330
+ :body => post_body,
1331
+ :auth_names => auth_names)
1332
+ if @api_client.config.debugging
1333
+ @api_client.config.logger.debug "API called: UsersApi#get_user_id_superiors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1334
+ end
1335
+ return data, status_code, headers
1336
+ end
1337
+
1081
1338
  # Get the list of available users.
1082
1339
  #
1083
1340
  # @param [Hash] opts the optional parameters
@@ -33,7 +33,7 @@ module PureCloud
33
33
 
34
34
  def initialize(config = Configuration.default)
35
35
  @config = config
36
- @user_agent = "PureCloud SDK/Ruby 0.53.1"
36
+ @user_agent = "PureCloud SDK/Ruby 0.54.1"
37
37
  @default_headers = {
38
38
  'Content-Type' => "application/json",
39
39
  'User-Agent' => @user_agent
@@ -27,10 +27,10 @@ module PureCloud
27
27
 
28
28
  attr_accessor :certificate
29
29
 
30
- attr_accessor :issuer_uri
31
-
32
30
  attr_accessor :sso_target_uri
33
31
 
32
+ attr_accessor :issuer_uri
33
+
34
34
  attr_accessor :disabled
35
35
 
36
36
  # The URI for this object
@@ -48,10 +48,10 @@ module PureCloud
48
48
 
49
49
  :'certificate' => :'certificate',
50
50
 
51
- :'issuer_uri' => :'issuerURI',
52
-
53
51
  :'sso_target_uri' => :'ssoTargetURI',
54
52
 
53
+ :'issuer_uri' => :'issuerURI',
54
+
55
55
  :'disabled' => :'disabled',
56
56
 
57
57
  :'self_uri' => :'selfUri'
@@ -66,8 +66,8 @@ module PureCloud
66
66
  :'name' => :'String',
67
67
  :'relying_party_identifier' => :'String',
68
68
  :'certificate' => :'String',
69
- :'issuer_uri' => :'String',
70
69
  :'sso_target_uri' => :'String',
70
+ :'issuer_uri' => :'String',
71
71
  :'disabled' => :'BOOLEAN',
72
72
  :'self_uri' => :'String'
73
73
 
@@ -97,14 +97,14 @@ module PureCloud
97
97
  self.certificate = attributes[:'certificate']
98
98
  end
99
99
 
100
- if attributes[:'issuerURI']
101
- self.issuer_uri = attributes[:'issuerURI']
102
- end
103
-
104
100
  if attributes[:'ssoTargetURI']
105
101
  self.sso_target_uri = attributes[:'ssoTargetURI']
106
102
  end
107
103
 
104
+ if attributes[:'issuerURI']
105
+ self.issuer_uri = attributes[:'issuerURI']
106
+ end
107
+
108
108
  if attributes[:'disabled']
109
109
  self.disabled = attributes[:'disabled']
110
110
  else
@@ -125,8 +125,8 @@ module PureCloud
125
125
  name == o.name &&
126
126
  relying_party_identifier == o.relying_party_identifier &&
127
127
  certificate == o.certificate &&
128
- issuer_uri == o.issuer_uri &&
129
128
  sso_target_uri == o.sso_target_uri &&
129
+ issuer_uri == o.issuer_uri &&
130
130
  disabled == o.disabled &&
131
131
  self_uri == o.self_uri
132
132
  end
@@ -138,7 +138,7 @@ module PureCloud
138
138
 
139
139
  # Calculate hash code according to all attributes.
140
140
  def hash
141
- [id, name, relying_party_identifier, certificate, issuer_uri, sso_target_uri, disabled, self_uri].hash
141
+ [id, name, relying_party_identifier, certificate, sso_target_uri, issuer_uri, disabled, self_uri].hash
142
142
  end
143
143
 
144
144
  # build the object from hash
@@ -0,0 +1,191 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@inin.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class Adjacents
21
+ attr_accessor :superiors
22
+
23
+ attr_accessor :siblings
24
+
25
+ attr_accessor :direct_reports
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+
31
+ :'superiors' => :'superiors',
32
+
33
+ :'siblings' => :'siblings',
34
+
35
+ :'direct_reports' => :'directReports'
36
+
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'superiors' => :'Array<User>',
44
+ :'siblings' => :'Array<User>',
45
+ :'direct_reports' => :'Array<User>'
46
+
47
+ }
48
+ end
49
+
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
55
+
56
+
57
+ if attributes[:'superiors']
58
+ if (value = attributes[:'superiors']).is_a?(Array)
59
+ self.superiors = value
60
+ end
61
+ end
62
+
63
+ if attributes[:'siblings']
64
+ if (value = attributes[:'siblings']).is_a?(Array)
65
+ self.siblings = value
66
+ end
67
+ end
68
+
69
+ if attributes[:'directReports']
70
+ if (value = attributes[:'directReports']).is_a?(Array)
71
+ self.direct_reports = value
72
+ end
73
+ end
74
+
75
+ end
76
+
77
+ # Check equality by comparing each attribute.
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ superiors == o.superiors &&
82
+ siblings == o.siblings &&
83
+ direct_reports == o.direct_reports
84
+ end
85
+
86
+ # @see the `==` method
87
+ def eql?(o)
88
+ self == o
89
+ end
90
+
91
+ # Calculate hash code according to all attributes.
92
+ def hash
93
+ [superiors, siblings, direct_reports].hash
94
+ end
95
+
96
+ # build the object from hash
97
+ def build_from_hash(attributes)
98
+ return nil unless attributes.is_a?(Hash)
99
+ self.class.swagger_types.each_pair do |key, type|
100
+ if type =~ /^Array<(.*)>/i
101
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
103
+ else
104
+ #TODO show warning in debug mode
105
+ end
106
+ elsif !attributes[self.class.attribute_map[key]].nil?
107
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
108
+ else
109
+ # data not found in attributes(hash), not an issue as the data can be optional
110
+ end
111
+ end
112
+
113
+ self
114
+ end
115
+
116
+ def _deserialize(type, value)
117
+ case type.to_sym
118
+ when :DateTime
119
+ DateTime.parse(value)
120
+ when :Date
121
+ Date.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :BOOLEAN
129
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ _model = Object.const_get("PureCloud").const_get(type).new
150
+ _model.build_from_hash(value)
151
+ end
152
+ end
153
+
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_body (backward compatibility))
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # return the object in the form of hash
164
+ def to_hash
165
+ hash = {}
166
+ self.class.attribute_map.each_pair do |attr, param|
167
+ value = self.send(attr)
168
+ next if value.nil?
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ # Method to output non-array value in the form of hash
175
+ # For object, use to_hash. Otherwise, just return the value
176
+ def _to_hash(value)
177
+ if value.is_a?(Array)
178
+ value.compact.map{ |v| _to_hash(v) }
179
+ elsif value.is_a?(Hash)
180
+ {}.tap do |hash|
181
+ value.each { |k, v| hash[k] = _to_hash(v) }
182
+ end
183
+ elsif value.respond_to? :to_hash
184
+ value.to_hash
185
+ else
186
+ value
187
+ end
188
+ end
189
+
190
+ end
191
+ end