purecloudplatformclientv2 42.0.0 → 43.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (440) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ADFS.md +1 -1
  4. data/docs/ActionEntityListing.md +2 -2
  5. data/docs/AgentActivityEntityListing.md +2 -2
  6. data/docs/AnalyticsApi.md +66 -0
  7. data/docs/AnalyticsSurvey.md +1 -0
  8. data/docs/AttemptLimitsEntityListing.md +2 -2
  9. data/docs/AttributeEntityListing.md +2 -2
  10. data/docs/AuthorizationApi.md +1278 -185
  11. data/docs/AuthzDivision.md +18 -0
  12. data/docs/AuthzDivisionEntityListing.md +22 -0
  13. data/docs/AuthzGrant.md +16 -0
  14. data/docs/AuthzGrantPolicy.md +16 -0
  15. data/docs/AuthzGrantRole.md +18 -0
  16. data/docs/AuthzSubject.md +17 -0
  17. data/docs/CalibrationEntityListing.md +2 -2
  18. data/docs/CallConversationEntityListing.md +2 -2
  19. data/docs/CallHistoryConversationEntityListing.md +2 -2
  20. data/docs/CallableTimeSetEntityListing.md +2 -2
  21. data/docs/CallbackConversationEntityListing.md +2 -2
  22. data/docs/CampaignDivisionViewListing.md +2 -2
  23. data/docs/CampaignEntityListing.md +2 -2
  24. data/docs/CampaignRuleEntityListing.md +2 -2
  25. data/docs/CampaignSequenceEntityListing.md +2 -2
  26. data/docs/CertificateAuthorityEntityListing.md +2 -2
  27. data/docs/CertificateDetails.md +1 -1
  28. data/docs/ChatBadgeNotificationBadgeEntity.md +1 -3
  29. data/docs/ChatBadgeNotificationEntity.md +1 -3
  30. data/docs/ChatConversationEntityListing.md +2 -2
  31. data/docs/ClientAppEntityListing.md +2 -2
  32. data/docs/CobrowseConversationEntityListing.md +2 -2
  33. data/docs/CommandStatusEntityListing.md +2 -2
  34. data/docs/ConsumedResourcesEntityListing.md +2 -2
  35. data/docs/ConsumingResourcesEntityListing.md +2 -2
  36. data/docs/ContactListEntityListing.md +2 -2
  37. data/docs/ContactListFilterEntityListing.md +2 -2
  38. data/docs/ContactListing.md +2 -2
  39. data/docs/ConversationEntityListing.md +2 -2
  40. data/docs/ConversationQuery.md +1 -0
  41. data/docs/CreateCallbackCommand.md +1 -0
  42. data/docs/CreateCallbackOnConversationCommand.md +1 -0
  43. data/docs/CreateQueueRequest.md +1 -1
  44. data/docs/CredentialInfoListing.md +2 -2
  45. data/docs/CredentialTypeListing.md +2 -2
  46. data/docs/CustomerInteractionCenter.md +1 -1
  47. data/docs/DIDEntityListing.md +2 -2
  48. data/docs/DIDPoolEntityListing.md +2 -2
  49. data/docs/DataTableRowEntityListing.md +2 -2
  50. data/docs/DataTablesDomainEntityListing.md +2 -2
  51. data/docs/DependencyObjectEntityListing.md +2 -2
  52. data/docs/DependencyTypeEntityListing.md +2 -2
  53. data/docs/DialerEventEntityListing.md +2 -2
  54. data/docs/DirectoryUserDevicesListing.md +2 -2
  55. data/docs/DncListEntityListing.md +2 -2
  56. data/docs/Document.md +1 -1
  57. data/docs/DocumentAuditEntityListing.md +2 -2
  58. data/docs/DocumentEntityListing.md +2 -2
  59. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  60. data/docs/DomainEntityListing.md +2 -2
  61. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  62. data/docs/DomainEntityListingQueryResult.md +2 -2
  63. data/docs/DomainEntityListingSurveyForm.md +2 -2
  64. data/docs/DomainOrganizationRole.md +1 -1
  65. data/docs/DomainOrganizationRoleCreate.md +1 -1
  66. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  67. data/docs/EdgeEntityListing.md +2 -2
  68. data/docs/EdgeGroupEntityListing.md +2 -2
  69. data/docs/EdgeLineEntityListing.md +2 -2
  70. data/docs/EmailConversationEntityListing.md +2 -2
  71. data/docs/EmailMessageListing.md +2 -2
  72. data/docs/EmergencyGroupListing.md +2 -2
  73. data/docs/EncryptionKeyEntityListing.md +2 -2
  74. data/docs/EndpointEntityListing.md +2 -2
  75. data/docs/EvaluationEntityListing.md +2 -2
  76. data/docs/EvaluationFormEntityListing.md +2 -2
  77. data/docs/EvaluatorActivityEntityListing.md +2 -2
  78. data/docs/ExtensionEntityListing.md +2 -2
  79. data/docs/ExtensionPoolEntityListing.md +2 -2
  80. data/docs/ExternalOrganizationListing.md +2 -2
  81. data/docs/FacebookIntegration.md +24 -0
  82. data/docs/FacebookIntegrationEntityListing.md +22 -0
  83. data/docs/FacebookIntegrationRequest.md +20 -0
  84. data/docs/FaxDocument.md +1 -1
  85. data/docs/FaxDocumentEntityListing.md +2 -2
  86. data/docs/FlowDivisionViewEntityListing.md +2 -2
  87. data/docs/FlowEntityListing.md +2 -2
  88. data/docs/FlowVersionEntityListing.md +2 -2
  89. data/docs/FlowsApi.md +78 -0
  90. data/docs/GDPRRequestEntityListing.md +2 -2
  91. data/docs/GDPRSubjectEntityListing.md +2 -2
  92. data/docs/GKNDocumentationResult.md +16 -0
  93. data/docs/GKNDocumentationSearchCriteria.md +20 -0
  94. data/docs/GKNDocumentationSearchRequest.md +18 -0
  95. data/docs/GKNDocumentationSearchResponse.md +21 -0
  96. data/docs/GSuite.md +1 -1
  97. data/docs/GreetingListing.md +2 -2
  98. data/docs/GroupEntityListing.md +2 -2
  99. data/docs/GroupProfileEntityListing.md +2 -2
  100. data/docs/GroupsApi.md +1 -1
  101. data/docs/IVREntityListing.md +2 -2
  102. data/docs/IdentityNow.md +1 -1
  103. data/docs/InboundDomainEntityListing.md +2 -2
  104. data/docs/InboundRouteEntityListing.md +2 -2
  105. data/docs/IntegrationEntityListing.md +2 -2
  106. data/docs/IntegrationEventEntityListing.md +2 -2
  107. data/docs/IntegrationTypeEntityListing.md +2 -2
  108. data/docs/InteractionStatsAlertContainer.md +2 -2
  109. data/docs/InteractionStatsRuleContainer.md +2 -2
  110. data/docs/JsonNode.md +6 -6
  111. data/docs/KeywordSetEntityListing.md +2 -2
  112. data/docs/LanguageEntityListing.md +2 -2
  113. data/docs/LibraryEntityListing.md +2 -2
  114. data/docs/LineBaseEntityListing.md +2 -2
  115. data/docs/LineEntityListing.md +2 -2
  116. data/docs/LineIntegration.md +24 -0
  117. data/docs/LineIntegrationEntityListing.md +22 -0
  118. data/docs/LineIntegrationRequest.md +19 -0
  119. data/docs/LocationEntityListing.md +2 -2
  120. data/docs/LogicalInterfaceEntityListing.md +2 -2
  121. data/docs/ManagementUnitListing.md +2 -2
  122. data/docs/MessageConversationEntityListing.md +2 -2
  123. data/docs/MessagingApi.md +1015 -0
  124. data/docs/MessagingSticker.md +22 -0
  125. data/docs/MessagingStickerEntityListing.md +22 -0
  126. data/docs/NoteListing.md +2 -2
  127. data/docs/OAuthClientEntityListing.md +2 -2
  128. data/docs/OAuthProviderEntityListing.md +2 -2
  129. data/docs/ObjectsApi.md +554 -0
  130. data/docs/Okta.md +1 -1
  131. data/docs/OneLogin.md +1 -1
  132. data/docs/OrgUser.md +3 -1
  133. data/docs/OrganizationPresenceEntityListing.md +2 -2
  134. data/docs/OrganizationRoleEntityListing.md +2 -2
  135. data/docs/OrphanRecordingListing.md +2 -2
  136. data/docs/OutboundApi.md +2 -2
  137. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  138. data/docs/OutboundRouteEntityListing.md +2 -2
  139. data/docs/PermissionCollectionEntityListing.md +2 -2
  140. data/docs/PhoneBaseEntityListing.md +2 -2
  141. data/docs/PhoneEntityListing.md +2 -2
  142. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  143. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  144. data/docs/PingIdentity.md +1 -1
  145. data/docs/PolicyEntityListing.md +2 -2
  146. data/docs/PresenceApi.md +66 -0
  147. data/docs/PromptAsset.md +1 -0
  148. data/docs/PromptAssetCreate.md +1 -0
  149. data/docs/PromptAssetEntityListing.md +2 -2
  150. data/docs/PromptEntityListing.md +2 -2
  151. data/docs/QualityAuditPage.md +2 -2
  152. data/docs/QueueEntityListing.md +2 -2
  153. data/docs/QueueMemberEntityListing.md +2 -2
  154. data/docs/QueueRequest.md +1 -1
  155. data/docs/RecipientListing.md +2 -2
  156. data/docs/RelationshipListing.md +2 -2
  157. data/docs/ReportMetaDataEntityListing.md +2 -2
  158. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  159. data/docs/ReportScheduleEntityListing.md +2 -2
  160. data/docs/ReportingExportJobListing.md +2 -2
  161. data/docs/ResponseConfig.md +1 -0
  162. data/docs/ResponseEntityList.md +2 -2
  163. data/docs/ResponseEntityListing.md +2 -2
  164. data/docs/ResponseSetEntityListing.md +2 -2
  165. data/docs/RoutingApi.md +144 -4
  166. data/docs/RuleSetEntityListing.md +2 -2
  167. data/docs/Salesforce.md +1 -1
  168. data/docs/ScheduleEntityListing.md +2 -2
  169. data/docs/ScheduleGroupEntityListing.md +2 -2
  170. data/docs/SchemaCategoryEntityListing.md +2 -2
  171. data/docs/SchemaReferenceEntityListing.md +2 -2
  172. data/docs/ScreenRecordingSessionListing.md +2 -2
  173. data/docs/ScriptEntityListing.md +2 -2
  174. data/docs/SearchApi.md +132 -2
  175. data/docs/SecurityProfileEntityListing.md +2 -2
  176. data/docs/ShareEntityListing.md +2 -2
  177. data/docs/SiteEntityListing.md +2 -2
  178. data/docs/SkillEntityListing.md +2 -2
  179. data/docs/SmsPhoneNumberEntityListing.md +2 -2
  180. data/docs/StationEntityListing.md +2 -2
  181. data/docs/SubjectDivisionGrantsEntityListing.md +2 -2
  182. data/docs/SubjectDivisions.md +14 -0
  183. data/docs/SuggestApi.md +2 -2
  184. data/docs/SurveyFormEntityListing.md +2 -2
  185. data/docs/SystemPromptAsset.md +1 -0
  186. data/docs/SystemPromptAssetEntityListing.md +2 -2
  187. data/docs/SystemPromptEntityListing.md +2 -2
  188. data/docs/TagValueEntityListing.md +2 -2
  189. data/docs/TextMessageListing.md +2 -2
  190. data/docs/TimeZone.md +2 -2
  191. data/docs/TimeZoneEntityListing.md +2 -2
  192. data/docs/TrunkBaseEntityListing.md +2 -2
  193. data/docs/TrunkEntityListing.md +2 -2
  194. data/docs/TrunkMetabaseEntityListing.md +2 -2
  195. data/docs/TrustEntityListing.md +2 -2
  196. data/docs/TrustUser.md +3 -1
  197. data/docs/TrustUserEntityListing.md +2 -2
  198. data/docs/TrustorEntityListing.md +2 -2
  199. data/docs/TwitterIntegration.md +28 -0
  200. data/docs/TwitterIntegrationEntityListing.md +22 -0
  201. data/docs/TwitterIntegrationRequest.md +21 -0
  202. data/docs/UpdateUser.md +1 -1
  203. data/docs/UpdateWeekScheduleRequest.md +1 -0
  204. data/docs/User.md +3 -1
  205. data/docs/UserActionCategoryEntityListing.md +2 -2
  206. data/docs/UserEntityListing.md +2 -2
  207. data/docs/UserLanguageEntityListing.md +2 -2
  208. data/docs/UserMe.md +3 -1
  209. data/docs/UserProfileEntityListing.md +2 -2
  210. data/docs/UserQueueEntityListing.md +2 -2
  211. data/docs/UserRecordingEntityListing.md +2 -2
  212. data/docs/UserSkillEntityListing.md +2 -2
  213. data/docs/UsersApi.md +560 -8
  214. data/docs/VoicemailMessageEntityListing.md +2 -2
  215. data/docs/WorkforceManagementApi.md +67 -0
  216. data/docs/WorkspaceEntityListing.md +2 -2
  217. data/docs/WorkspaceMemberEntityListing.md +2 -2
  218. data/docs/WrapupCodeEntityListing.md +2 -2
  219. data/docs/WritableDialerContact.md +17 -0
  220. data/lib/purecloudplatformclientv2.rb +26 -0
  221. data/lib/purecloudplatformclientv2/api/analytics_api.rb +65 -0
  222. data/lib/purecloudplatformclientv2/api/authorization_api.rb +1477 -250
  223. data/lib/purecloudplatformclientv2/api/flows_api.rb +92 -0
  224. data/lib/purecloudplatformclientv2/api/messaging_api.rb +1050 -0
  225. data/lib/purecloudplatformclientv2/api/objects_api.rb +640 -0
  226. data/lib/purecloudplatformclientv2/api/presence_api.rb +65 -0
  227. data/lib/purecloudplatformclientv2/api/routing_api.rb +157 -3
  228. data/lib/purecloudplatformclientv2/api/search_api.rb +131 -0
  229. data/lib/purecloudplatformclientv2/api/users_api.rb +607 -0
  230. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +64 -0
  231. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  232. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +23 -23
  233. data/lib/purecloudplatformclientv2/models/adfs.rb +12 -12
  234. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +23 -23
  235. data/lib/purecloudplatformclientv2/models/analytics_session.rb +2 -2
  236. data/lib/purecloudplatformclientv2/models/analytics_survey.rb +30 -4
  237. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +23 -23
  238. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +23 -23
  239. data/lib/purecloudplatformclientv2/models/authz_division.rb +338 -0
  240. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +428 -0
  241. data/lib/purecloudplatformclientv2/models/authz_grant.rb +277 -0
  242. data/lib/purecloudplatformclientv2/models/authz_grant_policy.rb +278 -0
  243. data/lib/purecloudplatformclientv2/models/authz_grant_role.rb +330 -0
  244. data/lib/purecloudplatformclientv2/models/authz_subject.rb +305 -0
  245. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +23 -23
  246. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +23 -23
  247. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +23 -23
  248. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +23 -23
  249. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +23 -23
  250. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +23 -23
  251. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +23 -23
  252. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +23 -23
  253. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +23 -23
  254. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +23 -23
  255. data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
  256. data/lib/purecloudplatformclientv2/models/chat_badge_notification_badge_entity.rb +7 -71
  257. data/lib/purecloudplatformclientv2/models/chat_badge_notification_entity.rb +7 -71
  258. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +23 -23
  259. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +23 -23
  260. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +23 -23
  261. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +23 -23
  262. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +23 -23
  263. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +23 -23
  264. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +23 -23
  265. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +23 -23
  266. data/lib/purecloudplatformclientv2/models/contact_listing.rb +23 -23
  267. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +23 -23
  268. data/lib/purecloudplatformclientv2/models/conversation_query.rb +29 -1
  269. data/lib/purecloudplatformclientv2/models/create_callback_command.rb +27 -1
  270. data/lib/purecloudplatformclientv2/models/create_callback_on_conversation_command.rb +27 -1
  271. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +6 -0
  272. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +23 -23
  273. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +23 -23
  274. data/lib/purecloudplatformclientv2/models/customer_interaction_center.rb +12 -12
  275. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +23 -23
  276. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +23 -23
  277. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +23 -23
  278. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +23 -23
  279. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +23 -23
  280. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +23 -23
  281. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +23 -23
  282. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +23 -23
  283. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +23 -23
  284. data/lib/purecloudplatformclientv2/models/document.rb +12 -12
  285. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +23 -23
  286. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +23 -23
  287. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +23 -23
  288. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +23 -23
  289. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +23 -23
  290. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +23 -23
  291. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +23 -23
  292. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  293. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  294. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  295. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +23 -23
  296. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +23 -23
  297. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +23 -23
  298. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +23 -23
  299. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +23 -23
  300. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +23 -23
  301. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +23 -23
  302. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +23 -23
  303. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +23 -23
  304. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +23 -23
  305. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +23 -23
  306. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +23 -23
  307. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +23 -23
  308. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +23 -23
  309. data/lib/purecloudplatformclientv2/models/facebook_integration.rb +508 -0
  310. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +428 -0
  311. data/lib/purecloudplatformclientv2/models/facebook_integration_request.rb +394 -0
  312. data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
  313. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +23 -23
  314. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +23 -23
  315. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +23 -23
  316. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +23 -23
  317. data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +2 -2
  318. data/lib/purecloudplatformclientv2/models/g_suite.rb +12 -12
  319. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +23 -23
  320. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +23 -23
  321. data/lib/purecloudplatformclientv2/models/gkn_documentation_result.rb +285 -0
  322. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_criteria.rb +423 -0
  323. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_request.rb +349 -0
  324. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_response.rb +444 -0
  325. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +23 -23
  326. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +23 -23
  327. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +23 -23
  328. data/lib/purecloudplatformclientv2/models/identity_now.rb +12 -12
  329. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +23 -23
  330. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +23 -23
  331. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +23 -23
  332. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +23 -23
  333. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +23 -23
  334. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +23 -23
  335. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +23 -23
  336. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +23 -23
  337. data/lib/purecloudplatformclientv2/models/json_node.rb +89 -89
  338. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +23 -23
  339. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +23 -23
  340. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +23 -23
  341. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +23 -23
  342. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +23 -23
  343. data/lib/purecloudplatformclientv2/models/line_integration.rb +513 -0
  344. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +428 -0
  345. data/lib/purecloudplatformclientv2/models/line_integration_request.rb +363 -0
  346. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +23 -23
  347. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +23 -23
  348. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +23 -23
  349. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +23 -23
  350. data/lib/purecloudplatformclientv2/models/messaging_sticker.rb +477 -0
  351. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +428 -0
  352. data/lib/purecloudplatformclientv2/models/note_listing.rb +23 -23
  353. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +23 -23
  354. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +23 -23
  355. data/lib/purecloudplatformclientv2/models/okta.rb +12 -12
  356. data/lib/purecloudplatformclientv2/models/one_login.rb +12 -12
  357. data/lib/purecloudplatformclientv2/models/org_user.rb +58 -2
  358. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +23 -23
  359. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +23 -23
  360. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +23 -23
  361. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +23 -23
  362. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +23 -23
  363. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +23 -23
  364. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +23 -23
  365. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +23 -23
  366. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +23 -23
  367. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +23 -23
  368. data/lib/purecloudplatformclientv2/models/ping_identity.rb +12 -12
  369. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +23 -23
  370. data/lib/purecloudplatformclientv2/models/prompt_asset.rb +26 -1
  371. data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +26 -1
  372. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +23 -23
  373. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +23 -23
  374. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +23 -23
  375. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +23 -23
  376. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +23 -23
  377. data/lib/purecloudplatformclientv2/models/queue_request.rb +6 -0
  378. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +23 -23
  379. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +23 -23
  380. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +23 -23
  381. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +23 -23
  382. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +23 -23
  383. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +23 -23
  384. data/lib/purecloudplatformclientv2/models/response_config.rb +29 -1
  385. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +23 -23
  386. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +23 -23
  387. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +23 -23
  388. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +23 -23
  389. data/lib/purecloudplatformclientv2/models/salesforce.rb +12 -12
  390. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +23 -23
  391. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +23 -23
  392. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +23 -23
  393. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +23 -23
  394. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +23 -23
  395. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +23 -23
  396. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +23 -23
  397. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +23 -23
  398. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +23 -23
  399. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +23 -23
  400. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +23 -23
  401. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +23 -23
  402. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +23 -23
  403. data/lib/purecloudplatformclientv2/models/subject_divisions.rb +242 -0
  404. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +23 -23
  405. data/lib/purecloudplatformclientv2/models/system_prompt_asset.rb +26 -1
  406. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +23 -23
  407. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +23 -23
  408. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +23 -23
  409. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +23 -23
  410. data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -24
  411. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +23 -23
  412. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +23 -23
  413. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +23 -23
  414. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +23 -23
  415. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +23 -23
  416. data/lib/purecloudplatformclientv2/models/trust_user.rb +58 -2
  417. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +23 -23
  418. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +23 -23
  419. data/lib/purecloudplatformclientv2/models/twitter_integration.rb +636 -0
  420. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +428 -0
  421. data/lib/purecloudplatformclientv2/models/twitter_integration_request.rb +454 -0
  422. data/lib/purecloudplatformclientv2/models/update_user.rb +1 -1
  423. data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +44 -4
  424. data/lib/purecloudplatformclientv2/models/user.rb +58 -2
  425. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +23 -23
  426. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +23 -23
  427. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +23 -23
  428. data/lib/purecloudplatformclientv2/models/user_me.rb +58 -2
  429. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +23 -23
  430. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +23 -23
  431. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +23 -23
  432. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +23 -23
  433. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +23 -23
  434. data/lib/purecloudplatformclientv2/models/web_chat_config.rb +15 -1
  435. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +23 -23
  436. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +23 -23
  437. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +23 -23
  438. data/lib/purecloudplatformclientv2/models/writable_dialer_contact.rb +320 -0
  439. data/lib/purecloudplatformclientv2/version.rb +1 -1
  440. metadata +54 -2
