purecloudplatformclientv2 90.0.0 → 91.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) 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/ArrayNode.md +5 -5
  6. data/docs/AttemptLimitsEntityListing.md +1 -1
  7. data/docs/AuthzDivisionEntityListing.md +1 -1
  8. data/docs/BuAgentScheduleActivity.md +2 -0
  9. data/docs/CalibrationEntityListing.md +1 -1
  10. data/docs/CallConversationEntityListing.md +1 -1
  11. data/docs/CallHistoryConversationEntityListing.md +1 -1
  12. data/docs/CallableTimeSetEntityListing.md +1 -1
  13. data/docs/CallbackConversationEntityListing.md +1 -1
  14. data/docs/CampaignDivisionViewListing.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/ClientAppEntityListing.md +1 -1
  21. data/docs/CoachingAnnotationList.md +1 -1
  22. data/docs/CoachingAppointmentResponseList.md +1 -1
  23. data/docs/CoachingNotificationList.md +1 -1
  24. data/docs/CobrowseConversationEntityListing.md +1 -1
  25. data/docs/CommandStatusEntityListing.md +1 -1
  26. data/docs/ConsumedResourcesEntityListing.md +1 -1
  27. data/docs/ConsumingResourcesEntityListing.md +1 -1
  28. data/docs/ContactListDivisionViewListing.md +1 -1
  29. data/docs/ContactListEntityListing.md +1 -1
  30. data/docs/ContactListFilterEntityListing.md +1 -1
  31. data/docs/ContactListing.md +1 -1
  32. data/docs/ConversationAggregationQuery.md +1 -1
  33. data/docs/ConversationEntityListing.md +1 -1
  34. data/docs/CredentialInfoListing.md +1 -1
  35. data/docs/CredentialTypeListing.md +1 -1
  36. data/docs/DIDEntityListing.md +1 -1
  37. data/docs/DIDPoolEntityListing.md +1 -1
  38. data/docs/DataTableRowEntityListing.md +1 -1
  39. data/docs/DataTablesDomainEntityListing.md +1 -1
  40. data/docs/DependencyObjectEntityListing.md +1 -1
  41. data/docs/DependencyTypeEntityListing.md +1 -1
  42. data/docs/DialerEventEntityListing.md +1 -1
  43. data/docs/DialogflowAgentSummaryEntityListing.md +1 -1
  44. data/docs/DirectoryUserDevicesListing.md +1 -1
  45. data/docs/DivsPermittedEntityListing.md +1 -1
  46. data/docs/DncListDivisionViewListing.md +1 -1
  47. data/docs/DncListEntityListing.md +1 -1
  48. data/docs/DocumentAuditEntityListing.md +1 -1
  49. data/docs/DocumentEntityListing.md +1 -1
  50. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  51. data/docs/DomainEntityListing.md +1 -1
  52. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  53. data/docs/DomainEntityListingQueryResult.md +1 -1
  54. data/docs/DomainEntityListingSurveyForm.md +1 -1
  55. data/docs/DomainOrganizationRole.md +1 -1
  56. data/docs/DomainOrganizationRoleCreate.md +1 -1
  57. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  58. data/docs/EdgeEntityListing.md +1 -1
  59. data/docs/EdgeGroupEntityListing.md +1 -1
  60. data/docs/EdgeLineEntityListing.md +1 -1
  61. data/docs/EmailConversationEntityListing.md +1 -1
  62. data/docs/EmailMessageListing.md +1 -1
  63. data/docs/EmergencyGroupListing.md +1 -1
  64. data/docs/EncryptionKeyEntityListing.md +1 -1
  65. data/docs/EntityListing.md +5 -1
  66. data/docs/EvaluationAggregationQuery.md +1 -1
  67. data/docs/EvaluationEntityListing.md +1 -1
  68. data/docs/EvaluationFormEntityListing.md +1 -1
  69. data/docs/EvaluatorActivityEntityListing.md +1 -1
  70. data/docs/ExtensionEntityListing.md +1 -1
  71. data/docs/ExtensionPoolEntityListing.md +1 -1
  72. data/docs/ExternalOrganizationListing.md +1 -1
  73. data/docs/FacebookIntegrationEntityListing.md +1 -1
  74. data/docs/FaxDocumentEntityListing.md +1 -1
  75. data/docs/FlowAggregationQuery.md +1 -1
  76. data/docs/FlowDivisionViewEntityListing.md +1 -1
  77. data/docs/FlowEntityListing.md +1 -1
  78. data/docs/FlowOutcomeListing.md +1 -1
  79. data/docs/FlowVersionEntityListing.md +1 -1
  80. data/docs/GDPRRequestEntityListing.md +1 -1
  81. data/docs/GDPRSubjectEntityListing.md +1 -1
  82. data/docs/GreetingListing.md +1 -1
  83. data/docs/GroupEntityListing.md +1 -1
  84. data/docs/GroupProfileEntityListing.md +1 -1
  85. data/docs/IVREntityListing.md +1 -1
  86. data/docs/InboundDomainEntityListing.md +1 -1
  87. data/docs/InboundRouteEntityListing.md +1 -1
  88. data/docs/IntegrationEntityListing.md +1 -1
  89. data/docs/IntegrationEventEntityListing.md +1 -1
  90. data/docs/IntegrationTypeEntityListing.md +1 -1
  91. data/docs/InteractionStatsAlertContainer.md +1 -1
  92. data/docs/InteractionStatsRuleContainer.md +1 -1
  93. data/docs/JsonNode.md +5 -5
  94. data/docs/KeywordSetEntityListing.md +1 -1
  95. data/docs/LanguageEntityListing.md +1 -1
  96. data/docs/LexBotAliasEntityListing.md +1 -1
  97. data/docs/LexBotEntityListing.md +1 -1
  98. data/docs/LibraryEntityListing.md +1 -1
  99. data/docs/LineBaseEntityListing.md +1 -1
  100. data/docs/LineEntityListing.md +1 -1
  101. data/docs/LineIntegrationEntityListing.md +1 -1
  102. data/docs/LocationEntityListing.md +1 -1
  103. data/docs/LogicalInterfaceEntityListing.md +1 -1
  104. data/docs/MessageConversationEntityListing.md +1 -1
  105. data/docs/MessagingIntegrationEntityListing.md +1 -1
  106. data/docs/MessagingStickerEntityListing.md +1 -1
  107. data/docs/NluDomainListing.md +1 -1
  108. data/docs/NluDomainVersionListing.md +1 -1
  109. data/docs/NluFeedbackListing.md +1 -1
  110. data/docs/NoteListing.md +1 -1
  111. data/docs/OAuthClientEntityListing.md +1 -1
  112. data/docs/OAuthProviderEntityListing.md +1 -1
  113. data/docs/OrganizationPresenceEntityListing.md +1 -1
  114. data/docs/OrganizationRoleEntityListing.md +1 -1
  115. data/docs/OrphanRecordingListing.md +1 -1
  116. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  117. data/docs/OutboundRouteEntityListing.md +1 -1
  118. data/docs/PermissionCollectionEntityListing.md +1 -1
  119. data/docs/PhoneBaseEntityListing.md +1 -1
  120. data/docs/PhoneEntityListing.md +1 -1
  121. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  122. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  123. data/docs/PolicyEntityListing.md +1 -1
  124. data/docs/PromptAssetEntityListing.md +1 -1
  125. data/docs/PromptEntityListing.md +1 -1
  126. data/docs/QualityAuditPage.md +1 -1
  127. data/docs/QueueEntityListing.md +1 -1
  128. data/docs/QueueMemberEntityListing.md +1 -1
  129. data/docs/RecipientListing.md +1 -1
  130. data/docs/RecordingJobEntityListing.md +1 -1
  131. data/docs/RelationshipListing.md +1 -1
  132. data/docs/ReportMetaDataEntityListing.md +1 -1
  133. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  134. data/docs/ReportScheduleEntityListing.md +1 -1
  135. data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
  136. data/docs/ReportingExportJobListing.md +1 -1
  137. data/docs/ReportingExportMetadataJobListing.md +1 -1
  138. data/docs/ResponseEntityList.md +1 -1
  139. data/docs/ResponseEntityListing.md +1 -1
  140. data/docs/ResponseSetEntityListing.md +1 -1
  141. data/docs/RuleSetEntityListing.md +1 -1
  142. data/docs/ScheduleEntityListing.md +1 -1
  143. data/docs/ScheduleGroupEntityListing.md +1 -1
  144. data/docs/SchemaCategoryEntityListing.md +1 -1
  145. data/docs/SchemaReferenceEntityListing.md +1 -1
  146. data/docs/ScreenRecordingSessionListing.md +1 -1
  147. data/docs/ScriptEntityListing.md +1 -1
  148. data/docs/SecurityProfileEntityListing.md +1 -1
  149. data/docs/ShareEntityListing.md +1 -1
  150. data/docs/SiteEntityListing.md +1 -1
  151. data/docs/SkillEntityListing.md +1 -1
  152. data/docs/SmsAddressEntityListing.md +1 -1
  153. data/docs/SmsPhoneNumberEntityListing.md +1 -1
  154. data/docs/StationEntityListing.md +1 -1
  155. data/docs/SubjectDivisionGrantsEntityListing.md +1 -1
  156. data/docs/SurveyAggregationQuery.md +1 -1
  157. data/docs/SurveyFormEntityListing.md +1 -1
  158. data/docs/SystemPromptAssetEntityListing.md +1 -1
  159. data/docs/SystemPromptEntityListing.md +1 -1
  160. data/docs/TagValueEntityListing.md +1 -1
  161. data/docs/TextMessageListing.md +1 -1
  162. data/docs/TimeZoneEntityListing.md +1 -1
  163. data/docs/TrunkBaseEntityListing.md +1 -1
  164. data/docs/TrunkEntityListing.md +1 -1
  165. data/docs/TrunkMetabaseEntityListing.md +1 -1
  166. data/docs/TrustEntityListing.md +1 -1
  167. data/docs/TrustUserEntityListing.md +1 -1
  168. data/docs/TrustorEntityListing.md +1 -1
  169. data/docs/TtsEngineEntityListing.md +1 -1
  170. data/docs/TtsVoiceEntityListing.md +1 -1
  171. data/docs/TwitterIntegrationEntityListing.md +1 -1
  172. data/docs/UserActionCategoryEntityListing.md +1 -1
  173. data/docs/UserAggregationQuery.md +1 -1
  174. data/docs/UserAppEntityListing.md +1 -1
  175. data/docs/UserEntityListing.md +1 -1
  176. data/docs/UserLanguageEntityListing.md +1 -1
  177. data/docs/UserProfileEntityListing.md +1 -1
  178. data/docs/UserQueueEntityListing.md +1 -1
  179. data/docs/UserRecordingEntityListing.md +1 -1
  180. data/docs/UserSkillEntityListing.md +1 -1
  181. data/docs/ViewFilter.md +2 -0
  182. data/docs/VoicemailMessageEntityListing.md +1 -1
  183. data/docs/VoicemailMessagesTopicOwner.md +13 -0
  184. data/docs/VoicemailMessagesTopicVoicemailCopyRecord.md +14 -0
  185. data/docs/VoicemailMessagesTopicVoicemailMessage.md +2 -0
  186. data/docs/WebChatMemberInfoEntityList.md +1 -1
  187. data/docs/WfmBuShortTermForecastImportCompleteTopicBuForecastModification.md +23 -0
  188. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecast.md +24 -0
  189. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecastNotification.md +15 -0
  190. data/docs/WfmBuShortTermForecastImportCompleteTopicForecastSourceDayPointer.md +17 -0
  191. data/docs/WfmBuShortTermForecastImportCompleteTopicModificationIntervalOffsetValue.md +14 -0
  192. data/docs/WfmBuShortTermForecastImportCompleteTopicUserReference.md +13 -0
  193. data/docs/WfmBuShortTermForecastImportCompleteTopicWfmVersionedEntityMetadata.md +15 -0
  194. data/docs/WhatsAppIntegrationEntityListing.md +1 -1
  195. data/docs/WorkforceManagementApi.md +3 -3
  196. data/docs/WorkspaceEntityListing.md +1 -1
  197. data/docs/WorkspaceMemberEntityListing.md +1 -1
  198. data/docs/WrapupCodeEntityListing.md +1 -1
  199. data/lib/purecloudplatformclientv2.rb +9 -0
  200. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +6 -6
  201. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  202. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +12 -12
  203. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +12 -12
  204. data/lib/purecloudplatformclientv2/models/array_node.rb +51 -51
  205. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +12 -12
  206. data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
  207. data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +2 -2
  208. data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +2 -2
  209. data/lib/purecloudplatformclientv2/models/audit_query_request.rb +2 -2
  210. data/lib/purecloudplatformclientv2/models/audit_query_service.rb +2 -2
  211. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +12 -12
  212. data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +70 -4
  213. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +12 -12
  214. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +12 -12
  215. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +12 -12
  216. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +12 -12
  217. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +12 -12
  218. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +12 -12
  219. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +12 -12
  220. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +12 -12
  221. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +12 -12
  222. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +12 -12
  223. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +12 -12
  224. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +12 -12
  225. data/lib/purecloudplatformclientv2/models/coaching_annotation_list.rb +12 -12
  226. data/lib/purecloudplatformclientv2/models/coaching_appointment_response_list.rb +12 -12
  227. data/lib/purecloudplatformclientv2/models/coaching_notification_list.rb +12 -12
  228. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +12 -12
  229. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +12 -12
  230. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +12 -12
  231. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +12 -12
  232. data/lib/purecloudplatformclientv2/models/contact_list_division_view_listing.rb +12 -12
  233. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +12 -12
  234. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +12 -12
  235. data/lib/purecloudplatformclientv2/models/contact_listing.rb +12 -12
  236. data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +1 -1
  237. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +12 -12
  238. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +12 -12
  239. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +12 -12
  240. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +12 -12
  241. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +12 -12
  242. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +12 -12
  243. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +12 -12
  244. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +12 -12
  245. data/lib/purecloudplatformclientv2/models/dialogflow_agent_summary_entity_listing.rb +12 -12
  246. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +12 -12
  247. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +12 -12
  248. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +12 -12
  249. data/lib/purecloudplatformclientv2/models/divs_permitted_entity_listing.rb +12 -12
  250. data/lib/purecloudplatformclientv2/models/dnc_list_division_view_listing.rb +12 -12
  251. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +12 -12
  252. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +12 -12
  253. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +12 -12
  254. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +12 -12
  255. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +12 -12
  256. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +12 -12
  257. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +12 -12
  258. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +12 -12
  259. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  260. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  261. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  262. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +12 -12
  263. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +12 -12
  264. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +12 -12
  265. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +12 -12
  266. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +12 -12
  267. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +12 -12
  268. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +12 -12
  269. data/lib/purecloudplatformclientv2/models/entity_listing.rb +104 -4
  270. data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +1 -1
  271. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +12 -12
  272. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +12 -12
  273. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +12 -12
  274. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +12 -12
  275. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +12 -12
  276. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +12 -12
  277. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +12 -12
  278. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +12 -12
  279. data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +1 -1
  280. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +12 -12
  281. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +12 -12
  282. data/lib/purecloudplatformclientv2/models/flow_outcome_listing.rb +12 -12
  283. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +12 -12
  284. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +12 -12
  285. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +12 -12
  286. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +12 -12
  287. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +12 -12
  288. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +12 -12
  289. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +12 -12
  290. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +12 -12
  291. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +12 -12
  292. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +12 -12
  293. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +12 -12
  294. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +12 -12
  295. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +12 -12
  296. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +12 -12
  297. data/lib/purecloudplatformclientv2/models/json_node.rb +51 -51
  298. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +12 -12
  299. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +12 -12
  300. data/lib/purecloudplatformclientv2/models/lex_bot_alias_entity_listing.rb +12 -12
  301. data/lib/purecloudplatformclientv2/models/lex_bot_entity_listing.rb +12 -12
  302. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +12 -12
  303. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +12 -12
  304. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +12 -12
  305. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +12 -12
  306. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +12 -12
  307. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +12 -12
  308. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +12 -12
  309. data/lib/purecloudplatformclientv2/models/messaging_integration_entity_listing.rb +12 -12
  310. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +12 -12
  311. data/lib/purecloudplatformclientv2/models/nlu_domain_listing.rb +12 -12
  312. data/lib/purecloudplatformclientv2/models/nlu_domain_version_listing.rb +12 -12
  313. data/lib/purecloudplatformclientv2/models/nlu_feedback_listing.rb +12 -12
  314. data/lib/purecloudplatformclientv2/models/note_listing.rb +12 -12
  315. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +12 -12
  316. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +12 -12
  317. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +12 -12
  318. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +12 -12
  319. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +12 -12
  320. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +12 -12
  321. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +12 -12
  322. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +12 -12
  323. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +12 -12
  324. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +12 -12
  325. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +12 -12
  326. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +12 -12
  327. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +12 -12
  328. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +12 -12
  329. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +12 -12
  330. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +12 -12
  331. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +12 -12
  332. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +12 -12
  333. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +12 -12
  334. data/lib/purecloudplatformclientv2/models/recording_job_entity_listing.rb +12 -12
  335. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +12 -12
  336. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +12 -12
  337. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +12 -12
  338. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +12 -12
  339. data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +31 -4
  340. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +12 -12
  341. data/lib/purecloudplatformclientv2/models/reporting_export_metadata_job_listing.rb +12 -12
  342. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +12 -12
  343. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +12 -12
  344. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +12 -12
  345. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +12 -12
  346. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +12 -12
  347. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +12 -12
  348. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +12 -12
  349. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +12 -12
  350. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +12 -12
  351. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +12 -12
  352. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +12 -12
  353. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +12 -12
  354. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +12 -12
  355. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +12 -12
  356. data/lib/purecloudplatformclientv2/models/sms_address_entity_listing.rb +12 -12
  357. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +12 -12
  358. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +12 -12
  359. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +12 -12
  360. data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +1 -1
  361. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +12 -12
  362. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +12 -12
  363. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +12 -12
  364. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +12 -12
  365. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +12 -12
  366. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +12 -12
  367. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +12 -12
  368. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +12 -12
  369. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +12 -12
  370. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +12 -12
  371. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +12 -12
  372. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +12 -12
  373. data/lib/purecloudplatformclientv2/models/tts_engine_entity_listing.rb +12 -12
  374. data/lib/purecloudplatformclientv2/models/tts_voice_entity_listing.rb +12 -12
  375. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +12 -12
  376. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +12 -12
  377. data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +1 -1
  378. data/lib/purecloudplatformclientv2/models/user_app_entity_listing.rb +12 -12
  379. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +12 -12
  380. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +12 -12
  381. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +12 -12
  382. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +12 -12
  383. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +12 -12
  384. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +12 -12
  385. data/lib/purecloudplatformclientv2/models/view_filter.rb +58 -4
  386. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +12 -12
  387. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_owner.rb +201 -0
  388. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_copy_record.rb +226 -0
  389. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_message.rb +56 -4
  390. data/lib/purecloudplatformclientv2/models/web_chat_member_info_entity_list.rb +12 -12
  391. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_forecast_modification.rb +497 -0
  392. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast.rb +494 -0
  393. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast_notification.rb +265 -0
  394. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_forecast_source_day_pointer.rb +315 -0
  395. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_modification_interval_offset_value.rb +226 -0
  396. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_user_reference.rb +201 -0
  397. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_wfm_versioned_entity_metadata.rb +251 -0
  398. data/lib/purecloudplatformclientv2/models/whats_app_integration_entity_listing.rb +12 -12
  399. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +12 -12
  400. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +12 -12
  401. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +12 -12
  402. data/lib/purecloudplatformclientv2/version.rb +1 -1
  403. metadata +20 -2
