purecloudplatformclientv2 30.1.0 → 31.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (485) 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 +1 -1
  5. data/docs/AgentActivityEntityListing.md +1 -1
  6. data/docs/AppFoundryApi.md +229 -0
  7. data/docs/AppFoundryListing.md +36 -0
  8. data/docs/AppFoundryListingCategory.md +14 -0
  9. data/docs/AppFoundryListingRegistryInfo.md +14 -0
  10. data/docs/ArchitectApi.md +14 -14
  11. data/docs/AttemptLimitsEntityListing.md +1 -1
  12. data/docs/AttributeEntityListing.md +1 -1
  13. data/docs/AuthorizationApi.md +0 -120
  14. data/docs/CalibrationEntityListing.md +1 -1
  15. data/docs/CallConversationEntityListing.md +1 -1
  16. data/docs/CallConversationNotificationCallMediaParticipant.md +1 -0
  17. data/docs/CallConversationNotificationParticipants.md +1 -0
  18. data/docs/CallHistoryConversationEntityListing.md +1 -1
  19. data/docs/CallMediaParticipant.md +1 -0
  20. data/docs/CallableTimeSetEntityListing.md +1 -1
  21. data/docs/CallbackConversationEntityListing.md +1 -1
  22. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -0
  23. data/docs/CallbackConversationNotificationParticipants.md +1 -0
  24. data/docs/CallbackMediaParticipant.md +1 -0
  25. data/docs/CampaignEntityListing.md +1 -1
  26. data/docs/CampaignRuleEntityListing.md +1 -1
  27. data/docs/CampaignSequenceEntityListing.md +1 -1
  28. data/docs/CertificateAuthorityEntityListing.md +1 -1
  29. data/docs/CertificateDetails.md +1 -1
  30. data/docs/ChatConversationEntityListing.md +1 -1
  31. data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -0
  32. data/docs/ChatConversationNotificationParticipants.md +1 -0
  33. data/docs/ChatMediaParticipant.md +1 -0
  34. data/docs/ClientApp.md +21 -0
  35. data/docs/ClientAppConfigurationInfo.md +14 -0
  36. data/docs/ClientAppEntityListing.md +22 -0
  37. data/docs/CobrowseConversationEntityListing.md +1 -1
  38. data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -0
  39. data/docs/CobrowseConversationNotificationParticipants.md +1 -0
  40. data/docs/CobrowseMediaParticipant.md +1 -0
  41. data/docs/CommandStatusEntityListing.md +1 -1
  42. data/docs/ConsumedResourcesEntityListing.md +1 -1
  43. data/docs/ConsumingResourcesEntityListing.md +1 -1
  44. data/docs/ContactListEntityListing.md +1 -1
  45. data/docs/ContactListFilterEntityListing.md +1 -1
  46. data/docs/ContactListing.md +1 -1
  47. data/docs/ConversationEntityListing.md +1 -1
  48. data/docs/ConversationNotificationParticipant.md +1 -0
  49. data/docs/ConversationNotificationParticipants.md +1 -0
  50. data/docs/ConversationNotificationVideo.md +1 -0
  51. data/docs/ConversationNotificationVideos.md +1 -0
  52. data/docs/CreateCallRequest.md +2 -0
  53. data/docs/CreateIntegrationRequest.md +16 -0
  54. data/docs/Credential.md +17 -0
  55. data/docs/CredentialInfo.md +18 -0
  56. data/docs/CredentialInfoListing.md +22 -0
  57. data/docs/CredentialSpecification.md +15 -0
  58. data/docs/CredentialType.md +17 -0
  59. data/docs/CredentialTypeListing.md +22 -0
  60. data/docs/CustomerInteractionCenter.md +1 -1
  61. data/docs/DIDEntityListing.md +1 -1
  62. data/docs/DIDPoolEntityListing.md +1 -1
  63. data/docs/DataExportNotificationNotification.md +22 -0
  64. data/docs/DataTableRowEntityListing.md +1 -1
  65. data/docs/DataTablesDomainEntityListing.md +1 -1
  66. data/docs/DependencyObjectEntityListing.md +1 -1
  67. data/docs/DependencyTypeEntityListing.md +1 -1
  68. data/docs/DialerEventEntityListing.md +1 -1
  69. data/docs/DirectoryUserDevicesListing.md +1 -1
  70. data/docs/DncListEntityListing.md +1 -1
  71. data/docs/DocumentAuditEntityListing.md +1 -1
  72. data/docs/DocumentEntityListing.md +1 -1
  73. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  74. data/docs/DomainEntityListing.md +1 -1
  75. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  76. data/docs/DomainEntityListingQueryResult.md +1 -1
  77. data/docs/DomainEntityListingSurveyForm.md +1 -1
  78. data/docs/DomainOrganizationRole.md +1 -1
  79. data/docs/DomainOrganizationRoleCreate.md +1 -1
  80. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  81. data/docs/EdgeEntityListing.md +1 -1
  82. data/docs/EdgeGroupEntityListing.md +1 -1
  83. data/docs/EdgeLineEntityListing.md +1 -1
  84. data/docs/EffectiveConfiguration.md +17 -0
  85. data/docs/EmailConversationEntityListing.md +1 -1
  86. data/docs/EmailConversationNotificationEmailMediaParticipant.md +1 -0
  87. data/docs/EmailConversationNotificationParticipants.md +1 -0
  88. data/docs/EmailMediaParticipant.md +1 -0
  89. data/docs/EmailMessageListing.md +1 -1
  90. data/docs/EmergencyGroupListing.md +1 -1
  91. data/docs/EncryptionKeyEntityListing.md +1 -1
  92. data/docs/EndpointEntityListing.md +1 -1
  93. data/docs/EvaluationEntityListing.md +1 -1
  94. data/docs/EvaluationFormEntityListing.md +1 -1
  95. data/docs/EvaluatorActivityEntityListing.md +1 -1
  96. data/docs/EventEntity.md +14 -0
  97. data/docs/ExtensionEntityListing.md +1 -1
  98. data/docs/ExtensionPoolEntityListing.md +1 -1
  99. data/docs/ExternalOrganizationListing.md +1 -1
  100. data/docs/FaxDocumentEntityListing.md +1 -1
  101. data/docs/FlowEntityListing.md +1 -1
  102. data/docs/FlowVersionEntityListing.md +1 -1
  103. data/docs/GSuite.md +1 -1
  104. data/docs/GreetingListing.md +1 -1
  105. data/docs/GroupEntityListing.md +1 -1
  106. data/docs/GroupProfileEntityListing.md +1 -1
  107. data/docs/IVREntityListing.md +1 -1
  108. data/docs/IdentityNow.md +1 -1
  109. data/docs/InboundDomainEntityListing.md +1 -1
  110. data/docs/InboundRouteEntityListing.md +1 -1
  111. data/docs/Integration.md +21 -0
  112. data/docs/IntegrationConfiguration.md +20 -0
  113. data/docs/IntegrationConfigurationInfo.md +13 -0
  114. data/docs/IntegrationEntityListing.md +22 -0
  115. data/docs/IntegrationEvent.md +23 -0
  116. data/docs/IntegrationEventEntityListing.md +22 -0
  117. data/docs/IntegrationStatusInfo.md +16 -0
  118. data/docs/IntegrationType.md +26 -0
  119. data/docs/IntegrationTypeEntityListing.md +22 -0
  120. data/docs/IntegrationsApi.md +1457 -175
  121. data/docs/InteractionStatsAlertContainer.md +1 -1
  122. data/docs/InteractionStatsRuleContainer.md +1 -1
  123. data/docs/IntradayDataUpdateNotification.md +2 -2
  124. data/docs/IntradayDataUpdateNotificationDateTime.md +16 -0
  125. data/docs/IntradayDataUpdateNotificationStartDate.md +16 -0
  126. data/docs/JsonNode.md +3 -3
  127. data/docs/KeywordSetEntityListing.md +1 -1
  128. data/docs/LanguageEntityListing.md +1 -1
  129. data/docs/LibraryEntityListing.md +1 -1
  130. data/docs/LineBaseEntityListing.md +1 -1
  131. data/docs/LineEntityListing.md +1 -1
  132. data/docs/LocalizedField.md +12 -0
  133. data/docs/LocationEntityListing.md +1 -1
  134. data/docs/LogicalInterfaceEntityListing.md +1 -1
  135. data/docs/ManagementUnitListing.md +1 -1
  136. data/docs/MarketingInfo.md +14 -0
  137. data/docs/MessageConversationEntityListing.md +1 -1
  138. data/docs/MessageConversationNotificationMessageMediaParticipant.md +1 -0
  139. data/docs/MessageConversationNotificationParticipants.md +1 -0
  140. data/docs/MessageInfo.md +16 -0
  141. data/docs/MessageMediaParticipant.md +1 -0
  142. data/docs/NoteListing.md +1 -1
  143. data/docs/OAuthClientEntityListing.md +1 -1
  144. data/docs/OAuthProviderEntityListing.md +1 -1
  145. data/docs/Okta.md +1 -1
  146. data/docs/OneLogin.md +1 -1
  147. data/docs/OrganizationPresenceEntityListing.md +1 -1
  148. data/docs/OrganizationRoleEntityListing.md +1 -1
  149. data/docs/OrphanRecordingListing.md +1 -1
  150. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  151. data/docs/OutboundRouteEntityListing.md +1 -1
  152. data/docs/PagedListingEntity.md +17 -0
  153. data/docs/Participant.md +1 -0
  154. data/docs/ParticipantBasic.md +1 -0
  155. data/docs/PermissionCollectionEntityListing.md +1 -1
  156. data/docs/PhoneBaseEntityListing.md +1 -1
  157. data/docs/PhoneEntityListing.md +1 -1
  158. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  159. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  160. data/docs/PingIdentity.md +1 -1
  161. data/docs/Platform.md +14 -0
  162. data/docs/PolicyEntityListing.md +1 -1
  163. data/docs/PricingOption.md +14 -0
  164. data/docs/PromptAssetEntityListing.md +1 -1
  165. data/docs/PromptEntityListing.md +1 -1
  166. data/docs/QualityAuditPage.md +1 -1
  167. data/docs/QueueEntityListing.md +1 -1
  168. data/docs/QueueMemberEntityListing.md +1 -1
  169. data/docs/RecipientListing.md +1 -1
  170. data/docs/RegionTimeZone.md +16 -0
  171. data/docs/RelationshipListing.md +1 -1
  172. data/docs/ReportMetaDataEntityListing.md +1 -1
  173. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  174. data/docs/ReportScheduleEntityListing.md +1 -1
  175. data/docs/ReportingExportJobListing.md +1 -1
  176. data/docs/ReportingExportJobRequest.md +1 -1
  177. data/docs/ReportingExportJobResponse.md +1 -1
  178. data/docs/ResponseEntityList.md +1 -1
  179. data/docs/ResponseEntityListing.md +1 -1
  180. data/docs/ResponseSetEntityListing.md +1 -1
  181. data/docs/RuleSetEntityListing.md +1 -1
  182. data/docs/Salesforce.md +1 -1
  183. data/docs/ScheduleEntityListing.md +1 -1
  184. data/docs/ScheduleGroupEntityListing.md +1 -1
  185. data/docs/SchemaCategoryEntityListing.md +1 -1
  186. data/docs/SchemaReferenceEntityListing.md +1 -1
  187. data/docs/ScreenRecordingSessionListing.md +1 -1
  188. data/docs/ScreenShareConversationNotificationParticipants.md +1 -0
  189. data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -0
  190. data/docs/ScriptEntityListing.md +1 -1
  191. data/docs/SecurityProfileEntityListing.md +1 -1
  192. data/docs/ShareEntityListing.md +1 -1
  193. data/docs/SiteEntityListing.md +1 -1
  194. data/docs/SkillEntityListing.md +1 -1
  195. data/docs/SmartCase.md +14 -0
  196. data/docs/SmsPhoneNumberEntityListing.md +1 -1
  197. data/docs/SocialConversationNotificationParticipants.md +1 -0
  198. data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -0
  199. data/docs/StationEntityListing.md +1 -1
  200. data/docs/SurveyFormEntityListing.md +1 -1
  201. data/docs/SystemPromptAssetEntityListing.md +1 -1
  202. data/docs/SystemPromptEntityListing.md +1 -1
  203. data/docs/TagValueEntityListing.md +1 -1
  204. data/docs/TextMessageListing.md +1 -1
  205. data/docs/{WfmMoveAgentsCompleteNotificationUser.md → TimeOffRequestUpdateNotificationUserReference.md} +2 -2
  206. data/docs/TimeZone.md +4 -4
  207. data/docs/TimeZoneEntityListing.md +2 -2
  208. data/docs/TrunkBaseEntityListing.md +1 -1
  209. data/docs/TrunkEntityListing.md +1 -1
  210. data/docs/TrunkMetabaseEntityListing.md +1 -1
  211. data/docs/TrustEntityListing.md +1 -1
  212. data/docs/TrustUserEntityListing.md +1 -1
  213. data/docs/TrustorEntityListing.md +1 -1
  214. data/docs/UserActionCategory.md +15 -0
  215. data/docs/UserActionCategoryEntityListing.md +22 -0
  216. data/docs/UserEntityListing.md +1 -1
  217. data/docs/UserLanguageEntityListing.md +1 -1
  218. data/docs/UserProfileEntityListing.md +1 -1
  219. data/docs/UserQueueEntityListing.md +1 -1
  220. data/docs/UserRecordingEntityListing.md +1 -1
  221. data/docs/UserScheduleAdherence.md +2 -1
  222. data/docs/UserScheduleAdherenceUpdateNotification.md +2 -1
  223. data/docs/UserScheduleAdherenceUpdateNotificationDateTime.md +16 -0
  224. data/docs/{TimeOffRequestUpdateNotificationUser.md → UserScheduleAdherenceUpdateNotificationUserReference.md} +2 -2
  225. data/docs/UserSkillEntityListing.md +1 -1
  226. data/docs/VendorConnectionRequest.md +15 -0
  227. data/docs/VideoConversationNotificationParticipants.md +2 -0
  228. data/docs/VideoConversationNotificationVideoMediaParticipant.md +2 -0
  229. data/docs/VoicemailMessageEntityListing.md +1 -1
  230. data/docs/WfmMoveAgentsCompleteNotificationResults.md +1 -1
  231. data/docs/{UserScheduleAdherenceUpdateNotificationUser.md → WfmMoveAgentsCompleteNotificationUserReference.md} +2 -2
  232. data/docs/WfmMoveAgentsCompleteNotificationWfmMoveAgentData.md +1 -1
  233. data/docs/WorkspaceEntityListing.md +1 -1
  234. data/docs/WorkspaceMemberEntityListing.md +1 -1
  235. data/docs/WrapupCodeEntityListing.md +1 -1
  236. data/lib/purecloudplatformclientv2.rb +43 -6
  237. data/lib/purecloudplatformclientv2/api/app_foundry_api.rb +360 -0
  238. data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
  239. data/lib/purecloudplatformclientv2/api/authorization_api.rb +0 -145
  240. data/lib/purecloudplatformclientv2/api/integrations_api.rb +1926 -321
  241. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  242. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +12 -12
  243. data/lib/purecloudplatformclientv2/models/adfs.rb +12 -12
  244. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +12 -12
  245. data/lib/purecloudplatformclientv2/models/app_foundry_listing.rb +815 -0
  246. data/lib/purecloudplatformclientv2/models/app_foundry_listing_category.rb +231 -0
  247. data/lib/purecloudplatformclientv2/models/app_foundry_listing_registry_info.rb +231 -0
  248. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +12 -12
  249. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +12 -12
  250. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +12 -12
  251. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +12 -12
  252. data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +40 -1
  253. data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +40 -1
  254. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +12 -12
  255. data/lib/purecloudplatformclientv2/models/call_media_participant.rb +41 -1
  256. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +12 -12
  257. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +12 -12
  258. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +40 -1
  259. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +40 -1
  260. data/lib/purecloudplatformclientv2/models/callback_media_participant.rb +41 -1
  261. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +12 -12
  262. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +12 -12
  263. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +12 -12
  264. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +12 -12
  265. data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
  266. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +12 -12
  267. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +40 -1
  268. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +40 -1
  269. data/lib/purecloudplatformclientv2/models/chat_media_participant.rb +41 -1
  270. data/lib/purecloudplatformclientv2/models/client_app.rb +432 -0
  271. data/lib/purecloudplatformclientv2/models/client_app_configuration_info.rb +229 -0
  272. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +428 -0
  273. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +12 -12
  274. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +40 -1
  275. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +40 -1
  276. data/lib/purecloudplatformclientv2/models/cobrowse_media_participant.rb +41 -1
  277. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +12 -12
  278. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +12 -12
  279. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +12 -12
  280. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +12 -12
  281. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +12 -12
  282. data/lib/purecloudplatformclientv2/models/contact_listing.rb +12 -12
  283. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +12 -12
  284. data/lib/purecloudplatformclientv2/models/conversation_notification_participant.rb +26 -1
  285. data/lib/purecloudplatformclientv2/models/conversation_notification_participants.rb +26 -1
  286. data/lib/purecloudplatformclientv2/models/conversation_notification_video.rb +28 -1
  287. data/lib/purecloudplatformclientv2/models/conversation_notification_videos.rb +28 -1
  288. data/lib/purecloudplatformclientv2/models/create_call_request.rb +53 -1
  289. data/lib/purecloudplatformclientv2/models/create_integration_request.rb +291 -0
  290. data/lib/purecloudplatformclientv2/models/credential.rb +311 -0
  291. data/lib/purecloudplatformclientv2/models/credential_info.rb +331 -0
  292. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +428 -0
  293. data/lib/purecloudplatformclientv2/models/credential_specification.rb +257 -0
  294. data/lib/purecloudplatformclientv2/models/credential_type.rb +309 -0
  295. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +428 -0
  296. data/lib/purecloudplatformclientv2/models/customer_interaction_center.rb +12 -12
  297. data/lib/purecloudplatformclientv2/models/data_export_notification_notification.rb +482 -0
  298. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +12 -12
  299. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +12 -12
  300. data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
  301. data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
  302. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +12 -12
  303. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +12 -12
  304. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +12 -12
  305. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +12 -12
  306. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +12 -12
  307. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +12 -12
  308. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +12 -12
  309. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +12 -12
  310. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +12 -12
  311. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +12 -12
  312. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +12 -12
  313. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +12 -12
  314. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +12 -12
  315. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +12 -12
  316. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  317. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  318. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  319. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +12 -12
  320. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +12 -12
  321. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +12 -12
  322. data/lib/purecloudplatformclientv2/models/effective_configuration.rb +338 -0
  323. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +12 -12
  324. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +40 -1
  325. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +40 -1
  326. data/lib/purecloudplatformclientv2/models/email_media_participant.rb +41 -1
  327. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +12 -12
  328. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +12 -12
  329. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +12 -12
  330. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +12 -12
  331. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +12 -12
  332. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +12 -12
  333. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +12 -12
  334. data/lib/purecloudplatformclientv2/models/event_entity.rb +228 -0
  335. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  336. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +12 -12
  337. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +12 -12
  338. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +12 -12
  339. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +12 -12
  340. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +12 -12
  341. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +12 -12
  342. data/lib/purecloudplatformclientv2/models/g_suite.rb +12 -12
  343. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +12 -12
  344. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +12 -12
  345. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +12 -12
  346. data/lib/purecloudplatformclientv2/models/identity_now.rb +12 -12
  347. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +12 -12
  348. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +12 -12
  349. data/lib/purecloudplatformclientv2/models/integration.rb +432 -0
  350. data/lib/purecloudplatformclientv2/models/integration_configuration.rb +417 -0
  351. data/lib/purecloudplatformclientv2/models/integration_configuration_info.rb +203 -0
  352. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +428 -0
  353. data/lib/purecloudplatformclientv2/models/integration_event.rb +481 -0
  354. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +428 -0
  355. data/lib/purecloudplatformclientv2/models/{data_column.rb → integration_status_info.rb} +79 -36
  356. data/lib/purecloudplatformclientv2/models/integration_type.rb +551 -0
  357. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +428 -0
  358. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +12 -12
  359. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +12 -12
  360. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification.rb +2 -2
  361. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_date_time.rb +276 -0
  362. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_intraday_data_group.rb +2 -2
  363. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_intraday_data_groupings.rb +2 -2
  364. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_intraday_metric.rb +2 -2
  365. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_metrics.rb +2 -2
  366. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_start_date.rb +276 -0
  367. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +12 -12
  368. data/lib/purecloudplatformclientv2/models/json_node.rb +66 -66
  369. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +12 -12
  370. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +12 -12
  371. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +12 -12
  372. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +12 -12
  373. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +12 -12
  374. data/lib/purecloudplatformclientv2/models/localized_field.rb +177 -0
  375. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +12 -12
  376. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +12 -12
  377. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +12 -12
  378. data/lib/purecloudplatformclientv2/models/marketing_info.rb +229 -0
  379. data/lib/purecloudplatformclientv2/models/message.rb +2 -2
  380. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +12 -12
  381. data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media_participant.rb +40 -1
  382. data/lib/purecloudplatformclientv2/models/message_conversation_notification_participants.rb +40 -1
  383. data/lib/purecloudplatformclientv2/models/message_info.rb +278 -0
  384. data/lib/purecloudplatformclientv2/models/message_media_participant.rb +43 -3
  385. data/lib/purecloudplatformclientv2/models/note_listing.rb +12 -12
  386. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +12 -12
  387. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +12 -12
  388. data/lib/purecloudplatformclientv2/models/okta.rb +12 -12
  389. data/lib/purecloudplatformclientv2/models/one_login.rb +12 -12
  390. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +12 -12
  391. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +12 -12
  392. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +12 -12
  393. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +12 -12
  394. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +12 -12
  395. data/lib/purecloudplatformclientv2/models/paged_listing_entity.rb +303 -0
  396. data/lib/purecloudplatformclientv2/models/participant.rb +44 -4
  397. data/lib/purecloudplatformclientv2/models/participant_basic.rb +44 -4
  398. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +12 -12
  399. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +12 -12
  400. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +12 -12
  401. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +12 -12
  402. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +12 -12
  403. data/lib/purecloudplatformclientv2/models/ping_identity.rb +12 -12
  404. data/lib/purecloudplatformclientv2/models/platform.rb +236 -0
  405. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +12 -12
  406. data/lib/purecloudplatformclientv2/models/pricing_option.rb +234 -0
  407. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +12 -12
  408. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +12 -12
  409. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +12 -12
  410. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +12 -12
  411. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +12 -12
  412. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +12 -12
  413. data/lib/purecloudplatformclientv2/models/{authz_typed_object.rb → region_time_zone.rb} +58 -32
  414. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +12 -12
  415. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +12 -12
  416. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +12 -12
  417. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +12 -12
  418. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +12 -12
  419. data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +35 -37
  420. data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +32 -34
  421. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +12 -12
  422. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +12 -12
  423. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +12 -12
  424. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +12 -12
  425. data/lib/purecloudplatformclientv2/models/salesforce.rb +12 -12
  426. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +12 -12
  427. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +12 -12
  428. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +12 -12
  429. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +12 -12
  430. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +12 -12
  431. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +40 -1
  432. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +40 -1
  433. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +12 -12
  434. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +12 -12
  435. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +12 -12
  436. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +12 -12
  437. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +12 -12
  438. data/lib/purecloudplatformclientv2/models/smart_case.rb +229 -0
  439. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +12 -12
  440. data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +40 -1
  441. data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +40 -1
  442. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +12 -12
  443. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +12 -12
  444. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +12 -12
  445. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +12 -12
  446. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +12 -12
  447. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +12 -12
  448. data/lib/purecloudplatformclientv2/models/{user_schedule_adherence_update_notification_user.rb → time_off_request_update_notification_user_reference.rb} +1 -1
  449. data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -26
  450. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +13 -13
  451. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +12 -12
  452. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +12 -12
  453. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +12 -12
  454. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +12 -12
  455. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +12 -12
  456. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +12 -12
  457. data/lib/purecloudplatformclientv2/models/user_action_category.rb +253 -0
  458. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +428 -0
  459. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +12 -12
  460. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +12 -12
  461. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +12 -12
  462. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +12 -12
  463. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +12 -12
  464. data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +28 -2
  465. data/lib/purecloudplatformclientv2/models/user_schedule_adherence_update_notification.rb +43 -4
  466. data/lib/purecloudplatformclientv2/models/user_schedule_adherence_update_notification_date_time.rb +276 -0
  467. data/lib/purecloudplatformclientv2/models/{wfm_move_agents_complete_notification_user.rb → user_schedule_adherence_update_notification_user_reference.rb} +1 -1
  468. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +12 -12
  469. data/lib/purecloudplatformclientv2/models/vendor_connection_request.rb +269 -0
  470. data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +70 -4
  471. data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +70 -4
  472. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +12 -12
  473. data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_calculations_complete_notice_notification.rb +2 -2
  474. data/lib/purecloudplatformclientv2/models/wfm_move_agents_complete_notification_results.rb +1 -1
  475. data/lib/purecloudplatformclientv2/models/{time_off_request_update_notification_user.rb → wfm_move_agents_complete_notification_user_reference.rb} +1 -1
  476. data/lib/purecloudplatformclientv2/models/wfm_move_agents_complete_notification_wfm_move_agent_data.rb +1 -1
  477. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +12 -12
  478. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +12 -12
  479. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +12 -12
  480. data/lib/purecloudplatformclientv2/version.rb +1 -1
  481. metadata +88 -14
  482. data/docs/AuthzTypedObject.md +0 -14
  483. data/docs/DataColumn.md +0 -14
  484. data/docs/ObjectsApi.md +0 -132
  485. data/lib/purecloudplatformclientv2/api/objects_api.rb +0 -172