@@ -607,5 +607,70 @@ module PureCloud
607
607
  end
608
608
  return data, status_code, headers
609
609
  end
610
+
611
+ # Update bulk user Presences
612
+ #
613
+ # @param body List of User presences
614
+ # @param [Hash] opts the optional parameters
615
+ # @return [Array<UserPresence>]
616
+ def put_users_presences_bulk(body, opts = {})
617
+ data, _status_code, _headers = put_users_presences_bulk_with_http_info(body, opts)
618
+ return data
619
+ end
620
+
621
+ # Update bulk user Presences
622
+ #
623
+ # @param body List of User presences
624
+ # @param [Hash] opts the optional parameters
625
+ # @return [Array<(Array<UserPresence>, Fixnum, Hash)>] Array<UserPresence> data, response status code and response headers
626
+ def put_users_presences_bulk_with_http_info(body, opts = {})
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "Calling API: PresenceApi.put_users_presences_bulk ..."
629
+ end
630
+
631
+
632
+ # verify the required parameter 'body' is set
633
+ fail ArgumentError, "Missing the required parameter 'body' when calling PresenceApi.put_users_presences_bulk" if body.nil?
634
+
635
+
636
+
637
+
638
+
639
+ # resource path
640
+ local_var_path = "/api/v2/users/presences/bulk".sub('{format}','json')
641
+
642
+ # query parameters
643
+ query_params = {}
644
+
645
+ # header parameters
646
+ header_params = {}
647
+
648
+ # HTTP header 'Accept' (if needed)
649
+ local_header_accept = ['application/json']
650
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
651
+
652
+ # HTTP header 'Content-Type'
653
+ local_header_content_type = ['application/json']
654
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
655
+
656
+ # form parameters
657
+ form_params = {}
658
+
659
+ # http body (model)
660
+ post_body = @api_client.object_to_http_body(body)
661
+
662
+ auth_names = ['PureCloud Auth']
663
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
664
+ :header_params => header_params,
665
+ :query_params => query_params,
666
+ :form_params => form_params,
667
+ :body => post_body,
668
+ :auth_names => auth_names,
669
+ :return_type => 'Array<UserPresence>')
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug "API called: PresenceApi#put_users_presences_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ end
673
+ return data, status_code, headers
674
+ end
610
675
  end