@@ -28,10 +28,10 @@ module PureCloud
28
28
 
29
29
  attr_accessor :first_uri
30
30
 
31
- attr_accessor :next_uri
32
-
33
31
  attr_accessor :self_uri
34
32
 
33
+ attr_accessor :next_uri
34
+
35
35
  attr_accessor :last_uri
36
36
 
37
37
  attr_accessor :previous_uri
@@ -52,10 +52,10 @@ module PureCloud
52
52
 
53
53
  :'first_uri' => :'firstUri',
54
54
 
55
- :'next_uri' => :'nextUri',
56
-
57
55
  :'self_uri' => :'selfUri',
58
56
 
57
+ :'next_uri' => :'nextUri',
58
+
59
59
  :'last_uri' => :'lastUri',
60
60
 
61
61
  :'previous_uri' => :'previousUri',
@@ -79,10 +79,10 @@ module PureCloud
79
79
 
80
80
  :'first_uri' => :'String',
81
81
 
82
- :'next_uri' => :'String',
83
-
84
82
  :'self_uri' => :'String',
85
83
 
84
+ :'next_uri' => :'String',
85
+
86
86
  :'last_uri' => :'String',
87
87
 
88
88
  :'previous_uri' => :'String',
@@ -148,19 +148,19 @@ module PureCloud
148
148
  end