@@ -1075,8 +1075,8 @@ module PureCloud
1075
1075
  fail ArgumentError, "Missing the required parameter 'object_type' when calling ArchitectApi.get_architect_dependencytracking_consumedresources" if object_type.nil?
1076
1076
 
1077
1077
  # verify enum value
1078
- unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(object_type)
1079
- fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW"
1078
+ unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(object_type)
1079
+ fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW"
1080
1080
  end
1081
1081
 
1082
1082
 
@@ -1167,8 +1167,8 @@ module PureCloud
1167
1167
  fail ArgumentError, "Missing the required parameter 'object_type' when calling ArchitectApi.get_architect_dependencytracking_consumingresources" if object_type.nil?
1168
1168
 
1169
1169
  # verify enum value
1170
- unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(object_type)
1171
- fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW"
1170
+ unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(object_type)
1171
+ fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW"
1172
1172
  end
1173
1173
 
1174
1174
 
@@ -1392,8 +1392,8 @@ module PureCloud
1392
1392
 
1393
1393
 
1394
1394
 
1395
- if opts[:'object_type'] && !['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(opts[:'object_type'])
1396
- fail ArgumentError, 'invalid value for "object_type", must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW'
1395
+ if opts[:'object_type'] && !['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BRIDGEACTION', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'EMAILROUTE', 'EMERGENCYGROUP', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'USER', 'USERPROMPT', 'VOICEXML', 'WORKFLOW'].include?(opts[:'object_type'])
1396
+ fail ArgumentError, 'invalid value for "object_type", must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BRIDGEACTION, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, EMAILROUTE, EMERGENCYGROUP, GROUP, INBOUNDCALLFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, USER, USERPROMPT, VOICEXML, WORKFLOW'
1397
1397
  end
1398
1398
 
1399
1399
 
@@ -152,61 +152,6 @@ module PureCloud
152
152
  return data, status_code, headers
153
153
  end
154
154
 
155
- # Returns the maximum allowed number of divisions.
156
- #
157
- # @param [Hash] opts the optional parameters
158
- # @return [Integer]
159
- def get_authorization_divisions_limit(opts = {})
160
- data, _status_code, _headers = get_authorization_divisions_limit_with_http_info(opts)
161
- return data
162
- end
163
-
164
- # Returns the maximum allowed number of divisions.
165
- #
166
- # @param [Hash] opts the optional parameters
167
- # @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
168
- def get_authorization_divisions_limit_with_http_info(opts = {})
169
- if @api_client.config.debugging
170
- @api_client.config.logger.debug "Calling API: AuthorizationApi.get_authorization_divisions_limit ..."
171
- end
172
-
173
- # resource path
174
- local_var_path = "/api/v2/authorization/divisions/limit".sub('{format}','json')
175
-
176
- # query parameters
177
- query_params = {}
178
-
179
- # header parameters
180
- header_params = {}
181
-
182
- # HTTP header 'Accept' (if needed)
183
- local_header_accept = ['application/json']
184
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
185
-
186
- # HTTP header 'Content-Type'
187
- local_header_content_type = ['application/json']
188
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
189
-
190
- # form parameters
191
- form_params = {}
192
-
193
- # http body (model)
194
- post_body = nil
195
-
196
- auth_names = ['PureCloud Auth']
197
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
198
- :header_params => header_params,
199
- :query_params => query_params,
200
- :form_params => form_params,
201
- :body => post_body,
202
- :auth_names => auth_names,
203
- :return_type => 'Integer')
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: AuthorizationApi#get_authorization_divisions_limit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
- end
207
- return data, status_code, headers
208
- end
209
-
210
155
  # Get all permissions.
