purecloudplatformclientv2 71.0.0 → 72.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +3 -3
  4. data/docs/AgentActivityEntityListing.md +3 -3
  5. data/docs/AnalyticsApi.md +267 -0
  6. data/docs/AnalyticsUserDetailsAsyncQueryResponse.md +14 -0
  7. data/docs/AsyncConversationQuery.md +1 -1
  8. data/docs/AsyncUserDetailsQuery.md +18 -0
  9. data/docs/AttemptLimitsEntityListing.md +3 -3
  10. data/docs/AuditApi.md +216 -0
  11. data/docs/AuditLogMessage.md +24 -0
  12. data/docs/AuditQueryExecutionResultsResponse.md +16 -0
  13. data/docs/AuditQueryExecutionStatusResponse.md +18 -0
  14. data/docs/AuditQueryFilter.md +14 -0
  15. data/docs/AuditQueryRequest.md +15 -0
  16. data/docs/AuthzDivisionEntityListing.md +3 -3
  17. data/docs/CalibrationEntityListing.md +3 -3
  18. data/docs/CallConversationEntityListing.md +3 -3
  19. data/docs/CallHistoryConversationEntityListing.md +3 -3
  20. data/docs/CallableTimeSetEntityListing.md +3 -3
  21. data/docs/CallbackConversationEntityListing.md +3 -3
  22. data/docs/CampaignDivisionViewListing.md +3 -3
  23. data/docs/CampaignEntityListing.md +3 -3
  24. data/docs/CampaignRuleEntityListing.md +3 -3
  25. data/docs/CampaignSequenceEntityListing.md +3 -3
  26. data/docs/CertificateAuthorityEntityListing.md +3 -3
  27. data/docs/ChatConversationEntityListing.md +3 -3
  28. data/docs/ClientAppEntityListing.md +3 -3
  29. data/docs/CobrowseConversationEntityListing.md +3 -3
  30. data/docs/CommandStatusEntityListing.md +3 -3
  31. data/docs/ConsumedResourcesEntityListing.md +3 -3
  32. data/docs/ConsumingResourcesEntityListing.md +3 -3
  33. data/docs/ContactListDivisionViewListing.md +3 -3
  34. data/docs/ContactListEntityListing.md +3 -3
  35. data/docs/ContactListFilterEntityListing.md +3 -3
  36. data/docs/ContactListing.md +3 -3
  37. data/docs/ConversationAggregationQuery.md +1 -1
  38. data/docs/ConversationEntityListing.md +3 -3
  39. data/docs/ConversationQuery.md +1 -1
  40. data/docs/CredentialInfoListing.md +3 -3
  41. data/docs/CredentialTypeListing.md +3 -3
  42. data/docs/DIDEntityListing.md +3 -3
  43. data/docs/DIDPoolEntityListing.md +3 -3
  44. data/docs/DataTableRowEntityListing.md +3 -3
  45. data/docs/DataTablesDomainEntityListing.md +3 -3
  46. data/docs/DependencyObjectEntityListing.md +3 -3
  47. data/docs/DependencyTypeEntityListing.md +3 -3
  48. data/docs/DialerEventEntityListing.md +3 -3
  49. data/docs/DialogflowAgentSummaryEntityListing.md +3 -3
  50. data/docs/DirectoryUserDevicesListing.md +3 -3
  51. data/docs/DncListDivisionViewListing.md +3 -3
  52. data/docs/DncListEntityListing.md +3 -3
  53. data/docs/DocumentAuditEntityListing.md +3 -3
  54. data/docs/DocumentEntityListing.md +3 -3
  55. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +3 -3
  56. data/docs/DomainEntityListing.md +3 -3
  57. data/docs/DomainEntityListingEvaluationForm.md +3 -3
  58. data/docs/DomainEntityListingQueryResult.md +3 -3
  59. data/docs/DomainEntityListingSurveyForm.md +3 -3
  60. data/docs/EdgeEntityListing.md +3 -3
  61. data/docs/EdgeGroupEntityListing.md +3 -3
  62. data/docs/EdgeLineEntityListing.md +3 -3
  63. data/docs/EmailConversationEntityListing.md +3 -3
  64. data/docs/EmailMessageListing.md +3 -3
  65. data/docs/EmergencyGroupListing.md +3 -3
  66. data/docs/EncryptionKeyEntityListing.md +3 -3
  67. data/docs/EvaluationAggregationQuery.md +1 -1
  68. data/docs/EvaluationEntityListing.md +3 -3
  69. data/docs/EvaluationFormEntityListing.md +3 -3
  70. data/docs/EvaluatorActivityEntityListing.md +3 -3
  71. data/docs/ExtensionEntityListing.md +3 -3
  72. data/docs/ExtensionPoolEntityListing.md +3 -3
  73. data/docs/ExternalOrganizationListing.md +3 -3
  74. data/docs/FacebookIntegrationEntityListing.md +3 -3
  75. data/docs/FaxDocumentEntityListing.md +3 -3
  76. data/docs/FlowAggregationQuery.md +1 -1
  77. data/docs/FlowDivisionViewEntityListing.md +3 -3
  78. data/docs/FlowEntityListing.md +3 -3
  79. data/docs/FlowOutcomeListing.md +3 -3
  80. data/docs/FlowVersionEntityListing.md +3 -3
  81. data/docs/GDPRRequestEntityListing.md +3 -3
  82. data/docs/GDPRSubjectEntityListing.md +3 -3
  83. data/docs/GreetingListing.md +3 -3
  84. data/docs/GroupEntityListing.md +3 -3
  85. data/docs/GroupProfileEntityListing.md +3 -3
  86. data/docs/IVREntityListing.md +3 -3
  87. data/docs/InboundDomainEntityListing.md +3 -3
  88. data/docs/InboundRouteEntityListing.md +3 -3
  89. data/docs/IntegrationEntityListing.md +3 -3
  90. data/docs/IntegrationEventEntityListing.md +3 -3
  91. data/docs/IntegrationTypeEntityListing.md +3 -3
  92. data/docs/InteractionStatsAlertContainer.md +3 -3
  93. data/docs/InteractionStatsRuleContainer.md +3 -3
  94. data/docs/KeywordSetEntityListing.md +3 -3
  95. data/docs/LanguageEntityListing.md +3 -3
  96. data/docs/LexBotAliasEntityListing.md +3 -3
  97. data/docs/LexBotEntityListing.md +3 -3
  98. data/docs/LibraryEntityListing.md +3 -3
  99. data/docs/LineBaseEntityListing.md +3 -3
  100. data/docs/LineEntityListing.md +3 -3
  101. data/docs/LineIntegrationEntityListing.md +3 -3
  102. data/docs/LocationEntityListing.md +3 -3
  103. data/docs/LogicalInterfaceEntityListing.md +3 -3
  104. data/docs/ManagementUnitListing.md +3 -3
  105. data/docs/MessageConversationEntityListing.md +3 -3
  106. data/docs/MessagingIntegrationEntityListing.md +3 -3
  107. data/docs/MessagingStickerEntityListing.md +3 -3
  108. data/docs/NoteListing.md +3 -3
  109. data/docs/OAuthApi.md +261 -0
  110. data/docs/OAuthAuthorization.md +20 -0
  111. data/docs/OAuthAuthorizationListing.md +14 -0
  112. data/docs/OAuthClientEntityListing.md +3 -3
  113. data/docs/OAuthProviderEntityListing.md +3 -3
  114. data/docs/OAuthScope.md +15 -0
  115. data/docs/OAuthScopeListing.md +14 -0
  116. data/docs/OrganizationPresenceEntityListing.md +3 -3
  117. data/docs/OrganizationRoleEntityListing.md +3 -3
  118. data/docs/OrphanRecordingListing.md +3 -3
  119. data/docs/OutboundRouteBaseEntityListing.md +3 -3
  120. data/docs/OutboundRouteEntityListing.md +3 -3
  121. data/docs/PermissionCollectionEntityListing.md +3 -3
  122. data/docs/PhoneBaseEntityListing.md +3 -3
  123. data/docs/PhoneEntityListing.md +3 -3
  124. data/docs/PhoneMetaBaseEntityListing.md +3 -3
  125. data/docs/PhysicalInterfaceEntityListing.md +3 -3
  126. data/docs/PolicyEntityListing.md +3 -3
  127. data/docs/PromptAssetEntityListing.md +3 -3
  128. data/docs/PromptEntityListing.md +3 -3
  129. data/docs/PropertyChange.md +15 -0
  130. data/docs/QualityAuditPage.md +3 -3
  131. data/docs/QueueEntityListing.md +3 -3
  132. data/docs/QueueMemberEntityListing.md +3 -3
  133. data/docs/QueueUserEventTopicQueueMember.md +4 -4
  134. data/docs/RecipientListing.md +3 -3
  135. data/docs/RecordingApi.md +0 -134
  136. data/docs/RecordingJobEntityListing.md +3 -3
  137. data/docs/RelationshipListing.md +3 -3
  138. data/docs/ReportMetaDataEntityListing.md +3 -3
  139. data/docs/ReportRunEntryEntityDomainListing.md +3 -3
  140. data/docs/ReportSchedule.md +1 -1
  141. data/docs/ReportScheduleEntityListing.md +3 -3
  142. data/docs/ReportingExportJobListing.md +3 -3
  143. data/docs/ReportingExportJobRequest.md +3 -3
  144. data/docs/ReportingExportJobResponse.md +3 -3
  145. data/docs/ResponseEntityList.md +3 -3
  146. data/docs/ResponseEntityListing.md +3 -3
  147. data/docs/ResponseSetEntityListing.md +3 -3
  148. data/docs/RuleSetEntityListing.md +3 -3
  149. data/docs/Schedule.md +2 -2
  150. data/docs/ScheduleEntityListing.md +3 -3
  151. data/docs/ScheduleGroupEntityListing.md +3 -3
  152. data/docs/SchemaCategoryEntityListing.md +3 -3
  153. data/docs/SchemaReferenceEntityListing.md +3 -3
  154. data/docs/ScreenRecordingSessionListing.md +3 -3
  155. data/docs/ScriptEntityListing.md +3 -3
  156. data/docs/SecurityProfileEntityListing.md +3 -3
  157. data/docs/SendAgentlessOutboundMessageRequest.md +1 -1
  158. data/docs/ShareEntityListing.md +3 -3
  159. data/docs/SiteEntityListing.md +3 -3
  160. data/docs/SkillEntityListing.md +3 -3
  161. data/docs/SmsAddressEntityListing.md +3 -3
  162. data/docs/SmsPhoneNumberEntityListing.md +3 -3
  163. data/docs/StationEntityListing.md +3 -3
  164. data/docs/SubjectDivisionGrantsEntityListing.md +3 -3
  165. data/docs/SurveyAggregationQuery.md +1 -1
  166. data/docs/SurveyFormEntityListing.md +3 -3
  167. data/docs/SystemPromptAssetEntityListing.md +3 -3
  168. data/docs/SystemPromptEntityListing.md +3 -3
  169. data/docs/TagValueEntityListing.md +3 -3
  170. data/docs/TextMessageListing.md +3 -3
  171. data/docs/TimeZoneEntityListing.md +3 -3
  172. data/docs/TrunkBaseEntityListing.md +3 -3
  173. data/docs/TrunkEntityListing.md +3 -3
  174. data/docs/TrunkMetabaseEntityListing.md +3 -3
  175. data/docs/TrustEntityListing.md +3 -3
  176. data/docs/TrustUserEntityListing.md +3 -3
  177. data/docs/TrustorEntityListing.md +3 -3
  178. data/docs/TtsEngineEntityListing.md +3 -3
  179. data/docs/TtsVoiceEntityListing.md +3 -3
  180. data/docs/TwitterIntegrationEntityListing.md +3 -3
  181. data/docs/UserActionCategoryEntityListing.md +3 -3
  182. data/docs/UserAggregationQuery.md +1 -1
  183. data/docs/UserDetailsQuery.md +1 -1
  184. data/docs/UserEntityListing.md +3 -3
  185. data/docs/UserLanguageEntityListing.md +3 -3
  186. data/docs/UserProfileEntityListing.md +3 -3
  187. data/docs/UserQueueEntityListing.md +3 -3
  188. data/docs/UserRecordingEntityListing.md +3 -3
  189. data/docs/UserSkillEntityListing.md +3 -3
  190. data/docs/UsersApi.md +267 -0
  191. data/docs/Utilization.md +1 -1
  192. data/docs/VoicemailMessageEntityListing.md +3 -3
  193. data/docs/WebChatMemberInfoEntityList.md +3 -3
  194. data/docs/WfmBuScheduleQueryResultTopicBuScheduleSearchResultNotification.md +15 -0
  195. data/docs/WfmBuScheduleRunTopicBuScheduleReference.md +14 -0
  196. data/docs/WfmBuScheduleRunTopicBuScheduleRun.md +18 -0
  197. data/docs/WfmBuScheduleRunTopicBuSchedulingRunProgressNotification.md +17 -0
  198. data/docs/WfmBuScheduleRunTopicLocalDate.md +16 -0
  199. data/docs/{TimeZone.md → WfmBuScheduleRunTopicUserReference.md} +2 -5
  200. data/docs/WfmBuScheduleSearchResultTopicBuScheduleSearchResultNotification.md +15 -0
  201. data/docs/WfmBuScheduleTopicBuManagementUnitScheduleSummary.md +17 -0
  202. data/docs/WfmBuScheduleTopicBuScheduleGenerationResultSummary.md +15 -0
  203. data/docs/WfmBuScheduleTopicBuScheduleMetadata.md +21 -0
  204. data/docs/WfmBuScheduleTopicBuScheduleNotification.md +16 -0
  205. data/docs/WfmBuScheduleTopicBuShortTermForecastReference.md +15 -0
  206. data/docs/WfmBuScheduleTopicLocalDate.md +16 -0
  207. data/docs/{QueueUserEventTopicUserReference.md → WfmBuScheduleTopicManagementUnit.md} +2 -2
  208. data/docs/WfmBuScheduleTopicUserReference.md +13 -0
  209. data/docs/WfmBuScheduleTopicWfmVersionedEntityMetadata.md +15 -0
  210. data/docs/WhatsAppIntegrationEntityListing.md +3 -3
  211. data/docs/WorkspaceEntityListing.md +3 -3
  212. data/docs/WorkspaceMemberEntityListing.md +3 -3
  213. data/docs/WrapupCodeEntityListing.md +3 -3
  214. data/lib/purecloudplatformclientv2.rb +29 -3
  215. data/lib/purecloudplatformclientv2/api/analytics_api.rb +268 -0
  216. data/lib/purecloudplatformclientv2/api/audit_api.rb +240 -0
  217. data/lib/purecloudplatformclientv2/api/o_auth_api.rb +258 -0
  218. data/lib/purecloudplatformclientv2/api/recording_api.rb +0 -136
  219. data/lib/purecloudplatformclientv2/api/users_api.rb +268 -0
  220. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  221. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +24 -24
  222. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +24 -24
  223. data/lib/purecloudplatformclientv2/models/analytics_user_details_async_query_response.rb +229 -0
  224. data/lib/purecloudplatformclientv2/models/async_conversation_query.rb +5 -0
  225. data/lib/purecloudplatformclientv2/models/async_query_status.rb +2 -2
  226. data/lib/purecloudplatformclientv2/models/async_user_details_query.rb +357 -0
  227. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +24 -24
  228. data/lib/purecloudplatformclientv2/models/audit_log_message.rb +536 -0
  229. data/lib/purecloudplatformclientv2/models/{time_zone.rb → audit_query_execution_results_response.rb} +31 -25
  230. data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +362 -0
  231. data/lib/purecloudplatformclientv2/models/audit_query_filter.rb +252 -0
  232. data/lib/purecloudplatformclientv2/models/audit_query_request.rb +280 -0
  233. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +24 -24
  234. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +24 -24
  235. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +24 -24
  236. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +24 -24
  237. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +24 -24
  238. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +24 -24
  239. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +24 -24
  240. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +24 -24
  241. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +24 -24
  242. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +24 -24
  243. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +24 -24
  244. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +24 -24
  245. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +24 -24
  246. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +24 -24
  247. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +24 -24
  248. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +24 -24
  249. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +24 -24
  250. data/lib/purecloudplatformclientv2/models/contact_list_division_view_listing.rb +24 -24
  251. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +24 -24
  252. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +24 -24
  253. data/lib/purecloudplatformclientv2/models/contact_listing.rb +24 -24
  254. data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +5 -0
  255. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +24 -24
  256. data/lib/purecloudplatformclientv2/models/conversation_query.rb +5 -0
  257. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +24 -24
  258. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +24 -24
  259. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +24 -24
  260. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +24 -24
  261. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +24 -24
  262. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +24 -24
  263. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +24 -24
  264. data/lib/purecloudplatformclientv2/models/dialogflow_agent_summary_entity_listing.rb +24 -24
  265. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +24 -24
  266. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +24 -24
  267. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +24 -24
  268. data/lib/purecloudplatformclientv2/models/dnc_list_division_view_listing.rb +24 -24
  269. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +24 -24
  270. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +24 -24
  271. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +24 -24
  272. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +24 -24
  273. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +24 -24
  274. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +24 -24
  275. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +24 -24
  276. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +24 -24
  277. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +24 -24
  278. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +24 -24
  279. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +24 -24
  280. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +24 -24
  281. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +24 -24
  282. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +24 -24
  283. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +24 -24
  284. data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +5 -0
  285. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +24 -24
  286. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +24 -24
  287. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +24 -24
  288. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +24 -24
  289. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +24 -24
  290. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +24 -24
  291. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +24 -24
  292. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +24 -24
  293. data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +5 -0
  294. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +24 -24
  295. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +24 -24
  296. data/lib/purecloudplatformclientv2/models/flow_outcome_listing.rb +24 -24
  297. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +24 -24
  298. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +24 -24
  299. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +24 -24
  300. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +24 -24
  301. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +24 -24
  302. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +24 -24
  303. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +24 -24
  304. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +24 -24
  305. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +24 -24
  306. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +24 -24
  307. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +24 -24
  308. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +24 -24
  309. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +24 -24
  310. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +24 -24
  311. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +24 -24
  312. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +24 -24
  313. data/lib/purecloudplatformclientv2/models/lex_bot_alias_entity_listing.rb +24 -24
  314. data/lib/purecloudplatformclientv2/models/lex_bot_entity_listing.rb +24 -24
  315. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +24 -24
  316. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +24 -24
  317. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +24 -24
  318. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +24 -24
  319. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +24 -24
  320. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +24 -24
  321. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +24 -24
  322. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +24 -24
  323. data/lib/purecloudplatformclientv2/models/messaging_integration_entity_listing.rb +24 -24
  324. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +24 -24
  325. data/lib/purecloudplatformclientv2/models/note_listing.rb +24 -24
  326. data/lib/purecloudplatformclientv2/models/o_auth_authorization.rb +381 -0
  327. data/lib/purecloudplatformclientv2/models/o_auth_authorization_listing.rb +228 -0
  328. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +24 -24
  329. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +24 -24
  330. data/lib/purecloudplatformclientv2/models/o_auth_scope.rb +253 -0
  331. data/lib/purecloudplatformclientv2/models/o_auth_scope_listing.rb +228 -0
  332. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +24 -24
  333. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +24 -24
  334. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +24 -24
  335. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +24 -24
  336. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +24 -24
  337. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +24 -24
  338. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +24 -24
  339. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +24 -24
  340. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +24 -24
  341. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +24 -24
  342. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +24 -24
  343. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +24 -24
  344. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +24 -24
  345. data/lib/purecloudplatformclientv2/models/property_change.rb +258 -0
  346. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +24 -24
  347. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +24 -24
  348. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +24 -24
  349. data/lib/purecloudplatformclientv2/models/queue_user_event_topic_queue_member.rb +31 -31
  350. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +24 -24
  351. data/lib/purecloudplatformclientv2/models/recording_job_entity_listing.rb +24 -24
  352. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +24 -24
  353. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +24 -24
  354. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +24 -24
  355. data/lib/purecloudplatformclientv2/models/report_schedule.rb +5 -0
  356. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +24 -24
  357. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +24 -24
  358. data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +12 -2
  359. data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +12 -2
  360. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +24 -24
  361. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +24 -24
  362. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +24 -24
  363. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +24 -24
  364. data/lib/purecloudplatformclientv2/models/schedule.rb +10 -0
  365. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +24 -24
  366. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +24 -24
  367. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +24 -24
  368. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +24 -24
  369. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +24 -24
  370. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +24 -24
  371. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +24 -24
  372. data/lib/purecloudplatformclientv2/models/send_agentless_outbound_message_request.rb +1 -1
  373. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +24 -24
  374. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +24 -24
  375. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +24 -24
  376. data/lib/purecloudplatformclientv2/models/sms_address_entity_listing.rb +24 -24
  377. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +24 -24
  378. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +24 -24
  379. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +24 -24
  380. data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +5 -0
  381. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +24 -24
  382. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +24 -24
  383. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +24 -24
  384. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +24 -24
  385. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +24 -24
  386. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +24 -24
  387. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +24 -24
  388. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +24 -24
  389. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +24 -24
  390. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +24 -24
  391. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +24 -24
  392. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +24 -24
  393. data/lib/purecloudplatformclientv2/models/tts_engine_entity_listing.rb +24 -24
  394. data/lib/purecloudplatformclientv2/models/tts_voice_entity_listing.rb +24 -24
  395. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +24 -24
  396. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +24 -24
  397. data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +5 -0
  398. data/lib/purecloudplatformclientv2/models/user_details_query.rb +5 -0
  399. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +24 -24
  400. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +24 -24
  401. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +24 -24
  402. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +24 -24
  403. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +24 -24
  404. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +24 -24
  405. data/lib/purecloudplatformclientv2/models/utilization.rb +1 -1
  406. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +24 -24
  407. data/lib/purecloudplatformclientv2/models/web_chat_member_info_entity_list.rb +24 -24
  408. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_query_result_topic_bu_schedule_search_result_notification.rb +251 -0
  409. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_run_topic_bu_schedule_reference.rb +226 -0
  410. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_run_topic_bu_schedule_run.rb +326 -0
  411. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_run_topic_bu_scheduling_run_progress_notification.rb +315 -0
  412. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_run_topic_local_date.rb +276 -0
  413. data/lib/purecloudplatformclientv2/models/{conversation_deletion_protection_query.rb → wfm_bu_schedule_run_topic_user_reference.rb} +8 -16
  414. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_search_result_topic_bu_schedule_search_result_notification.rb +251 -0
  415. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_bu_management_unit_schedule_summary.rb +303 -0
  416. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_bu_schedule_generation_result_summary.rb +251 -0
  417. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_bu_schedule_metadata.rb +403 -0
  418. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_bu_schedule_notification.rb +304 -0
  419. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_bu_short_term_forecast_reference.rb +251 -0
  420. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_local_date.rb +276 -0
  421. data/lib/purecloudplatformclientv2/models/{queue_user_event_topic_user_reference.rb → wfm_bu_schedule_topic_management_unit.rb} +1 -1
  422. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_user_reference.rb +201 -0
  423. data/lib/purecloudplatformclientv2/models/wfm_bu_schedule_topic_wfm_versioned_entity_metadata.rb +251 -0
  424. data/lib/purecloudplatformclientv2/models/whats_app_integration_entity_listing.rb +24 -24
  425. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +24 -24
  426. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +24 -24
  427. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +24 -24
  428. data/lib/purecloudplatformclientv2/version.rb +1 -1
  429. metadata +60 -8
  430. data/docs/ConversationDeletionProtectionQuery.md +0 -13