149
149
 
150
150
 
151
- if attributes.has_key?(:'nextUri')
151
+ if attributes.has_key?(:'selfUri')
152
152
 
153
153
 
154
- self.next_uri = attributes[:'nextUri']
154
+ self.self_uri = attributes[:'selfUri']
155
155
 
156
156
 
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'selfUri')
160
+ if attributes.has_key?(:'nextUri')
161
161
 
162
162
 
163
- self.self_uri = attributes[:'selfUri']
163
+ self.next_uri = attributes[:'nextUri']
164
164
 
165
165
 
166
166
  end
@@ -311,8 +311,8 @@ module PureCloud
311
311
  page_number == o.page_number &&
312
312
  total == o.total &&
313
313
  first_uri == o.first_uri &&
314
- next_uri == o.next_uri &&
315
314
  self_uri == o.self_uri &&
315
+ next_uri == o.next_uri &&
316
316
  last_uri == o.last_uri &&
317
317
  previous_uri == o.previous_uri &&
318
318
  page_count == o.page_count
@@ -327,7 +327,7 @@ module PureCloud
327
327
  # Calculates hash code according to all attributes.
328
328
  # @return [Fixnum] Hash code
329
329
  def hash
330
- [entities, page_size, page_number, total, first_uri, next_uri, self_uri, last_uri, previous_uri, page_count].hash
330
+ [entities, page_size, page_number, total, first_uri, self_uri, next_uri, last_uri, previous_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash
@@ -252,6 +252,12 @@ module PureCloud
252
252
  # A list of providers
253
253
  attr_accessor :provider_list
254
254
 
255
+ # A list of callback numbers or substrings of numbers (ex: [\"317\", \"13172222222\"])
256
+ attr_accessor :callback_number_list
257
+
258
+ # An interval of time to filter for scheduled callbacks. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
259
+ attr_accessor :callback_interval
260
+
255
261
  # Attribute mapping from ruby-style variable name to JSON key.
256
262
  def self.attribute_map
257
263
  {
@@ -410,7 +416,11 @@ module PureCloud
410
416
 
411
417
  :'flow_out_types' => :'flowOutTypes',
412
418
 
413
- :'provider_list' => :'providerList'
419
+ :'provider_list' => :'providerList',
420
+
421
+ :'callback_number_list' => :'callbackNumberList',
422
+
423
+ :'callback_interval' => :'callbackInterval'
414
424
 
415
425
  }
416
426
  end
@@ -573,7 +583,11 @@ module PureCloud
573
583
 
574
584
  :'flow_out_types' => :'Array<String>',
575
585
 
576
- :'provider_list' => :'Array<String>'
586
+ :'provider_list' => :'Array<String>',
587
+
588
+ :'callback_number_list' => :'Array<String>',
589
+
590
+ :'callback_interval' => :'String'
577
591
 
578
592
  }
