purecloudplatformclientv2 40.0.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +2 -2
  4. data/docs/AgentActivityEntityListing.md +2 -2
  5. data/docs/AnalyticsFlow.md +24 -0
  6. data/docs/AnalyticsFlowOutcome.md +17 -0
  7. data/docs/AnalyticsSession.md +1 -0
  8. data/docs/AttemptLimitsEntityListing.md +2 -2
  9. data/docs/AttributeEntityListing.md +2 -2
  10. data/docs/CalibrationEntityListing.md +2 -2
  11. data/docs/CallConversationEntityListing.md +2 -2
  12. data/docs/CallConversationNotificationCallMediaParticipant.md +1 -0
  13. data/docs/CallConversationNotificationParticipants.md +1 -0
  14. data/docs/CallHistoryConversationEntityListing.md +2 -2
  15. data/docs/CallMediaParticipant.md +1 -0
  16. data/docs/CallableTimeSetEntityListing.md +2 -2
  17. data/docs/CallbackConversationEntityListing.md +2 -2
  18. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -0
  19. data/docs/CallbackConversationNotificationParticipants.md +1 -0
  20. data/docs/CallbackMediaParticipant.md +1 -0
  21. data/docs/CampaignDivisionViewListing.md +2 -2
  22. data/docs/CampaignEntityListing.md +2 -2
  23. data/docs/CampaignRuleEntityListing.md +2 -2
  24. data/docs/CampaignSequenceEntityListing.md +2 -2
  25. data/docs/CertificateAuthorityEntityListing.md +2 -2
  26. data/docs/ChatConversationEntityListing.md +2 -2
  27. data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -0
  28. data/docs/ChatConversationNotificationParticipants.md +1 -0
  29. data/docs/ChatMediaParticipant.md +1 -0
  30. data/docs/ClientAppEntityListing.md +2 -2
  31. data/docs/CobrowseConversationEntityListing.md +2 -2
  32. data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -0
  33. data/docs/CobrowseConversationNotificationParticipants.md +1 -0
  34. data/docs/CobrowseMediaParticipant.md +1 -0
  35. data/docs/CommandStatusEntityListing.md +2 -2
  36. data/docs/ConsumedResourcesEntityListing.md +2 -2
  37. data/docs/ConsumingResourcesEntityListing.md +2 -2
  38. data/docs/ContactListEntityListing.md +2 -2
  39. data/docs/ContactListFilterEntityListing.md +2 -2
  40. data/docs/ContactListing.md +2 -2
  41. data/docs/ConversationEntityListing.md +2 -2
  42. data/docs/ConversationNotificationParticipant.md +1 -0
  43. data/docs/ConversationNotificationParticipants.md +1 -0
  44. data/docs/CredentialInfoListing.md +2 -2
  45. data/docs/CredentialTypeListing.md +2 -2
  46. data/docs/DIDEntityListing.md +2 -2
  47. data/docs/DIDPoolEntityListing.md +2 -2
  48. data/docs/DataTableRowEntityListing.md +2 -2
  49. data/docs/DataTablesDomainEntityListing.md +2 -2
  50. data/docs/DependencyObjectEntityListing.md +2 -2
  51. data/docs/DependencyTypeEntityListing.md +2 -2
  52. data/docs/DialerEventEntityListing.md +2 -2
  53. data/docs/DirectoryUserDevicesListing.md +2 -2
  54. data/docs/DncListEntityListing.md +2 -2
  55. data/docs/DocumentAuditEntityListing.md +2 -2
  56. data/docs/DocumentEntityListing.md +2 -2
  57. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  58. data/docs/DomainEntityListing.md +2 -2
  59. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  60. data/docs/DomainEntityListingQueryResult.md +2 -2
  61. data/docs/DomainEntityListingSurveyForm.md +2 -2
  62. data/docs/DomainOrganizationRole.md +1 -1
  63. data/docs/DomainOrganizationRoleCreate.md +1 -1
  64. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  65. data/docs/EdgeEntityListing.md +2 -2
  66. data/docs/EdgeGroupEntityListing.md +2 -2
  67. data/docs/EdgeLineEntityListing.md +2 -2
  68. data/docs/EmailConversationEntityListing.md +2 -2
  69. data/docs/EmailConversationNotificationEmailMediaParticipant.md +1 -0
  70. data/docs/EmailConversationNotificationParticipants.md +1 -0
  71. data/docs/EmailMediaParticipant.md +1 -0
  72. data/docs/EmailMessageListing.md +2 -2
  73. data/docs/EmergencyGroupListing.md +2 -2
  74. data/docs/EncryptionKeyEntityListing.md +2 -2
  75. data/docs/EndpointEntityListing.md +2 -2
  76. data/docs/EvaluationEntityListing.md +2 -2
  77. data/docs/EvaluationFormEntityListing.md +2 -2
  78. data/docs/EvaluatorActivityEntityListing.md +2 -2
  79. data/docs/ExtensionEntityListing.md +2 -2
  80. data/docs/ExtensionPoolEntityListing.md +2 -2
  81. data/docs/ExternalOrganizationListing.md +2 -2
  82. data/docs/FaxDocumentEntityListing.md +2 -2
  83. data/docs/FlowDivisionViewEntityListing.md +2 -2
  84. data/docs/FlowEntityListing.md +2 -2
  85. data/docs/FlowVersionEntityListing.md +2 -2
  86. data/docs/GDPRRequestEntityListing.md +2 -2
  87. data/docs/GDPRSubjectEntityListing.md +2 -2
  88. data/docs/GreetingListing.md +2 -2
  89. data/docs/GroupEntityListing.md +2 -2
  90. data/docs/GroupProfileEntityListing.md +2 -2
  91. data/docs/IVREntityListing.md +2 -2
  92. data/docs/InboundDomainEntityListing.md +2 -2
  93. data/docs/InboundRouteEntityListing.md +2 -2
  94. data/docs/IntegrationEntityListing.md +2 -2
  95. data/docs/IntegrationEventEntityListing.md +2 -2
  96. data/docs/IntegrationTypeEntityListing.md +2 -2
  97. data/docs/InteractionStatsAlertContainer.md +2 -2
  98. data/docs/InteractionStatsRuleContainer.md +2 -2
  99. data/docs/JsonNode.md +2 -2
  100. data/docs/KeywordSetEntityListing.md +2 -2
  101. data/docs/LanguageEntityListing.md +2 -2
  102. data/docs/LibraryEntityListing.md +2 -2
  103. data/docs/LineBaseEntityListing.md +2 -2
  104. data/docs/LineEntityListing.md +2 -2
  105. data/docs/LocationEntityListing.md +2 -2
  106. data/docs/LogicalInterfaceEntityListing.md +2 -2
  107. data/docs/ManagementUnitListing.md +2 -2
  108. data/docs/MessageConversationEntityListing.md +2 -2
  109. data/docs/MessageConversationNotificationMessageMediaParticipant.md +1 -0
  110. data/docs/MessageConversationNotificationParticipants.md +1 -0
  111. data/docs/MessageMediaParticipant.md +1 -0
  112. data/docs/NoteListing.md +2 -2
  113. data/docs/OAuthClientEntityListing.md +2 -2
  114. data/docs/OAuthProviderEntityListing.md +2 -2
  115. data/docs/OrganizationPresenceEntityListing.md +2 -2
  116. data/docs/OrganizationRoleEntityListing.md +2 -2
  117. data/docs/OrphanRecordingListing.md +2 -2
  118. data/docs/OutboundApi.md +2 -2
  119. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  120. data/docs/OutboundRouteEntityListing.md +2 -2
  121. data/docs/Participant.md +1 -0
  122. data/docs/ParticipantBasic.md +1 -0
  123. data/docs/PermissionCollectionEntityListing.md +2 -2
  124. data/docs/PhoneBaseEntityListing.md +2 -2
  125. data/docs/PhoneEntityListing.md +2 -2
  126. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  127. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  128. data/docs/PolicyEntityListing.md +2 -2
  129. data/docs/PromptAssetEntityListing.md +2 -2
  130. data/docs/PromptEntityListing.md +2 -2
  131. data/docs/QualityAuditPage.md +2 -2
  132. data/docs/QueueEntityListing.md +2 -2
  133. data/docs/QueueMemberEntityListing.md +2 -2
  134. data/docs/RecipientListing.md +2 -2
  135. data/docs/RelationshipListing.md +2 -2
  136. data/docs/ReportMetaDataEntityListing.md +2 -2
  137. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  138. data/docs/ReportScheduleEntityListing.md +2 -2
  139. data/docs/ReportingExportJobListing.md +2 -2
  140. data/docs/ResponseEntityList.md +2 -2
  141. data/docs/ResponseEntityListing.md +2 -2
  142. data/docs/ResponseSetEntityListing.md +2 -2
  143. data/docs/RuleSetEntityListing.md +2 -2
  144. data/docs/ScheduleEntityListing.md +2 -2
  145. data/docs/ScheduleGroupEntityListing.md +2 -2
  146. data/docs/SchemaCategoryEntityListing.md +2 -2
  147. data/docs/SchemaReferenceEntityListing.md +2 -2
  148. data/docs/ScreenRecordingSessionListing.md +2 -2
  149. data/docs/ScreenShareConversationNotificationParticipants.md +1 -0
  150. data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -0
  151. data/docs/ScriptEntityListing.md +2 -2
  152. data/docs/SecurityProfileEntityListing.md +2 -2
  153. data/docs/ShareEntityListing.md +2 -2
  154. data/docs/SiteEntityListing.md +2 -2
  155. data/docs/SkillEntityListing.md +2 -2
  156. data/docs/SmsPhoneNumberEntityListing.md +2 -2
  157. data/docs/SocialConversationNotificationParticipants.md +1 -0
  158. data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -0
  159. data/docs/StationEntityListing.md +2 -2
  160. data/docs/SubjectDivisionGrantsEntityListing.md +2 -2
  161. data/docs/SurveyFormEntityListing.md +2 -2
  162. data/docs/SystemPromptAssetEntityListing.md +2 -2
  163. data/docs/SystemPromptEntityListing.md +2 -2
  164. data/docs/TagValueEntityListing.md +2 -2
  165. data/docs/TextMessageListing.md +2 -2
  166. data/docs/TimeZone.md +2 -2
  167. data/docs/TimeZoneEntityListing.md +2 -2
  168. data/docs/TrunkBaseEntityListing.md +2 -2
  169. data/docs/TrunkEntityListing.md +2 -2
  170. data/docs/TrunkMetabaseEntityListing.md +2 -2
  171. data/docs/TrustEntityListing.md +2 -2
  172. data/docs/TrustUserEntityListing.md +2 -2
  173. data/docs/TrustorEntityListing.md +2 -2
  174. data/docs/UserActionCategoryEntityListing.md +2 -2
  175. data/docs/UserEntityListing.md +2 -2
  176. data/docs/UserLanguageEntityListing.md +2 -2
  177. data/docs/UserProfileEntityListing.md +2 -2
  178. data/docs/UserQueueEntityListing.md +2 -2
  179. data/docs/UserRecordingEntityListing.md +2 -2
  180. data/docs/UserSkillEntityListing.md +2 -2
  181. data/docs/VideoConversationNotificationParticipants.md +1 -0
  182. data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -0
  183. data/docs/VoicemailMessageEntityListing.md +2 -2
  184. data/docs/WorkforceManagementApi.md +2 -2
  185. data/docs/WorkspaceEntityListing.md +2 -2
  186. data/docs/WorkspaceMemberEntityListing.md +2 -2
  187. data/docs/WrapupCodeEntityListing.md +2 -2
  188. data/lib/purecloudplatformclientv2.rb +2 -0
  189. data/lib/purecloudplatformclientv2/api/outbound_api.rb +3 -3
  190. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  191. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +13 -13
  192. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +13 -13
  193. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  194. data/lib/purecloudplatformclientv2/models/analytics_flow.rb +504 -0
  195. data/lib/purecloudplatformclientv2/models/analytics_flow_outcome.rb +306 -0
  196. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +4 -4
  197. data/lib/purecloudplatformclientv2/models/analytics_session.rb +30 -4
  198. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +13 -13
  199. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +13 -13
  200. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +13 -13
  201. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +13 -13
  202. data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +26 -1
  203. data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +26 -1
  204. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +13 -13
  205. data/lib/purecloudplatformclientv2/models/call_media_participant.rb +27 -1
  206. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +13 -13
  207. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +13 -13
  208. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +26 -1
  209. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +26 -1
  210. data/lib/purecloudplatformclientv2/models/callback_media_participant.rb +27 -1
  211. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +13 -13
  212. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +13 -13
  213. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +13 -13
  214. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +13 -13
  215. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +13 -13
  216. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +13 -13
  217. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +26 -1
  218. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +26 -1
  219. data/lib/purecloudplatformclientv2/models/chat_media_participant.rb +27 -1
  220. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +13 -13
  221. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +13 -13
  222. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +26 -1
  223. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +26 -1
  224. data/lib/purecloudplatformclientv2/models/cobrowse_media_participant.rb +27 -1
  225. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +13 -13
  226. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +13 -13
  227. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +13 -13
  228. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +13 -13
  229. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +13 -13
  230. data/lib/purecloudplatformclientv2/models/contact_listing.rb +13 -13
  231. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +13 -13
  232. data/lib/purecloudplatformclientv2/models/conversation_notification_participant.rb +26 -1
  233. data/lib/purecloudplatformclientv2/models/conversation_notification_participants.rb +26 -1
  234. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +13 -13
  235. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +13 -13
  236. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +13 -13
  237. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +13 -13
  238. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +13 -13
  239. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +13 -13
  240. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +13 -13
  241. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +13 -13
  242. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +13 -13
  243. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +13 -13
  244. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +13 -13
  245. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +13 -13
  246. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +13 -13
  247. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +13 -13
  248. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +13 -13
  249. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +13 -13
  250. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +13 -13
  251. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +13 -13
  252. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  253. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  254. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  255. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +13 -13
  256. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +13 -13
  257. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +13 -13
  258. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +13 -13
  259. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +26 -1
  260. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +26 -1
  261. data/lib/purecloudplatformclientv2/models/email_media_participant.rb +27 -1
  262. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +13 -13
  263. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +13 -13
  264. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +13 -13
  265. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +13 -13
  266. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +13 -13
  267. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +13 -13
  268. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +13 -13
  269. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +13 -13
  270. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +13 -13
  271. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +13 -13
  272. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +13 -13
  273. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +13 -13
  274. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +13 -13
  275. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +13 -13
  276. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +13 -13
  277. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +13 -13
  278. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +13 -13
  279. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +13 -13
  280. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +13 -13
  281. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +13 -13
  282. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +13 -13
  283. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +13 -13
  284. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +13 -13
  285. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +13 -13
  286. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +13 -13
  287. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +13 -13
  288. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +13 -13
  289. data/lib/purecloudplatformclientv2/models/json_node.rb +50 -50
  290. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +13 -13
  291. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +13 -13
  292. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +13 -13
  293. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +13 -13
  294. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +13 -13
  295. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +13 -13
  296. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +13 -13
  297. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +13 -13
  298. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +13 -13
  299. data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media_participant.rb +26 -1
  300. data/lib/purecloudplatformclientv2/models/message_conversation_notification_participants.rb +26 -1
  301. data/lib/purecloudplatformclientv2/models/message_media_participant.rb +27 -1
  302. data/lib/purecloudplatformclientv2/models/note_listing.rb +13 -13
  303. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +13 -13
  304. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +13 -13
  305. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +13 -13
  306. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +13 -13
  307. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +13 -13
  308. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +13 -13
  309. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +13 -13
  310. data/lib/purecloudplatformclientv2/models/participant.rb +27 -1
  311. data/lib/purecloudplatformclientv2/models/participant_basic.rb +27 -1
  312. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +13 -13
  313. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +13 -13
  314. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +13 -13
  315. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +13 -13
  316. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +13 -13
  317. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +13 -13
  318. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +13 -13
  319. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +13 -13
  320. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +13 -13
  321. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +13 -13
  322. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +13 -13
  323. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +13 -13
  324. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +13 -13
  325. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +13 -13
  326. data/lib/purecloudplatformclientv2/models/report_run_entry.rb +2 -2
  327. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +13 -13
  328. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +13 -13
  329. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +13 -13
  330. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +13 -13
  331. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +13 -13
  332. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +13 -13
  333. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +13 -13
  334. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +13 -13
  335. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +13 -13
  336. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +13 -13
  337. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +13 -13
  338. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +13 -13
  339. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +26 -1
  340. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +26 -1
  341. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +13 -13
  342. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +13 -13
  343. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +13 -13
  344. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +13 -13
  345. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +13 -13
  346. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +13 -13
  347. data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +26 -1
  348. data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +26 -1
  349. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +13 -13
  350. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +13 -13
  351. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +13 -13
  352. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +13 -13
  353. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +13 -13
  354. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +13 -13
  355. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +13 -13
  356. data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -24
  357. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +13 -13
  358. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +13 -13
  359. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +13 -13
  360. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +13 -13
  361. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +13 -13
  362. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +13 -13
  363. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +13 -13
  364. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +13 -13
  365. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +13 -13
  366. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +13 -13
  367. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +13 -13
  368. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +13 -13
  369. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +13 -13
  370. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +13 -13
  371. data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +26 -1
  372. data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +26 -1
  373. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +13 -13
  374. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +13 -13
  375. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +13 -13
  376. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +13 -13
  377. data/lib/purecloudplatformclientv2/version.rb +1 -1
  378. metadata +6 -2