@@ -28,13 +28,13 @@ module PureCloud
28
28
 
29
29
  attr_accessor :first_uri
30
30
 
31
- attr_accessor :self_uri
32
-
33
- attr_accessor :next_uri
31
+ attr_accessor :previous_uri
34
32
 
35
33
  attr_accessor :last_uri
36
34
 
37
- attr_accessor :previous_uri
35
+ attr_accessor :next_uri
36
+
37
+ attr_accessor :self_uri
38
38
 
39
39
  attr_accessor :page_count
40
40
 
@@ -52,13 +52,13 @@ module PureCloud
52
52
 
53
53
  :'first_uri' => :'firstUri',
54
54
 
55
- :'self_uri' => :'selfUri',
56
-
57
- :'next_uri' => :'nextUri',
55
+ :'previous_uri' => :'previousUri',
58
56
 
59
57
  :'last_uri' => :'lastUri',
60
58
 
61
- :'previous_uri' => :'previousUri',
59
+ :'next_uri' => :'nextUri',
60
+
61
+ :'self_uri' => :'selfUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
64
64
 
@@ -79,13 +79,13 @@ module PureCloud
79
79
 
80
80
  :'first_uri' => :'String',
81
81
 
82
- :'self_uri' => :'String',
83
-
84
- :'next_uri' => :'String',
82
+ :'previous_uri' => :'String',
85
83
 