579
593
  end
@@ -1403,6 +1417,26 @@ module PureCloud
1403
1417
  end
1404
1418
 
1405
1419
 
1420
+ if attributes.has_key?(:'callbackNumberList')
1421
+
1422
+ if (value = attributes[:'callbackNumberList']).is_a?(Array)
1423
+ self.callback_number_list = value
1424
+ end
1425
+
1426
+
1427
+
1428
+ end
1429
+
1430
+
1431
+ if attributes.has_key?(:'callbackInterval')
1432
+
1433
+
1434
+ self.callback_interval = attributes[:'callbackInterval']
1435
+
1436
+
1437
+ end
1438
+
1439
+
1406
1440
  end
1407
1441
 
1408
1442
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1721,6 +1755,14 @@ module PureCloud
1721
1755
 
1722
1756
 
1723
1757
 
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1724
1766
 
1725
1767
 
1726
1768
 
@@ -2112,6 +2154,16 @@ module PureCloud
2112
2154
 
2113
2155
 
2114
2156
 
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2115
2167
 
2116
2168
 
2117
2169
 
@@ -2205,7 +2257,9 @@ module PureCloud
2205
2257
  reports_tos == o.reports_tos &&
2206
2258
  location_ids == o.location_ids &&
2207
2259
  flow_out_types == o.flow_out_types &&
