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
@@ -0,0 +1,428 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class IntegrationEntityListing
21
+ attr_accessor :entities
22
+
23
+ attr_accessor :page_size
24
+
25
+ attr_accessor :page_number
26
+
27
+ attr_accessor :total
28
+
29
+ attr_accessor :self_uri
30
+
31
+ attr_accessor :first_uri
32
+
33
+ attr_accessor :previous_uri
34
+
35
+ attr_accessor :last_uri
36
+
37
+ attr_accessor :next_uri
38
+
39
+ attr_accessor :page_count
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+
45
+ :'entities' => :'entities',
46
+
47
+ :'page_size' => :'pageSize',
48
+
49
+ :'page_number' => :'pageNumber',
50
+
51
+ :'total' => :'total',
52
+
53
+ :'self_uri' => :'selfUri',
54
+
55
+ :'first_uri' => :'firstUri',
56
+
57
+ :'previous_uri' => :'previousUri',
58
+
59
+ :'last_uri' => :'lastUri',
60
+
61
+ :'next_uri' => :'nextUri',
62
+
63
+ :'page_count' => :'pageCount'
64
+
65
+ }
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.swagger_types
70
+ {
71
+
72
+ :'entities' => :'Array<Integration>',
73
+
74
+ :'page_size' => :'Integer',
75
+
76
+ :'page_number' => :'Integer',
77
+
78
+ :'total' => :'Integer',
79
+
80
+ :'self_uri' => :'String',
81
+
82
+ :'first_uri' => :'String',
83
+
84
+ :'previous_uri' => :'String',
85
+
86
+ :'last_uri' => :'String',
87
+
88
+ :'next_uri' => :'String',
89
+
90
+ :'page_count' => :'Integer'
91
+
92
+ }
93
+ end
94
+
95
+ # Initializes the object
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ def initialize(attributes = {})
98
+ return unless attributes.is_a?(Hash)
99
+
100
+ # convert string to symbol for hash key
101
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
102
+
103
+
104
+ if attributes.has_key?(:'entities')
105
+
106
+ if (value = attributes[:'entities']).is_a?(Array)
107
+ self.entities = value
108
+ end
109
+
110
+
111
+
112
+ end
113
+
114
+
115
+ if attributes.has_key?(:'pageSize')
116
+
117
+
118
+ self.page_size = attributes[:'pageSize']
119
+
120
+
121
+ end
122
+
123
+
124
+ if attributes.has_key?(:'pageNumber')
125
+
126
+
127
+ self.page_number = attributes[:'pageNumber']
128
+
129
+
130
+ end
131
+
132
+
133
+ if attributes.has_key?(:'total')
134
+
135
+
136
+ self.total = attributes[:'total']
137
+
138
+
139
+ end
140
+
141
+
142
+ if attributes.has_key?(:'selfUri')
143
+
144
+
145
+ self.self_uri = attributes[:'selfUri']
146
+
147
+
148
+ end
149
+
150
+
151
+ if attributes.has_key?(:'firstUri')
152
+
153
+
154
+ self.first_uri = attributes[:'firstUri']
155
+
156
+
157
+ end
158
+
159
+
160
+ if attributes.has_key?(:'previousUri')
161
+
162
+
163
+ self.previous_uri = attributes[:'previousUri']
164
+
165
+
166
+ end
167
+
168
+
169
+ if attributes.has_key?(:'lastUri')
170
+
171
+
172
+ self.last_uri = attributes[:'lastUri']
173
+
174
+
175
+ end
176
+
177
+
178
+ if attributes.has_key?(:'nextUri')
179
+
180
+
181
+ self.next_uri = attributes[:'nextUri']
182
+
183
+
184
+ end
185
+
186
+
187
+ if attributes.has_key?(:'pageCount')
188
+
189
+
190
+ self.page_count = attributes[:'pageCount']
191
+
192
+
193
+ end
194
+
195
+
196
+ end
197
+
198
+ # Show invalid properties with the reasons. Usually used together with valid?
199
+ # @return Array for valid properies with the reasons
200
+ def list_invalid_properties
201
+ invalid_properties = Array.new
202
+
203
+
204
+ return invalid_properties
205
+ end
206
+
207
+ # Check to see if the all the properties in the model are valid
208
+ # @return true if the model is valid
209
+ def valid?
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+ end
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+ # Checks equality by comparing each attribute.
305
+ # @param [Object] Object to be compared
306
+ def ==(o)
307
+ return true if self.equal?(o)
308
+ self.class == o.class &&
309
+ entities == o.entities &&
310
+ page_size == o.page_size &&
311
+ page_number == o.page_number &&
312
+ total == o.total &&
313
+ self_uri == o.self_uri &&
314
+ first_uri == o.first_uri &&
315
+ previous_uri == o.previous_uri &&
316
+ last_uri == o.last_uri &&
317
+ next_uri == o.next_uri &&
318
+ page_count == o.page_count
319
+ end
320
+
321
+ # @see the `==` method
322
+ # @param [Object] Object to be compared
323
+ def eql?(o)
324
+ self == o
325
+ end
326
+
327
+ # Calculates hash code according to all attributes.
328
+ # @return [Fixnum] Hash code
329
+ def hash
330
+ [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, last_uri, next_uri, page_count].hash
331
+ end
332
+
333
+ # build the object from hash
334
+ def build_from_hash(attributes)
335
+ return nil unless attributes.is_a?(Hash)
336
+ self.class.swagger_types.each_pair do |key, type|
337
+ if type =~ /^Array<(.*)>/i
338
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
339
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
340
+ else
341
+ #TODO show warning in debug mode
342
+ end
343
+ elsif !attributes[self.class.attribute_map[key]].nil?
344
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
345
+ else
346
+ # data not found in attributes(hash), not an issue as the data can be optional
347
+ end
348
+ end
349
+
350
+ self
351
+ end
352
+
353
+ def _deserialize(type, value)
354
+ case type.to_sym
355
+ when :DateTime
356
+ DateTime.parse(value)
357
+ when :Date
358
+ Date.parse(value)
359
+ when :String
360
+ value.to_s
361
+ when :Integer
362
+ value.to_i
363
+ when :Float
364
+ value.to_f
365
+ when :BOOLEAN
366
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
367
+ true
368
+ else
369
+ false
370
+ end
371
+ when :Object
372
+ # generic object (usually a Hash), return directly
373
+ value
374
+ when /\AArray<(?<inner_type>.+)>\z/
375
+ inner_type = Regexp.last_match[:inner_type]
376
+ value.map { |v| _deserialize(inner_type, v) }
377
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
378
+ k_type = Regexp.last_match[:k_type]
379
+ v_type = Regexp.last_match[:v_type]
380
+ {}.tap do |hash|
381
+ value.each do |k, v|
382
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
383
+ end
384
+ end
385
+ else # model
386
+ _model = Object.const_get("PureCloud").const_get(type).new
387
+ _model.build_from_hash(value)
388
+ end
389
+ end
390
+
391
+ def to_s
392
+ to_hash.to_s
393
+ end
394
+
395
+ # to_body is an alias to to_body (backward compatibility))
396
+ def to_body
397
+ to_hash
398
+ end
399
+
400
+ # return the object in the form of hash
401
+ def to_hash
402
+ hash = {}
403
+ self.class.attribute_map.each_pair do |attr, param|
404
+ value = self.send(attr)
405
+ next if value.nil?
406
+ hash[param] = _to_hash(value)
407
+ end
408
+ hash
409
+ end
410
+
411
+ # Method to output non-array value in the form of hash
412
+ # For object, use to_hash. Otherwise, just return the value
413
+ def _to_hash(value)
414
+ if value.is_a?(Array)
415
+ value.compact.map{ |v| _to_hash(v) }
416
+ elsif value.is_a?(Hash)
417
+ {}.tap do |hash|
418
+ value.each { |k, v| hash[k] = _to_hash(v) }
419
+ end
420
+ elsif value.respond_to? :to_hash
421
+ value.to_hash
422
+ else
423
+ value
424
+ end
425
+ end
426
+
427
+ end
428
+ end
@@ -0,0 +1,481 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ # Describes an event that has happened related to an integration
21
+ class IntegrationEvent
22
+ # Unique ID for this event
23
+ attr_accessor :id
24
+
25
+ # The URI for this object
26
+ attr_accessor :self_uri
27
+
28
+ # Correlation ID for the event
29
+ attr_accessor :correlation_id
30
+
31
+ # Time the event occurred. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
32
+ attr_accessor :timestamp
33
+
34
+ # Indicates the severity of the event.
35
+ attr_accessor :level
36
+
37
+ # A classification for the event. Suitable for programmatic searching, sorting, or filtering
38
+ attr_accessor :event_code
39
+
40
+ # Message indicating what happened
41
+ attr_accessor :message
42
+
43
+ # Collection of entities affected by or pertaining to the event (e.g. a list of Integrations or Bridge connectors)
44
+ attr_accessor :entities
45
+
46
+ # Map of context attributes specific to this event.
47
+ attr_accessor :context_attributes
48
+
49
+ # Message with additional details about the event. (e.g. an exception cause.)
50
+ attr_accessor :detail_message
51
+
52
+ # User that took an action that resulted in the event.
53
+ attr_accessor :user
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+
59
+ :'id' => :'id',
60
+
61
+ :'self_uri' => :'selfUri',
62
+
63
+ :'correlation_id' => :'correlationId',
64
+
65
+ :'timestamp' => :'timestamp',
66
+
67
+ :'level' => :'level',
68
+
69
+ :'event_code' => :'eventCode',
70
+
71
+ :'message' => :'message',
72
+
73
+ :'entities' => :'entities',
74
+
75
+ :'context_attributes' => :'contextAttributes',
76
+
77
+ :'detail_message' => :'detailMessage',
78
+
79
+ :'user' => :'user'
80
+
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+
88
+ :'id' => :'String',
89
+
90
+ :'self_uri' => :'String',
91
+
92
+ :'correlation_id' => :'String',
93
+
94
+ :'timestamp' => :'DateTime',
95
+
96
+ :'level' => :'String',
97
+
98
+ :'event_code' => :'String',
99
+
100
+ :'message' => :'MessageInfo',
101
+
102
+ :'entities' => :'Array<EventEntity>',
103
+
104
+ :'context_attributes' => :'Hash<String, String>',
105
+
106
+ :'detail_message' => :'MessageInfo',
107
+
108
+ :'user' => :'User'
109
+
110
+ }
111
+ end
112
+
113
+ # Initializes the object
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ def initialize(attributes = {})
116
+ return unless attributes.is_a?(Hash)
117
+
118
+ # convert string to symbol for hash key
119
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
120
+
121
+
122
+ if attributes.has_key?(:'id')
123
+
124
+
125
+ self.id = attributes[:'id']
126
+
127
+
128
+ end
129
+
130
+
131
+ if attributes.has_key?(:'selfUri')
132
+
133
+
134
+ self.self_uri = attributes[:'selfUri']
135
+
136
+
137
+ end
138
+
139
+
140
+ if attributes.has_key?(:'correlationId')
141
+
142
+
143
+ self.correlation_id = attributes[:'correlationId']
144
+
145
+
146
+ end
147
+
148
+
149
+ if attributes.has_key?(:'timestamp')
150
+
151
+
152
+ self.timestamp = attributes[:'timestamp']
153
+
154
+
155
+ end
156
+
157
+
158
+ if attributes.has_key?(:'level')
159
+
160
+
161
+ self.level = attributes[:'level']
162
+
163
+
164
+ end
165
+
166
+
167
+ if attributes.has_key?(:'eventCode')
168
+
169
+
170
+ self.event_code = attributes[:'eventCode']
171
+
172
+
173
+ end
174
+
175
+
176
+ if attributes.has_key?(:'message')
177
+
178
+
179
+ self.message = attributes[:'message']
180
+
181
+
182
+ end
183
+
184
+
185
+ if attributes.has_key?(:'entities')
186
+
187
+ if (value = attributes[:'entities']).is_a?(Array)
188
+ self.entities = value
189
+ end
190
+
191
+
192
+
193
+ end
194
+
195
+
196
+ if attributes.has_key?(:'contextAttributes')
197
+
198
+ if (value = attributes[:'contextAttributes']).is_a?(Array)
199
+ self.context_attributes = value
200
+ end
201
+
202
+
203
+
204
+ end
205
+
206
+
207
+ if attributes.has_key?(:'detailMessage')
208
+
209
+
210
+ self.detail_message = attributes[:'detailMessage']
211
+
212
+
213
+ end
214
+
215
+
216
+ if attributes.has_key?(:'user')
217
+
218
+
219
+ self.user = attributes[:'user']
220
+
221
+
222
+ end
223
+
224
+
225
+ end
226
+
227
+ # Show invalid properties with the reasons. Usually used together with valid?
228
+ # @return Array for valid properies with the reasons
229
+ def list_invalid_properties
230
+ invalid_properties = Array.new
231
+
232
+
233
+ return invalid_properties
234
+ end
235
+
236
+ # Check to see if the all the properties in the model are valid
237
+ # @return true if the model is valid
238
+ def valid?
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ allowed_values = ["INFO", "WARN", "ERROR", "CRITICAL"]
259
+ if @level && !allowed_values.include?(@level)
260
+ return false
261
+ end
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ end
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ # Custom attribute writer method checking allowed values (enum).
314
+ # @param [Object] level Object to be assigned
315
+ def level=(level)
316
+ allowed_values = ["INFO", "WARN", "ERROR", "CRITICAL"]
317
+ if level && !allowed_values.include?(level)
318
+ fail ArgumentError, "invalid value for 'level', must be one of #{allowed_values}."
319
+ end
320
+ @level = level
321
+ end
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ # Checks equality by comparing each attribute.
357
+ # @param [Object] Object to be compared
358
+ def ==(o)
359
+ return true if self.equal?(o)
360
+ self.class == o.class &&
361
+ id == o.id &&
362
+ self_uri == o.self_uri &&
363
+ correlation_id == o.correlation_id &&
364
+ timestamp == o.timestamp &&
365
+ level == o.level &&
366
+ event_code == o.event_code &&
367
+ message == o.message &&
368
+ entities == o.entities &&
369
+ context_attributes == o.context_attributes &&
370
+ detail_message == o.detail_message &&
371
+ user == o.user
372
+ end
373
+
374
+ # @see the `==` method
375
+ # @param [Object] Object to be compared
376
+ def eql?(o)
377
+ self == o
378
+ end
379
+
380
+ # Calculates hash code according to all attributes.
381
+ # @return [Fixnum] Hash code
382
+ def hash
383
+ [id, self_uri, correlation_id, timestamp, level, event_code, message, entities, context_attributes, detail_message, user].hash
384
+ end
385
+
386
+ # build the object from hash
387
+ def build_from_hash(attributes)
388
+ return nil unless attributes.is_a?(Hash)
389
+ self.class.swagger_types.each_pair do |key, type|
390
+ if type =~ /^Array<(.*)>/i
391
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
392
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
393
+ else
394
+ #TODO show warning in debug mode
395
+ end
396
+ elsif !attributes[self.class.attribute_map[key]].nil?
397
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
398
+ else
399
+ # data not found in attributes(hash), not an issue as the data can be optional
400
+ end
401
+ end
402
+
403
+ self
404
+ end
405
+
406
+ def _deserialize(type, value)
407
+ case type.to_sym
408
+ when :DateTime
409
+ DateTime.parse(value)
410
+ when :Date
411
+ Date.parse(value)
412
+ when :String
413
+ value.to_s
414
+ when :Integer
415
+ value.to_i
416
+ when :Float
417
+ value.to_f
418
+ when :BOOLEAN
419
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
420
+ true
421
+ else
422
+ false
423
+ end
424
+ when :Object
425
+ # generic object (usually a Hash), return directly
426
+ value
427
+ when /\AArray<(?<inner_type>.+)>\z/
428
+ inner_type = Regexp.last_match[:inner_type]
429
+ value.map { |v| _deserialize(inner_type, v) }
430
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
431
+ k_type = Regexp.last_match[:k_type]
432
+ v_type = Regexp.last_match[:v_type]
433
+ {}.tap do |hash|
434
+ value.each do |k, v|
435
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
436
+ end
437
+ end
438
+ else # model
439
+ _model = Object.const_get("PureCloud").const_get(type).new
440
+ _model.build_from_hash(value)
441
+ end
442
+ end
443
+
444
+ def to_s
445
+ to_hash.to_s
446
+ end
447
+
448
+ # to_body is an alias to to_body (backward compatibility))
449
+ def to_body
450
+ to_hash
451
+ end
452
+
453
+ # return the object in the form of hash
454
+ def to_hash
455
+ hash = {}
456
+ self.class.attribute_map.each_pair do |attr, param|
457
+ value = self.send(attr)
458
+ next if value.nil?
459
+ hash[param] = _to_hash(value)
460
+ end
461
+ hash
462
+ end
463
+
464
+ # Method to output non-array value in the form of hash
465
+ # For object, use to_hash. Otherwise, just return the value
466
+ def _to_hash(value)
467
+ if value.is_a?(Array)
468
+ value.compact.map{ |v| _to_hash(v) }
469
+ elsif value.is_a?(Hash)
470
+ {}.tap do |hash|
471
+ value.each { |k, v| hash[k] = _to_hash(v) }
472
+ end
473
+ elsif value.respond_to? :to_hash
474
+ value.to_hash
475
+ else
476
+ value
477
+ end
478
+ end
479
+
480
+ end
481
+ end