211
156
  # Retrieve a list of all permission defined in the system.
212
157
  # @param [Hash] opts the optional parameters
@@ -769,96 +714,6 @@ module PureCloud
769
714
  return data, status_code, headers
770
715
  end
771
716
 
772
- # Set the division of a list of objects. The objects must all be of the same type: CAMPAIGN, CONTACTLIST, DNCLIST, MANAGEMENTUNIT, FLOW, QUEUE, USER
773
- #
774
- # @param division_id Division ID
775
- # @param object_type The type of the objects. Must be one of the valid object types
776
- # @param body Object Id List
777
- # @param [Hash] opts the optional parameters
778
- # @return [Array<AuthzTypedObject>]
779
- def post_authorization_division_object(division_id, object_type, body, opts = {})
780
- data, _status_code, _headers = post_authorization_division_object_with_http_info(division_id, object_type, body, opts)
781
- return data
782
- end
783
-
784
- # Set the division of a list of objects. The objects must all be of the same type: CAMPAIGN, CONTACTLIST, DNCLIST, MANAGEMENTUNIT, FLOW, QUEUE, USER
785
- #
786
- # @param division_id Division ID
787
- # @param object_type The type of the objects. Must be one of the valid object types
788
- # @param body Object Id List
789
- # @param [Hash] opts the optional parameters
790
- # @return [Array<(Array<AuthzTypedObject>, Fixnum, Hash)>] Array<AuthzTypedObject> data, response status code and response headers
791
- def post_authorization_division_object_with_http_info(division_id, object_type, body, opts = {})
792
- if @api_client.config.debugging
793
- @api_client.config.logger.debug "Calling API: AuthorizationApi.post_authorization_division_object ..."
794
- end
795
-
796
-
797
- # verify the required parameter 'division_id' is set
798
- fail ArgumentError, "Missing the required parameter 'division_id' when calling AuthorizationApi.post_authorization_division_object" if division_id.nil?
799
-
800
-
801
-
802
-
803
-
804
-
805
- # verify the required parameter 'object_type' is set
806
- fail ArgumentError, "Missing the required parameter 'object_type' when calling AuthorizationApi.post_authorization_division_object" if object_type.nil?
807
-
808
- # verify enum value
809
- unless ['QUEUE', 'CAMPAIGN', 'CONTACTLIST', 'DNCLIST', 'MANAGEMENTUNIT', 'FLOW', 'USER'].include?(object_type)
810
- fail ArgumentError, "invalid value for 'object_type', must be one of QUEUE, CAMPAIGN, CONTACTLIST, DNCLIST, MANAGEMENTUNIT, FLOW, USER"
811
- end
812
-
813
-
814
-
815
-
816
-
817
-
818
- # verify the required parameter 'body' is set
819
- fail ArgumentError, "Missing the required parameter 'body' when calling AuthorizationApi.post_authorization_division_object" if body.nil?
820
-
821
-
822
-
823
-
824
-
825
- # resource path
826
- local_var_path = "/api/v2/authorization/divisions/{divisionId}/objects/{objectType}".sub('{format}','json').sub('{' + 'divisionId' + '}', division_id.to_s).sub('{' + 'objectType' + '}', object_type.to_s)
827
-
828
- # query parameters
829
- query_params = {}
830
-
831
- # header parameters
832
- header_params = {}
833
-
834
- # HTTP header 'Accept' (if needed)
835
- local_header_accept = ['application/json']
836
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
837
-
838
- # HTTP header 'Content-Type'
839
- local_header_content_type = ['application/json']
840
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
841
-
842
- # form parameters
843
- form_params = {}
844
-
845
- # http body (model)
846
- post_body = @api_client.object_to_http_body(body)
847
-
848
- auth_names = ['PureCloud Auth']
849
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
850
- :header_params => header_params,
851
- :query_params => query_params,
852
- :form_params => form_params,
853
- :body => post_body,
854
- :auth_names => auth_names,
855
- :return_type => 'Array<AuthzTypedObject>')
856
- if @api_client.config.debugging
857
- @api_client.config.logger.debug "API called: AuthorizationApi#post_authorization_division_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
- end
859
- return data, status_code, headers
860
- end
861
-
862
717
  # Get an unsaved org role to default role comparison
863
718
  # Allows users to compare their existing roles in an unsaved state to its default role
864
719
  # @param left_role_id Left Role ID
@@ -24,6 +24,71 @@ module PureCloud
24
24
  @api_client = api_client
25
25
  end
26
26
 
27
+ # Delete integration.
28
+ #
29
+ # @param integration_id Integration Id
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [Integration]
32
+ def delete_integration(integration_id, opts = {})
33
+ data, _status_code, _headers = delete_integration_with_http_info(integration_id, opts)
34
+ return data
35
+ end
36
+
37
+ # Delete integration.
38
+ #
39
+ # @param integration_id Integration Id
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(Integration, Fixnum, Hash)>] Integration data, response status code and response headers
42
+ def delete_integration_with_http_info(integration_id, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.delete_integration ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'integration_id' is set
49
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.delete_integration" if integration_id.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/integrations/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+
78
+ auth_names = ['PureCloud Auth']
79
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => 'Integration')
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: IntegrationsApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
27
92
  # Delete an Action
28
93
  #
29
94
  # @param action_id actionId
@@ -152,61 +217,39 @@ module PureCloud
152
217
  return data, status_code, headers
153
218
  end
154
219
 
155
- # Retrieves a single Action matching id.
220
+ # Delete a set of credentials
156
221
  #
157
- # @param action_id actionId
222
+ # @param credential_id Credential ID
158
223
  # @param [Hash] opts the optional parameters
159
- # @option opts [String] :expand Indicates fields of the response which should be expanded.
160
- # @option opts [BOOLEAN] :include_config Show config when available (default to false)
161
- # @return [Action]
162
- def get_integrations_action(action_id, opts = {})
163
- data, _status_code, _headers = get_integrations_action_with_http_info(action_id, opts)
164
- return data
224
+ # @return [nil]
225
+ def delete_integrations_credential(credential_id, opts = {})
226
+ delete_integrations_credential_with_http_info(credential_id, opts)
227
+ return nil
165
228
  end
166
229
 
167
- # Retrieves a single Action matching id.
230
+ # Delete a set of credentials
168
231
  #
169
- # @param action_id actionId
232
+ # @param credential_id Credential ID
170
233
  # @param [Hash] opts the optional parameters
171
- # @option opts [String] :expand Indicates fields of the response which should be expanded.
172
- # @option opts [BOOLEAN] :include_config Show config when available
173
- # @return [Array<(Action, Fixnum, Hash)>] Action data, response status code and response headers
174
- def get_integrations_action_with_http_info(action_id, opts = {})
234
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
235
+ def delete_integrations_credential_with_http_info(credential_id, opts = {})
175
236
  if @api_client.config.debugging
176
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action ..."
177
- end
178
-
179
-
180
- # verify the required parameter 'action_id' is set
181
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action" if action_id.nil?
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- if opts[:'expand'] && !['contract'].include?(opts[:'expand'])
191
- fail ArgumentError, 'invalid value for "expand", must be one of contract'
237
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.delete_integrations_credential ..."
192
238
  end
193
239
 
194
240
 
195
-
196
-
197
-
241
+ # verify the required parameter 'credential_id' is set
242
+ fail ArgumentError, "Missing the required parameter 'credential_id' when calling IntegrationsApi.delete_integrations_credential" if credential_id.nil?
198
243
 
199
244
 
200
245
 
201
246
 
202
247
 
203
248
  # resource path
204
- local_var_path = "/api/v2/integrations/actions/{actionId}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
249
+ local_var_path = "/api/v2/integrations/credentials/{credentialId}".sub('{format}','json').sub('{' + 'credentialId' + '}', credential_id.to_s)
205
250
 
206
251
  # query parameters
207
252
  query_params = {}
208
- query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
209
- query_params[:'includeConfig'] = opts[:'include_config'] if opts[:'include_config']
210
253
 
211
254
  # header parameters
212
255
  header_params = {}
@@ -226,46 +269,76 @@ module PureCloud
226
269
  post_body = nil
227
270
 
228
271
  auth_names = ['PureCloud Auth']
229
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
272
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
230
273
  :header_params => header_params,
231
274
  :query_params => query_params,
232
275
  :form_params => form_params,
233
276
  :body => post_body,
234
- :auth_names => auth_names,
235
- :return_type => 'Action')
277
+ :auth_names => auth_names)
236
278
  if @api_client.config.debugging
237
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
+ @api_client.config.logger.debug "API called: IntegrationsApi#delete_integrations_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
280
  end
239
281
  return data, status_code, headers
240
282
  end
241
283
 
242
- # Retrieve a Draft
284
+ # Get integration.
243
285
  #
244
- # @param action_id actionId
286
+ # @param integration_id Integration Id
245
287
  # @param [Hash] opts the optional parameters
246
- # @option opts [String] :expand Indicates fields of the response which should be expanded.
247
- # @option opts [BOOLEAN] :include_config Show config when available (default to false)
248
- # @return [Action]
249
- def get_integrations_action_draft(action_id, opts = {})
250
- data, _status_code, _headers = get_integrations_action_draft_with_http_info(action_id, opts)
288
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
289
+ # @option opts [Integer] :page_number The page number requested (default to 1)
290
+ # @option opts [String] :sort_by variable name requested to sort by
291
+ # @option opts [Array<Object>] :expand variable name requested by expand list
292
+ # @option opts [String] :next_page next page token
293
+ # @option opts [String] :previous_page Previous page token
294
+ # @return [Integration]
295
+ def get_integration(integration_id, opts = {})
296
+ data, _status_code, _headers = get_integration_with_http_info(integration_id, opts)
251
297
  return data
252
298
  end
253
299
 
254
- # Retrieve a Draft
300
+ # Get integration.
255
301
  #
256
- # @param action_id actionId
302
+ # @param integration_id Integration Id
257
303
  # @param [Hash] opts the optional parameters
258
- # @option opts [String] :expand Indicates fields of the response which should be expanded.
259
- # @option opts [BOOLEAN] :include_config Show config when available
260
- # @return [Array<(Action, Fixnum, Hash)>] Action data, response status code and response headers
261
- def get_integrations_action_draft_with_http_info(action_id, opts = {})
304
+ # @option opts [Integer] :page_size The total page size requested
305
+ # @option opts [Integer] :page_number The page number requested
306
+ # @option opts [String] :sort_by variable name requested to sort by
307
+ # @option opts [Array<Object>] :expand variable name requested by expand list
308
+ # @option opts [String] :next_page next page token
309
+ # @option opts [String] :previous_page Previous page token
310
+ # @return [Array<(Integration, Fixnum, Hash)>] Integration data, response status code and response headers
311
+ def get_integration_with_http_info(integration_id, opts = {})
262
312
  if @api_client.config.debugging
263
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft ..."
313
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration ..."
264
314
  end
265
315
 
266
316
 
267
- # verify the required parameter 'action_id' is set
268
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft" if action_id.nil?
317
+ # verify the required parameter 'integration_id' is set
318
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.get_integration" if integration_id.nil?
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
269
342
 
270
343
 
271
344
 
@@ -274,9 +347,6 @@ module PureCloud
274
347
 
275
348
 
276
349
 
277
- if opts[:'expand'] && !['contract'].include?(opts[:'expand'])
278
- fail ArgumentError, 'invalid value for "expand", must be one of contract'
279
- end
280
350
 
281
351
 
282
352
 
@@ -288,12 +358,16 @@ module PureCloud
288
358
 
289
359
 
290
360
  # resource path
291
- local_var_path = "/api/v2/integrations/actions/{actionId}/draft".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
361
+ local_var_path = "/api/v2/integrations/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
292
362
 
293
363
  # query parameters
294
364
  query_params = {}
295
- query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
296
- query_params[:'includeConfig'] = opts[:'include_config'] if opts[:'include_config']
365
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
366
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
367
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
368
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
369
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
370
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
297
371
 
298
372
  # header parameters
299
373
  header_params = {}
@@ -319,53 +393,43 @@ module PureCloud
319
393
  :form_params => form_params,
320
394
  :body => post_body,
321
395
  :auth_names => auth_names,
322
- :return_type => 'Action')
396
+ :return_type => 'Integration')
323
397
  if @api_client.config.debugging
324
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
399
  end
326
400
  return data, status_code, headers
327
401
  end
328
402
 
329
- # Retrieve schema for a Draft based on filename.
403
+ # Get integration configuration.
330
404
  #
331
- # @param action_id actionId
332
- # @param file_name Name of schema file to be retrieved for this draft.
405
+ # @param integration_id Integration Id
333
406
  # @param [Hash] opts the optional parameters
334
- # @return [JsonSchemaDocument]
335
- def get_integrations_action_draft_schema(action_id, file_name, opts = {})
336
- data, _status_code, _headers = get_integrations_action_draft_schema_with_http_info(action_id, file_name, opts)
407
+ # @return [IntegrationConfiguration]
408
+ def get_integration_config_current(integration_id, opts = {})
409
+ data, _status_code, _headers = get_integration_config_current_with_http_info(integration_id, opts)
337
410
  return data
338
411
  end
339
412
 
340
- # Retrieve schema for a Draft based on filename.
413
+ # Get integration configuration.
341
414
  #
342
- # @param action_id actionId
343
- # @param file_name Name of schema file to be retrieved for this draft.
415
+ # @param integration_id Integration Id
344
416
  # @param [Hash] opts the optional parameters
345
- # @return [Array<(JsonSchemaDocument, Fixnum, Hash)>] JsonSchemaDocument data, response status code and response headers
346
- def get_integrations_action_draft_schema_with_http_info(action_id, file_name, opts = {})
417
+ # @return [Array<(IntegrationConfiguration, Fixnum, Hash)>] IntegrationConfiguration data, response status code and response headers
418
+ def get_integration_config_current_with_http_info(integration_id, opts = {})
347
419
  if @api_client.config.debugging
348
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_schema ..."
420
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration_config_current ..."
349
421
  end
350
422
 
351
423
 
