purecloudplatformclientv2 19.0.0 → 20.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (321) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +1 -1
  4. data/docs/AgentActivityEntityListing.md +1 -1
  5. data/docs/AnalyticsSession.md +3 -0
  6. data/docs/ArchitectApi.md +272 -2
  7. data/docs/AttemptLimitsEntityListing.md +1 -1
  8. data/docs/AttributeEntityListing.md +1 -1
  9. data/docs/CalibrationEntityListing.md +1 -1
  10. data/docs/CallConversationEntityListing.md +1 -1
  11. data/docs/CallHistoryConversationEntityListing.md +1 -1
  12. data/docs/CallHistoryParticipant.md +2 -0
  13. data/docs/CallableTimeSetEntityListing.md +1 -1
  14. data/docs/CallbackConversationEntityListing.md +1 -1
  15. data/docs/CampaignEntityListing.md +1 -1
  16. data/docs/CampaignRuleEntityListing.md +1 -1
  17. data/docs/CampaignSequenceEntityListing.md +1 -1
  18. data/docs/CertificateAuthorityEntityListing.md +1 -1
  19. data/docs/ChatConversationEntityListing.md +1 -1
  20. data/docs/CobrowseConversationEntityListing.md +1 -1
  21. data/docs/CommandStatusEntityListing.md +1 -1
  22. data/docs/ConsumedResourcesEntityListing.md +1 -1
  23. data/docs/ConsumingResourcesEntityListing.md +1 -1
  24. data/docs/ContactListEntityListing.md +1 -1
  25. data/docs/ContactListFilterEntityListing.md +1 -1
  26. data/docs/ContactListing.md +1 -1
  27. data/docs/ConversationEntityListing.md +1 -1
  28. data/docs/ConversationNotificationEmail.md +1 -0
  29. data/docs/ConversationNotificationEmails.md +1 -0
  30. data/docs/ConversationNotificationMessage.md +27 -0
  31. data/docs/ConversationNotificationMessageDetails.md +14 -0
  32. data/docs/ConversationNotificationMessages.md +14 -0
  33. data/docs/ConversationNotificationMessages1.md +27 -0
  34. data/docs/ConversationNotificationParticipant.md +1 -0
  35. data/docs/ConversationNotificationParticipants.md +1 -0
  36. data/docs/DIDEntityListing.md +1 -1
  37. data/docs/DIDPoolEntityListing.md +1 -1
  38. data/docs/DependencyObjectEntityListing.md +1 -1
  39. data/docs/DependencyTypeEntityListing.md +1 -1
  40. data/docs/DialerEventEntityListing.md +1 -1
  41. data/docs/DirectoryUserDevicesListing.md +1 -1
  42. data/docs/DncListEntityListing.md +1 -1
  43. data/docs/DocumentAuditEntityListing.md +1 -1
  44. data/docs/DocumentEntityListing.md +1 -1
  45. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  46. data/docs/DomainEntityListing.md +1 -1
  47. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  48. data/docs/DomainEntityListingQueryResult.md +1 -1
  49. data/docs/DomainOrganizationRole.md +1 -1
  50. data/docs/DomainOrganizationRoleCreate.md +1 -1
  51. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  52. data/docs/EdgeEntityListing.md +1 -1
  53. data/docs/EdgeGroupEntityListing.md +1 -1
  54. data/docs/EdgeLineEntityListing.md +1 -1
  55. data/docs/EmailConversationEntityListing.md +1 -1
  56. data/docs/EmailMessageListing.md +1 -1
  57. data/docs/EncryptionKeyEntityListing.md +1 -1
  58. data/docs/EndpointEntityListing.md +1 -1
  59. data/docs/EvaluationEntityListing.md +1 -1
  60. data/docs/EvaluationFormEntityListing.md +1 -1
  61. data/docs/EvaluatorActivityEntityListing.md +1 -1
  62. data/docs/ExtensionEntityListing.md +1 -1
  63. data/docs/ExtensionPoolEntityListing.md +1 -1
  64. data/docs/ExternalOrganizationListing.md +1 -1
  65. data/docs/FaxDocumentEntityListing.md +1 -1
  66. data/docs/FlowEntityListing.md +1 -1
  67. data/docs/FlowVersionEntityListing.md +1 -1
  68. data/docs/GreetingListing.md +1 -1
  69. data/docs/GroupEntityListing.md +1 -1
  70. data/docs/IVREntityListing.md +1 -1
  71. data/docs/InboundDomainEntityListing.md +1 -1
  72. data/docs/InboundRouteEntityListing.md +1 -1
  73. data/docs/IntegrationsApi.md +4 -0
  74. data/docs/InteractionStatsAlertContainer.md +1 -1
  75. data/docs/InteractionStatsRuleContainer.md +1 -1
  76. data/docs/JsonNode.md +2 -2
  77. data/docs/KeywordSetEntityListing.md +1 -1
  78. data/docs/LanguageEntityListing.md +1 -1
  79. data/docs/LibraryEntityListing.md +1 -1
  80. data/docs/LineBaseEntityListing.md +1 -1
  81. data/docs/LineEntityListing.md +1 -1
  82. data/docs/LocationEntityListing.md +1 -1
  83. data/docs/LogicalInterfaceEntityListing.md +1 -1
  84. data/docs/ManagementUnitListing.md +1 -1
  85. data/docs/Message.md +29 -0
  86. data/docs/MessageConversationNotification.md +16 -0
  87. data/docs/MessageConversationNotificationDetail.md +16 -0
  88. data/docs/MessageConversationNotificationErrorBody.md +22 -0
  89. data/docs/MessageConversationNotificationErrorInfo.md +22 -0
  90. data/docs/MessageConversationNotificationMessageDetails.md +14 -0
  91. data/docs/MessageConversationNotificationMessageMediaParticipant.md +40 -0
  92. data/docs/MessageConversationNotificationMessages.md +14 -0
  93. data/docs/MessageConversationNotificationParticipants.md +40 -0
  94. data/docs/MessageConversationNotificationUriReference.md +14 -0
  95. data/docs/MessageConversationNotificationWrapup.md +18 -0
  96. data/docs/MessageDetails.md +15 -0
  97. data/docs/NoteListing.md +1 -1
  98. data/docs/OAuthClientEntityListing.md +1 -1
  99. data/docs/OAuthProviderEntityListing.md +1 -1
  100. data/docs/OrganizationPresenceEntityListing.md +1 -1
  101. data/docs/OrganizationRoleEntityListing.md +1 -1
  102. data/docs/OrphanRecordingListing.md +1 -1
  103. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  104. data/docs/OutboundRouteEntityListing.md +1 -1
  105. data/docs/Participant.md +1 -0
  106. data/docs/ParticipantBasic.md +1 -0
  107. data/docs/PermissionCollectionEntityListing.md +1 -1
  108. data/docs/PhoneBaseEntityListing.md +1 -1
  109. data/docs/PhoneEntityListing.md +1 -1
  110. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  111. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  112. data/docs/PolicyEntityListing.md +1 -1
  113. data/docs/PromptAssetEntityListing.md +1 -1
  114. data/docs/PromptEntityListing.md +1 -1
  115. data/docs/QualityApi.md +2 -2
  116. data/docs/QualityAuditPage.md +1 -1
  117. data/docs/QueueEntityListing.md +1 -1
  118. data/docs/QueueMemberEntityListing.md +1 -1
  119. data/docs/RelationshipListing.md +1 -1
  120. data/docs/ReportMetaDataEntityListing.md +1 -1
  121. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  122. data/docs/ReportScheduleEntityListing.md +1 -1
  123. data/docs/ResponseEntityList.md +1 -1
  124. data/docs/ResponseEntityListing.md +1 -1
  125. data/docs/ResponseSetEntityListing.md +1 -1
  126. data/docs/RuleSetEntityListing.md +1 -1
  127. data/docs/ScheduleEntityListing.md +1 -1
  128. data/docs/ScheduleGroupEntityListing.md +1 -1
  129. data/docs/SchemaCategoryEntityListing.md +1 -1
  130. data/docs/SchemaReferenceEntityListing.md +1 -1
  131. data/docs/ScreenRecordingSessionListing.md +1 -1
  132. data/docs/ScriptEntityListing.md +1 -1
  133. data/docs/ScriptsApi.md +46 -15
  134. data/docs/SecurityProfileEntityListing.md +1 -1
  135. data/docs/ShareEntityListing.md +1 -1
  136. data/docs/SiteEntityListing.md +1 -1
  137. data/docs/SkillEntityListing.md +1 -1
  138. data/docs/StationEntityListing.md +1 -1
  139. data/docs/SystemPromptAssetEntityListing.md +1 -1
  140. data/docs/SystemPromptEntityListing.md +1 -1
  141. data/docs/TagValueEntityListing.md +1 -1
  142. data/docs/TelephonyProvidersEdgeApi.md +10 -10
  143. data/docs/TimeZoneEntityListing.md +1 -1
  144. data/docs/TrunkBaseEntityListing.md +1 -1
  145. data/docs/TrunkEntityListing.md +1 -1
  146. data/docs/TrunkMetabaseEntityListing.md +1 -1
  147. data/docs/TrustEntityListing.md +1 -1
  148. data/docs/TrustUserEntityListing.md +1 -1
  149. data/docs/TrustorEntityListing.md +1 -1
  150. data/docs/UserEntityListing.md +1 -1
  151. data/docs/UserQueueEntityListing.md +1 -1
  152. data/docs/UserRecordingEntityListing.md +1 -1
  153. data/docs/UserSkillEntityListing.md +1 -1
  154. data/docs/VoicemailMessageEntityListing.md +1 -1
  155. data/docs/WorkspaceEntityListing.md +1 -1
  156. data/docs/WorkspaceMemberEntityListing.md +1 -1
  157. data/docs/WrapupCodeEntityListing.md +1 -1
  158. data/lib/purecloudplatformclientv2.rb +16 -0
  159. data/lib/purecloudplatformclientv2/api/architect_api.rb +380 -2
  160. data/lib/purecloudplatformclientv2/api/integrations_api.rb +26 -0
  161. data/lib/purecloudplatformclientv2/api/quality_api.rb +2 -2
  162. data/lib/purecloudplatformclientv2/api/scripts_api.rb +95 -4
  163. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +15 -15
  164. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  165. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +14 -14
  166. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +14 -14
  167. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  168. data/lib/purecloudplatformclientv2/models/analytics_conversation_segment.rb +2 -2
  169. data/lib/purecloudplatformclientv2/models/analytics_participant.rb +2 -2
  170. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +4 -4
  171. data/lib/purecloudplatformclientv2/models/analytics_session.rb +79 -3
  172. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +14 -14
  173. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +14 -14
  174. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +14 -14
  175. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +14 -14
  176. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +14 -14
  177. data/lib/purecloudplatformclientv2/models/call_history_participant.rb +58 -4
  178. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +14 -14
  179. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +14 -14
  180. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +14 -14
  181. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +14 -14
  182. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +14 -14
  183. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +14 -14
  184. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +14 -14
  185. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +14 -14
  186. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +14 -14
  187. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +14 -14
  188. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +14 -14
  189. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +14 -14
  190. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +14 -14
  191. data/lib/purecloudplatformclientv2/models/contact_listing.rb +14 -14
  192. data/lib/purecloudplatformclientv2/models/conversation_association.rb +2 -2
  193. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +14 -14
  194. data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +40 -1
  195. data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +40 -1
  196. data/lib/purecloudplatformclientv2/models/conversation_notification_message.rb +581 -0
  197. data/lib/purecloudplatformclientv2/models/conversation_notification_message_details.rb +226 -0
  198. data/lib/purecloudplatformclientv2/models/conversation_notification_messages.rb +226 -0
  199. data/lib/purecloudplatformclientv2/models/conversation_notification_messages_1.rb +581 -0
  200. data/lib/purecloudplatformclientv2/models/conversation_notification_participant.rb +30 -3
  201. data/lib/purecloudplatformclientv2/models/conversation_notification_participants.rb +30 -3
  202. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +14 -14
  203. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +14 -14
  204. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +14 -14
  205. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +14 -14
  206. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +14 -14
  207. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +14 -14
  208. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +14 -14
  209. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +14 -14
  210. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +14 -14
  211. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +14 -14
  212. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +14 -14
  213. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +14 -14
  214. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +14 -14
  215. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  216. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  217. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  218. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +14 -14
  219. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +14 -14
  220. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +14 -14
  221. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +14 -14
  222. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +14 -14
  223. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +14 -14
  224. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +14 -14
  225. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +14 -14
  226. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +14 -14
  227. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +14 -14
  228. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +14 -14
  229. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +14 -14
  230. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +14 -14
  231. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +14 -14
  232. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +14 -14
  233. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +14 -14
  234. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +14 -14
  235. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +14 -14
  236. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +14 -14
  237. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +14 -14
  238. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +14 -14
  239. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +14 -14
  240. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +14 -14
  241. data/lib/purecloudplatformclientv2/models/json_node.rb +50 -50
  242. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +14 -14
  243. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +14 -14
  244. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +14 -14
  245. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +14 -14
  246. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +14 -14
  247. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +14 -14
  248. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +14 -14
  249. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +14 -14
  250. data/lib/purecloudplatformclientv2/models/message.rb +663 -0
  251. data/lib/purecloudplatformclientv2/models/message_conversation_notification.rb +280 -0
  252. data/lib/purecloudplatformclientv2/models/message_conversation_notification_detail.rb +276 -0
  253. data/lib/purecloudplatformclientv2/models/message_conversation_notification_error_body.rb +432 -0
  254. data/lib/purecloudplatformclientv2/models/message_conversation_notification_error_info.rb +432 -0
  255. data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_details.rb +226 -0
  256. data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media_participant.rb +922 -0
  257. data/lib/purecloudplatformclientv2/models/message_conversation_notification_messages.rb +226 -0
  258. data/lib/purecloudplatformclientv2/models/message_conversation_notification_participants.rb +922 -0
  259. data/lib/purecloudplatformclientv2/models/message_conversation_notification_uri_reference.rb +226 -0
  260. data/lib/purecloudplatformclientv2/models/message_conversation_notification_wrapup.rb +328 -0
  261. data/lib/purecloudplatformclientv2/models/message_details.rb +254 -0
  262. data/lib/purecloudplatformclientv2/models/note_listing.rb +14 -14
  263. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +14 -14
  264. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +14 -14
  265. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +14 -14
  266. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +14 -14
  267. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +14 -14
  268. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +14 -14
  269. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +14 -14
  270. data/lib/purecloudplatformclientv2/models/participant.rb +28 -1
  271. data/lib/purecloudplatformclientv2/models/participant_basic.rb +28 -1
  272. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +14 -14
  273. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +14 -14
  274. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +14 -14
  275. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +14 -14
  276. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +14 -14
  277. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +14 -14
  278. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +14 -14
  279. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +14 -14
  280. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +14 -14
  281. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +14 -14
  282. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +14 -14
  283. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +14 -14
  284. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +14 -14
  285. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +14 -14
  286. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +14 -14
  287. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +14 -14
  288. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +14 -14
  289. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +14 -14
  290. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +14 -14
  291. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +14 -14
  292. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +14 -14
  293. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +14 -14
  294. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +14 -14
  295. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +14 -14
  296. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +14 -14
  297. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +14 -14
  298. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +14 -14
  299. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +14 -14
  300. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +14 -14
  301. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +14 -14
  302. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +14 -14
  303. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +14 -14
  304. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +14 -14
  305. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +14 -14
  306. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +14 -14
  307. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +14 -14
  308. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +14 -14
  309. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +14 -14
  310. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +14 -14
  311. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +14 -14
  312. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +14 -14
  313. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +14 -14
  314. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +14 -14
  315. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +14 -14
  316. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +14 -14
  317. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +14 -14
  318. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +14 -14
  319. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +14 -14
  320. data/lib/purecloudplatformclientv2/version.rb +1 -1
  321. metadata +34 -2