2208
- provider_list == o.provider_list
2260
+ provider_list == o.provider_list &&
2261
+ callback_number_list == o.callback_number_list &&
2262
+ callback_interval == o.callback_interval
2209
2263
  end
2210
2264
 
2211
2265
  # @see the `==` method
@@ -2217,7 +2271,7 @@ module PureCloud
2217
2271
  # Calculates hash code according to all attributes.
2218
2272
  # @return [Fixnum] Hash code
2219
2273
  def hash
2220
- [media_types, queue_ids, skill_ids, skill_groups, language_ids, language_groups, directions, originating_directions, wrap_up_codes, dnis_list, session_dnis_list, filter_queues_by_user_ids, filter_users_by_queue_ids, user_ids, address_tos, address_froms, outbound_campaign_ids, outbound_contact_list_ids, contact_ids, external_contact_ids, external_org_ids, ani_list, durations_milliseconds, acd_durations_milliseconds, talk_durations_milliseconds, acw_durations_milliseconds, handle_durations_milliseconds, hold_durations_milliseconds, abandon_durations_milliseconds, evaluation_score, evaluation_critical_score, evaluation_form_ids, evaluated_agent_ids, evaluator_ids, transferred, abandoned, answered, message_types, division_ids, survey_form_ids, survey_total_score, survey_nps_score, mos, survey_question_group_score, survey_promoter_score, survey_form_context_ids, conversation_ids, sip_call_ids, is_ended, is_surveyed, survey_scores, promoter_scores, is_campaign, survey_statuses, conversation_properties, is_blind_transferred, is_consulted, is_consult_transferred, remote_participants, flow_ids, flow_outcome_ids, flow_outcome_values, flow_destination_types, flow_disconnect_reasons, flow_types, flow_entry_types, flow_entry_reasons, flow_versions, group_ids, has_journey_customer_id, has_journey_action_map_id, has_journey_visit_id, has_media, role_ids, reports_tos, location_ids, flow_out_types, provider_list].hash
2274
+ [media_types, queue_ids, skill_ids, skill_groups, language_ids, language_groups, directions, originating_directions, wrap_up_codes, dnis_list, session_dnis_list, filter_queues_by_user_ids, filter_users_by_queue_ids, user_ids, address_tos, address_froms, outbound_campaign_ids, outbound_contact_list_ids, contact_ids, external_contact_ids, external_org_ids, ani_list, durations_milliseconds, acd_durations_milliseconds, talk_durations_milliseconds, acw_durations_milliseconds, handle_durations_milliseconds, hold_durations_milliseconds, abandon_durations_milliseconds, evaluation_score, evaluation_critical_score, evaluation_form_ids, evaluated_agent_ids, evaluator_ids, transferred, abandoned, answered, message_types, division_ids, survey_form_ids, survey_total_score, survey_nps_score, mos, survey_question_group_score, survey_promoter_score, survey_form_context_ids, conversation_ids, sip_call_ids, is_ended, is_surveyed, survey_scores, promoter_scores, is_campaign, survey_statuses, conversation_properties, is_blind_transferred, is_consulted, is_consult_transferred, remote_participants, flow_ids, flow_outcome_ids, flow_outcome_values, flow_destination_types, flow_disconnect_reasons, flow_types, flow_entry_types, flow_entry_reasons, flow_versions, group_ids, has_journey_customer_id, has_journey_action_map_id, has_journey_visit_id, has_media, role_ids, reports_tos, location_ids, flow_out_types, provider_list, callback_number_list, callback_interval].hash
2221
2275
  end