352
- # verify the required parameter 'action_id' is set
353
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_schema" if action_id.nil?
354
-
355
-
356
-
357
-
358
-
359
-
360
- # verify the required parameter 'file_name' is set
361
- fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_draft_schema" if file_name.nil?
424
+ # verify the required parameter 'integration_id' is set
425
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.get_integration_config_current" if integration_id.nil?
362
426
 
363
427
 
364
428
 
365
429
 
366
430
 
367
431
  # resource path
368
- local_var_path = "/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
432
+ local_var_path = "/api/v2/integrations/{integrationId}/config/current".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
369
433
 
370
434
  # query parameters
371
435
  query_params = {}
@@ -394,53 +458,1338 @@ module PureCloud
394
458
  :form_params => form_params,
395
459
  :body => post_body,
396
460
  :auth_names => auth_names,
397
- :return_type => 'JsonSchemaDocument')
461
+ :return_type => 'IntegrationConfiguration')
398
462
  if @api_client.config.debugging
399
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
463
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integration_config_current\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
400
464
  end
401
465
  return data, status_code, headers
402
466
  end
403
467
 
404
- # Retrieve templates for a Draft based on filename.
468
+ # List integrations
405
469
  #
406
- # @param action_id actionId
407
- # @param file_name Name of template file to be retrieved for this action draft.
408
470
  # @param [Hash] opts the optional parameters
409
- # @return [String]
410
- def get_integrations_action_draft_template(action_id, file_name, opts = {})
411
- data, _status_code, _headers = get_integrations_action_draft_template_with_http_info(action_id, file_name, opts)
471
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
472
+ # @option opts [Integer] :page_number The page number requested (default to 1)
473
+ # @option opts [String] :sort_by variable name requested to sort by
474
+ # @option opts [Array<Object>] :expand variable name requested by expand list
475
+ # @option opts [String] :next_page next page token
476
+ # @option opts [String] :previous_page Previous page token
477
+ # @return [IntegrationEntityListing]
478
+ def get_integrations(opts = {})
479
+ data, _status_code, _headers = get_integrations_with_http_info(opts)
412
480
  return data
413
481
  end
414
482
 
415
- # Retrieve templates for a Draft based on filename.
483
+ # List integrations
416
484
  #
417
- # @param action_id actionId
418
- # @param file_name Name of template file to be retrieved for this action draft.
419
485
  # @param [Hash] opts the optional parameters
420
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
421
- def get_integrations_action_draft_template_with_http_info(action_id, file_name, opts = {})
486
+ # @option opts [Integer] :page_size The total page size requested
487
+ # @option opts [Integer] :page_number The page number requested
488
+ # @option opts [String] :sort_by variable name requested to sort by
489
+ # @option opts [Array<Object>] :expand variable name requested by expand list
490
+ # @option opts [String] :next_page next page token
491
+ # @option opts [String] :previous_page Previous page token
492
+ # @return [Array<(IntegrationEntityListing, Fixnum, Hash)>] IntegrationEntityListing data, response status code and response headers
493
+ def get_integrations_with_http_info(opts = {})
422
494
  if @api_client.config.debugging
423
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_template ..."
495
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations ..."
424
496
  end
425
497
 
426
498
 
427
- # verify the required parameter 'action_id' is set
428
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_template" if action_id.nil?
429
499
 
430
500
 
431
501
 
432
502
 
433
503
 
434
504
 
435
- # verify the required parameter 'file_name' is set
436
- fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_draft_template" if file_name.nil?
437
505
 
438
506
 
439
507
 
440
508
 
