purecloudplatformclientv2 43.1.0 → 44.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) 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/AnalyticsSurvey.md +6 -5
  6. data/docs/ArchitectApi.md +14 -14
  7. data/docs/{JsonNode.md → ArrayNode.md} +2 -2
  8. data/docs/AttemptLimitsEntityListing.md +1 -1
  9. data/docs/AttributeEntityListing.md +1 -1
  10. data/docs/AuthzDivisionEntityListing.md +1 -1
  11. data/docs/CalibrationEntityListing.md +1 -1
  12. data/docs/CallConversationEntityListing.md +1 -1
  13. data/docs/CallHistoryConversationEntityListing.md +1 -1
  14. data/docs/CallableTimeSetEntityListing.md +1 -1
  15. data/docs/CallbackConversationEntityListing.md +1 -1
  16. data/docs/CampaignDivisionViewListing.md +1 -1
  17. data/docs/CampaignEntityListing.md +1 -1
  18. data/docs/CampaignRuleEntityListing.md +1 -1
  19. data/docs/CampaignSequenceEntityListing.md +1 -1
  20. data/docs/CertificateAuthorityEntityListing.md +1 -1
  21. data/docs/ChatConversationEntityListing.md +1 -1
  22. data/docs/ClientAppEntityListing.md +1 -1
  23. data/docs/CobrowseConversationEntityListing.md +1 -1
  24. data/docs/CommandStatusEntityListing.md +1 -1
  25. data/docs/ConsumedResourcesEntityListing.md +1 -1
  26. data/docs/ConsumingResourcesEntityListing.md +1 -1
  27. data/docs/ContactListEntityListing.md +1 -1
  28. data/docs/ContactListFilterEntityListing.md +1 -1
  29. data/docs/ContactListing.md +1 -1
  30. data/docs/ConversationEntityListing.md +1 -1
  31. data/docs/ConversationsApi.md +66 -0
  32. data/docs/CreateOutboundMessagingConversationRequest.md +18 -0
  33. data/docs/CreateQueueRequest.md +1 -0
  34. data/docs/CreateUser.md +1 -0
  35. data/docs/CredentialInfoListing.md +1 -1
  36. data/docs/CredentialTypeListing.md +1 -1
  37. data/docs/DIDEntityListing.md +1 -1
  38. data/docs/DIDPoolEntityListing.md +1 -1
  39. data/docs/DataTableRowEntityListing.md +1 -1
  40. data/docs/DataTablesDomainEntityListing.md +1 -1
  41. data/docs/DependencyObjectEntityListing.md +1 -1
  42. data/docs/DependencyTypeEntityListing.md +1 -1
  43. data/docs/DialerEventEntityListing.md +1 -1
  44. data/docs/DirectoryUserDevicesListing.md +1 -1
  45. data/docs/DncListCreate.md +7 -7
  46. data/docs/DncListEntityListing.md +1 -1
  47. data/docs/DocumentAuditEntityListing.md +1 -1
  48. data/docs/DocumentEntityListing.md +1 -1
  49. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  50. data/docs/DomainEntityListing.md +1 -1
  51. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  52. data/docs/DomainEntityListingQueryResult.md +1 -1
  53. data/docs/DomainEntityListingSurveyForm.md +1 -1
  54. data/docs/EdgeEntityListing.md +1 -1
  55. data/docs/EdgeGroupEntityListing.md +1 -1
  56. data/docs/EdgeLineEntityListing.md +1 -1
  57. data/docs/EmailConversationEntityListing.md +1 -1
  58. data/docs/EmailMessageListing.md +1 -1
  59. data/docs/EmergencyGroupListing.md +1 -1
  60. data/docs/EncryptionKeyEntityListing.md +1 -1
  61. data/docs/EndpointEntityListing.md +1 -1
  62. data/docs/EvaluationEntityListing.md +1 -1
  63. data/docs/EvaluationFormEntityListing.md +1 -1
  64. data/docs/EvaluatorActivityEntityListing.md +1 -1
  65. data/docs/ExtensionEntityListing.md +1 -1
  66. data/docs/ExtensionPoolEntityListing.md +1 -1
  67. data/docs/ExternalOrganizationListing.md +1 -1
  68. data/docs/FacebookIntegrationEntityListing.md +1 -1
  69. data/docs/FacebookIntegrationRequest.md +3 -3
  70. data/docs/FaxDocumentEntityListing.md +1 -1
  71. data/docs/FlowDivisionViewEntityListing.md +1 -1
  72. data/docs/FlowEntityListing.md +1 -1
  73. data/docs/FlowVersionEntityListing.md +1 -1
  74. data/docs/GDPRRequestEntityListing.md +1 -1
  75. data/docs/GDPRSubjectEntityListing.md +1 -1
  76. data/docs/GreetingListing.md +1 -1
  77. data/docs/GroupEntityListing.md +1 -1
  78. data/docs/GroupProfileEntityListing.md +1 -1
  79. data/docs/HeadcountForecast.md +14 -0
  80. data/docs/{HeadcountIntervalResponse.md → HeadcountInterval.md} +4 -4
  81. data/docs/IVREntityListing.md +1 -1
  82. data/docs/InboundDomainEntityListing.md +1 -1
  83. data/docs/InboundRouteEntityListing.md +1 -1
  84. data/docs/IntegrationEntityListing.md +1 -1
  85. data/docs/IntegrationEventEntityListing.md +1 -1
  86. data/docs/IntegrationTypeEntityListing.md +1 -1
  87. data/docs/InteractionStatsAlertContainer.md +1 -1
  88. data/docs/InteractionStatsRuleContainer.md +1 -1
  89. data/docs/IntradayDataUpdateNotificationDateTime.md +1 -1
  90. data/docs/IntradayDataUpdateNotificationStartDate.md +1 -1
  91. data/docs/JsonNodeSearchResponse.md +2 -2
  92. data/docs/KeywordSetEntityListing.md +1 -1
  93. data/docs/LanguageEntityListing.md +1 -1
  94. data/docs/LibraryEntityListing.md +1 -1
  95. data/docs/LineBaseEntityListing.md +1 -1
  96. data/docs/LineEntityListing.md +1 -1
  97. data/docs/LineIntegrationEntityListing.md +1 -1
  98. data/docs/LineIntegrationRequest.md +0 -1
  99. data/docs/LocationEntityListing.md +1 -1
  100. data/docs/LogicalInterfaceEntityListing.md +1 -1
  101. data/docs/ManagementUnitListing.md +1 -1
  102. data/docs/MessageConversationEntityListing.md +1 -1
  103. data/docs/MessagingApi.md +0 -64
  104. data/docs/MessagingStickerEntityListing.md +1 -1
  105. data/docs/NoteListing.md +1 -1
  106. data/docs/OAuthClientEntityListing.md +1 -1
  107. data/docs/OAuthProviderEntityListing.md +1 -1
  108. data/docs/OrganizationPresenceEntityListing.md +1 -1
  109. data/docs/OrganizationRoleEntityListing.md +1 -1
  110. data/docs/OrphanRecordingListing.md +1 -1
  111. data/docs/OutboundApi.md +66 -66
  112. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  113. data/docs/OutboundRouteEntityListing.md +1 -1
  114. data/docs/PermissionCollectionEntityListing.md +1 -1
  115. data/docs/PhoneBaseEntityListing.md +1 -1
  116. data/docs/PhoneEntityListing.md +1 -1
  117. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  118. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  119. data/docs/PolicyEntityListing.md +1 -1
  120. data/docs/PromptAssetEntityListing.md +1 -1
  121. data/docs/PromptEntityListing.md +1 -1
  122. data/docs/QualityApi.md +9 -3
  123. data/docs/QualityAuditPage.md +1 -1
  124. data/docs/Queue.md +1 -0
  125. data/docs/QueueEntityListing.md +1 -1
  126. data/docs/QueueMemberEntityListing.md +1 -1
  127. data/docs/QueueMessagingAddresses.md +13 -0
  128. data/docs/QueueRequest.md +1 -0
  129. data/docs/Recipient.md +1 -0
  130. data/docs/RecipientListing.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/ReportingExportJobListing.md +1 -1
  136. data/docs/RescheduleRequest.md +20 -0
  137. data/docs/RescheduleResult.md +13 -0
  138. data/docs/ReschedulingOptionsResponse.md +22 -0
  139. data/docs/ResponseEntityList.md +1 -1
  140. data/docs/ResponseEntityListing.md +1 -1
  141. data/docs/ResponseSetEntityListing.md +1 -1
  142. data/docs/RoutingApi.md +2 -0
  143. data/docs/RuleSetEntityListing.md +1 -1
  144. data/docs/ScheduleEntityListing.md +1 -1
  145. data/docs/ScheduleGroupEntityListing.md +1 -1
  146. data/docs/SchedulingRunResponse.md +8 -2
  147. data/docs/SchemaCategoryEntityListing.md +1 -1
  148. data/docs/SchemaReferenceEntityListing.md +1 -1
  149. data/docs/ScreenRecordingSessionListing.md +1 -1
  150. data/docs/ScriptEntityListing.md +1 -1
  151. data/docs/SecurityProfileEntityListing.md +1 -1
  152. data/docs/ShareEntityListing.md +1 -1
  153. data/docs/SiteEntityListing.md +1 -1
  154. data/docs/SkillEntityListing.md +1 -1
  155. data/docs/SmsPhoneNumberEntityListing.md +1 -1
  156. data/docs/StationEntityListing.md +1 -1
  157. data/docs/SubjectDivisionGrantsEntityListing.md +1 -1
  158. data/docs/SurveyFormEntityListing.md +1 -1
  159. data/docs/SystemPromptAssetEntityListing.md +1 -1
  160. data/docs/SystemPromptEntityListing.md +1 -1
  161. data/docs/TagValueEntityListing.md +1 -1
  162. data/docs/TextMessageListing.md +1 -1
  163. data/docs/TimeZoneEntityListing.md +1 -1
  164. data/docs/TimeZoneMappingPreview.md +21 -0
  165. data/docs/TrunkBaseEntityListing.md +1 -1
  166. data/docs/TrunkEntityListing.md +1 -1
  167. data/docs/TrunkMetabaseEntityListing.md +1 -1
  168. data/docs/TrustEntityListing.md +1 -1
  169. data/docs/TrustUserEntityListing.md +1 -1
  170. data/docs/TrustorEntityListing.md +1 -1
  171. data/docs/TwitterIntegrationEntityListing.md +1 -1
  172. data/docs/UnscheduledAgentWarning.md +14 -0
  173. data/docs/UpdateSchedulingRunRequest.md +13 -0
  174. data/docs/UpdateWeekScheduleRequest.md +3 -1
  175. data/docs/UserActionCategoryEntityListing.md +1 -1
  176. data/docs/UserEntityListing.md +1 -1
  177. data/docs/UserLanguageEntityListing.md +1 -1
  178. data/docs/UserProfileEntityListing.md +1 -1
  179. data/docs/UserQueue.md +1 -0
  180. data/docs/UserQueueEntityListing.md +1 -1
  181. data/docs/UserRecordingEntityListing.md +1 -1
  182. data/docs/UserScheduleAdherenceUpdateNotificationDateTime.md +1 -1
  183. data/docs/UserSkillEntityListing.md +1 -1
  184. data/docs/ViewFilter.md +2 -0
  185. data/docs/VoicemailMessageEntityListing.md +1 -1
  186. data/docs/WeekSchedule.md +1 -1
  187. data/docs/WorkforceManagementApi.md +288 -0
  188. data/docs/WorkspaceEntityListing.md +1 -1
  189. data/docs/WorkspaceMemberEntityListing.md +1 -1
  190. data/docs/WrapupCodeEntityListing.md +1 -1
  191. data/lib/purecloudplatformclientv2.rb +11 -3
  192. data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
  193. data/lib/purecloudplatformclientv2/api/conversations_api.rb +65 -0
  194. data/lib/purecloudplatformclientv2/api/messaging_api.rb +0 -64
  195. data/lib/purecloudplatformclientv2/api/outbound_api.rb +65 -65
  196. data/lib/purecloudplatformclientv2/api/quality_api.rb +27 -0
  197. data/lib/purecloudplatformclientv2/api/routing_api.rb +13 -0
  198. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +326 -0
  199. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  200. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +14 -14
  201. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +14 -14
  202. data/lib/purecloudplatformclientv2/models/analytics_survey.rb +83 -51
  203. data/lib/purecloudplatformclientv2/models/{json_node.rb → array_node.rb} +1 -1
  204. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +14 -14
  205. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +14 -14
  206. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +14 -14
  207. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +14 -14
  208. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +14 -14
  209. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +14 -14
  210. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +14 -14
  211. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +14 -14
  212. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +14 -14
  213. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +14 -14
  214. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +14 -14
  215. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +14 -14
  216. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +14 -14
  217. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +14 -14
  218. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +14 -14
  219. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +14 -14
  220. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +14 -14
  221. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +14 -14
  222. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +14 -14
  223. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +14 -14
  224. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +14 -14
  225. data/lib/purecloudplatformclientv2/models/contact_listing.rb +14 -14
  226. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +14 -14
  227. data/lib/purecloudplatformclientv2/models/create_outbound_messaging_conversation_request.rb +361 -0
  228. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +27 -1
  229. data/lib/purecloudplatformclientv2/models/create_user.rb +30 -4
  230. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +14 -14
  231. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +14 -14
  232. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +14 -14
  233. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +14 -14
  234. data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
  235. data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
  236. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +14 -14
  237. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +14 -14
  238. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +14 -14
  239. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +14 -14
  240. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +14 -14
  241. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +14 -14
  242. data/lib/purecloudplatformclientv2/models/dnc_list_create.rb +12 -7
  243. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +14 -14
  244. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +14 -14
  245. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +14 -14
  246. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +14 -14
  247. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +14 -14
  248. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +14 -14
  249. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +14 -14
  250. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +14 -14
  251. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +14 -14
  252. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +14 -14
  253. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +14 -14
  254. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +14 -14
  255. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +14 -14
  256. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +14 -14
  257. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +14 -14
  258. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +14 -14
  259. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +14 -14
  260. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +14 -14
  261. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +14 -14
  262. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +14 -14
  263. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +14 -14
  264. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +14 -14
  265. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +14 -14
  266. data/lib/purecloudplatformclientv2/models/facebook_integration_request.rb +3 -3
  267. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +14 -14
  268. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +14 -14
  269. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +14 -14
  270. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +14 -14
  271. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +14 -14
  272. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +14 -14
  273. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +14 -14
  274. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +14 -14
  275. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +14 -14
  276. data/lib/purecloudplatformclientv2/models/{headcount_forecast_response.rb → headcount_forecast.rb} +13 -3
  277. data/lib/purecloudplatformclientv2/models/{headcount_interval_response.rb → headcount_interval.rb} +12 -2
  278. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +14 -14
  279. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +14 -14
  280. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +14 -14
  281. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +14 -14
  282. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +14 -14
  283. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +14 -14
  284. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +14 -14
  285. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_date_time.rb +17 -17
  286. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_start_date.rb +17 -17
  287. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +14 -14
  288. data/lib/purecloudplatformclientv2/models/json_node_search_response.rb +2 -2
  289. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +14 -14
  290. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +14 -14
  291. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +14 -14
  292. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +14 -14
  293. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +14 -14
  294. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +14 -14
  295. data/lib/purecloudplatformclientv2/models/line_integration_request.rb +1 -27
  296. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +14 -14
  297. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +14 -14
  298. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +14 -14
  299. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +14 -14
  300. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +14 -14
  301. data/lib/purecloudplatformclientv2/models/note_listing.rb +14 -14
  302. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +14 -14
  303. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +14 -14
  304. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +14 -14
  305. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +14 -14
  306. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +14 -14
  307. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +14 -14
  308. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +14 -14
  309. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +14 -14
  310. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +14 -14
  311. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +14 -14
  312. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +14 -14
  313. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +14 -14
  314. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +14 -14
  315. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +14 -14
  316. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +14 -14
  317. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +14 -14
  318. data/lib/purecloudplatformclientv2/models/queue.rb +27 -1
  319. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +14 -14
  320. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +14 -14
  321. data/lib/purecloudplatformclientv2/models/queue_messaging_addresses.rb +201 -0
  322. data/lib/purecloudplatformclientv2/models/queue_request.rb +27 -1
  323. data/lib/purecloudplatformclientv2/models/recipient.rb +41 -1
  324. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +14 -14
  325. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +14 -14
  326. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +14 -14
  327. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +14 -14
  328. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +14 -14
  329. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +14 -14
  330. data/lib/purecloudplatformclientv2/models/reschedule_request.rb +418 -0
  331. data/lib/purecloudplatformclientv2/models/reschedule_result.rb +202 -0
  332. data/lib/purecloudplatformclientv2/models/rescheduling_options_response.rb +470 -0
  333. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +14 -14
  334. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +14 -14
  335. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +14 -14
  336. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +14 -14
  337. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +14 -14
  338. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +14 -14
  339. data/lib/purecloudplatformclientv2/models/scheduling_run_response.rb +164 -6
  340. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +14 -14
  341. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +14 -14
  342. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +14 -14
  343. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +14 -14
  344. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +14 -14
  345. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +14 -14
  346. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +14 -14
  347. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +14 -14
  348. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +14 -14
  349. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +14 -14
  350. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +14 -14
  351. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +14 -14
  352. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +14 -14
  353. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +14 -14
  354. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +14 -14
  355. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +14 -14
  356. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +14 -14
  357. data/lib/purecloudplatformclientv2/models/time_zone_mapping_preview.rb +414 -0
  358. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +14 -14
  359. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +14 -14
  360. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +14 -14
  361. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +14 -14
  362. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +14 -14
  363. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +14 -14
  364. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +14 -14
  365. data/lib/purecloudplatformclientv2/models/unscheduled_agent_warning.rb +242 -0
  366. data/lib/purecloudplatformclientv2/models/update_scheduling_run_request.rb +202 -0
  367. data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +54 -2
  368. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +14 -14
  369. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +14 -14
  370. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +14 -14
  371. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +14 -14
  372. data/lib/purecloudplatformclientv2/models/user_queue.rb +27 -1
  373. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +14 -14
  374. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +14 -14
  375. data/lib/purecloudplatformclientv2/models/user_schedule_adherence_update_notification_date_time.rb +17 -17
  376. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +14 -14
  377. data/lib/purecloudplatformclientv2/models/view_filter.rb +57 -1
  378. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +14 -14
  379. data/lib/purecloudplatformclientv2/models/week_schedule.rb +1 -1
  380. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +14 -14
  381. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +14 -14
  382. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +14 -14
  383. data/lib/purecloudplatformclientv2/version.rb +1 -1
  384. metadata +24 -8
  385. data/docs/HeadcountForecastResponse.md +0 -14