86
84
  :'last_uri' => :'String',
87
85
 
88
- :'previous_uri' => :'String',
86
+ :'next_uri' => :'String',
87
+
88
+ :'self_uri' => :'String',
89
89
 
90
90
  :'page_count' => :'Integer'
91
91
 
@@ -148,37 +148,37 @@ module PureCloud
148
148
  end
149
149
 
150
150
 
151
- if attributes.has_key?(:'selfUri')
151
+ if attributes.has_key?(:'previousUri')
152
152
 
153
153
 
154
- self.self_uri = attributes[:'selfUri']
154
+ self.previous_uri = attributes[:'previousUri']
155
155
 
156
156
 
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'nextUri')
160
+ if attributes.has_key?(:'lastUri')
161
161
 
162
162
 
163
- self.next_uri = attributes[:'nextUri']
163
+ self.last_uri = attributes[:'lastUri']
164
164
 
165
165
 
166
166
  end
167
167
 
168
168
 
169
- if attributes.has_key?(:'lastUri')
169
+ if attributes.has_key?(:'nextUri')
170
170
 
171
171
 
172
- self.last_uri = attributes[:'lastUri']
172
+ self.next_uri = attributes[:'nextUri']
173
173
 
174
174
 
175
175
  end
176
176
 
177
177
 