@@ -103,7 +103,7 @@ module PureCloud
103
103
 
104
104
 
105
105
 
106
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
106
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors", "nFlow", "tFlowHangUp", "tFlowExit", "tFlow", "tFlowOutcome", "nFlowOutcome"]
107
107
  if @metric && !allowed_values.include?(@metric)
108
108
  return false
109
109
  end
@@ -125,7 +125,7 @@ module PureCloud
125
125
  # Custom attribute writer method checking allowed values (enum).
126
126
  # @param [Object] metric Object to be assigned
127
127
  def metric=(metric)
128
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
128
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors", "nFlow", "tFlowHangUp", "tFlowExit", "tFlow", "tFlowOutcome", "nFlowOutcome"]
129
129
  if metric && !allowed_values.include?(metric)
130
130
  fail ArgumentError, "invalid value for 'metric', must be one of #{allowed_values}."
131
131
  end
@@ -0,0 +1,504 @@
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 AnalyticsFlow
21
+ # The unique identifier of this flow
22
+ attr_accessor :flow_id
23
+
24
+ # The name of this flow
25
+ attr_accessor :flow_name
26
+
27
+ # The version of this flow
28
+ attr_accessor :flow_version
29
+
30
+ # The type of this flow
31
+ attr_accessor :flow_type
32
+
33
+ # The exit reason for this flow, e.g. DISCONNECT
34
+ attr_accessor :exit_reason
35
+
36
+ # The type of transfer for flows that ended with a transfer
37
+ attr_accessor :transfer_type
38
+
39
+ # The name of a transfer target
40
+ attr_accessor :transfer_target_name
41
+
42
+ # The address of a transfer target
43
+ attr_accessor :transfer_target_address
44
+
45
+ # Flag indicating whether the flow issued a callback
46
+ attr_accessor :issued_callback
47
+
48
+ # Flow starting language, e.g. en-us
49
+ attr_accessor :starting_language
50
+
51
+ # Flow ending language, e.g. en-us
52
+ attr_accessor :ending_language
53
+
54
+ # Flow outcomes
55
+ attr_accessor :outcomes
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ def self.attribute_map
59
+ {
60
+
61
+ :'flow_id' => :'flowId',
62
+
63
+ :'flow_name' => :'flowName',
64
+
65
+ :'flow_version' => :'flowVersion',
66
+
67
+ :'flow_type' => :'flowType',
68
+
69
+ :'exit_reason' => :'exitReason',
70
+
71
+ :'transfer_type' => :'transferType',
72
+
73
+ :'transfer_target_name' => :'transferTargetName',
74
+
75
+ :'transfer_target_address' => :'transferTargetAddress',
76
+
77
+ :'issued_callback' => :'issuedCallback',
78
+
79
+ :'starting_language' => :'startingLanguage',
80
+
81
+ :'ending_language' => :'endingLanguage',
82
+
83
+ :'outcomes' => :'outcomes'
84
+
85
+ }
86
+ end
87
+
88
+ # Attribute type mapping.
89
+ def self.swagger_types
90
+ {
91
+
92
+ :'flow_id' => :'String',
93
+
94
+ :'flow_name' => :'String',
95
+
96
+ :'flow_version' => :'String',
97
+
98
+ :'flow_type' => :'String',
99
+
100
+ :'exit_reason' => :'String',
101
+
102
+ :'transfer_type' => :'String',
103
+
104
+ :'transfer_target_name' => :'String',
105
+
106
+ :'transfer_target_address' => :'String',
107
+
108
+ :'issued_callback' => :'BOOLEAN',
109
+
110
+ :'starting_language' => :'String',
111
+
112
+ :'ending_language' => :'String',
113
+
114
+ :'outcomes' => :'Array<AnalyticsFlowOutcome>'
115
+
116
+ }
117
+ end
118
+
119
+ # Initializes the object
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ def initialize(attributes = {})
122
+ return unless attributes.is_a?(Hash)
123
+
124
+ # convert string to symbol for hash key
125
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
126
+
127
+
128
+ if attributes.has_key?(:'flowId')
129
+
130
+
131
+ self.flow_id = attributes[:'flowId']
132
+
133
+
134
+ end
135
+
136
+
137
+ if attributes.has_key?(:'flowName')
138
+
139
+
140
+ self.flow_name = attributes[:'flowName']
141
+
142
+
143
+ end
144
+
145
+
146
+ if attributes.has_key?(:'flowVersion')
147
+
148
+
149
+ self.flow_version = attributes[:'flowVersion']
150
+
151
+
152
+ end
153
+
154
+
155
+ if attributes.has_key?(:'flowType')
156
+
157
+
158
+ self.flow_type = attributes[:'flowType']
159
+
160
+
161
+ end
162
+
163
+
164
+ if attributes.has_key?(:'exitReason')
165
+
166
+
167
+ self.exit_reason = attributes[:'exitReason']
168
+
169
+
170
+ end
171
+
172
+
173
+ if attributes.has_key?(:'transferType')
174
+
175
+
176
+ self.transfer_type = attributes[:'transferType']
177
+
178
+
179
+ end
180
+
181
+
182
+ if attributes.has_key?(:'transferTargetName')
183
+
184
+
185
+ self.transfer_target_name = attributes[:'transferTargetName']
186
+
187
+
188
+ end
189
+
190
+
191
+ if attributes.has_key?(:'transferTargetAddress')
192
+
193
+
194
+ self.transfer_target_address = attributes[:'transferTargetAddress']
195
+
196
+
197
+ end
198
+
199
+
200
+ if attributes.has_key?(:'issuedCallback')
201
+
202
+
203
+ self.issued_callback = attributes[:'issuedCallback']
204
+
205
+
206
+ end
207
+
208
+
209
+ if attributes.has_key?(:'startingLanguage')
210
+
211
+
212
+ self.starting_language = attributes[:'startingLanguage']
213
+
214
+
215
+ end
216
+
217
+
218
+ if attributes.has_key?(:'endingLanguage')
219
+
220
+
221
+ self.ending_language = attributes[:'endingLanguage']
222
+
223
+
224
+ end
225
+
226
+
227
+ if attributes.has_key?(:'outcomes')
228
+
229
+ if (value = attributes[:'outcomes']).is_a?(Array)
230
+ self.outcomes = value
231
+ end
232
+
233
+
234
+
235
+ end
236
+
237
+
238
+ end
239
+
240
+ # Show invalid properties with the reasons. Usually used together with valid?
241
+ # @return Array for valid properies with the reasons
242
+ def list_invalid_properties
243
+ invalid_properties = Array.new
244
+
245
+
246
+ return invalid_properties
247
+ end
248
+
249
+ # Check to see if the all the properties in the model are valid
250
+ # @return true if the model is valid
251
+ def valid?
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+ allowed_values = ["INBOUNDCALL", "INBOUNDEMAIL", "INBOUNDSHORTMESSAGE", "INQUEUECALL", "OUTBOUNDCALL", "SECURECALL", "SPEECH", "SURVEYINVITE", "WORKFLOW"]
268
+ if @flow_type && !allowed_values.include?(@flow_type)
269
+ return false
270
+ end
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
+
305
+
306
+ end
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ # Custom attribute writer method checking allowed values (enum).
326
+ # @param [Object] flow_type Object to be assigned
327
+ def flow_type=(flow_type)
328
+ allowed_values = ["INBOUNDCALL", "INBOUNDEMAIL", "INBOUNDSHORTMESSAGE", "INQUEUECALL", "OUTBOUNDCALL", "SECURECALL", "SPEECH", "SURVEYINVITE", "WORKFLOW"]
329
+ if flow_type && !allowed_values.include?(flow_type)
330
+ fail ArgumentError, "invalid value for 'flow_type', must be one of #{allowed_values}."
331
+ end
332
+ @flow_type = flow_type
333
+ end
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+ # Checks equality by comparing each attribute.
379
+ # @param [Object] Object to be compared
380
+ def ==(o)
381
+ return true if self.equal?(o)
382
+ self.class == o.class &&
383
+ flow_id == o.flow_id &&
384
+ flow_name == o.flow_name &&
385
+ flow_version == o.flow_version &&
386
+ flow_type == o.flow_type &&
387
+ exit_reason == o.exit_reason &&
388
+ transfer_type == o.transfer_type &&
389
+ transfer_target_name == o.transfer_target_name &&
390
+ transfer_target_address == o.transfer_target_address &&
391
+ issued_callback == o.issued_callback &&
392
+ starting_language == o.starting_language &&
393
+ ending_language == o.ending_language &&
394
+ outcomes == o.outcomes
395
+ end
396
+
397
+ # @see the `==` method
398
+ # @param [Object] Object to be compared
399
+ def eql?(o)
400
+ self == o
401
+ end
402
+
403
+ # Calculates hash code according to all attributes.
404
+ # @return [Fixnum] Hash code
405
+ def hash
406
+ [flow_id, flow_name, flow_version, flow_type, exit_reason, transfer_type, transfer_target_name, transfer_target_address, issued_callback, starting_language, ending_language, outcomes].hash
407
+ end
408
+
409
+ # build the object from hash
410
+ def build_from_hash(attributes)
411
+ return nil unless attributes.is_a?(Hash)
412
+ self.class.swagger_types.each_pair do |key, type|
413
+ if type =~ /^Array<(.*)>/i
414
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
415
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
416
+ else
417
+ #TODO show warning in debug mode
418
+ end
419
+ elsif !attributes[self.class.attribute_map[key]].nil?
420
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
421
+ else
422
+ # data not found in attributes(hash), not an issue as the data can be optional
423
+ end
424
+ end
425
+
426
+ self
427
+ end
428
+
429
+ def _deserialize(type, value)
430
+ case type.to_sym
431
+ when :DateTime
432
+ DateTime.parse(value)
433
+ when :Date
434
+ Date.parse(value)
435
+ when :String
436
+ value.to_s
437
+ when :Integer
438
+ value.to_i
439
+ when :Float
440
+ value.to_f
441
+ when :BOOLEAN
442
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
443
+ true
444
+ else
445
+ false
446
+ end
447
+ when :Object
448
+ # generic object (usually a Hash), return directly
449
+ value
450
+ when /\AArray<(?<inner_type>.+)>\z/
451
+ inner_type = Regexp.last_match[:inner_type]
452
+ value.map { |v| _deserialize(inner_type, v) }
453
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
454
+ k_type = Regexp.last_match[:k_type]
455
+ v_type = Regexp.last_match[:v_type]
456
+ {}.tap do |hash|
457
+ value.each do |k, v|
458
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
459
+ end
460
+ end
461
+ else # model
462
+ _model = Object.const_get("PureCloud").const_get(type).new
463
+ _model.build_from_hash(value)
464
+ end
465
+ end
466
+
467
+ def to_s
468
+ to_hash.to_s
469
+ end
470
+
471
+ # to_body is an alias to to_body (backward compatibility))
472
+ def to_body
473
+ to_hash
474
+ end
475
+
476
+ # return the object in the form of hash
477
+ def to_hash
478
+ hash = {}
479
+ self.class.attribute_map.each_pair do |attr, param|
480
+ value = self.send(attr)
481
+ next if value.nil?
482
+ hash[param] = _to_hash(value)
483
+ end
484
+ hash
485
+ end
486
+
487
+ # Method to output non-array value in the form of hash
488
+ # For object, use to_hash. Otherwise, just return the value
489
+ def _to_hash(value)
490
+ if value.is_a?(Array)
491
+ value.compact.map{ |v| _to_hash(v) }
492
+ elsif value.is_a?(Hash)
493
+ {}.tap do |hash|
494
+ value.each { |k, v| hash[k] = _to_hash(v) }
495
+ end
496
+ elsif value.respond_to? :to_hash
497
+ value.to_hash
498
+ else
499
+ value
500
+ end
501
+ end
502
+
503
+ end
504
+ end