2222
2276
 
2223
2277
  # build the object from hash
@@ -28,10 +28,10 @@ module PureCloud
28
28
 
29
29
  attr_accessor :first_uri
30
30
 
31
- attr_accessor :next_uri
32
-
33
31
  attr_accessor :self_uri
34
32
 
33
+ attr_accessor :next_uri
34
+
35
35
  attr_accessor :last_uri
36
36
 
37
37
  attr_accessor :previous_uri
@@ -52,10 +52,10 @@ module PureCloud
52
52
 
53
53
  :'first_uri' => :'firstUri',
54
54
 
55
- :'next_uri' => :'nextUri',
56
-
57
55
  :'self_uri' => :'selfUri',
58
56
 
57
+ :'next_uri' => :'nextUri',
58
+
59
59
  :'last_uri' => :'lastUri',
60
60
 
61
61
  :'previous_uri' => :'previousUri',
@@ -79,10 +79,10 @@ module PureCloud
79
79
 
80
80
  :'first_uri' => :'String',
81
81
 
82
- :'next_uri' => :'String',
83
-
84
82
  :'self_uri' => :'String',
85
83
 
84
+ :'next_uri' => :'String',
85
+
86
86
  :'last_uri' => :'String',
87
87
 
88
88
  :'previous_uri' => :'String',