611
676
  end
@@ -2602,8 +2602,8 @@ module PureCloud
2602
2602
  # @param [Hash] opts the optional parameters
2603
2603
  # @option opts [Integer] :page_size Page size (default to 25)
2604
2604
  # @option opts [Integer] :page_number Page number (default to 1)
2605
- # @option opts [String] :name Name
2606
2605
  # @option opts [String] :sort_by Sort by (default to name)
2606
+ # @option opts [String] :name Name
2607
2607
  # @return [WrapupCodeEntityListing]
2608
2608
  def get_routing_wrapupcodes(opts = {})
2609
2609
  data, _status_code, _headers = get_routing_wrapupcodes_with_http_info(opts)
@@ -2615,8 +2615,8 @@ module PureCloud
2615
2615
  # @param [Hash] opts the optional parameters
2616
2616
  # @option opts [Integer] :page_size Page size
2617
2617
  # @option opts [Integer] :page_number Page number
2618
- # @option opts [String] :name Name
2619
2618
  # @option opts [String] :sort_by Sort by
2619
+ # @option opts [String] :name Name
2620
2620
  # @return [Array<(WrapupCodeEntityListing, Fixnum, Hash)>] WrapupCodeEntityListing data, response status code and response headers
2621
2621
  def get_routing_wrapupcodes_with_http_info(opts = {})