178
- if attributes.has_key?(:'previousUri')
178
+ if attributes.has_key?(:'selfUri')
179
179
 
180
180
 
181
- self.previous_uri = attributes[:'previousUri']
181
+ self.self_uri = attributes[:'selfUri']
182
182
 
183
183
 
184
184
  end
@@ -311,10 +311,10 @@ module PureCloud
311
311
  page_number == o.page_number &&
312
312
  total == o.total &&
313
313
  first_uri == o.first_uri &&
314
- self_uri == o.self_uri &&
315
- next_uri == o.next_uri &&
316
- last_uri == o.last_uri &&
317
314
  previous_uri == o.previous_uri &&
315
+ last_uri == o.last_uri &&
316
+ next_uri == o.next_uri &&
317
+ self_uri == o.self_uri &&
318
318
  page_count == o.page_count
319
319
  end
320
320
 
@@ -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, self_uri, next_uri, last_uri, previous_uri, page_count].hash
330
+ [entities, page_size, page_number, total, first_uri, previous_uri, last_uri, next_uri, self_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash
@@ -0,0 +1,251 @@
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 WfmBuScheduleQueryResultTopicBuScheduleSearchResultNotification
21
+ attr_accessor :operation_id
22
+
23
+ attr_accessor :business_unit_id
24
+
25
+ attr_accessor :download_url
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+
31
+ :'operation_id' => :'operationId',
32
+
33
+ :'business_unit_id' => :'businessUnitId',
34
+
35
+ :'download_url' => :'downloadUrl'
36
+
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+
44
+ :'operation_id' => :'String',
45
+
46
+ :'business_unit_id' => :'String',
47
+
48
+ :'download_url' => :'String'
49
+
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+
61
+
62
+ if attributes.has_key?(:'operationId')
63
+
64
+
65
+ self.operation_id = attributes[:'operationId']
66
+
67
+
68
+ end
69
+
70
+
71
+ if attributes.has_key?(:'businessUnitId')
72
+
73
+
74
+ self.business_unit_id = attributes[:'businessUnitId']
75
+
76
+
77
+ end
78
+
79
+
80
+ if attributes.has_key?(:'downloadUrl')
81
+
82
+
83
+ self.download_url = attributes[:'downloadUrl']
84
+
85
+
86
+ end
87
+
88
+
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properies with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = Array.new
95
+
96
+
97
+ return invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ end
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ operation_id == o.operation_id &&
140
+ business_unit_id == o.business_unit_id &&
141
+ download_url == o.download_url
142
+ end
143
+
144
+ # @see the `==` method
145
+ # @param [Object] Object to be compared
146
+ def eql?(o)
147
+ self == o
148
+ end
149
+
150
+ # Calculates hash code according to all attributes.
151
+ # @return [Fixnum] Hash code
152
+ def hash
153
+ [operation_id, business_unit_id, download_url].hash
154
+ end
155
+
156
+ # build the object from hash
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ if type =~ /^Array<(.*)>/i
161
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
162
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
163
+ else
164
+ #TODO show warning in debug mode
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ else
169
+ # data not found in attributes(hash), not an issue as the data can be optional
170
+ end
171
+ end
172
+
173
+ self
174
+ end
175
+
176
+ def _deserialize(type, value)
177
+ case type.to_sym
178
+ when :DateTime
179
+ DateTime.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :BOOLEAN
189
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ _model = Object.const_get("PureCloud").const_get(type).new
210
+ _model.build_from_hash(value)
211
+ end
212
+ end
213
+
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_body (backward compatibility))
219
+ def to_body
220
+ to_hash
221
+ end
222
+
223
+ # return the object in the form of hash
224
+ def to_hash
225
+ hash = {}
226
+ self.class.attribute_map.each_pair do |attr, param|
227
+ value = self.send(attr)
228
+ next if value.nil?
229
+ hash[param] = _to_hash(value)
230
+ end
231
+ hash
232
+ end
233
+
234
+ # Method to output non-array value in the form of hash
235
+ # For object, use to_hash. Otherwise, just return the value
236
+ def _to_hash(value)
237
+ if value.is_a?(Array)
238
+ value.compact.map{ |v| _to_hash(v) }
239
+ elsif value.is_a?(Hash)
240
+ {}.tap do |hash|
241
+ value.each { |k, v| hash[k] = _to_hash(v) }
242
+ end
243
+ elsif value.respond_to? :to_hash
244
+ value.to_hash
245
+ else
246
+ value
247
+ end
248
+ end
249
+
250
+ end
251
+ end
@@ -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: 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 WfmBuScheduleRunTopicBuScheduleReference
21
+ attr_accessor :id
22
+
23
+ attr_accessor :week_date
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'id' => :'id',
30
+
31
+ :'week_date' => :'weekDate'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+
40
+ :'id' => :'String',
41
+
42
+ :'week_date' => :'WfmBuScheduleRunTopicLocalDate'
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?(:'id')
57
+
58
+
59
+ self.id = attributes[:'id']
60
+
61
+
62
+ end
63
+
64
+
65
+ if attributes.has_key?(:'weekDate')
66
+
67
+
68
+ self.week_date = attributes[:'weekDate']
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
+ id == o.id &&
116
+ week_date == o.week_date
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
+ [id, week_date].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