441
509
 
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ # resource path
535
+ local_var_path = "/api/v2/integrations".sub('{format}','json')
536
+
537
+ # query parameters
538
+ query_params = {}
539
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
540
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
541
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
542
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
543
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
544
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
545
+
546
+ # header parameters
547
+ header_params = {}
548
+
549
+ # HTTP header 'Accept' (if needed)
550
+ local_header_accept = ['application/json']
551
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
552
+
553
+ # HTTP header 'Content-Type'
554
+ local_header_content_type = ['application/json']
555
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_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
+ :return_type => 'IntegrationEntityListing')
571
+ if @api_client.config.debugging
572
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
573
+ end
574
+ return data, status_code, headers
575
+ end
576
+
577
+ # Retrieves a single Action matching id.
578
+ #
579
+ # @param action_id actionId
580
+ # @param [Hash] opts the optional parameters
581
+ # @option opts [String] :expand Indicates fields of the response which should be expanded.
582
+ # @option opts [BOOLEAN] :include_config Show config when available (default to false)
583
+ # @return [Action]
584
+ def get_integrations_action(action_id, opts = {})
585
+ data, _status_code, _headers = get_integrations_action_with_http_info(action_id, opts)
586
+ return data
587
+ end
588
+
589
+ # Retrieves a single Action matching id.
590
+ #
591
+ # @param action_id actionId
592
+ # @param [Hash] opts the optional parameters
593
+ # @option opts [String] :expand Indicates fields of the response which should be expanded.
594
+ # @option opts [BOOLEAN] :include_config Show config when available
595
+ # @return [Array<(Action, Fixnum, Hash)>] Action data, response status code and response headers
596
+ def get_integrations_action_with_http_info(action_id, opts = {})
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action ..."
599
+ end
600
+
601
+
602
+ # verify the required parameter 'action_id' is set
603
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action" if action_id.nil?
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+ if opts[:'expand'] && !['contract'].include?(opts[:'expand'])
613
+ fail ArgumentError, 'invalid value for "expand", must be one of contract'
614
+ end
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+ # resource path
626
+ local_var_path = "/api/v2/integrations/actions/{actionId}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
627
+
628
+ # query parameters
629
+ query_params = {}
630
+ query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
631
+ query_params[:'includeConfig'] = opts[:'include_config'] if opts[:'include_config']
632
+
633
+ # header parameters
634
+ header_params = {}
635
+
636
+ # HTTP header 'Accept' (if needed)
637
+ local_header_accept = ['application/json']
638
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
639
+
640
+ # HTTP header 'Content-Type'
641
+ local_header_content_type = ['application/json']
642
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
643
+
644
+ # form parameters
645
+ form_params = {}
646
+
647
+ # http body (model)
648
+ post_body = nil
649
+
650
+ auth_names = ['PureCloud Auth']
651
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
652
+ :header_params => header_params,
653
+ :query_params => query_params,
654
+ :form_params => form_params,
655
+ :body => post_body,
656
+ :auth_names => auth_names,
657
+ :return_type => 'Action')
658
+ if @api_client.config.debugging
659
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
660
+ end
661
+ return data, status_code, headers
662
+ end
663
+
664
+ # Retrieve a Draft
665
+ #
666
+ # @param action_id actionId
667
+ # @param [Hash] opts the optional parameters
668
+ # @option opts [String] :expand Indicates fields of the response which should be expanded.
669
+ # @option opts [BOOLEAN] :include_config Show config when available (default to false)
670
+ # @return [Action]
671
+ def get_integrations_action_draft(action_id, opts = {})
672
+ data, _status_code, _headers = get_integrations_action_draft_with_http_info(action_id, opts)
673
+ return data
674
+ end
675
+
676
+ # Retrieve a Draft
677
+ #
678
+ # @param action_id actionId
679
+ # @param [Hash] opts the optional parameters
680
+ # @option opts [String] :expand Indicates fields of the response which should be expanded.
681
+ # @option opts [BOOLEAN] :include_config Show config when available
682
+ # @return [Array<(Action, Fixnum, Hash)>] Action data, response status code and response headers
683
+ def get_integrations_action_draft_with_http_info(action_id, opts = {})
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft ..."
686
+ end
687
+
688
+
689
+ # verify the required parameter 'action_id' is set
690
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft" if action_id.nil?
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+ if opts[:'expand'] && !['contract'].include?(opts[:'expand'])
700
+ fail ArgumentError, 'invalid value for "expand", must be one of contract'
701
+ end
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+ # resource path
713
+ local_var_path = "/api/v2/integrations/actions/{actionId}/draft".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
714
+
715
+ # query parameters
716
+ query_params = {}
717
+ query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
718
+ query_params[:'includeConfig'] = opts[:'include_config'] if opts[:'include_config']
719
+
720
+ # header parameters
721
+ header_params = {}
722
+
723
+ # HTTP header 'Accept' (if needed)
724
+ local_header_accept = ['application/json']
725
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
726
+
727
+ # HTTP header 'Content-Type'
728
+ local_header_content_type = ['application/json']
729
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
730
+
731
+ # form parameters
732
+ form_params = {}
733
+
734
+ # http body (model)
735
+ post_body = nil
736
+
737
+ auth_names = ['PureCloud Auth']
738
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
739
+ :header_params => header_params,
740
+ :query_params => query_params,
741
+ :form_params => form_params,
742
+ :body => post_body,
743
+ :auth_names => auth_names,
744
+ :return_type => 'Action')
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
747
+ end
748
+ return data, status_code, headers
749
+ end
750
+
751
+ # Retrieve schema for a Draft based on filename.
752
+ #
753
+ # @param action_id actionId
754
+ # @param file_name Name of schema file to be retrieved for this draft.
755
+ # @param [Hash] opts the optional parameters
756
+ # @return [JsonSchemaDocument]
757
+ def get_integrations_action_draft_schema(action_id, file_name, opts = {})
758
+ data, _status_code, _headers = get_integrations_action_draft_schema_with_http_info(action_id, file_name, opts)
759
+ return data
760
+ end
761
+
762
+ # Retrieve schema for a Draft based on filename.
763
+ #
764
+ # @param action_id actionId
765
+ # @param file_name Name of schema file to be retrieved for this draft.
766
+ # @param [Hash] opts the optional parameters
767
+ # @return [Array<(JsonSchemaDocument, Fixnum, Hash)>] JsonSchemaDocument data, response status code and response headers
768
+ def get_integrations_action_draft_schema_with_http_info(action_id, file_name, opts = {})
769
+ if @api_client.config.debugging
770
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_schema ..."
771
+ end
772
+
773
+
774
+ # verify the required parameter 'action_id' is set
775
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_schema" if action_id.nil?
776
+
777
+
778
+
779
+
780
+
781
+
782
+ # verify the required parameter 'file_name' is set
783
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_draft_schema" if file_name.nil?
784
+
785
+
786
+
787
+
788
+
789
+ # resource path
790
+ local_var_path = "/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
791
+
792
+ # query parameters
793
+ query_params = {}
794
+
795
+ # header parameters
796
+ header_params = {}
797
+
798
+ # HTTP header 'Accept' (if needed)
799
+ local_header_accept = ['application/json']
800
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
801
+
802
+ # HTTP header 'Content-Type'
803
+ local_header_content_type = ['application/json']
804
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
805
+
806
+ # form parameters
807
+ form_params = {}
808
+
809
+ # http body (model)
810
+ post_body = nil
811
+
812
+ auth_names = ['PureCloud Auth']
813
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
814
+ :header_params => header_params,
815
+ :query_params => query_params,
816
+ :form_params => form_params,
817
+ :body => post_body,
818
+ :auth_names => auth_names,
819
+ :return_type => 'JsonSchemaDocument')
820
+ if @api_client.config.debugging
821
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
822
+ end
823
+ return data, status_code, headers
824
+ end
825
+
826
+ # Retrieve templates for a Draft based on filename.
827
+ #
828
+ # @param action_id actionId
829
+ # @param file_name Name of template file to be retrieved for this action draft.
830
+ # @param [Hash] opts the optional parameters
831
+ # @return [String]
832
+ def get_integrations_action_draft_template(action_id, file_name, opts = {})
833
+ data, _status_code, _headers = get_integrations_action_draft_template_with_http_info(action_id, file_name, opts)
834
+ return data
835
+ end
836
+
837
+ # Retrieve templates for a Draft based on filename.
838
+ #
839
+ # @param action_id actionId
840
+ # @param file_name Name of template file to be retrieved for this action draft.
841
+ # @param [Hash] opts the optional parameters
842
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
843
+ def get_integrations_action_draft_template_with_http_info(action_id, file_name, opts = {})
844
+ if @api_client.config.debugging
845
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_template ..."
846
+ end
847
+
848
+
849
+ # verify the required parameter 'action_id' is set
850
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_template" if action_id.nil?
851
+
852
+
853
+
854
+
855
+
856
+
857
+ # verify the required parameter 'file_name' is set
858
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_draft_template" if file_name.nil?
859
+
860
+
861
+
862
+
863
+
864
+ # resource path
865
+ local_var_path = "/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
866
+
867
+ # query parameters
868
+ query_params = {}
869
+
870
+ # header parameters
871
+ header_params = {}
872
+
873
+ # HTTP header 'Accept' (if needed)
874
+ local_header_accept = ['text/plain']
875
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
876
+
877
+ # HTTP header 'Content-Type'
878
+ local_header_content_type = ['application/json']
879
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
880
+
881
+ # form parameters
882
+ form_params = {}
883
+
884
+ # http body (model)
885
+ post_body = nil
886
+
887
+ auth_names = ['PureCloud Auth']
888
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
889
+ :header_params => header_params,
890
+ :query_params => query_params,
891
+ :form_params => form_params,
892
+ :body => post_body,
893
+ :auth_names => auth_names,
894
+ :return_type => 'String')
895
+ if @api_client.config.debugging
896
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
897
+ end
898
+ return data, status_code, headers
899
+ end
900
+
901
+ # Validate current Draft configuration.
902
+ #
903
+ # @param action_id actionId
904
+ # @param [Hash] opts the optional parameters
905
+ # @return [DraftValidationResult]
906
+ def get_integrations_action_draft_validation(action_id, opts = {})
907
+ data, _status_code, _headers = get_integrations_action_draft_validation_with_http_info(action_id, opts)
908
+ return data
909
+ end
910
+
911
+ # Validate current Draft configuration.
912
+ #
913
+ # @param action_id actionId
914
+ # @param [Hash] opts the optional parameters
915
+ # @return [Array<(DraftValidationResult, Fixnum, Hash)>] DraftValidationResult data, response status code and response headers
916
+ def get_integrations_action_draft_validation_with_http_info(action_id, opts = {})
917
+ if @api_client.config.debugging
918
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_validation ..."
919
+ end
920
+
921
+
922
+ # verify the required parameter 'action_id' is set
923
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_validation" if action_id.nil?
924
+
925
+
926
+
927
+
928
+
929
+ # resource path
930
+ local_var_path = "/api/v2/integrations/actions/{actionId}/draft/validation".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
931
+
932
+ # query parameters
933
+ query_params = {}
934
+
935
+ # header parameters
936
+ header_params = {}
937
+
938
+ # HTTP header 'Accept' (if needed)
939
+ local_header_accept = ['application/json']
940
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
941
+
942
+ # HTTP header 'Content-Type'
943
+ local_header_content_type = ['application/json']
944
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
945
+
946
+ # form parameters
947
+ form_params = {}
948
+
949
+ # http body (model)
950
+ post_body = nil
951
+
952
+ auth_names = ['PureCloud Auth']
953
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
954
+ :header_params => header_params,
955
+ :query_params => query_params,
956
+ :form_params => form_params,
957
+ :body => post_body,
958
+ :auth_names => auth_names,
959
+ :return_type => 'DraftValidationResult')
960
+ if @api_client.config.debugging
961
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
962
+ end
963
+ return data, status_code, headers
964
+ end
965
+
966
+ # Retrieve schema for an action based on filename.
967
+ #
968
+ # @param action_id actionId
969
+ # @param file_name Name of schema file to be retrieved for this action.
970
+ # @param [Hash] opts the optional parameters
971
+ # @return [JsonSchemaDocument]
972
+ def get_integrations_action_schema(action_id, file_name, opts = {})
973
+ data, _status_code, _headers = get_integrations_action_schema_with_http_info(action_id, file_name, opts)
974
+ return data
975
+ end
976
+
977
+ # Retrieve schema for an action based on filename.
978
+ #
979
+ # @param action_id actionId
980
+ # @param file_name Name of schema file to be retrieved for this action.
981
+ # @param [Hash] opts the optional parameters
982
+ # @return [Array<(JsonSchemaDocument, Fixnum, Hash)>] JsonSchemaDocument data, response status code and response headers
983
+ def get_integrations_action_schema_with_http_info(action_id, file_name, opts = {})
984
+ if @api_client.config.debugging
985
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_schema ..."
986
+ end
987
+
988
+
989
+ # verify the required parameter 'action_id' is set
990
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_schema" if action_id.nil?
991
+
992
+
993
+
994
+
995
+
996
+
997
+ # verify the required parameter 'file_name' is set
998
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_schema" if file_name.nil?
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ # resource path
1005
+ local_var_path = "/api/v2/integrations/actions/{actionId}/schemas/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
1006
+
1007
+ # query parameters
1008
+ query_params = {}
1009
+
1010
+ # header parameters
1011
+ header_params = {}
1012
+
1013
+ # HTTP header 'Accept' (if needed)
1014
+ local_header_accept = ['application/json']
1015
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1016
+
1017
+ # HTTP header 'Content-Type'
1018
+ local_header_content_type = ['application/json']
1019
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1020
+
1021
+ # form parameters
1022
+ form_params = {}
1023
+
1024
+ # http body (model)
1025
+ post_body = nil
1026
+
1027
+ auth_names = ['PureCloud Auth']
1028
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1029
+ :header_params => header_params,
1030
+ :query_params => query_params,
1031
+ :form_params => form_params,
1032
+ :body => post_body,
1033
+ :auth_names => auth_names,
1034
+ :return_type => 'JsonSchemaDocument')
1035
+ if @api_client.config.debugging
1036
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
+ end
1038
+ return data, status_code, headers
1039
+ end
1040
+
1041
+ # Retrieve text of templates for an action based on filename.
1042
+ #
1043
+ # @param action_id actionId
1044
+ # @param file_name Name of template file to be retrieved for this action.
1045
+ # @param [Hash] opts the optional parameters
1046
+ # @return [String]
1047
+ def get_integrations_action_template(action_id, file_name, opts = {})
1048
+ data, _status_code, _headers = get_integrations_action_template_with_http_info(action_id, file_name, opts)
1049
+ return data
1050
+ end
1051
+
1052
+ # Retrieve text of templates for an action based on filename.
1053
+ #
1054
+ # @param action_id actionId
1055
+ # @param file_name Name of template file to be retrieved for this action.
1056
+ # @param [Hash] opts the optional parameters
1057
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1058
+ def get_integrations_action_template_with_http_info(action_id, file_name, opts = {})
1059
+ if @api_client.config.debugging
1060
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_template ..."
1061
+ end
1062
+
1063
+
1064
+ # verify the required parameter 'action_id' is set
1065
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_template" if action_id.nil?
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+ # verify the required parameter 'file_name' is set
1073
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_template" if file_name.nil?
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+ # resource path
1080
+ local_var_path = "/api/v2/integrations/actions/{actionId}/templates/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
1081
+
1082
+ # query parameters
1083
+ query_params = {}
1084
+
1085
+ # header parameters
1086
+ header_params = {}
1087
+
1088
+ # HTTP header 'Accept' (if needed)
1089
+ local_header_accept = ['text/plain']
1090
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1091
+
1092
+ # HTTP header 'Content-Type'
1093
+ local_header_content_type = ['application/json']
1094
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1095
+
1096
+ # form parameters
1097
+ form_params = {}
1098
+
1099
+ # http body (model)
1100
+ post_body = nil
1101
+
1102
+ auth_names = ['PureCloud Auth']
1103
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1104
+ :header_params => header_params,
1105
+ :query_params => query_params,
1106
+ :form_params => form_params,
1107
+ :body => post_body,
1108
+ :auth_names => auth_names,
1109
+ :return_type => 'String')
1110
+ if @api_client.config.debugging
1111
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1112
+ end
1113
+ return data, status_code, headers
1114
+ end
1115
+
1116
+ # Retrieves all actions associated with filters passed in via query param.
1117
+ #
1118
+ # @param [Hash] opts the optional parameters
1119
+ # @option opts [String] :category Filter by category name
1120
+ # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1121
+ # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
1122
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
1123
+ # @option opts [Integer] :page_number The page number requested (default to 1)
1124
+ # @option opts [String] :sort_by variable name requested to sort by
1125
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1126
+ # @option opts [String] :next_page next page token
1127
+ # @option opts [String] :previous_page Previous page token
1128
+ # @return [ActionEntityListing]
1129
+ def get_integrations_actions(opts = {})
1130
+ data, _status_code, _headers = get_integrations_actions_with_http_info(opts)
1131
+ return data
1132
+ end
1133
+
1134
+ # Retrieves all actions associated with filters passed in via query param.
1135
+ #
1136
+ # @param [Hash] opts the optional parameters
1137
+ # @option opts [String] :category Filter by category name
1138
+ # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1139
+ # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
1140
+ # @option opts [Integer] :page_size The total page size requested
1141
+ # @option opts [Integer] :page_number The page number requested
1142
+ # @option opts [String] :sort_by variable name requested to sort by
1143
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1144
+ # @option opts [String] :next_page next page token
1145
+ # @option opts [String] :previous_page Previous page token
1146
+ # @return [Array<(ActionEntityListing, Fixnum, Hash)>] ActionEntityListing data, response status code and response headers
1147
+ def get_integrations_actions_with_http_info(opts = {})
1148
+ if @api_client.config.debugging
1149
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions ..."
1150
+ end
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
1162
+ fail ArgumentError, 'invalid value for "secure", must be one of true, false'
1163
+ end
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+ if opts[:'include_auth_actions'] && !['true', 'false'].include?(opts[:'include_auth_actions'])
1172
+ fail ArgumentError, 'invalid value for "include_auth_actions", must be one of true, false'
1173
+ end
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+ # resource path
1215
+ local_var_path = "/api/v2/integrations/actions".sub('{format}','json')
1216
+
1217
+ # query parameters
1218
+ query_params = {}
1219
+ query_params[:'category'] = opts[:'category'] if opts[:'category']
1220
+ query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
1221
+ query_params[:'includeAuthActions'] = opts[:'include_auth_actions'] if opts[:'include_auth_actions']
1222
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1223
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1224
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1225
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1226
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
1227
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
1228
+
1229
+ # header parameters
1230
+ header_params = {}
1231
+
1232
+ # HTTP header 'Accept' (if needed)
1233
+ local_header_accept = ['application/json']
1234
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1235
+
1236
+ # HTTP header 'Content-Type'
1237
+ local_header_content_type = ['application/json']
1238
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1239
+
1240
+ # form parameters
1241
+ form_params = {}
1242
+
1243
+ # http body (model)
1244
+ post_body = nil
1245
+
1246
+ auth_names = ['PureCloud Auth']
1247
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1248
+ :header_params => header_params,
1249
+ :query_params => query_params,
1250
+ :form_params => form_params,
1251
+ :body => post_body,
1252
+ :auth_names => auth_names,
1253
+ :return_type => 'ActionEntityListing')
1254
+ if @api_client.config.debugging
1255
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1256
+ end
1257
+ return data, status_code, headers
1258
+ end
1259
+
1260
+ # Retrieves all categories of available Actions
1261
+ #
1262
+ # @param [Hash] opts the optional parameters
1263
+ # @option opts [String] :secure Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions.
1264
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
1265
+ # @option opts [Integer] :page_number The page number requested (default to 1)
1266
+ # @option opts [String] :sort_by variable name requested to sort by
1267
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1268
+ # @option opts [String] :next_page next page token
1269
+ # @option opts [String] :previous_page Previous page token
1270
+ # @return [CategoryEntityListing]
1271
+ def get_integrations_actions_categories(opts = {})
1272
+ data, _status_code, _headers = get_integrations_actions_categories_with_http_info(opts)
1273
+ return data
1274
+ end
1275
+
1276
+ # Retrieves all categories of available Actions
1277
+ #
1278
+ # @param [Hash] opts the optional parameters
1279
+ # @option opts [String] :secure Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions.
1280
+ # @option opts [Integer] :page_size The total page size requested
1281
+ # @option opts [Integer] :page_number The page number requested
1282
+ # @option opts [String] :sort_by variable name requested to sort by
1283
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1284
+ # @option opts [String] :next_page next page token
1285
+ # @option opts [String] :previous_page Previous page token
1286
+ # @return [Array<(CategoryEntityListing, Fixnum, Hash)>] CategoryEntityListing data, response status code and response headers
1287
+ def get_integrations_actions_categories_with_http_info(opts = {})
1288
+ if @api_client.config.debugging
1289
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions_categories ..."
1290
+ end
1291
+
1292
+
1293
+
1294
+
1295
+ if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
1296
+ fail ArgumentError, 'invalid value for "secure", must be one of true, false'
1297
+ end
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+ # resource path
1339
+ local_var_path = "/api/v2/integrations/actions/categories".sub('{format}','json')
1340
+
1341
+ # query parameters
1342
+ query_params = {}
1343
+ query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
1344
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1345
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1346
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1347
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1348
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
1349
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
1350
+
1351
+ # header parameters
1352
+ header_params = {}
1353
+
1354
+ # HTTP header 'Accept' (if needed)
1355
+ local_header_accept = ['application/json']
1356
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1357
+
1358
+ # HTTP header 'Content-Type'
1359
+ local_header_content_type = ['application/json']
1360
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1361
+
1362
+ # form parameters
1363
+ form_params = {}
1364
+
1365
+ # http body (model)
1366
+ post_body = nil
1367
+
1368
+ auth_names = ['PureCloud Auth']
1369
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1370
+ :header_params => header_params,
1371
+ :query_params => query_params,
1372
+ :form_params => form_params,
1373
+ :body => post_body,
1374
+ :auth_names => auth_names,
1375
+ :return_type => 'CategoryEntityListing')
1376
+ if @api_client.config.debugging
1377
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1378
+ end
1379
+ return data, status_code, headers
1380
+ end
1381
+
1382
+ # Retrieves all action drafts associated with the filters passed in via query param.
1383
+ #
1384
+ # @param [Hash] opts the optional parameters
1385
+ # @option opts [String] :category Filter by category name
1386
+ # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1387
+ # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
1388
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
1389
+ # @option opts [Integer] :page_number The page number requested (default to 1)
1390
+ # @option opts [String] :sort_by variable name requested to sort by
1391
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1392
+ # @option opts [String] :next_page next page token
1393
+ # @option opts [String] :previous_page Previous page token
1394
+ # @return [ActionEntityListing]
1395
+ def get_integrations_actions_drafts(opts = {})
1396
+ data, _status_code, _headers = get_integrations_actions_drafts_with_http_info(opts)
1397
+ return data
1398
+ end
1399
+
1400
+ # Retrieves all action drafts associated with the filters passed in via query param.
1401
+ #
1402
+ # @param [Hash] opts the optional parameters
1403
+ # @option opts [String] :category Filter by category name
1404
+ # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1405
+ # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
1406
+ # @option opts [Integer] :page_size The total page size requested
1407
+ # @option opts [Integer] :page_number The page number requested
1408
+ # @option opts [String] :sort_by variable name requested to sort by
1409
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1410
+ # @option opts [String] :next_page next page token
1411
+ # @option opts [String] :previous_page Previous page token
1412
+ # @return [Array<(ActionEntityListing, Fixnum, Hash)>] ActionEntityListing data, response status code and response headers
1413
+ def get_integrations_actions_drafts_with_http_info(opts = {})
1414
+ if @api_client.config.debugging
1415
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions_drafts ..."
1416
+ end
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+ if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
1428
+ fail ArgumentError, 'invalid value for "secure", must be one of true, false'
1429
+ end
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+ if opts[:'include_auth_actions'] && !['true', 'false'].include?(opts[:'include_auth_actions'])
1438
+ fail ArgumentError, 'invalid value for "include_auth_actions", must be one of true, false'
1439
+ end
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+ # resource path
1481
+ local_var_path = "/api/v2/integrations/actions/drafts".sub('{format}','json')
1482
+
1483
+ # query parameters
1484
+ query_params = {}
1485
+ query_params[:'category'] = opts[:'category'] if opts[:'category']
1486
+ query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
1487
+ query_params[:'includeAuthActions'] = opts[:'include_auth_actions'] if opts[:'include_auth_actions']
1488
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1489
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1490
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1491
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1492
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
1493
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
1494
+
1495
+ # header parameters
1496
+ header_params = {}
1497
+
1498
+ # HTTP header 'Accept' (if needed)
1499
+ local_header_accept = ['application/json']
1500
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1501
+
1502
+ # HTTP header 'Content-Type'
1503
+ local_header_content_type = ['application/json']
1504
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1505
+
1506
+ # form parameters
1507
+ form_params = {}
1508
+
1509
+ # http body (model)
1510
+ post_body = nil
1511
+
1512
+ auth_names = ['PureCloud Auth']
1513
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1514
+ :header_params => header_params,
1515
+ :query_params => query_params,
1516
+ :form_params => form_params,
1517
+ :body => post_body,
1518
+ :auth_names => auth_names,
1519
+ :return_type => 'ActionEntityListing')
1520
+ if @api_client.config.debugging
1521
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions_drafts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1522
+ end
1523
+ return data, status_code, headers
1524
+ end
1525
+
1526
+ # List permitted client app integrations for the logged in user
1527
+ #
1528
+ # @param [Hash] opts the optional parameters
1529
+ # @option opts [Integer] :page_size The total page size requested (default to 25)
1530
+ # @option opts [Integer] :page_number The page number requested (default to 1)
1531
+ # @option opts [String] :sort_by variable name requested to sort by
1532
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1533
+ # @option opts [String] :next_page next page token
1534
+ # @option opts [String] :previous_page Previous page token
1535
+ # @return [ClientAppEntityListing]
1536
+ def get_integrations_clientapps(opts = {})
1537
+ data, _status_code, _headers = get_integrations_clientapps_with_http_info(opts)
1538
+ return data
1539
+ end
1540
+
1541
+ # List permitted client app integrations for the logged in user
1542
+ #
1543
+ # @param [Hash] opts the optional parameters
1544
+ # @option opts [Integer] :page_size The total page size requested
1545
+ # @option opts [Integer] :page_number The page number requested
1546
+ # @option opts [String] :sort_by variable name requested to sort by
1547
+ # @option opts [Array<Object>] :expand variable name requested by expand list
1548
+ # @option opts [String] :next_page next page token
1549
+ # @option opts [String] :previous_page Previous page token
1550
+ # @return [Array<(ClientAppEntityListing, Fixnum, Hash)>] ClientAppEntityListing data, response status code and response headers
1551
+ def get_integrations_clientapps_with_http_info(opts = {})
1552
+ if @api_client.config.debugging
1553
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_clientapps ..."
1554
+ end
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+ # resource path
1593
+ local_var_path = "/api/v2/integrations/clientapps".sub('{format}','json')
1594
+
1595
+ # query parameters
1596
+ query_params = {}
1597
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1598
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1599
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1600
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1601
+ query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
1602
+ query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
1603
+
1604
+ # header parameters
1605
+ header_params = {}
1606
+
1607
+ # HTTP header 'Accept' (if needed)
1608
+ local_header_accept = ['application/json']
1609
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1610
+
1611
+ # HTTP header 'Content-Type'
1612
+ local_header_content_type = ['application/json']
1613
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1614
+
1615
+ # form parameters
1616
+ form_params = {}
1617
+
1618
+ # http body (model)
1619
+ post_body = nil
1620
+
1621
+ auth_names = ['PureCloud Auth']
1622
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1623
+ :header_params => header_params,
1624
+ :query_params => query_params,
1625
+ :form_params => form_params,
1626
+ :body => post_body,
1627
+ :auth_names => auth_names,
1628
+ :return_type => 'ClientAppEntityListing')
1629
+ if @api_client.config.debugging
1630
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_clientapps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1631
+ end
1632
+ return data, status_code, headers
1633
+ end
1634
+
1635
+ # Get a single credential with sensitive fields redacted
1636
+ #
1637
+ # @param credential_id Credential ID
1638
+ # @param [Hash] opts the optional parameters
1639
+ # @return [Credential]
1640
+ def get_integrations_credential(credential_id, opts = {})
1641
+ data, _status_code, _headers = get_integrations_credential_with_http_info(credential_id, opts)
1642
+ return data
1643
+ end
1644
+
1645
+ # Get a single credential with sensitive fields redacted
1646
+ #
1647
+ # @param credential_id Credential ID
1648
+ # @param [Hash] opts the optional parameters
1649
+ # @return [Array<(Credential, Fixnum, Hash)>] Credential data, response status code and response headers
1650
+ def get_integrations_credential_with_http_info(credential_id, opts = {})
1651
+ if @api_client.config.debugging
1652
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_credential ..."
1653
+ end
1654
+
1655
+
1656
+ # verify the required parameter 'credential_id' is set
1657
+ fail ArgumentError, "Missing the required parameter 'credential_id' when calling IntegrationsApi.get_integrations_credential" if credential_id.nil?
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+ # resource path
1664
+ local_var_path = "/api/v2/integrations/credentials/{credentialId}".sub('{format}','json').sub('{' + 'credentialId' + '}', credential_id.to_s)
1665
+
1666
+ # query parameters
1667
+ query_params = {}
1668
+
1669
+ # header parameters
1670
+ header_params = {}
1671
+
1672
+ # HTTP header 'Accept' (if needed)
1673
+ local_header_accept = ['application/json']
1674
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1675
+
1676
+ # HTTP header 'Content-Type'
1677
+ local_header_content_type = ['application/json']
1678
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1679
+
1680
+ # form parameters
1681
+ form_params = {}
1682
+
1683
+ # http body (model)
1684
+ post_body = nil
1685
+
1686
+ auth_names = ['PureCloud Auth']
1687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1688
+ :header_params => header_params,
1689
+ :query_params => query_params,
1690
+ :form_params => form_params,
1691
+ :body => post_body,
1692
+ :auth_names => auth_names,
1693
+ :return_type => 'Credential')
1694
+ if @api_client.config.debugging
1695
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1696
+ end
1697
+ return data, status_code, headers
1698
+ end
1699
+
1700
+ # List multiple sets of credentials
1701
+ #
1702
+ # @param [Hash] opts the optional parameters
1703
+ # @option opts [Integer] :page_number Page number (default to 1)
1704
+ # @option opts [Integer] :page_size Page size (default to 25)
1705
+ # @return [CredentialInfoListing]
1706
+ def get_integrations_credentials(opts = {})
1707
+ data, _status_code, _headers = get_integrations_credentials_with_http_info(opts)
1708
+ return data
1709
+ end
1710
+
1711
+ # List multiple sets of credentials
1712
+ #
1713
+ # @param [Hash] opts the optional parameters
1714
+ # @option opts [Integer] :page_number Page number
1715
+ # @option opts [Integer] :page_size Page size
1716
+ # @return [Array<(CredentialInfoListing, Fixnum, Hash)>] CredentialInfoListing data, response status code and response headers
1717
+ def get_integrations_credentials_with_http_info(opts = {})
1718
+ if @api_client.config.debugging
1719
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_credentials ..."
1720
+ end
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
1733
+
1734
+ # resource path
1735
+ local_var_path = "/api/v2/integrations/credentials".sub('{format}','json')
1736
+
1737
+ # query parameters
1738
+ query_params = {}
1739
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1740
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1741
+
1742
+ # header parameters
1743
+ header_params = {}
1744
+
1745
+ # HTTP header 'Accept' (if needed)
1746
+ local_header_accept = ['application/json']
1747
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1748
+
1749
+ # HTTP header 'Content-Type'
1750
+ local_header_content_type = ['application/json']
1751
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1752
+
1753
+ # form parameters
1754
+ form_params = {}
1755
+
1756
+ # http body (model)
1757
+ post_body = nil
1758
+
1759
+ auth_names = ['PureCloud Auth']
1760
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1761
+ :header_params => header_params,
1762
+ :query_params => query_params,
1763
+ :form_params => form_params,
1764
+ :body => post_body,
1765
+ :auth_names => auth_names,
1766
+ :return_type => 'CredentialInfoListing')
1767
+ if @api_client.config.debugging
1768
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1769
+ end
1770
+ return data, status_code, headers
1771
+ end
1772
+
1773
+ # List all credential types
1774
+ #
1775
+ # @param [Hash] opts the optional parameters
1776
+ # @return [CredentialTypeListing]
1777
+ def get_integrations_credentials_types(opts = {})
1778
+ data, _status_code, _headers = get_integrations_credentials_types_with_http_info(opts)
1779
+ return data
1780
+ end
1781
+
1782
+ # List all credential types
1783
+ #
1784
+ # @param [Hash] opts the optional parameters
1785
+ # @return [Array<(CredentialTypeListing, Fixnum, Hash)>] CredentialTypeListing data, response status code and response headers
1786
+ def get_integrations_credentials_types_with_http_info(opts = {})
1787
+ if @api_client.config.debugging
1788
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_credentials_types ..."
1789
+ end
1790
+
442
1791
  # resource path