@@ -148,19 +148,19 @@ module PureCloud
148
148
  end
149
149
 
150
150
 
151
- if attributes.has_key?(:'nextUri')
151
+ if attributes.has_key?(:'selfUri')
152
152
 
153
153
 
154
- self.next_uri = attributes[:'nextUri']
154
+ self.self_uri = attributes[:'selfUri']
155
155
 
156
156
 
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'selfUri')
160
+ if attributes.has_key?(:'nextUri')
161
161
 
162
162
 
163
- self.self_uri = attributes[:'selfUri']
163
+ self.next_uri = attributes[:'nextUri']
164
164
 
165
165
 
166
166
  end
@@ -311,8 +311,8 @@ module PureCloud
311
311
  page_number == o.page_number &&
312
312
  total == o.total &&
313
313
  first_uri == o.first_uri &&
314
- next_uri == o.next_uri &&
315
314
  self_uri == o.self_uri &&
315
+ next_uri == o.next_uri &&
316
316
  last_uri == o.last_uri &&
317
317
  previous_uri == o.previous_uri &&
318
318
  page_count == o.page_count
@@ -327,7 +327,7 @@ module PureCloud
327
327
  # Calculates hash code according to all attributes.
328
328
  # @return [Fixnum] Hash code
329
329
  def hash