@@ -0,0 +1,202 @@
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 RescheduleResult
21
+ # The url from which to download the resulting WeekSchedule object for the rescheduling range
22
+ attr_accessor :download_url
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+
28
+ :'download_url' => :'downloadUrl'
29
+
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+
37
+ :'download_url' => :'String'
38
+
39
+ }
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ return unless attributes.is_a?(Hash)
46
+
47
+ # convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
49
+
50
+
51
+ if attributes.has_key?(:'downloadUrl')
52
+
53
+
54
+ self.download_url = attributes[:'downloadUrl']
55
+
56
+
57
+ end
58
+
59
+
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properies with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+
67
+
68
+ return invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+
75
+
76
+
77
+
78
+
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ download_url == o.download_url
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Fixnum] Hash code
103
+ def hash
104
+ [download_url].hash
105
+ end
106
+
107
+ # build the object from hash
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.swagger_types.each_pair do |key, type|
111
+ if type =~ /^Array<(.*)>/i
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ else
115
+ #TODO show warning in debug mode
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ else
120
+ # data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ _model = Object.const_get("PureCloud").const_get(type).new
161
+ _model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ def to_s
166
+ to_hash.to_s
167
+ end
168
+
169
+ # to_body is an alias to to_body (backward compatibility))
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # return the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ next if value.nil?
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ # Method to output non-array value in the form of hash
186
+ # For object, use to_hash. Otherwise, just return the value
187
+ def _to_hash(value)
188
+ if value.is_a?(Array)
189
+ value.compact.map{ |v| _to_hash(v) }
190
+ elsif value.is_a?(Hash)
191
+ {}.tap do |hash|
192
+ value.each { |k, v| hash[k] = _to_hash(v) }
193
+ end
194
+ elsif value.respond_to? :to_hash
195
+ value.to_hash
196
+ else
197
+ value
198
+ end
199
+ end
200
+
201
+ end
202
+ end
@@ -0,0 +1,470 @@
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 ReschedulingOptionsResponse
21
+ # The start date of the range to reschedule in ISO-8601 format
22
+ attr_accessor :start_date
23
+
24
+ # The end date of the range to reschedule in ISO-8601 format
25
+ attr_accessor :end_date
26
+
27
+ # The IDs of the agents to reschedule. Null or empty means all agents on the schedule
28
+ attr_accessor :agent_ids
29
+
30
+ # The IDs of the activity codes to reschedule. Null or empty means all activity codes will be considered
31
+ attr_accessor :activity_code_ids
32
+
33
+ # Whether to prevent changes to weekly paid time
34
+ attr_accessor :do_not_change_weekly_paid_time
35
+
36
+ # Whether to prevent changes to daily paid time
37
+ attr_accessor :do_not_change_daily_paid_time
38
+
39
+ # Whether to prevent changes to shift start times
40
+ attr_accessor :do_not_change_shift_start_times
41
+
42
+ # Whether to prevent changes to manually edited shifts
43
+ attr_accessor :do_not_change_manually_edited_shifts
44
+
45
+ # The schedule ID of the schedule to which the results will be applied
46
+ attr_accessor :existing_schedule_id
47
+
48
+ # The version of the schedule at the time the rescheduling was initiated
49
+ attr_accessor :existing_schedule_version
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+
55
+ :'start_date' => :'startDate',
56
+
57
+ :'end_date' => :'endDate',
58
+
59
+ :'agent_ids' => :'agentIds',
60
+
61
+ :'activity_code_ids' => :'activityCodeIds',
62
+
63
+ :'do_not_change_weekly_paid_time' => :'doNotChangeWeeklyPaidTime',
64
+
65
+ :'do_not_change_daily_paid_time' => :'doNotChangeDailyPaidTime',
66
+
67
+ :'do_not_change_shift_start_times' => :'doNotChangeShiftStartTimes',
68
+
69
+ :'do_not_change_manually_edited_shifts' => :'doNotChangeManuallyEditedShifts',
70
+
71
+ :'existing_schedule_id' => :'existingScheduleId',
72
+
73
+ :'existing_schedule_version' => :'existingScheduleVersion'
74
+
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+
82
+ :'start_date' => :'DateTime',
83
+
84
+ :'end_date' => :'DateTime',
85
+
86
+ :'agent_ids' => :'Array<String>',
87
+
88
+ :'activity_code_ids' => :'Array<String>',
89
+
90
+ :'do_not_change_weekly_paid_time' => :'BOOLEAN',
91
+
92
+ :'do_not_change_daily_paid_time' => :'BOOLEAN',
93
+
94
+ :'do_not_change_shift_start_times' => :'BOOLEAN',
95
+
96
+ :'do_not_change_manually_edited_shifts' => :'BOOLEAN',
97
+
98
+ :'existing_schedule_id' => :'String',
99
+
100
+ :'existing_schedule_version' => :'Integer'
101
+
102
+ }
103
+ end
104
+
105
+ # Initializes the object
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ def initialize(attributes = {})
108
+ return unless attributes.is_a?(Hash)
109
+
110
+ # convert string to symbol for hash key
111
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
112
+
113
+
114
+ if attributes.has_key?(:'startDate')
115
+
116
+
117
+ self.start_date = attributes[:'startDate']
118
+
119
+
120
+ end
121
+
122
+
123
+ if attributes.has_key?(:'endDate')
124
+
125
+
126
+ self.end_date = attributes[:'endDate']
127
+
128
+
129
+ end
130
+
131
+
132
+ if attributes.has_key?(:'agentIds')
133
+
134
+ if (value = attributes[:'agentIds']).is_a?(Array)
135
+ self.agent_ids = value
136
+ end
137
+
138
+
139
+
140
+ end
141
+
142
+
143
+ if attributes.has_key?(:'activityCodeIds')
144
+
145
+ if (value = attributes[:'activityCodeIds']).is_a?(Array)
146
+ self.activity_code_ids = value
147
+ end
148
+
149
+
150
+
151
+ end
152
+
153
+
154
+ if attributes.has_key?(:'doNotChangeWeeklyPaidTime')
155
+
156
+
157
+ self.do_not_change_weekly_paid_time = attributes[:'doNotChangeWeeklyPaidTime']
158
+
159
+
160
+ end
161
+
162
+
163
+ if attributes.has_key?(:'doNotChangeDailyPaidTime')
164
+
165
+
166
+ self.do_not_change_daily_paid_time = attributes[:'doNotChangeDailyPaidTime']
167
+
168
+
169
+ end
170
+
171
+
172
+ if attributes.has_key?(:'doNotChangeShiftStartTimes')
173
+
174
+
175
+ self.do_not_change_shift_start_times = attributes[:'doNotChangeShiftStartTimes']
176
+
177
+
178
+ end
179
+
180
+
181
+ if attributes.has_key?(:'doNotChangeManuallyEditedShifts')
182
+
183
+
184
+ self.do_not_change_manually_edited_shifts = attributes[:'doNotChangeManuallyEditedShifts']
185
+
186
+
187
+ end
188
+
189
+
190
+ if attributes.has_key?(:'existingScheduleId')
191
+
192
+
193
+ self.existing_schedule_id = attributes[:'existingScheduleId']
194
+
195
+
196
+ end
197
+
198
+
199
+ if attributes.has_key?(:'existingScheduleVersion')
200
+
201
+
202
+ self.existing_schedule_version = attributes[:'existingScheduleVersion']
203
+
204
+
205
+ end
206
+
207
+
208
+ end
209
+
210
+ # Show invalid properties with the reasons. Usually used together with valid?
211
+ # @return Array for valid properies with the reasons
212
+ def list_invalid_properties
213
+ invalid_properties = Array.new
214
+
215
+
216
+ return invalid_properties
217
+ end
218
+
219
+ # Check to see if the all the properties in the model are valid
220
+ # @return true if the model is valid
221
+ def valid?
222
+
223
+
224
+ if @start_date.nil?
225
+ return false
226
+ end
227
+
228
+
229
+
230
+
231
+
232
+
233
+ if @end_date.nil?
234
+ return false
235
+ end
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ if @do_not_change_weekly_paid_time.nil?
251
+ return false
252
+ end
253
+
254
+
255
+
256
+
257
+
258
+
259
+ if @do_not_change_daily_paid_time.nil?
260
+ return false
261
+ end
262
+
263
+
264
+
265
+
266
+
267
+
268
+ if @do_not_change_shift_start_times.nil?
269
+ return false
270
+ end
271
+
272
+
273
+
274
+
275
+
276
+
277
+ if @do_not_change_manually_edited_shifts.nil?
278
+ return false
279
+ end
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+ end
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+ # Checks equality by comparing each attribute.
347
+ # @param [Object] Object to be compared
348
+ def ==(o)
349
+ return true if self.equal?(o)
350
+ self.class == o.class &&
351
+ start_date == o.start_date &&
352
+ end_date == o.end_date &&
353
+ agent_ids == o.agent_ids &&
354
+ activity_code_ids == o.activity_code_ids &&
355
+ do_not_change_weekly_paid_time == o.do_not_change_weekly_paid_time &&
356
+ do_not_change_daily_paid_time == o.do_not_change_daily_paid_time &&
357
+ do_not_change_shift_start_times == o.do_not_change_shift_start_times &&
358
+ do_not_change_manually_edited_shifts == o.do_not_change_manually_edited_shifts &&
359
+ existing_schedule_id == o.existing_schedule_id &&
360
+ existing_schedule_version == o.existing_schedule_version
361
+ end
362
+
363
+ # @see the `==` method
364
+ # @param [Object] Object to be compared
365
+ def eql?(o)
366
+ self == o
367
+ end
368
+
369
+ # Calculates hash code according to all attributes.
370
+ # @return [Fixnum] Hash code
371
+ def hash
372
+ [start_date, end_date, agent_ids, activity_code_ids, do_not_change_weekly_paid_time, do_not_change_daily_paid_time, do_not_change_shift_start_times, do_not_change_manually_edited_shifts, existing_schedule_id, existing_schedule_version].hash
373
+ end
374
+
375
+ # build the object from hash
376
+ def build_from_hash(attributes)
377
+ return nil unless attributes.is_a?(Hash)
378
+ self.class.swagger_types.each_pair do |key, type|
379
+ if type =~ /^Array<(.*)>/i
380
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
381
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
382
+ else
383
+ #TODO show warning in debug mode
384
+ end
385
+ elsif !attributes[self.class.attribute_map[key]].nil?
386
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
387
+ else
388
+ # data not found in attributes(hash), not an issue as the data can be optional
389
+ end
390
+ end
391
+
392
+ self
393
+ end
394
+
395
+ def _deserialize(type, value)
396
+ case type.to_sym
397
+ when :DateTime
398
+ DateTime.parse(value)
399
+ when :Date
400
+ Date.parse(value)
401
+ when :String
402
+ value.to_s
403
+ when :Integer
404
+ value.to_i
405
+ when :Float
406
+ value.to_f
407
+ when :BOOLEAN
408
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
409
+ true
410
+ else
411
+ false
412
+ end
413
+ when :Object
414
+ # generic object (usually a Hash), return directly
415
+ value
416
+ when /\AArray<(?<inner_type>.+)>\z/
417
+ inner_type = Regexp.last_match[:inner_type]
418
+ value.map { |v| _deserialize(inner_type, v) }
419
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
420
+ k_type = Regexp.last_match[:k_type]
421
+ v_type = Regexp.last_match[:v_type]
422
+ {}.tap do |hash|
423
+ value.each do |k, v|
424
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
425
+ end
426
+ end
427
+ else # model
428
+ _model = Object.const_get("PureCloud").const_get(type).new
429
+ _model.build_from_hash(value)
430
+ end
431
+ end
432
+
433
+ def to_s
434
+ to_hash.to_s
435
+ end
436
+
437
+ # to_body is an alias to to_body (backward compatibility))
438
+ def to_body
439
+ to_hash
440
+ end
441
+
442
+ # return the object in the form of hash
443
+ def to_hash
444
+ hash = {}
445
+ self.class.attribute_map.each_pair do |attr, param|
446
+ value = self.send(attr)
447
+ next if value.nil?
448
+ hash[param] = _to_hash(value)
449
+ end
450
+ hash
451
+ end
452
+
453
+ # Method to output non-array value in the form of hash
454
+ # For object, use to_hash. Otherwise, just return the value
455
+ def _to_hash(value)
456
+ if value.is_a?(Array)
457
+ value.compact.map{ |v| _to_hash(v) }
458
+ elsif value.is_a?(Hash)
459
+ {}.tap do |hash|
460
+ value.each { |k, v| hash[k] = _to_hash(v) }
461
+ end
462
+ elsif value.respond_to? :to_hash
463
+ value.to_hash
464
+ else
465
+ value
466
+ end
467
+ end
468
+
469
+ end
470
+ end