2622
2622
  if @api_client.config.debugging
@@ -2638,6 +2638,10 @@ module PureCloud
2638
2638
 
2639
2639
 
2640
2640
 
2641
+ if opts[:'sort_by'] && !['name', 'id'].include?(opts[:'sort_by'])
2642
+ fail ArgumentError, 'invalid value for "sort_by", must be one of name, id'
2643
+ end
2644
+
2641
2645
 
2642
2646
 
2643
2647
 
@@ -2654,8 +2658,8 @@ module PureCloud
2654
2658
  query_params = {}
2655
2659
  query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
2656
2660
  query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
2657
- query_params[:'name'] = opts[:'name'] if opts[:'name']
2658
2661
  query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
2662
+ query_params[:'name'] = opts[:'name'] if opts[:'name']
2659
2663
 
2660
2664
  # header parameters
2661
2665
  header_params = {}
@@ -3125,6 +3129,156 @@ module PureCloud
3125
3129
  return data, status_code, headers
3126
3130
  end
3127
3131
 
3132
+ # Add bulk routing language to user. Max limit 50 languages
3133
+ #
3134
+ # @param user_id User ID
3135
+ # @param body Language
3136
+ # @param [Hash] opts the optional parameters
3137
+ # @return [UserLanguageEntityListing]
3138
+ def patch_user_routinglanguages_bulk(user_id, body, opts = {})
3139
+ data, _status_code, _headers = patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts)
3140
+ return data
3141
+ end
3142
+
3143
+ # Add bulk routing language to user. Max limit 50 languages
3144
+ #
3145
+ # @param user_id User ID
3146
+ # @param body Language
3147
+ # @param [Hash] opts the optional parameters
3148
+ # @return [Array<(UserLanguageEntityListing, Fixnum, Hash)>] UserLanguageEntityListing data, response status code and response headers
3149
+ def patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts = {})
3150
+ if @api_client.config.debugging
3151
+ @api_client.config.logger.debug "Calling API: RoutingApi.patch_user_routinglanguages_bulk ..."
3152
+ end
3153
+
3154
+
3155
+ # verify the required parameter 'user_id' is set
3156
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_routinglanguages_bulk" if user_id.nil?
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+ # verify the required parameter 'body' is set
3164
+ fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_routinglanguages_bulk" if body.nil?
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+ # resource path
3171
+ local_var_path = "/api/v2/users/{userId}/routinglanguages/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
3172
+
3173
+ # query parameters
3174
+ query_params = {}
3175
+
3176
+ # header parameters
3177
+ header_params = {}
3178
+
3179
+ # HTTP header 'Accept' (if needed)
3180
+ local_header_accept = ['application/json']
3181
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3182
+
3183
+ # HTTP header 'Content-Type'
3184
+ local_header_content_type = ['application/json']
3185
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3186
+
3187
+ # form parameters
3188
+ form_params = {}
3189
+
3190
+ # http body (model)
3191
+ post_body = @api_client.object_to_http_body(body)
3192
+
3193
+ auth_names = ['PureCloud Auth']
3194
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3195
+ :header_params => header_params,
3196
+ :query_params => query_params,
3197
+ :form_params => form_params,
3198
+ :body => post_body,
3199
+ :auth_names => auth_names,
3200
+ :return_type => 'UserLanguageEntityListing')
3201
+ if @api_client.config.debugging
3202
+ @api_client.config.logger.debug "API called: RoutingApi#patch_user_routinglanguages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3203
+ end
3204
+ return data, status_code, headers
3205
+ end
3206
+
3207
+ # Add bulk routing skills to user
3208
+ #
3209
+ # @param user_id User ID
3210
+ # @param body Skill
3211
+ # @param [Hash] opts the optional parameters
3212
+ # @return [UserSkillEntityListing]
3213
+ def patch_user_routingskills_bulk(user_id, body, opts = {})
3214
+ data, _status_code, _headers = patch_user_routingskills_bulk_with_http_info(user_id, body, opts)
3215
+ return data
3216
+ end
3217
+
3218
+ # Add bulk routing skills to user
3219
+ #
3220
+ # @param user_id User ID
3221
+ # @param body Skill
3222
+ # @param [Hash] opts the optional parameters
3223
+ # @return [Array<(UserSkillEntityListing, Fixnum, Hash)>] UserSkillEntityListing data, response status code and response headers
3224
+ def patch_user_routingskills_bulk_with_http_info(user_id, body, opts = {})
3225
+ if @api_client.config.debugging
3226
+ @api_client.config.logger.debug "Calling API: RoutingApi.patch_user_routingskills_bulk ..."
3227
+ end
3228
+
3229
+
3230
+ # verify the required parameter 'user_id' is set
3231
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_routingskills_bulk" if user_id.nil?
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+ # verify the required parameter 'body' is set
3239
+ fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_routingskills_bulk" if body.nil?
3240
+
3241
+
3242
+
3243
+
3244
+
3245
+ # resource path
3246
+ local_var_path = "/api/v2/users/{userId}/routingskills/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
3247
+
3248
+ # query parameters
3249
+ query_params = {}
3250
+
3251
+ # header parameters
3252
+ header_params = {}
3253
+
3254
+ # HTTP header 'Accept' (if needed)
3255
+ local_header_accept = ['application/json']
3256
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3257
+
3258
+ # HTTP header 'Content-Type'
3259
+ local_header_content_type = ['application/json']
3260
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3261
+
3262
+ # form parameters
3263
+ form_params = {}
3264
+
3265
+ # http body (model)
3266
+ post_body = @api_client.object_to_http_body(body)
3267
+
3268
+ auth_names = ['PureCloud Auth']
3269
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3270
+ :header_params => header_params,
3271
+ :query_params => query_params,
3272
+ :form_params => form_params,
3273
+ :body => post_body,
3274
+ :auth_names => auth_names,
3275
+ :return_type => 'UserSkillEntityListing')
3276
+ if @api_client.config.debugging
3277
+ @api_client.config.logger.debug "API called: RoutingApi#patch_user_routingskills_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3278
+ end
3279
+ return data, status_code, headers
3280
+ end
3281
+
3128
3282
  # Query for queue observations