443
- local_var_path = "/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
1792
+ local_var_path = "/api/v2/integrations/credentials/types".sub('{format}','json')
444
1793
 
445
1794
  # query parameters
446
1795
  query_params = {}
@@ -449,7 +1798,7 @@ module PureCloud
449
1798
  header_params = {}
450
1799
 
451
1800
  # HTTP header 'Accept' (if needed)
452
- local_header_accept = ['text/plain']
1801
+ local_header_accept = ['application/json']
453
1802
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
454
1803
 
455
1804
  # HTTP header 'Content-Type'
@@ -469,46 +1818,81 @@ module PureCloud
469
1818
  :form_params => form_params,
470
1819
  :body => post_body,
471
1820
  :auth_names => auth_names,
472
- :return_type => 'String')
1821
+ :return_type => 'CredentialTypeListing')
473
1822
  if @api_client.config.debugging
474
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1823
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_credentials_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
475
1824
  end
476
1825
  return data, status_code, headers
477
1826
  end
478
1827
 
479
- # Validate current Draft configuration.
1828
+ # List all events
480
1829
  #
481
- # @param action_id actionId
482
1830
  # @param [Hash] opts the optional parameters
483
- # @return [DraftValidationResult]
484
- def get_integrations_action_draft_validation(action_id, opts = {})
485
- data, _status_code, _headers = get_integrations_action_draft_validation_with_http_info(action_id, opts)
1831
+ # @option opts [Integer] :page_size Page size (default to 25)
1832
+ # @option opts [Integer] :page_number Page number (default to 1)
1833
+ # @option opts [String] :sort_by Sort by (default to timestamp)
1834
+ # @option opts [String] :sort_order Order by (default to descending)
1835
+ # @option opts [String] :entity_id Include only events with this entity ID
1836
+ # @return [IntegrationEventEntityListing]
1837
+ def get_integrations_eventlog(opts = {})
1838
+ data, _status_code, _headers = get_integrations_eventlog_with_http_info(opts)
486
1839
  return data
487
1840
  end
488
1841
 
489
- # Validate current Draft configuration.
1842
+ # List all events
490
1843
  #
491
- # @param action_id actionId
492
1844
  # @param [Hash] opts the optional parameters
493
- # @return [Array<(DraftValidationResult, Fixnum, Hash)>] DraftValidationResult data, response status code and response headers
494
- def get_integrations_action_draft_validation_with_http_info(action_id, opts = {})
1845
+ # @option opts [Integer] :page_size Page size
1846
+ # @option opts [Integer] :page_number Page number
1847
+ # @option opts [String] :sort_by Sort by
1848
+ # @option opts [String] :sort_order Order by
1849
+ # @option opts [String] :entity_id Include only events with this entity ID
1850
+ # @return [Array<(IntegrationEventEntityListing, Fixnum, Hash)>] IntegrationEventEntityListing data, response status code and response headers
1851
+ def get_integrations_eventlog_with_http_info(opts = {})
495
1852
  if @api_client.config.debugging
496
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_draft_validation ..."
1853
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_eventlog ..."
497
1854
  end
498
1855
 
499
1856
 
500
- # verify the required parameter 'action_id' is set
501
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_draft_validation" if action_id.nil?
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
502
1881
 
503
1882
 
504
1883
 
505
1884
 
506
1885
 
507
1886
  # resource path
508
- local_var_path = "/api/v2/integrations/actions/{actionId}/draft/validation".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s)
1887
+ local_var_path = "/api/v2/integrations/eventlog".sub('{format}','json')
509
1888
 
510
1889
  # query parameters
511
1890
  query_params = {}
1891
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1892
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1893
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1894
+ query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1895
+ query_params[:'entityId'] = opts[:'entity_id'] if opts[:'entity_id']
512
1896
 
513
1897
  # header parameters
514
1898
  header_params = {}
@@ -534,53 +1918,43 @@ module PureCloud
534
1918
  :form_params => form_params,
535
1919
  :body => post_body,
536
1920
  :auth_names => auth_names,
537
- :return_type => 'DraftValidationResult')
1921
+ :return_type => 'IntegrationEventEntityListing')
538
1922
  if @api_client.config.debugging
539
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_draft_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1923
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_eventlog\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
1924
  end
541
1925
  return data, status_code, headers
542
1926
  end
543
1927
 
544
- # Retrieve schema for an action based on filename.
1928
+ # Get a single event
545
1929
  #
546
- # @param action_id actionId
547
- # @param file_name Name of schema file to be retrieved for this action.
1930
+ # @param event_id Event Id
548
1931
  # @param [Hash] opts the optional parameters
549
- # @return [JsonSchemaDocument]
550
- def get_integrations_action_schema(action_id, file_name, opts = {})
551
- data, _status_code, _headers = get_integrations_action_schema_with_http_info(action_id, file_name, opts)
1932
+ # @return [IntegrationEvent]
1933
+ def get_integrations_eventlog_event_id(event_id, opts = {})
1934
+ data, _status_code, _headers = get_integrations_eventlog_event_id_with_http_info(event_id, opts)
552
1935
  return data
553
1936
  end
554
1937
 
555
- # Retrieve schema for an action based on filename.
1938
+ # Get a single event
556
1939
  #
557
- # @param action_id actionId
558
- # @param file_name Name of schema file to be retrieved for this action.
1940
+ # @param event_id Event Id
559
1941
  # @param [Hash] opts the optional parameters
560
- # @return [Array<(JsonSchemaDocument, Fixnum, Hash)>] JsonSchemaDocument data, response status code and response headers
561
- def get_integrations_action_schema_with_http_info(action_id, file_name, opts = {})
1942
+ # @return [Array<(IntegrationEvent, Fixnum, Hash)>] IntegrationEvent data, response status code and response headers
1943
+ def get_integrations_eventlog_event_id_with_http_info(event_id, opts = {})
562
1944
  if @api_client.config.debugging
563
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_schema ..."
1945
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_eventlog_event_id ..."
564
1946
  end
565
1947
 
566
1948
 
567
- # verify the required parameter 'action_id' is set
568
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_schema" if action_id.nil?
569
-
570
-
571
-
572
-
573
-
574
-
575
- # verify the required parameter 'file_name' is set
576
- fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_schema" if file_name.nil?
1949
+ # verify the required parameter 'event_id' is set
1950
+ fail ArgumentError, "Missing the required parameter 'event_id' when calling IntegrationsApi.get_integrations_eventlog_event_id" if event_id.nil?
577
1951
 
578
1952
 
579
1953
 
580
1954
 