330
- [entities, page_size, page_number, total, first_uri, next_uri, self_uri, last_uri, previous_uri, page_count].hash
330
+ [entities, page_size, page_number, total, first_uri, self_uri, next_uri, last_uri, previous_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash
@@ -0,0 +1,201 @@
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: UNLICENSED
11
+ https://help.mypurecloud.com/articles/terms-and-conditions/
12
+
13
+ Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class VoicemailMessagesTopicOwner
21
+ attr_accessor :id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+
27
+ :'id' => :'id'
28
+
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.swagger_types
34
+ {
35
+
36
+ :'id' => :'String'
37
+
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+
50
+ if attributes.has_key?(:'id')
51
+
52
+
53
+ self.id = attributes[:'id']
54
+
55
+
56
+ end
57
+
58
+
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properies with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+
66
+
67
+ return invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+
74
+
75
+
76
+
77
+
78
+ end
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ id == o.id
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Fixnum] Hash code
102
+ def hash
103
+ [id].hash
104
+ end
105
+
106
+ # build the object from hash
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.swagger_types.each_pair do |key, type|
110
+ if type =~ /^Array<(.*)>/i
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
113
+ else
114
+ #TODO show warning in debug mode
115
+ end
116
+ elsif !attributes[self.class.attribute_map[key]].nil?
117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ else
119
+ # data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ _model = Object.const_get("PureCloud").const_get(type).new
160
+ _model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_body (backward compatibility))
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # return the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ next if value.nil?
179
+ hash[param] = _to_hash(value)
180
+ end
181
+ hash
182
+ end
183
+
184
+ # Method to output non-array value in the form of hash
185
+ # For object, use to_hash. Otherwise, just return the value
186
+ def _to_hash(value)
187
+ if value.is_a?(Array)
188
+ value.compact.map{ |v| _to_hash(v) }
189
+ elsif value.is_a?(Hash)
190
+ {}.tap do |hash|
191
+ value.each { |k, v| hash[k] = _to_hash(v) }
192
+ end
193
+ elsif value.respond_to? :to_hash
194
+ value.to_hash
195
+ else
196
+ value
197
+ end
198
+ end
199
+
200
+ end
201
+ end