3129
3283
  #
3130
3284
  # @param body query
@@ -24,6 +24,72 @@ module PureCloud
24
24
  @api_client = api_client
25
25
  end
26
26
 
27
+ # Search gkn documentation using the q64 value returned from a previous search
28
+ #
29
+ # @param q64 q64
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [GKNDocumentationSearchResponse]
32
+ def get_documentation_gkn_search(q64, opts = {})
33
+ data, _status_code, _headers = get_documentation_gkn_search_with_http_info(q64, opts)
34
+ return data
35
+ end
36
+
37
+ # Search gkn documentation using the q64 value returned from a previous search
38
+ #
39
+ # @param q64 q64
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(GKNDocumentationSearchResponse, Fixnum, Hash)>] GKNDocumentationSearchResponse data, response status code and response headers
42
+ def get_documentation_gkn_search_with_http_info(q64, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: SearchApi.get_documentation_gkn_search ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'q64' is set
49
+ fail ArgumentError, "Missing the required parameter 'q64' when calling SearchApi.get_documentation_gkn_search" if q64.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/documentation/gkn/search".sub('{format}','json')
57
+
58
+ # query parameters
59
+ query_params = {}
60
+ query_params[:'q64'] = q64
61
+
62
+ # header parameters
63
+ header_params = {}
64
+
65
+ # HTTP header 'Accept' (if needed)
66
+ local_header_accept = ['application/json']
67
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
68
+
69
+ # HTTP header 'Content-Type'
70
+ local_header_content_type = ['application/json']
71
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
72
+
73
+ # form parameters
74
+ form_params = {}
75
+
76
+ # http body (model)
77
+ post_body = nil
78
+
79
+ auth_names = ['PureCloud Auth']
80
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => 'GKNDocumentationSearchResponse')
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: SearchApi#get_documentation_gkn_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
27
93
  # Search documentation using the q64 value returned from a previous search
28
94
  #
29
95
  # @param q64 q64
@@ -558,6 +624,71 @@ module PureCloud
558
624
  return data, status_code, headers
559
625
  end
560
626
 
627
+ # Search gkn documentation
628
+ #
629
+ # @param body Search request options
630
+ # @param [Hash] opts the optional parameters
631
+ # @return [GKNDocumentationSearchResponse]
632
+ def post_documentation_gkn_search(body, opts = {})
633
+ data, _status_code, _headers = post_documentation_gkn_search_with_http_info(body, opts)
634
+ return data
635
+ end
636
+
637
+ # Search gkn documentation
638
+ #
639
+ # @param body Search request options
640
+ # @param [Hash] opts the optional parameters
641
+ # @return [Array<(GKNDocumentationSearchResponse, Fixnum, Hash)>] GKNDocumentationSearchResponse data, response status code and response headers
642
+ def post_documentation_gkn_search_with_http_info(body, opts = {})
643
+ if @api_client.config.debugging
644
+ @api_client.config.logger.debug "Calling API: SearchApi.post_documentation_gkn_search ..."
645
+ end
646
+
647
+
648
+ # verify the required parameter 'body' is set
649
+ fail ArgumentError, "Missing the required parameter 'body' when calling SearchApi.post_documentation_gkn_search" if body.nil?
650
+
651
+
652
+
653
+
654
+
655
+ # resource path
656
+ local_var_path = "/api/v2/documentation/gkn/search".sub('{format}','json')
657
+
658
+ # query parameters
659
+ query_params = {}
660
+
661
+ # header parameters
662
+ header_params = {}
663
+
664
+ # HTTP header 'Accept' (if needed)
665
+ local_header_accept = ['application/json']
666
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
667
+
668
+ # HTTP header 'Content-Type'
669
+ local_header_content_type = ['application/json']
670
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
671
+
672
+ # form parameters
673
+ form_params = {}
674
+
675
+ # http body (model)
676
+ post_body = @api_client.object_to_http_body(body)
677
+
678
+ auth_names = ['PureCloud Auth']
679
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
680
+ :header_params => header_params,
681
+ :query_params => query_params,
682
+ :form_params => form_params,
683
+ :body => post_body,
684
+ :auth_names => auth_names,
685
+ :return_type => 'GKNDocumentationSearchResponse')
686
+ if @api_client.config.debugging
687
+ @api_client.config.logger.debug "API called: SearchApi#post_documentation_gkn_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
688
+ end
689
+ return data, status_code, headers
690
+ end
691
+
561
692
  # Search documentation