581
1955
 
582
1956
  # resource path
583
- local_var_path = "/api/v2/integrations/actions/{actionId}/schemas/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
1957
+ local_var_path = "/api/v2/integrations/eventlog/{eventId}".sub('{format}','json').sub('{' + 'eventId' + '}', event_id.to_s)
584
1958
 
585
1959
  # query parameters
586
1960
  query_params = {}
@@ -609,53 +1983,43 @@ module PureCloud
609
1983
  :form_params => form_params,
610
1984
  :body => post_body,
611
1985
  :auth_names => auth_names,
612
- :return_type => 'JsonSchemaDocument')
1986
+ :return_type => 'IntegrationEvent')
613
1987
  if @api_client.config.debugging
614
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1988
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_eventlog_event_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
1989
  end
616
1990
  return data, status_code, headers
617
1991
  end
618
1992
 
619
- # Retrieve text of templates for an action based on filename.
1993
+ # Get integration type.
620
1994
  #
621
- # @param action_id actionId
622
- # @param file_name Name of template file to be retrieved for this action.
1995
+ # @param type_id Integration Type Id
623
1996
  # @param [Hash] opts the optional parameters
624
- # @return [String]
625
- def get_integrations_action_template(action_id, file_name, opts = {})
626
- data, _status_code, _headers = get_integrations_action_template_with_http_info(action_id, file_name, opts)
1997
+ # @return [IntegrationType]
1998
+ def get_integrations_type(type_id, opts = {})
1999
+ data, _status_code, _headers = get_integrations_type_with_http_info(type_id, opts)
627
2000
  return data
628
2001
  end
629
2002
 
630
- # Retrieve text of templates for an action based on filename.
2003
+ # Get integration type.
631
2004
  #
632
- # @param action_id actionId
633
- # @param file_name Name of template file to be retrieved for this action.
2005
+ # @param type_id Integration Type Id
634
2006
  # @param [Hash] opts the optional parameters
635
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
636
- def get_integrations_action_template_with_http_info(action_id, file_name, opts = {})
2007
+ # @return [Array<(IntegrationType, Fixnum, Hash)>] IntegrationType data, response status code and response headers
2008
+ def get_integrations_type_with_http_info(type_id, opts = {})
637
2009
  if @api_client.config.debugging
638
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_action_template ..."
2010
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_type ..."
639
2011
  end
640
2012
 
641
2013
 
642
- # verify the required parameter 'action_id' is set
643
- fail ArgumentError, "Missing the required parameter 'action_id' when calling IntegrationsApi.get_integrations_action_template" if action_id.nil?
644
-
645
-
646
-
647
-
648
-
649
-
650
- # verify the required parameter 'file_name' is set
651
- fail ArgumentError, "Missing the required parameter 'file_name' when calling IntegrationsApi.get_integrations_action_template" if file_name.nil?
2014
+ # verify the required parameter 'type_id' is set
2015
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling IntegrationsApi.get_integrations_type" if type_id.nil?
652
2016
 
653
2017
 
654
2018
 
655
2019
 
656
2020
 
657
2021
  # resource path
658
- local_var_path = "/api/v2/integrations/actions/{actionId}/templates/{fileName}".sub('{format}','json').sub('{' + 'actionId' + '}', action_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
2022
+ local_var_path = "/api/v2/integrations/types/{typeId}".sub('{format}','json').sub('{' + 'typeId' + '}', type_id.to_s)
659
2023
 
660
2024
  # query parameters
661
2025
  query_params = {}
@@ -664,7 +2028,7 @@ module PureCloud
664
2028
  header_params = {}
665
2029
 
666
2030
  # HTTP header 'Accept' (if needed)
667
- local_header_accept = ['text/plain']
2031
+ local_header_accept = ['application/json']
668
2032
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
669
2033
 
670
2034
  # HTTP header 'Content-Type'
@@ -684,125 +2048,61 @@ module PureCloud
684
2048
  :form_params => form_params,
685
2049
  :body => post_body,
686
2050
  :auth_names => auth_names,
687
- :return_type => 'String')
2051
+ :return_type => 'IntegrationType')
688
2052
  if @api_client.config.debugging
689
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_action_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2053
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
2054
  end
691
2055
  return data, status_code, headers
692
2056
  end
693
2057
 
694
- # Retrieves all actions associated with filters passed in via query param.
2058
+ # Get properties config schema for an integration type.
695
2059
  #
2060
+ # @param type_id Integration Type Id
2061
+ # @param config_type Config schema type
696
2062
  # @param [Hash] opts the optional parameters
697
- # @option opts [String] :category Filter by category name
698
- # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
699
- # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
700
- # @option opts [Integer] :page_size The total page size requested (default to 25)
701
- # @option opts [Integer] :page_number The page number requested (default to 1)
702
- # @option opts [String] :sort_by variable name requested to sort by
703
- # @option opts [Array<Object>] :expand variable name requested by expand list
704
- # @option opts [String] :next_page next page token
705
- # @option opts [String] :previous_page Previous page token
706
- # @return [ActionEntityListing]
707
- def get_integrations_actions(opts = {})
708
- data, _status_code, _headers = get_integrations_actions_with_http_info(opts)
2063
+ # @return [JsonSchemaDocument]
2064
+ def get_integrations_type_configschema(type_id, config_type, opts = {})
2065
+ data, _status_code, _headers = get_integrations_type_configschema_with_http_info(type_id, config_type, opts)
709
2066
  return data
710
2067
  end
711
2068
 
712
- # Retrieves all actions associated with filters passed in via query param.
2069
+ # Get properties config schema for an integration type.
713
2070
  #
2071
+ # @param type_id Integration Type Id
2072
+ # @param config_type Config schema type
714
2073
  # @param [Hash] opts the optional parameters
715
- # @option opts [String] :category Filter by category name
716
- # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
717
- # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
718
- # @option opts [Integer] :page_size The total page size requested
719
- # @option opts [Integer] :page_number The page number requested
720
- # @option opts [String] :sort_by variable name requested to sort by
721
- # @option opts [Array<Object>] :expand variable name requested by expand list
722
- # @option opts [String] :next_page next page token
723
- # @option opts [String] :previous_page Previous page token
724
- # @return [Array<(ActionEntityListing, Fixnum, Hash)>] ActionEntityListing data, response status code and response headers
725
- def get_integrations_actions_with_http_info(opts = {})
2074
+ # @return [Array<(JsonSchemaDocument, Fixnum, Hash)>] JsonSchemaDocument data, response status code and response headers
2075
+ def get_integrations_type_configschema_with_http_info(type_id, config_type, opts = {})
726
2076
  if @api_client.config.debugging
727
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions ..."
2077
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_type_configschema ..."
728
2078
  end
729
2079
 
730
2080
 
2081
+ # verify the required parameter 'type_id' is set
2082
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling IntegrationsApi.get_integrations_type_configschema" if type_id.nil?
731
2083
 
732
2084
 
733
2085
 
734
2086
 
735
2087
 
736
2088
 
2089
+ # verify the required parameter 'config_type' is set
2090
+ fail ArgumentError, "Missing the required parameter 'config_type' when calling IntegrationsApi.get_integrations_type_configschema" if config_type.nil?
737
2091
 
738
-
739
- if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
740
- fail ArgumentError, 'invalid value for "secure", must be one of true, false'
741
- end
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
- if opts[:'include_auth_actions'] && !['true', 'false'].include?(opts[:'include_auth_actions'])
750
- fail ArgumentError, 'invalid value for "include_auth_actions", must be one of true, false'
2092
+ # verify enum value
2093
+ unless ['properties', 'advanced'].include?(config_type)
2094
+ fail ArgumentError, "invalid value for 'config_type', must be one of properties, advanced"
751
2095
  end
752
2096
 
753
2097
 
754
2098
 
755
2099
 
756
2100
 
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
2101
  # resource path
793
- local_var_path = "/api/v2/integrations/actions".sub('{format}','json')
2102
+ local_var_path = "/api/v2/integrations/types/{typeId}/configschemas/{configType}".sub('{format}','json').sub('{' + 'typeId' + '}', type_id.to_s).sub('{' + 'configType' + '}', config_type.to_s)
794
2103
 
795
2104
  # query parameters
796
2105
  query_params = {}
797
- query_params[:'category'] = opts[:'category'] if opts[:'category']
798
- query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
799
- query_params[:'includeAuthActions'] = opts[:'include_auth_actions'] if opts[:'include_auth_actions']
800
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
801
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
802
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
803
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
804
- query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
805
- query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
806
2106
 
807
2107
  # header parameters
808
2108
  header_params = {}
@@ -828,50 +2128,41 @@ module PureCloud
828
2128
  :form_params => form_params,
829
2129
  :body => post_body,
830
2130
  :auth_names => auth_names,
831
- :return_type => 'ActionEntityListing')
2131
+ :return_type => 'JsonSchemaDocument')
832
2132
  if @api_client.config.debugging
833
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2133
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_type_configschema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
2134
  end
835
2135
  return data, status_code, headers
836
2136
  end
837
2137
 
838
- # Retrieves all categories of available Actions
2138
+ # List integration types
839
2139
  #
840
2140
  # @param [Hash] opts the optional parameters
841
- # @option opts [String] :secure Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions.
842
2141
  # @option opts [Integer] :page_size The total page size requested (default to 25)
843
2142
  # @option opts [Integer] :page_number The page number requested (default to 1)
844
2143
  # @option opts [String] :sort_by variable name requested to sort by
845
2144
  # @option opts [Array<Object>] :expand variable name requested by expand list
846
2145
  # @option opts [String] :next_page next page token
847
2146
  # @option opts [String] :previous_page Previous page token
848
- # @return [CategoryEntityListing]
849
- def get_integrations_actions_categories(opts = {})
850
- data, _status_code, _headers = get_integrations_actions_categories_with_http_info(opts)
2147
+ # @return [IntegrationTypeEntityListing]
2148
+ def get_integrations_types(opts = {})
2149
+ data, _status_code, _headers = get_integrations_types_with_http_info(opts)
851
2150
  return data
852
2151
  end
853
2152
 
854
- # Retrieves all categories of available Actions
2153
+ # List integration types
855
2154
  #
856
2155
  # @param [Hash] opts the optional parameters
857
- # @option opts [String] :secure Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions.
858
2156
  # @option opts [Integer] :page_size The total page size requested
859
2157
  # @option opts [Integer] :page_number The page number requested
860
2158
  # @option opts [String] :sort_by variable name requested to sort by
861
2159
  # @option opts [Array<Object>] :expand variable name requested by expand list
862
2160
  # @option opts [String] :next_page next page token
863
2161
  # @option opts [String] :previous_page Previous page token
864
- # @return [Array<(CategoryEntityListing, Fixnum, Hash)>] CategoryEntityListing data, response status code and response headers
865
- def get_integrations_actions_categories_with_http_info(opts = {})
2162
+ # @return [Array<(IntegrationTypeEntityListing, Fixnum, Hash)>] IntegrationTypeEntityListing data, response status code and response headers
2163
+ def get_integrations_types_with_http_info(opts = {})
866
2164
  if @api_client.config.debugging
867
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions_categories ..."
868
- end
869
-
870
-
871
-
872
-
873
- if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
874
- fail ArgumentError, 'invalid value for "secure", must be one of true, false'
2165
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_types ..."
875
2166
  end
876
2167
 
877
2168
 
@@ -906,19 +2197,15 @@ module PureCloud
906
2197
 
907
2198
 
908
2199
 
909
-
910
-
911
-
912
2200
 
913
2201
 
914
2202
 
915
2203
 
916
2204
  # resource path
917
- local_var_path = "/api/v2/integrations/actions/categories".sub('{format}','json')
2205
+ local_var_path = "/api/v2/integrations/types".sub('{format}','json')
918
2206
 
919
2207
  # query parameters
920
2208
  query_params = {}
921
- query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
922
2209
  query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
923
2210
  query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
924
2211
  query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
@@ -950,50 +2237,50 @@ module PureCloud
950
2237
  :form_params => form_params,
951
2238
  :body => post_body,
952
2239
  :auth_names => auth_names,
953
- :return_type => 'CategoryEntityListing')
2240
+ :return_type => 'IntegrationTypeEntityListing')
954
2241
  if @api_client.config.debugging
955
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2242
+ @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
956
2243
  end
957
2244
  return data, status_code, headers
958
2245
  end
959
2246
 
960
- # Retrieves all action drafts associated with the filters passed in via query param.
2247
+ # Update an integration.
961
2248
  #
2249
+ # @param integration_id Integration Id
962
2250
  # @param [Hash] opts the optional parameters
963
- # @option opts [String] :category Filter by category name
964
- # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
965
- # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
2251
+ # @option opts [Integration] :body Integration Update
966
2252
  # @option opts [Integer] :page_size The total page size requested (default to 25)
967
2253
  # @option opts [Integer] :page_number The page number requested (default to 1)
968
2254
  # @option opts [String] :sort_by variable name requested to sort by
969
2255
  # @option opts [Array<Object>] :expand variable name requested by expand list
970
2256
  # @option opts [String] :next_page next page token
971
2257
  # @option opts [String] :previous_page Previous page token
972
- # @return [ActionEntityListing]
973
- def get_integrations_actions_drafts(opts = {})
974
- data, _status_code, _headers = get_integrations_actions_drafts_with_http_info(opts)
2258
+ # @return [Integration]
2259
+ def patch_integration(integration_id, opts = {})
2260
+ data, _status_code, _headers = patch_integration_with_http_info(integration_id, opts)
975
2261
  return data
976
2262
  end
977
2263
 
978
- # Retrieves all action drafts associated with the filters passed in via query param.
2264
+ # Update an integration.
979
2265
  #
2266
+ # @param integration_id Integration Id
980
2267
  # @param [Hash] opts the optional parameters
981
- # @option opts [String] :category Filter by category name
982
- # @option opts [String] :secure Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
983
- # @option opts [String] :include_auth_actions Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
2268
+ # @option opts [Integration] :body Integration Update
984
2269
  # @option opts [Integer] :page_size The total page size requested
985
2270
  # @option opts [Integer] :page_number The page number requested
986
2271
  # @option opts [String] :sort_by variable name requested to sort by
987
2272
  # @option opts [Array<Object>] :expand variable name requested by expand list
988
2273
  # @option opts [String] :next_page next page token
989
2274
  # @option opts [String] :previous_page Previous page token
