purecloudplatformclientv2 19.0.0 → 20.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 (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,226 @@
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 MessageConversationNotificationMessages
21
+ attr_accessor :message
22
+
23
+ attr_accessor :message_time
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'message' => :'message',
30
+
31
+ :'message_time' => :'messageTime'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+
40
+ :'message' => :'MessageConversationNotificationUriReference',
41
+
42
+ :'message_time' => :'DateTime'
43
+
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
54
+
55
+
56
+ if attributes.has_key?(:'message')
57
+
58
+
59
+ self.message = attributes[:'message']
60
+
61
+
62
+ end
63
+
64
+
65
+ if attributes.has_key?(:'messageTime')
66
+
67
+
68
+ self.message_time = attributes[:'messageTime']
69
+
70
+
71
+ end
72
+
73
+
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properies with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+
81
+
82
+ return invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ end
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ # Checks equality by comparing each attribute.
111
+ # @param [Object] Object to be compared
112
+ def ==(o)
113
+ return true if self.equal?(o)
114
+ self.class == o.class &&
115
+ message == o.message &&
116
+ message_time == o.message_time
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Fixnum] Hash code
127
+ def hash
128
+ [message, message_time].hash
129
+ end
130
+
131
+ # build the object from hash
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ if type =~ /^Array<(.*)>/i
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
138
+ else
139
+ #TODO show warning in debug mode
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ else
144
+ # data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :BOOLEAN
164
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ _model = Object.const_get("PureCloud").const_get(type).new
185
+ _model.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_body (backward compatibility))
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # return the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Method to output non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map{ |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+
225
+ end
226
+ end
@@ -0,0 +1,922 @@
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 MessageConversationNotificationParticipants
21
+ attr_accessor :id
22
+
23
+ attr_accessor :name
24
+
25
+ attr_accessor :address
26
+
27
+ attr_accessor :start_time
28
+
29
+ attr_accessor :connected_time
30
+
31
+ attr_accessor :end_time
32
+
33
+ attr_accessor :start_hold_time
34
+
35
+ attr_accessor :purpose
36
+
37
+ attr_accessor :state
38
+
39
+ attr_accessor :direction
40
+
41
+ attr_accessor :disconnect_type
42
+
43
+ attr_accessor :held
44
+
45
+ attr_accessor :wrapup_required
46
+
47
+ attr_accessor :wrapup_prompt
48
+
49
+ attr_accessor :user
50
+
51
+ attr_accessor :queue
52
+
53
+ attr_accessor :attributes
54
+
55
+ attr_accessor :error_info
56
+
57
+ attr_accessor :script
58
+
59
+ attr_accessor :wrapup_timeout_ms
60
+
61
+ attr_accessor :wrapup_skipped
62
+
63
+ attr_accessor :provider
64
+
65
+ attr_accessor :external_contact
66
+
67
+ attr_accessor :external_organization
68
+
69
+ attr_accessor :wrapup
70
+
71
+ attr_accessor :peer
72
+
73
+ attr_accessor :screen_recording_state
74
+
75
+ attr_accessor :messages
76
+
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+
81
+ :'id' => :'id',
82
+
83
+ :'name' => :'name',
84
+
85
+ :'address' => :'address',
86
+
87
+ :'start_time' => :'startTime',
88
+
89
+ :'connected_time' => :'connectedTime',
90
+
91
+ :'end_time' => :'endTime',
92
+
93
+ :'start_hold_time' => :'startHoldTime',
94
+
95
+ :'purpose' => :'purpose',
96
+
97
+ :'state' => :'state',
98
+
99
+ :'direction' => :'direction',
100
+
101
+ :'disconnect_type' => :'disconnectType',
102
+
103
+ :'held' => :'held',
104
+
105
+ :'wrapup_required' => :'wrapupRequired',
106
+
107
+ :'wrapup_prompt' => :'wrapupPrompt',
108
+
109
+ :'user' => :'user',
110
+
111
+ :'queue' => :'queue',
112
+
113
+ :'attributes' => :'attributes',
114
+
115
+ :'error_info' => :'errorInfo',
116
+
117
+ :'script' => :'script',
118
+
119
+ :'wrapup_timeout_ms' => :'wrapupTimeoutMs',
120
+
121
+ :'wrapup_skipped' => :'wrapupSkipped',
122
+
123
+ :'provider' => :'provider',
124
+
125
+ :'external_contact' => :'externalContact',
126
+
127
+ :'external_organization' => :'externalOrganization',
128
+
129
+ :'wrapup' => :'wrapup',
130
+
131
+ :'peer' => :'peer',
132
+
133
+ :'screen_recording_state' => :'screenRecordingState',
134
+
135
+ :'messages' => :'messages'
136
+
137
+ }
138
+ end
139
+
140
+ # Attribute type mapping.
141
+ def self.swagger_types
142
+ {
143
+
144
+ :'id' => :'String',
145
+
146
+ :'name' => :'String',
147
+
148
+ :'address' => :'String',
149
+
150
+ :'start_time' => :'DateTime',
151
+
152
+ :'connected_time' => :'DateTime',
153
+
154
+ :'end_time' => :'DateTime',
155
+
156
+ :'start_hold_time' => :'DateTime',
157
+
158
+ :'purpose' => :'String',
159
+
160
+ :'state' => :'String',
161
+
162
+ :'direction' => :'String',
163
+
164
+ :'disconnect_type' => :'String',
165
+
166
+ :'held' => :'BOOLEAN',
167
+
168
+ :'wrapup_required' => :'BOOLEAN',
169
+
170
+ :'wrapup_prompt' => :'String',
171
+
172
+ :'user' => :'DocumentDataV2NotificationCreatedBy',
173
+
174
+ :'queue' => :'MessageConversationNotificationUriReference',
175
+
176
+ :'attributes' => :'Hash<String, String>',
177
+
178
+ :'error_info' => :'MessageConversationNotificationErrorInfo',
179
+
180
+ :'script' => :'MessageConversationNotificationUriReference',
181
+
182
+ :'wrapup_timeout_ms' => :'Integer',
183
+
184
+ :'wrapup_skipped' => :'BOOLEAN',
185
+
186
+ :'provider' => :'String',
187
+
188
+ :'external_contact' => :'MessageConversationNotificationUriReference',
189
+
190
+ :'external_organization' => :'MessageConversationNotificationUriReference',
191
+
192
+ :'wrapup' => :'ConversationNotificationWrapup',
193
+
194
+ :'peer' => :'String',
195
+
196
+ :'screen_recording_state' => :'String',
197
+
198
+ :'messages' => :'Array<MessageConversationNotificationMessages>'
199
+
200
+ }
201
+ end
202
+
203
+ # Initializes the object
204
+ # @param [Hash] attributes Model attributes in the form of hash
205
+ def initialize(attributes = {})
206
+ return unless attributes.is_a?(Hash)
207
+
208
+ # convert string to symbol for hash key
209
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
210
+
211
+
212
+ if attributes.has_key?(:'id')
213
+
214
+
215
+ self.id = attributes[:'id']
216
+
217
+
218
+ end
219
+
220
+
221
+ if attributes.has_key?(:'name')
222
+
223
+
224
+ self.name = attributes[:'name']
225
+
226
+
227
+ end
228
+
229
+
230
+ if attributes.has_key?(:'address')
231
+
232
+
233
+ self.address = attributes[:'address']
234
+
235
+
236
+ end
237
+
238
+
239
+ if attributes.has_key?(:'startTime')
240
+
241
+
242
+ self.start_time = attributes[:'startTime']
243
+
244
+
245
+ end
246
+
247
+
248
+ if attributes.has_key?(:'connectedTime')
249
+
250
+
251
+ self.connected_time = attributes[:'connectedTime']
252
+
253
+
254
+ end
255
+
256
+
257
+ if attributes.has_key?(:'endTime')
258
+
259
+
260
+ self.end_time = attributes[:'endTime']
261
+
262
+
263
+ end
264
+
265
+
266
+ if attributes.has_key?(:'startHoldTime')
267
+
268
+
269
+ self.start_hold_time = attributes[:'startHoldTime']
270
+
271
+
272
+ end
273
+
274
+
275
+ if attributes.has_key?(:'purpose')
276
+
277
+
278
+ self.purpose = attributes[:'purpose']
279
+
280
+
281
+ end
282
+
283
+
284
+ if attributes.has_key?(:'state')
285
+
286
+
287
+ self.state = attributes[:'state']
288
+
289
+
290
+ end
291
+
292
+
293
+ if attributes.has_key?(:'direction')
294
+
295
+
296
+ self.direction = attributes[:'direction']
297
+
298
+
299
+ end
300
+
301
+
302
+ if attributes.has_key?(:'disconnectType')
303
+
304
+
305
+ self.disconnect_type = attributes[:'disconnectType']
306
+
307
+
308
+ end
309
+
310
+
311
+ if attributes.has_key?(:'held')
312
+
313
+
314
+ self.held = attributes[:'held']
315
+
316
+
317
+ end
318
+
319
+
320
+ if attributes.has_key?(:'wrapupRequired')
321
+
322
+
323
+ self.wrapup_required = attributes[:'wrapupRequired']
324
+
325
+
326
+ end
327
+
328
+
329
+ if attributes.has_key?(:'wrapupPrompt')
330
+
331
+
332
+ self.wrapup_prompt = attributes[:'wrapupPrompt']
333
+
334
+
335
+ end
336
+
337
+
338
+ if attributes.has_key?(:'user')
339
+
340
+
341
+ self.user = attributes[:'user']
342
+
343
+
344
+ end
345
+
346
+
347
+ if attributes.has_key?(:'queue')
348
+
349
+
350
+ self.queue = attributes[:'queue']
351
+
352
+
353
+ end
354
+
355
+
356
+ if attributes.has_key?(:'attributes')
357
+
358
+ if (value = attributes[:'attributes']).is_a?(Array)
359
+ self.attributes = value
360
+ end
361
+
362
+
363
+
364
+ end
365
+
366
+
367
+ if attributes.has_key?(:'errorInfo')
368
+
369
+
370
+ self.error_info = attributes[:'errorInfo']
371
+
372
+
373
+ end
374
+
375
+
376
+ if attributes.has_key?(:'script')
377
+
378
+
379
+ self.script = attributes[:'script']
380
+
381
+
382
+ end
383
+
384
+
385
+ if attributes.has_key?(:'wrapupTimeoutMs')
386
+
387
+
388
+ self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs']
389
+
390
+
391
+ end
392
+
393
+
394
+ if attributes.has_key?(:'wrapupSkipped')
395
+
396
+
397
+ self.wrapup_skipped = attributes[:'wrapupSkipped']
398
+
399
+
400
+ end
401
+
402
+
403
+ if attributes.has_key?(:'provider')
404
+
405
+
406
+ self.provider = attributes[:'provider']
407
+
408
+
409
+ end
410
+
411
+
412
+ if attributes.has_key?(:'externalContact')
413
+
414
+
415
+ self.external_contact = attributes[:'externalContact']
416
+
417
+
418
+ end
419
+
420
+
421
+ if attributes.has_key?(:'externalOrganization')
422
+
423
+
424
+ self.external_organization = attributes[:'externalOrganization']
425
+
426
+
427
+ end
428
+
429
+
430
+ if attributes.has_key?(:'wrapup')
431
+
432
+
433
+ self.wrapup = attributes[:'wrapup']
434
+
435
+
436
+ end
437
+
438
+
439
+ if attributes.has_key?(:'peer')
440
+
441
+
442
+ self.peer = attributes[:'peer']
443
+
444
+
445
+ end
446
+
447
+
448
+ if attributes.has_key?(:'screenRecordingState')
449
+
450
+
451
+ self.screen_recording_state = attributes[:'screenRecordingState']
452
+
453
+
454
+ end
455
+
456
+
457
+ if attributes.has_key?(:'messages')
458
+
459
+ if (value = attributes[:'messages']).is_a?(Array)
460
+ self.messages = value
461
+ end
462
+
463
+
464
+
465
+ end
466
+
467
+
468
+ end
469
+
470
+ # Show invalid properties with the reasons. Usually used together with valid?
471
+ # @return Array for valid properies with the reasons
472
+ def list_invalid_properties
473
+ invalid_properties = Array.new
474
+
475
+
476
+ return invalid_properties
477
+ end
478
+
479
+ # Check to see if the all the properties in the model are valid
480
+ # @return true if the model is valid
481
+ def valid?
482
+
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
+ allowed_values = ["alerting", "dialing", "contacting", "offering", "connected", "disconnected", "terminated", "converting", "uploading", "transmitting", "scheduled", "none"]
518
+ if @state && !allowed_values.include?(@state)
519
+ return false
520
+ end
521
+
522
+
523
+
524
+
525
+
526
+ allowed_values = ["inbound", "outbound"]
527
+ if @direction && !allowed_values.include?(@direction)
528
+ return false
529
+ end
530
+
531
+
532
+
533
+
534
+
535
+ allowed_values = ["endpoint", "client", "system", "transfer", "timeout", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam", "uncallable"]
536
+ if @disconnect_type && !allowed_values.include?(@disconnect_type)
537
+ return false
538
+ end
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+ end
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+ # Custom attribute writer method checking allowed values (enum).
655
+ # @param [Object] state Object to be assigned
656
+ def state=(state)
657
+ allowed_values = ["alerting", "dialing", "contacting", "offering", "connected", "disconnected", "terminated", "converting", "uploading", "transmitting", "scheduled", "none"]
658
+ if state && !allowed_values.include?(state)
659
+ fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
660
+ end
661
+ @state = state
662
+ end
663
+
664
+
665
+
666
+
667
+
668
+ # Custom attribute writer method checking allowed values (enum).
669
+ # @param [Object] direction Object to be assigned
670
+ def direction=(direction)
671
+ allowed_values = ["inbound", "outbound"]
672
+ if direction && !allowed_values.include?(direction)
673
+ fail ArgumentError, "invalid value for 'direction', must be one of #{allowed_values}."
674
+ end
675
+ @direction = direction
676
+ end
677
+
678
+
679
+
680
+
681
+
682
+ # Custom attribute writer method checking allowed values (enum).
683
+ # @param [Object] disconnect_type Object to be assigned
684
+ def disconnect_type=(disconnect_type)
685
+ allowed_values = ["endpoint", "client", "system", "transfer", "timeout", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "transport.failure", "error", "peer", "other", "spam", "uncallable"]
686
+ if disconnect_type && !allowed_values.include?(disconnect_type)
687
+ fail ArgumentError, "invalid value for 'disconnect_type', must be one of #{allowed_values}."
688
+ end
689
+ @disconnect_type = disconnect_type
690
+ end
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+ # Checks equality by comparing each attribute.
781
+ # @param [Object] Object to be compared
782
+ def ==(o)
783
+ return true if self.equal?(o)
784
+ self.class == o.class &&
785
+ id == o.id &&
786
+ name == o.name &&
787
+ address == o.address &&
788
+ start_time == o.start_time &&
789
+ connected_time == o.connected_time &&
790
+ end_time == o.end_time &&
791
+ start_hold_time == o.start_hold_time &&
792
+ purpose == o.purpose &&
793
+ state == o.state &&
794
+ direction == o.direction &&
795
+ disconnect_type == o.disconnect_type &&
796
+ held == o.held &&
797
+ wrapup_required == o.wrapup_required &&
798
+ wrapup_prompt == o.wrapup_prompt &&
799
+ user == o.user &&
800
+ queue == o.queue &&
801
+ attributes == o.attributes &&
802
+ error_info == o.error_info &&
803
+ script == o.script &&
804
+ wrapup_timeout_ms == o.wrapup_timeout_ms &&
805
+ wrapup_skipped == o.wrapup_skipped &&
806
+ provider == o.provider &&
807
+ external_contact == o.external_contact &&
808
+ external_organization == o.external_organization &&
809
+ wrapup == o.wrapup &&
810
+ peer == o.peer &&
811
+ screen_recording_state == o.screen_recording_state &&
812
+ messages == o.messages
813
+ end
814
+
815
+ # @see the `==` method
816
+ # @param [Object] Object to be compared
817
+ def eql?(o)
818
+ self == o
819
+ end
820
+
821
+ # Calculates hash code according to all attributes.
822
+ # @return [Fixnum] Hash code
823
+ def hash
824
+ [id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, messages].hash
825
+ end
826
+
827
+ # build the object from hash
828
+ def build_from_hash(attributes)
829
+ return nil unless attributes.is_a?(Hash)
830
+ self.class.swagger_types.each_pair do |key, type|
831
+ if type =~ /^Array<(.*)>/i
832
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
833
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
834
+ else
835
+ #TODO show warning in debug mode
836
+ end
837
+ elsif !attributes[self.class.attribute_map[key]].nil?
838
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
839
+ else
840
+ # data not found in attributes(hash), not an issue as the data can be optional
841
+ end
842
+ end
843
+
844
+ self
845
+ end
846
+
847
+ def _deserialize(type, value)
848
+ case type.to_sym
849
+ when :DateTime
850
+ DateTime.parse(value)
851
+ when :Date
852
+ Date.parse(value)
853
+ when :String
854
+ value.to_s
855
+ when :Integer
856
+ value.to_i
857
+ when :Float
858
+ value.to_f
859
+ when :BOOLEAN
860
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
861
+ true
862
+ else
863
+ false
864
+ end
865
+ when :Object
866
+ # generic object (usually a Hash), return directly
867
+ value
868
+ when /\AArray<(?<inner_type>.+)>\z/
869
+ inner_type = Regexp.last_match[:inner_type]
870
+ value.map { |v| _deserialize(inner_type, v) }
871
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
872
+ k_type = Regexp.last_match[:k_type]
873
+ v_type = Regexp.last_match[:v_type]
874
+ {}.tap do |hash|
875
+ value.each do |k, v|
876
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
877
+ end
878
+ end
879
+ else # model
880
+ _model = Object.const_get("PureCloud").const_get(type).new
881
+ _model.build_from_hash(value)
882
+ end
883
+ end
884
+
885
+ def to_s
886
+ to_hash.to_s
887
+ end
888
+
889
+ # to_body is an alias to to_body (backward compatibility))
890
+ def to_body
891
+ to_hash
892
+ end
893
+
894
+ # return the object in the form of hash
895
+ def to_hash
896
+ hash = {}
897
+ self.class.attribute_map.each_pair do |attr, param|
898
+ value = self.send(attr)
899
+ next if value.nil?
900
+ hash[param] = _to_hash(value)
901
+ end
902
+ hash
903
+ end
904
+
905
+ # Method to output non-array value in the form of hash
906
+ # For object, use to_hash. Otherwise, just return the value
907
+ def _to_hash(value)
908
+ if value.is_a?(Array)
909
+ value.compact.map{ |v| _to_hash(v) }
910
+ elsif value.is_a?(Hash)
911
+ {}.tap do |hash|
912
+ value.each { |k, v| hash[k] = _to_hash(v) }
913
+ end
914
+ elsif value.respond_to? :to_hash
915
+ value.to_hash
916
+ else
917
+ value
918
+ end
919
+ end
920
+
921
+ end
922
+ end