562
693
  #
563
694
  # @param body Search request options
@@ -24,6 +24,90 @@ module PureCloud
24
24
  @api_client = api_client
25
25
  end
26
26
 
27
+ # Delete a grant of a role in a division
28
+ #
29
+ # @param subject_id Subject ID (user or group)
30
+ # @param division_id the id of the division of the grant
31
+ # @param role_id the id of the role of the grant
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [nil]
34
+ def delete_authorization_subject_division_role(subject_id, division_id, role_id, opts = {})
35
+ delete_authorization_subject_division_role_with_http_info(subject_id, division_id, role_id, opts)
36
+ return nil
37
+ end
38
+
39
+ # Delete a grant of a role in a division
40
+ #
41
+ # @param subject_id Subject ID (user or group)
42
+ # @param division_id the id of the division of the grant
43
+ # @param role_id the id of the role of the grant
44
+ # @param [Hash] opts the optional parameters
45
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
46
+ def delete_authorization_subject_division_role_with_http_info(subject_id, division_id, role_id, opts = {})
47
+ if @api_client.config.debugging
48
+ @api_client.config.logger.debug "Calling API: UsersApi.delete_authorization_subject_division_role ..."
49
+ end
50
+
51
+
52
+ # verify the required parameter 'subject_id' is set
53
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.delete_authorization_subject_division_role" if subject_id.nil?
54
+
55
+
56
+
57
+
58
+
59
+
60
+ # verify the required parameter 'division_id' is set
61
+ fail ArgumentError, "Missing the required parameter 'division_id' when calling UsersApi.delete_authorization_subject_division_role" if division_id.nil?
62
+
63
+
64
+
65
+
66
+
67
+
68
+ # verify the required parameter 'role_id' is set
69
+ fail ArgumentError, "Missing the required parameter 'role_id' when calling UsersApi.delete_authorization_subject_division_role" if role_id.nil?
70
+
71
+
72
+
73
+
74
+
75
+ # resource path
76
+ local_var_path = "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s).sub('{' + 'divisionId' + '}', division_id.to_s).sub('{' + 'roleId' + '}', role_id.to_s)
77
+
78
+ # query parameters
79
+ query_params = {}
80
+
81
+ # header parameters
82
+ header_params = {}
83
+
84
+ # HTTP header 'Accept' (if needed)
85
+ local_header_accept = ['application/json']
86
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
87
+
88
+ # HTTP header 'Content-Type'
89
+ local_header_content_type = ['application/json']
90
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
91
+
92
+ # form parameters
93
+ form_params = {}
94
+
95
+ # http body (model)
96
+ post_body = nil
97
+
98
+ auth_names = ['PureCloud Auth']
99
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
100
+ :header_params => header_params,
101
+ :query_params => query_params,
102
+ :form_params => form_params,
103
+ :body => post_body,
104
+ :auth_names => auth_names)
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug "API called: UsersApi#delete_authorization_subject_division_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
+ end
108
+ return data, status_code, headers
109
+ end
110
+
27
111
  # Delete user
28
112
  #
29
113
  # @param user_id User ID
@@ -429,6 +513,286 @@ module PureCloud
429
513
  return data, status_code, headers
430
514
  end
431
515
 