990
- # @return [Array<(ActionEntityListing, Fixnum, Hash)>] ActionEntityListing data, response status code and response headers
991
- def get_integrations_actions_drafts_with_http_info(opts = {})
2275
+ # @return [Array<(Integration, Fixnum, Hash)>] Integration data, response status code and response headers
2276
+ def patch_integration_with_http_info(integration_id, opts = {})
992
2277
  if @api_client.config.debugging
993
- @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integrations_actions_drafts ..."
2278
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.patch_integration ..."
994
2279
  end
995
2280
 
996
2281
 
2282
+ # verify the required parameter 'integration_id' is set
2283
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.patch_integration" if integration_id.nil?
997
2284
 
998
2285
 
999
2286
 
@@ -1002,20 +2289,6 @@ module PureCloud
1002
2289
 
1003
2290
 
1004
2291
 
1005
- if opts[:'secure'] && !['true', 'false'].include?(opts[:'secure'])
1006
- fail ArgumentError, 'invalid value for "secure", must be one of true, false'
1007
- end
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
- if opts[:'include_auth_actions'] && !['true', 'false'].include?(opts[:'include_auth_actions'])
1016
- fail ArgumentError, 'invalid value for "include_auth_actions", must be one of true, false'
1017
- end
1018
-
1019
2292
 
1020
2293
 
1021
2294
 
@@ -1056,13 +2329,10 @@ module PureCloud
1056
2329
 
1057
2330
 
1058
2331
  # resource path
1059
- local_var_path = "/api/v2/integrations/actions/drafts".sub('{format}','json')
2332
+ local_var_path = "/api/v2/integrations/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
1060
2333
 
1061
2334
  # query parameters
1062
2335
  query_params = {}
1063
- query_params[:'category'] = opts[:'category'] if opts[:'category']
1064
- query_params[:'secure'] = opts[:'secure'] if opts[:'secure']
1065
- query_params[:'includeAuthActions'] = opts[:'include_auth_actions'] if opts[:'include_auth_actions']
1066
2336
  query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1067
2337
  query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1068
2338
  query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
@@ -1085,18 +2355,18 @@ module PureCloud
1085
2355
  form_params = {}
1086
2356
 
1087
2357
  # http body (model)
1088
- post_body = nil
2358
+ post_body = @api_client.object_to_http_body(opts[:'body'])
1089
2359
 
1090
2360
  auth_names = ['PureCloud Auth']
1091
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2361
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1092
2362
  :header_params => header_params,
1093
2363
  :query_params => query_params,
1094
2364
  :form_params => form_params,
1095
2365
  :body => post_body,
1096
2366
  :auth_names => auth_names,
1097
- :return_type => 'ActionEntityListing')
2367
+ :return_type => 'Integration')
1098
2368
  if @api_client.config.debugging
1099
- @api_client.config.logger.debug "API called: IntegrationsApi#get_integrations_actions_drafts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2369
+ @api_client.config.logger.debug "API called: IntegrationsApi#patch_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1100
2370
  end
1101
2371
  return data, status_code, headers
1102
2372
  end
@@ -1251,6 +2521,69 @@ module PureCloud
1251
2521
  return data, status_code, headers
1252
2522
  end
1253
2523
 
2524
+ # Create an integration.
2525
+ #
2526
+ # @param [Hash] opts the optional parameters
2527
+ # @option opts [CreateIntegrationRequest] :body Integration
2528
+ # @return [Integration]
2529
+ def post_integrations(opts = {})
2530
+ data, _status_code, _headers = post_integrations_with_http_info(opts)
2531
+ return data
2532
+ end
2533
+
2534
+ # Create an integration.
2535
+ #
2536
+ # @param [Hash] opts the optional parameters
2537
+ # @option opts [CreateIntegrationRequest] :body Integration
2538
+ # @return [Array<(Integration, Fixnum, Hash)>] Integration data, response status code and response headers
2539
+ def post_integrations_with_http_info(opts = {})
2540
+ if @api_client.config.debugging
2541
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.post_integrations ..."
2542
+ end
2543
+
2544
+
2545
+
2546
+
2547
+
2548
+
2549
+
2550
+ # resource path
2551
+ local_var_path = "/api/v2/integrations".sub('{format}','json')
2552
+
2553
+ # query parameters
2554
+ query_params = {}
2555
+
2556
+ # header parameters
2557
+ header_params = {}
2558
+
2559
+ # HTTP header 'Accept' (if needed)
2560
+ local_header_accept = ['application/json']
2561
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2562
+
2563
+ # HTTP header 'Content-Type'
2564
+ local_header_content_type = ['application/json']
2565
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2566
+
2567
+ # form parameters
2568
+ form_params = {}
2569
+
2570
+ # http body (model)
2571
+ post_body = @api_client.object_to_http_body(opts[:'body'])
2572
+
2573
+ auth_names = ['PureCloud Auth']
2574
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2575
+ :header_params => header_params,
2576
+ :query_params => query_params,
2577
+ :form_params => form_params,
2578
+ :body => post_body,
2579
+ :auth_names => auth_names,
2580
+ :return_type => 'Integration')
2581
+ if @api_client.config.debugging
2582
+ @api_client.config.logger.debug "API called: IntegrationsApi#post_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2583
+ end
2584
+ return data, status_code, headers
2585
+ end
2586
+
1254
2587
  # Create a new Draft from existing Action
1255
2588
  #
1256
2589
  # @param action_id actionId
@@ -1745,5 +3078,277 @@ module PureCloud
1745
3078
  end
1746
3079
  return data, status_code, headers
1747
3080
  end
3081
+
3082
+ # Create a set of credentials
3083
+ #
3084
+ # @param [Hash] opts the optional parameters
3085
+ # @option opts [Credential] :body Credential
3086
+ # @return [CredentialInfo]
3087
+ def post_integrations_credentials(opts = {})
3088
+ data, _status_code, _headers = post_integrations_credentials_with_http_info(opts)
3089
+ return data
3090
+ end
3091
+
3092
+ # Create a set of credentials
3093
+ #
3094
+ # @param [Hash] opts the optional parameters
3095
+ # @option opts [Credential] :body Credential
3096
+ # @return [Array<(CredentialInfo, Fixnum, Hash)>] CredentialInfo data, response status code and response headers
3097
+ def post_integrations_credentials_with_http_info(opts = {})
3098
+ if @api_client.config.debugging
3099
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.post_integrations_credentials ..."
3100
+ end
3101
+
3102
+
3103
+
3104
+
3105
+
3106
+
3107
+
3108
+ # resource path
3109
+ local_var_path = "/api/v2/integrations/credentials".sub('{format}','json')
3110
+
3111
+ # query parameters
3112
+ query_params = {}
3113
+
3114
+ # header parameters
3115
+ header_params = {}
3116
+
3117
+ # HTTP header 'Accept' (if needed)
3118
+ local_header_accept = ['application/json']
3119
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3120
+
3121
+ # HTTP header 'Content-Type'
3122
+ local_header_content_type = ['application/json']
3123
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3124
+
3125
+ # form parameters
3126
+ form_params = {}
3127
+
3128
+ # http body (model)
3129
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3130
+
3131
+ auth_names = ['PureCloud Auth']
3132
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3133
+ :header_params => header_params,
3134
+ :query_params => query_params,
3135
+ :form_params => form_params,
3136
+ :body => post_body,
3137
+ :auth_names => auth_names,
3138
+ :return_type => 'CredentialInfo')
3139
+ if @api_client.config.debugging
3140
+ @api_client.config.logger.debug "API called: IntegrationsApi#post_integrations_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3141
+ end
3142
+ return data, status_code, headers
3143
+ end
3144
+
3145
+ # Add a vendor connection
3146
+ #
3147
+ # @param [Hash] opts the optional parameters
3148
+ # @option opts [VendorConnectionRequest] :body
3149
+ # @return [UserActionCategoryEntityListing]
3150
+ def post_integrations_workforcemanagement_vendorconnection(opts = {})
3151
+ data, _status_code, _headers = post_integrations_workforcemanagement_vendorconnection_with_http_info(opts)
3152
+ return data
3153
+ end
3154
+
3155
+ # Add a vendor connection
3156
+ #
3157
+ # @param [Hash] opts the optional parameters
3158
+ # @option opts [VendorConnectionRequest] :body
3159
+ # @return [Array<(UserActionCategoryEntityListing, Fixnum, Hash)>] UserActionCategoryEntityListing data, response status code and response headers
3160
+ def post_integrations_workforcemanagement_vendorconnection_with_http_info(opts = {})
3161
+ if @api_client.config.debugging
3162
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.post_integrations_workforcemanagement_vendorconnection ..."
3163
+ end
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3171
+ # resource path
3172
+ local_var_path = "/api/v2/integrations/workforcemanagement/vendorconnection".sub('{format}','json')
3173
+
3174
+ # query parameters
3175
+ query_params = {}
3176
+
3177
+ # header parameters
3178
+ header_params = {}
3179
+
3180
+ # HTTP header 'Accept' (if needed)
3181
+ local_header_accept = ['application/json']
3182
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3183
+
3184
+ # HTTP header 'Content-Type'
3185
+ local_header_content_type = ['application/json']
3186
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3187
+
3188
+ # form parameters
3189
+ form_params = {}
3190
+
3191
+ # http body (model)
3192
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3193
+
3194
+ auth_names = ['PureCloud Auth']
3195
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3196
+ :header_params => header_params,
3197
+ :query_params => query_params,
3198
+ :form_params => form_params,
3199
+ :body => post_body,
3200
+ :auth_names => auth_names,
3201
+ :return_type => 'UserActionCategoryEntityListing')
3202
+ if @api_client.config.debugging
3203
+ @api_client.config.logger.debug "API called: IntegrationsApi#post_integrations_workforcemanagement_vendorconnection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3204
+ end
3205
+ return data, status_code, headers
3206
+ end
3207
+
3208
+ # Update integration configuration.
3209
+ #
3210
+ # @param integration_id Integration Id
3211
+ # @param [Hash] opts the optional parameters
3212
+ # @option opts [IntegrationConfiguration] :body Integration Configuration
3213
+ # @return [IntegrationConfiguration]
3214
+ def put_integration_config_current(integration_id, opts = {})
3215
+ data, _status_code, _headers = put_integration_config_current_with_http_info(integration_id, opts)
3216
+ return data
3217
+ end
3218
+
3219
+ # Update integration configuration.
3220
+ #
3221
+ # @param integration_id Integration Id
3222
+ # @param [Hash] opts the optional parameters
3223
+ # @option opts [IntegrationConfiguration] :body Integration Configuration
3224
+ # @return [Array<(IntegrationConfiguration, Fixnum, Hash)>] IntegrationConfiguration data, response status code and response headers
3225
+ def put_integration_config_current_with_http_info(integration_id, opts = {})
3226
+ if @api_client.config.debugging
3227
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.put_integration_config_current ..."
3228
+ end
3229
+
3230
+
3231
+ # verify the required parameter 'integration_id' is set
3232
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.put_integration_config_current" if integration_id.nil?
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+
3243
+
3244
+ # resource path
3245
+ local_var_path = "/api/v2/integrations/{integrationId}/config/current".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
3246
+
3247
+ # query parameters
3248
+ query_params = {}
3249
+
3250
+ # header parameters
3251
+ header_params = {}
3252
+
3253
+ # HTTP header 'Accept' (if needed)
3254
+ local_header_accept = ['application/json']
3255
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3256
+
3257
+ # HTTP header 'Content-Type'
3258
+ local_header_content_type = ['application/json']
3259
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3260
+
3261
+ # form parameters
3262
+ form_params = {}
3263
+
3264
+ # http body (model)
3265
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3266
+
3267
+ auth_names = ['PureCloud Auth']
3268
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3269
+ :header_params => header_params,
3270
+ :query_params => query_params,
3271
+ :form_params => form_params,
3272
+ :body => post_body,
3273
+ :auth_names => auth_names,
3274
+ :return_type => 'IntegrationConfiguration')
3275
+ if @api_client.config.debugging
3276
+ @api_client.config.logger.debug "API called: IntegrationsApi#put_integration_config_current\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3277
+ end
3278
+ return data, status_code, headers
3279
+ end
3280
+
3281
+ # Update a set of credentials
3282
+ #
3283
+ # @param credential_id Credential ID
3284
+ # @param [Hash] opts the optional parameters
3285
+ # @option opts [Credential] :body Credential
3286
+ # @return [CredentialInfo]
3287
+ def put_integrations_credential(credential_id, opts = {})
3288
+ data, _status_code, _headers = put_integrations_credential_with_http_info(credential_id, opts)
3289
+ return data
3290
+ end
3291
+
3292
+ # Update a set of credentials
3293
+ #
3294
+ # @param credential_id Credential ID
3295
+ # @param [Hash] opts the optional parameters
3296
+ # @option opts [Credential] :body Credential
3297
+ # @return [Array<(CredentialInfo, Fixnum, Hash)>] CredentialInfo data, response status code and response headers
3298
+ def put_integrations_credential_with_http_info(credential_id, opts = {})
3299
+ if @api_client.config.debugging
3300
+ @api_client.config.logger.debug "Calling API: IntegrationsApi.put_integrations_credential ..."
3301
+ end
3302
+
3303
+
3304
+ # verify the required parameter 'credential_id' is set
3305
+ fail ArgumentError, "Missing the required parameter 'credential_id' when calling IntegrationsApi.put_integrations_credential" if credential_id.nil?
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+ # resource path
3318
+ local_var_path = "/api/v2/integrations/credentials/{credentialId}".sub('{format}','json').sub('{' + 'credentialId' + '}', credential_id.to_s)
3319
+
3320
+ # query parameters
3321
+ query_params = {}
3322
+
3323
+ # header parameters
3324
+ header_params = {}
3325
+
3326
+ # HTTP header 'Accept' (if needed)
3327
+ local_header_accept = ['application/json']
3328
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3329
+
3330
+ # HTTP header 'Content-Type'
3331
+ local_header_content_type = ['application/json']
3332
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3333
+
3334
+ # form parameters
3335
+ form_params = {}
3336
+
3337
+ # http body (model)
3338
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3339
+
3340
+ auth_names = ['PureCloud Auth']
3341
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3342
+ :header_params => header_params,
3343
+ :query_params => query_params,
3344
+ :form_params => form_params,
3345
+ :body => post_body,
3346
+ :auth_names => auth_names,
3347
+ :return_type => 'CredentialInfo')
3348
+ if @api_client.config.debugging
3349
+ @api_client.config.logger.debug "API called: IntegrationsApi#put_integrations_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3350
+ end
3351
+ return data, status_code, headers
3352
+ end
1748
3353
  end
1749
3354
  end