@@ -0,0 +1,663 @@
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 Message
21
+ # The connection state of this communication.
22
+ attr_accessor :state
23
+
24
+ # A globally unique identifier for this communication.
25
+ attr_accessor :id
26
+
27
+ # True if this call is held and the person on this side hears silence.
28
+ attr_accessor :held
29
+
30
+ # The time line of the participant's message, divided into activity segments.
31
+ attr_accessor :segments
32
+
33
+ # The direction of the message.
34
+ attr_accessor :direction
35
+
36
+ # A globally unique identifier for the recording associated with this message.
37
+ attr_accessor :recording_id
38
+
39
+ attr_accessor :error_info
40
+
41
+ # System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
42
+ attr_accessor :disconnect_type
43
+
44
+ # The timestamp the message was placed on hold in the cloud clock if the message is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
45
+ attr_accessor :start_hold_time
46
+
47
+ # The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
48
+ attr_accessor :connected_time
49
+
50
+ # The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
51
+ attr_accessor :disconnected_time
52
+
53
+ # The source provider for the message.
54
+ attr_accessor :provider
55
+
56
+ # The UUID of the script to use.
57
+ attr_accessor :script_id
58
+
59
+ # The id of the peer communication corresponding to a matching leg for this communication.
60
+ attr_accessor :peer_id
61
+
62
+ # Address and name data for a call endpoint.
63
+ attr_accessor :to_address
64
+
65
+ # Address and name data for a call endpoint.
66
+ attr_accessor :from_address
67
+
68
+ # The messages sent on this communication channel.
69
+ attr_accessor :messages
70
+
71
+ # Attribute mapping from ruby-style variable name to JSON key.
72
+ def self.attribute_map
73
+ {
74
+
75
+ :'state' => :'state',
76
+
77
+ :'id' => :'id',
78
+
79
+ :'held' => :'held',
80
+
81
+ :'segments' => :'segments',
82
+
83
+ :'direction' => :'direction',
84
+
85
+ :'recording_id' => :'recordingId',
86
+
87
+ :'error_info' => :'errorInfo',
88
+
89
+ :'disconnect_type' => :'disconnectType',
90
+
91
+ :'start_hold_time' => :'startHoldTime',
92
+
93
+ :'connected_time' => :'connectedTime',
94
+
95
+ :'disconnected_time' => :'disconnectedTime',
96
+
97
+ :'provider' => :'provider',
98
+
99
+ :'script_id' => :'scriptId',
100
+
101
+ :'peer_id' => :'peerId',
102
+
103
+ :'to_address' => :'toAddress',
104
+
105
+ :'from_address' => :'fromAddress',
106
+
107
+ :'messages' => :'messages'
108
+
109
+ }
110
+ end
111
+
112
+ # Attribute type mapping.
113
+ def self.swagger_types
114
+ {
115
+
116
+ :'state' => :'String',
117
+
118
+ :'id' => :'String',
119
+
120
+ :'held' => :'BOOLEAN',
121
+
122
+ :'segments' => :'Array<Segment>',
123
+
124
+ :'direction' => :'String',
125
+
126
+ :'recording_id' => :'String',
127
+
128
+ :'error_info' => :'ErrorBody',
129
+
130
+ :'disconnect_type' => :'String',
131
+
132
+ :'start_hold_time' => :'DateTime',
133
+
134
+ :'connected_time' => :'DateTime',
135
+
136
+ :'disconnected_time' => :'DateTime',
137
+
138
+ :'provider' => :'String',
139
+
140
+ :'script_id' => :'String',
141
+
142
+ :'peer_id' => :'String',
143
+
144
+ :'to_address' => :'Address',
145
+
146
+ :'from_address' => :'Address',
147
+
148
+ :'messages' => :'Array<MessageDetails>'
149
+
150
+ }
151
+ end
152
+
153
+ # Initializes the object
154
+ # @param [Hash] attributes Model attributes in the form of hash
155
+ def initialize(attributes = {})
156
+ return unless attributes.is_a?(Hash)
157
+
158
+ # convert string to symbol for hash key
159
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
160
+
161
+
162
+ if attributes.has_key?(:'state')
163
+
164
+
165
+ self.state = attributes[:'state']
166
+
167
+
168
+ end
169
+
170
+
171
+ if attributes.has_key?(:'id')
172
+
173
+
174
+ self.id = attributes[:'id']
175
+
176
+
177
+ end
178
+
179
+
180
+ if attributes.has_key?(:'held')
181
+
182
+
183
+ self.held = attributes[:'held']
184
+
185
+
186
+ end
187
+
188
+
189
+ if attributes.has_key?(:'segments')
190
+
191
+ if (value = attributes[:'segments']).is_a?(Array)
192
+ self.segments = value
193
+ end
194
+
195
+
196
+
197
+ end
198
+
199
+
200
+ if attributes.has_key?(:'direction')
201
+
202
+
203
+ self.direction = attributes[:'direction']
204
+
205
+
206
+ end
207
+
208
+
209
+ if attributes.has_key?(:'recordingId')
210
+
211
+
212
+ self.recording_id = attributes[:'recordingId']
213
+
214
+
215
+ end
216
+
217
+
218
+ if attributes.has_key?(:'errorInfo')
219
+
220
+
221
+ self.error_info = attributes[:'errorInfo']
222
+
223
+
224
+ end
225
+
226
+
227
+ if attributes.has_key?(:'disconnectType')
228
+
229
+
230
+ self.disconnect_type = attributes[:'disconnectType']
231
+
232
+
233
+ end
234
+
235
+
236
+ if attributes.has_key?(:'startHoldTime')
237
+
238
+
239
+ self.start_hold_time = attributes[:'startHoldTime']
240
+
241
+
242
+ end
243
+
244
+
245
+ if attributes.has_key?(:'connectedTime')
246
+
247
+
248
+ self.connected_time = attributes[:'connectedTime']
249
+
250
+
251
+ end
252
+
253
+
254
+ if attributes.has_key?(:'disconnectedTime')
255
+
256
+
257
+ self.disconnected_time = attributes[:'disconnectedTime']
258
+
259
+
260
+ end
261
+
262
+
263
+ if attributes.has_key?(:'provider')
264
+
265
+
266
+ self.provider = attributes[:'provider']
267
+
268
+
269
+ end
270
+
271
+
272
+ if attributes.has_key?(:'scriptId')
273
+
274
+
275
+ self.script_id = attributes[:'scriptId']
276
+
277
+
278
+ end
279
+
280
+
281
+ if attributes.has_key?(:'peerId')
282
+
283
+
284
+ self.peer_id = attributes[:'peerId']
285
+
286
+
287
+ end
288
+
289
+
290
+ if attributes.has_key?(:'toAddress')
291
+
292
+
293
+ self.to_address = attributes[:'toAddress']
294
+
295
+
296
+ end
297
+
298
+
299
+ if attributes.has_key?(:'fromAddress')
300
+
301
+
302
+ self.from_address = attributes[:'fromAddress']
303
+
304
+
305
+ end
306
+
307
+
308
+ if attributes.has_key?(:'messages')
309
+
310
+ if (value = attributes[:'messages']).is_a?(Array)
311
+ self.messages = value
312
+ end
313
+
314
+
315
+
316
+ end
317
+
318
+
319
+ end
320
+
321
+ # Show invalid properties with the reasons. Usually used together with valid?
322
+ # @return Array for valid properies with the reasons
323
+ def list_invalid_properties
324
+ invalid_properties = Array.new
325
+
326
+
327
+ return invalid_properties
328
+ end
329
+
330
+ # Check to see if the all the properties in the model are valid
331
+ # @return true if the model is valid
332
+ def valid?
333
+
334
+
335
+
336
+ allowed_values = ["alerting", "connected", "disconnected"]
337
+ if @state && !allowed_values.include?(@state)
338
+ return false
339
+ end
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+ allowed_values = ["inbound", "outbound"]
358
+ if @direction && !allowed_values.include?(@direction)
359
+ return false
360
+ end
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+ allowed_values = ["endpoint", "client", "system", "timeout", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam", "uncallable"]
375
+ if @disconnect_type && !allowed_values.include?(@disconnect_type)
376
+ return false
377
+ end
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+ end
418
+
419
+
420
+
421
+ # Custom attribute writer method checking allowed values (enum).
422
+ # @param [Object] state Object to be assigned
423
+ def state=(state)
424
+ allowed_values = ["alerting", "connected", "disconnected"]
425
+ if state && !allowed_values.include?(state)
426
+ fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
427
+ end
428
+ @state = state
429
+ end
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+ # Custom attribute writer method checking allowed values (enum).
451
+ # @param [Object] direction Object to be assigned
452
+ def direction=(direction)
453
+ allowed_values = ["inbound", "outbound"]
454
+ if direction && !allowed_values.include?(direction)
455
+ fail ArgumentError, "invalid value for 'direction', must be one of #{allowed_values}."
456
+ end
457
+ @direction = direction
458
+ end
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+ # Custom attribute writer method checking allowed values (enum).
475
+ # @param [Object] disconnect_type Object to be assigned
476
+ def disconnect_type=(disconnect_type)
477
+ allowed_values = ["endpoint", "client", "system", "timeout", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam", "uncallable"]
478
+ if disconnect_type && !allowed_values.include?(disconnect_type)
479
+ fail ArgumentError, "invalid value for 'disconnect_type', must be one of #{allowed_values}."
480
+ end
481
+ @disconnect_type = disconnect_type
482
+ end
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+ # Checks equality by comparing each attribute.
533
+ # @param [Object] Object to be compared
534
+ def ==(o)
535
+ return true if self.equal?(o)
536
+ self.class == o.class &&
537
+ state == o.state &&
538
+ id == o.id &&
539
+ held == o.held &&
540
+ segments == o.segments &&
541
+ direction == o.direction &&
542
+ recording_id == o.recording_id &&
543
+ error_info == o.error_info &&
544
+ disconnect_type == o.disconnect_type &&
545
+ start_hold_time == o.start_hold_time &&
546
+ connected_time == o.connected_time &&
547
+ disconnected_time == o.disconnected_time &&
548
+ provider == o.provider &&
549
+ script_id == o.script_id &&
550
+ peer_id == o.peer_id &&
551
+ to_address == o.to_address &&
552
+ from_address == o.from_address &&
553
+ messages == o.messages
554
+ end
555
+
556
+ # @see the `==` method
557
+ # @param [Object] Object to be compared
558
+ def eql?(o)
559
+ self == o
560
+ end
561
+
562
+ # Calculates hash code according to all attributes.
563
+ # @return [Fixnum] Hash code
564
+ def hash
565
+ [state, id, held, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time, disconnected_time, provider, script_id, peer_id, to_address, from_address, messages].hash
566
+ end
567
+
568
+ # build the object from hash
569
+ def build_from_hash(attributes)
570
+ return nil unless attributes.is_a?(Hash)
571
+ self.class.swagger_types.each_pair do |key, type|
572
+ if type =~ /^Array<(.*)>/i
573
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
574
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
575
+ else
576
+ #TODO show warning in debug mode
577
+ end
578
+ elsif !attributes[self.class.attribute_map[key]].nil?
579
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
580
+ else
581
+ # data not found in attributes(hash), not an issue as the data can be optional
582
+ end
583
+ end
584
+
585
+ self
586
+ end
587
+
588
+ def _deserialize(type, value)
589
+ case type.to_sym
590
+ when :DateTime
591
+ DateTime.parse(value)
592
+ when :Date
593
+ Date.parse(value)
594
+ when :String
595
+ value.to_s
596
+ when :Integer
597
+ value.to_i
598
+ when :Float
599
+ value.to_f
600
+ when :BOOLEAN
601
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
602
+ true
603
+ else
604
+ false
605
+ end
606
+ when :Object
607
+ # generic object (usually a Hash), return directly
608
+ value
609
+ when /\AArray<(?<inner_type>.+)>\z/
610
+ inner_type = Regexp.last_match[:inner_type]
611
+ value.map { |v| _deserialize(inner_type, v) }
612
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
613
+ k_type = Regexp.last_match[:k_type]
614
+ v_type = Regexp.last_match[:v_type]
615
+ {}.tap do |hash|
616
+ value.each do |k, v|
617
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
618
+ end
619
+ end
620
+ else # model
621
+ _model = Object.const_get("PureCloud").const_get(type).new
622
+ _model.build_from_hash(value)
623
+ end
624
+ end
625
+
626
+ def to_s
627
+ to_hash.to_s
628
+ end
629
+
630
+ # to_body is an alias to to_body (backward compatibility))
631
+ def to_body
632
+ to_hash
633
+ end
634
+
635
+ # return the object in the form of hash
636
+ def to_hash
637
+ hash = {}
638
+ self.class.attribute_map.each_pair do |attr, param|
639
+ value = self.send(attr)
640
+ next if value.nil?
641
+ hash[param] = _to_hash(value)
642
+ end
643
+ hash
644
+ end
645
+
646
+ # Method to output non-array value in the form of hash
647
+ # For object, use to_hash. Otherwise, just return the value
648
+ def _to_hash(value)
649
+ if value.is_a?(Array)
650
+ value.compact.map{ |v| _to_hash(v) }
651
+ elsif value.is_a?(Hash)
652
+ {}.tap do |hash|
653
+ value.each { |k, v| hash[k] = _to_hash(v) }
654
+ end
655
+ elsif value.respond_to? :to_hash
656
+ value.to_hash
657
+ else
658
+ value
659
+ end
660
+ end
661
+
662
+ end
663
+ end