516
+ # Returns whether or not current user can perform the specified action(s).
517
+ #
518
+ # @param permission The permission string, including the object to access, e.g. routing:queue:view
519
+ # @param [Hash] opts the optional parameters
520
+ # @option opts [String] :name Search term to filter by division name
521
+ # @return [Array<AuthzDivision>]
522
+ def get_authorization_divisionspermitted_me(permission, opts = {})
523
+ data, _status_code, _headers = get_authorization_divisionspermitted_me_with_http_info(permission, opts)
524
+ return data
525
+ end
526
+
527
+ # Returns whether or not current user can perform the specified action(s).
528
+ #
529
+ # @param permission The permission string, including the object to access, e.g. routing:queue:view
530
+ # @param [Hash] opts the optional parameters
531
+ # @option opts [String] :name Search term to filter by division name
532
+ # @return [Array<(Array<AuthzDivision>, Fixnum, Hash)>] Array<AuthzDivision> data, response status code and response headers
533
+ def get_authorization_divisionspermitted_me_with_http_info(permission, opts = {})
534
+ if @api_client.config.debugging
535
+ @api_client.config.logger.debug "Calling API: UsersApi.get_authorization_divisionspermitted_me ..."
536
+ end
537
+
538
+
539
+ # verify the required parameter 'permission' is set
540
+ fail ArgumentError, "Missing the required parameter 'permission' when calling UsersApi.get_authorization_divisionspermitted_me" if permission.nil?
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+ # resource path
553
+ local_var_path = "/api/v2/authorization/divisionspermitted/me".sub('{format}','json')
554
+
555
+ # query parameters
556
+ query_params = {}
557
+ query_params[:'permission'] = permission
558
+ query_params[:'name'] = opts[:'name'] if opts[:'name']
559
+
560
+ # header parameters
561
+ header_params = {}
562
+
563
+ # HTTP header 'Accept' (if needed)
564
+ local_header_accept = ['application/json']
565
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
566
+
567
+ # HTTP header 'Content-Type'
568
+ local_header_content_type = ['application/json']
569
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
570
+
571
+ # form parameters
572
+ form_params = {}
573
+
574
+ # http body (model)
575
+ post_body = nil
576
+
577
+ auth_names = ['PureCloud Auth']
578
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
579
+ :header_params => header_params,
580
+ :query_params => query_params,
581
+ :form_params => form_params,
582
+ :body => post_body,
583
+ :auth_names => auth_names,
584
+ :return_type => 'Array<AuthzDivision>')
585
+ if @api_client.config.debugging
586
+ @api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
+ end
588
+ return data, status_code, headers
589
+ end
590
+
591
+ # Returns whether or not specified user can perform the specified action(s).
592
+ #
593
+ # @param subject_id Subject ID (user or group)
594
+ # @param permission The permission string, including the object to access, e.g. routing:queue:view
595
+ # @param [Hash] opts the optional parameters
596
+ # @option opts [String] :name Search term to filter by division name
597
+ # @return [Array<AuthzDivision>]
598
+ def get_authorization_divisionspermitted_subject_id(subject_id, permission, opts = {})
599
+ data, _status_code, _headers = get_authorization_divisionspermitted_subject_id_with_http_info(subject_id, permission, opts)
600
+ return data
601
+ end
602
+
603
+ # Returns whether or not specified user can perform the specified action(s).
604
+ #
605
+ # @param subject_id Subject ID (user or group)
606
+ # @param permission The permission string, including the object to access, e.g. routing:queue:view
607
+ # @param [Hash] opts the optional parameters
608
+ # @option opts [String] :name Search term to filter by division name
609
+ # @return [Array<(Array<AuthzDivision>, Fixnum, Hash)>] Array<AuthzDivision> data, response status code and response headers
610
+ def get_authorization_divisionspermitted_subject_id_with_http_info(subject_id, permission, opts = {})
611
+ if @api_client.config.debugging
612
+ @api_client.config.logger.debug "Calling API: UsersApi.get_authorization_divisionspermitted_subject_id ..."
613
+ end
614
+
615
+
616
+ # verify the required parameter 'subject_id' is set
617
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.get_authorization_divisionspermitted_subject_id" if subject_id.nil?
618
+
619
+
620
+
621
+
622
+
623
+
624
+ # verify the required parameter 'permission' is set
625
+ fail ArgumentError, "Missing the required parameter 'permission' when calling UsersApi.get_authorization_divisionspermitted_subject_id" if permission.nil?
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+ # resource path
638
+ local_var_path = "/api/v2/authorization/divisionspermitted/{subjectId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s)
639
+
640
+ # query parameters
641
+ query_params = {}
642
+ query_params[:'permission'] = permission
643
+ query_params[:'name'] = opts[:'name'] if opts[:'name']
644
+
645
+ # header parameters
646
+ header_params = {}
647
+
648
+ # HTTP header 'Accept' (if needed)
649
+ local_header_accept = ['application/json']
650
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
651
+
652
+ # HTTP header 'Content-Type'
653
+ local_header_content_type = ['application/json']
654
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
655
+
656
+ # form parameters
657
+ form_params = {}
658
+
659
+ # http body (model)
660
+ post_body = nil
661
+
662
+ auth_names = ['PureCloud Auth']
663
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
664
+ :header_params => header_params,
665
+ :query_params => query_params,
666
+ :form_params => form_params,
667
+ :body => post_body,
668
+ :auth_names => auth_names,
669
+ :return_type => 'Array<AuthzDivision>')
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_subject_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ end
673
+ return data, status_code, headers
674
+ end
675
+
676
+ # Returns a listing of roles and permissions for a user.
677
+ #
678
+ # @param subject_id Subject ID (user or group)
679
+ # @param [Hash] opts the optional parameters
680
+ # @return [AuthzSubject]
681
+ def get_authorization_subject(subject_id, opts = {})
682
+ data, _status_code, _headers = get_authorization_subject_with_http_info(subject_id, opts)
683
+ return data
684
+ end
685
+
686
+ # Returns a listing of roles and permissions for a user.
687
+ #
688
+ # @param subject_id Subject ID (user or group)
689
+ # @param [Hash] opts the optional parameters
690
+ # @return [Array<(AuthzSubject, Fixnum, Hash)>] AuthzSubject data, response status code and response headers
691
+ def get_authorization_subject_with_http_info(subject_id, opts = {})
692
+ if @api_client.config.debugging
693
+ @api_client.config.logger.debug "Calling API: UsersApi.get_authorization_subject ..."
694
+ end
695
+
696
+
697
+ # verify the required parameter 'subject_id' is set
698
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.get_authorization_subject" if subject_id.nil?
699
+
700
+
701
+
702
+
703
+
704
+ # resource path
705
+ local_var_path = "/api/v2/authorization/subjects/{subjectId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s)
706
+
707
+ # query parameters
708
+ query_params = {}
709
+
710
+ # header parameters
711
+ header_params = {}
712
+
713
+ # HTTP header 'Accept' (if needed)
714
+ local_header_accept = ['application/json']
715
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
716
+
717
+ # HTTP header 'Content-Type'
718
+ local_header_content_type = ['application/json']
719
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
720
+
721
+ # form parameters
722
+ form_params = {}
723
+
724
+ # http body (model)
725
+ post_body = nil
726
+
727
+ auth_names = ['PureCloud Auth']
728
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
729
+ :header_params => header_params,
730
+ :query_params => query_params,
731
+ :form_params => form_params,
732
+ :body => post_body,
733
+ :auth_names => auth_names,
734
+ :return_type => 'AuthzSubject')
735
+ if @api_client.config.debugging
736
+ @api_client.config.logger.debug "API called: UsersApi#get_authorization_subject\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
737
+ end
738
+ return data, status_code, headers
739
+ end
740
+
741
+ # Returns a listing of roles and permissions for the currently authenticated user.
742
+ #
743
+ # @param [Hash] opts the optional parameters
744
+ # @return [AuthzSubject]
745
+ def get_authorization_subjects_me(opts = {})
746
+ data, _status_code, _headers = get_authorization_subjects_me_with_http_info(opts)
747
+ return data
748
+ end
749
+
750
+ # Returns a listing of roles and permissions for the currently authenticated user.
751
+ #
752
+ # @param [Hash] opts the optional parameters
753
+ # @return [Array<(AuthzSubject, Fixnum, Hash)>] AuthzSubject data, response status code and response headers
754
+ def get_authorization_subjects_me_with_http_info(opts = {})
755
+ if @api_client.config.debugging
756
+ @api_client.config.logger.debug "Calling API: UsersApi.get_authorization_subjects_me ..."
757
+ end
758
+
759
+ # resource path
760
+ local_var_path = "/api/v2/authorization/subjects/me".sub('{format}','json')
761
+
762
+ # query parameters
763
+ query_params = {}
764
+
765
+ # header parameters
766
+ header_params = {}
767
+
768
+ # HTTP header 'Accept' (if needed)
769
+ local_header_accept = ['application/json']
770
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
771
+
772
+ # HTTP header 'Content-Type'
773
+ local_header_content_type = ['application/json']
774
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
775
+
776
+ # form parameters
777
+ form_params = {}
778
+
779
+ # http body (model)
780
+ post_body = nil
781
+
782
+ auth_names = ['PureCloud Auth']
783
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
784
+ :header_params => header_params,
785
+ :query_params => query_params,
786
+ :form_params => form_params,
787
+ :body => post_body,
788
+ :auth_names => auth_names,
789
+ :return_type => 'AuthzSubject')
790
+ if @api_client.config.debugging
791
+ @api_client.config.logger.debug "API called: UsersApi#get_authorization_subjects_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
792
+ end
793
+ return data, status_code, headers
794
+ end
795
+
432
796
  # Fetch field config for an entity type
433
797
  #
434
798
  # @param type Field type
@@ -2696,6 +3060,156 @@ module PureCloud
2696
3060
  return data, status_code, headers
2697
3061
  end
2698
3062
 
3063
+ # Add bulk routing language to user. Max limit 50 languages
3064
+ #
3065
+ # @param user_id User ID
3066
+ # @param body Language
3067
+ # @param [Hash] opts the optional parameters
3068
+ # @return [UserLanguageEntityListing]
3069
+ def patch_user_routinglanguages_bulk(user_id, body, opts = {})
3070
+ data, _status_code, _headers = patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts)
3071
+ return data
3072
+ end
3073
+
3074
+ # Add bulk routing language to user. Max limit 50 languages
3075
+ #
3076
+ # @param user_id User ID
3077
+ # @param body Language
3078
+ # @param [Hash] opts the optional parameters
3079
+ # @return [Array<(UserLanguageEntityListing, Fixnum, Hash)>] UserLanguageEntityListing data, response status code and response headers
3080
+ def patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts = {})
3081
+ if @api_client.config.debugging
3082
+ @api_client.config.logger.debug "Calling API: UsersApi.patch_user_routinglanguages_bulk ..."
3083
+ end
3084
+
3085
+
3086
+ # verify the required parameter 'user_id' is set
3087
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.patch_user_routinglanguages_bulk" if user_id.nil?
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+ # verify the required parameter 'body' is set
3095
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.patch_user_routinglanguages_bulk" if body.nil?
3096
+
3097
+
3098
+
3099
+
3100
+
3101
+ # resource path
3102
+ local_var_path = "/api/v2/users/{userId}/routinglanguages/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
3103
+
3104
+ # query parameters
3105
+ query_params = {}
3106
+
3107
+ # header parameters
3108
+ header_params = {}
3109
+
3110
+ # HTTP header 'Accept' (if needed)
3111
+ local_header_accept = ['application/json']
3112
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3113
+
3114
+ # HTTP header 'Content-Type'
3115
+ local_header_content_type = ['application/json']
3116
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3117
+
3118
+ # form parameters
3119
+ form_params = {}
3120
+
3121
+ # http body (model)
3122
+ post_body = @api_client.object_to_http_body(body)
3123
+
3124
+ auth_names = ['PureCloud Auth']
3125
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3126
+ :header_params => header_params,
3127
+ :query_params => query_params,
3128
+ :form_params => form_params,
3129
+ :body => post_body,
3130
+ :auth_names => auth_names,
3131
+ :return_type => 'UserLanguageEntityListing')
3132
+ if @api_client.config.debugging
3133
+ @api_client.config.logger.debug "API called: UsersApi#patch_user_routinglanguages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3134
+ end
3135
+ return data, status_code, headers
3136
+ end
3137
+
3138
+ # Add bulk routing skills to user
3139
+ #
3140
+ # @param user_id User ID
3141
+ # @param body Skill
3142
+ # @param [Hash] opts the optional parameters
3143
+ # @return [UserSkillEntityListing]
3144
+ def patch_user_routingskills_bulk(user_id, body, opts = {})
3145
+ data, _status_code, _headers = patch_user_routingskills_bulk_with_http_info(user_id, body, opts)
3146
+ return data
3147
+ end
3148
+
3149
+ # Add bulk routing skills to user
3150
+ #
3151
+ # @param user_id User ID
3152
+ # @param body Skill
3153
+ # @param [Hash] opts the optional parameters
3154
+ # @return [Array<(UserSkillEntityListing, Fixnum, Hash)>] UserSkillEntityListing data, response status code and response headers
3155
+ def patch_user_routingskills_bulk_with_http_info(user_id, body, opts = {})
3156
+ if @api_client.config.debugging
3157
+ @api_client.config.logger.debug "Calling API: UsersApi.patch_user_routingskills_bulk ..."
3158
+ end
3159
+
3160
+
3161
+ # verify the required parameter 'user_id' is set
3162
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.patch_user_routingskills_bulk" if user_id.nil?
3163
+
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+ # verify the required parameter 'body' is set
3170
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.patch_user_routingskills_bulk" if body.nil?
3171
+
3172
+
3173
+
3174
+
3175
+
3176
+ # resource path
3177
+ local_var_path = "/api/v2/users/{userId}/routingskills/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
3178
+
3179
+ # query parameters
3180
+ query_params = {}
3181
+
3182
+ # header parameters
3183
+ header_params = {}
3184
+
3185
+ # HTTP header 'Accept' (if needed)
3186
+ local_header_accept = ['application/json']
3187
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3188
+
3189
+ # HTTP header 'Content-Type'
3190
+ local_header_content_type = ['application/json']
3191
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3192
+
3193
+ # form parameters
3194
+ form_params = {}
3195
+
3196
+ # http body (model)
3197
+ post_body = @api_client.object_to_http_body(body)
3198
+
3199
+ auth_names = ['PureCloud Auth']
3200
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3201
+ :header_params => header_params,
3202
+ :query_params => query_params,
3203
+ :form_params => form_params,
3204
+ :body => post_body,
3205
+ :auth_names => auth_names,
3206
+ :return_type => 'UserSkillEntityListing')
3207
+ if @api_client.config.debugging
3208
+ @api_client.config.logger.debug "API called: UsersApi#patch_user_routingskills_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3209
+ end
3210
+ return data, status_code, headers
3211
+ end
3212
+
2699
3213
  # Update bulk acd autoanswer on users
2700
3214
  #
2701
3215
  # @param body Users
@@ -2956,6 +3470,99 @@ module PureCloud
2956
3470
  return data, status_code, headers
2957
3471
  end
2958
3472
 
3473
+ # Make a grant of a role in a division
3474
+ #
3475
+ # @param subject_id Subject ID (user or group)
3476
+ # @param division_id the id of the division to which to make the grant
3477
+ # @param role_id the id of the role to grant
3478
+ # @param [Hash] opts the optional parameters
3479
+ # @option opts [String] :subject_type what the type of the subject is, PC_GROUP or PC_USER (default to PC_USER)
3480
+ # @return [nil]
3481
+ def post_authorization_subject_division_role(subject_id, division_id, role_id, opts = {})
3482
+ post_authorization_subject_division_role_with_http_info(subject_id, division_id, role_id, opts)
3483
+ return nil
3484
+ end
3485
+
3486
+ # Make a grant of a role in a division
3487
+ #
3488
+ # @param subject_id Subject ID (user or group)
3489
+ # @param division_id the id of the division to which to make the grant
3490
+ # @param role_id the id of the role to grant
3491
+ # @param [Hash] opts the optional parameters
3492
+ # @option opts [String] :subject_type what the type of the subject is, PC_GROUP or PC_USER
3493
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3494
+ def post_authorization_subject_division_role_with_http_info(subject_id, division_id, role_id, opts = {})
3495
+ if @api_client.config.debugging
3496
+ @api_client.config.logger.debug "Calling API: UsersApi.post_authorization_subject_division_role ..."
3497
+ end
3498
+
3499
+
3500
+ # verify the required parameter 'subject_id' is set
3501
+ fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.post_authorization_subject_division_role" if subject_id.nil?
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+
3508
+ # verify the required parameter 'division_id' is set
3509
+ fail ArgumentError, "Missing the required parameter 'division_id' when calling UsersApi.post_authorization_subject_division_role" if division_id.nil?
3510
+
3511
+
3512
+
3513
+
3514
+
3515
+
3516
+ # verify the required parameter 'role_id' is set
3517
+ fail ArgumentError, "Missing the required parameter 'role_id' when calling UsersApi.post_authorization_subject_division_role" if role_id.nil?
3518
+
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+ # resource path
3530
+ local_var_path = "/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s).sub('{' + 'divisionId' + '}', division_id.to_s).sub('{' + 'roleId' + '}', role_id.to_s)
3531
+
3532
+ # query parameters
3533
+ query_params = {}
3534
+ query_params[:'subjectType'] = opts[:'subject_type'] if opts[:'subject_type']
3535
+
3536
+ # header parameters
3537
+ header_params = {}
3538
+
3539
+ # HTTP header 'Accept' (if needed)
3540
+ local_header_accept = ['application/json']
3541
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3542
+
3543
+ # HTTP header 'Content-Type'
3544
+ local_header_content_type = ['application/json']
3545
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3546
+
3547
+ # form parameters
3548
+ form_params = {}
3549
+
3550
+ # http body (model)
3551
+ post_body = nil
3552
+
3553
+ auth_names = ['PureCloud Auth']
3554
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3555
+ :header_params => header_params,
3556
+ :query_params => query_params,
3557
+ :form_params => form_params,
3558
+ :body => post_body,
3559
+ :auth_names => auth_names)
3560
+ if @api_client.config.debugging
3561
+ @api_client.config.logger.debug "API called: UsersApi#post_authorization_subject_division_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3562
+ end
3563
+ return data, status_code, headers
3564
+ end
3565
+
2959
3566
  # Send an activation email to the user
2960
3567
  #
2961
3568
  # @param user_id User ID