purecloudplatformclientv2 53.0.0 → 54.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +2 -2
  4. data/docs/AgentActivityEntityListing.md +2 -2
  5. data/docs/AttemptLimitsEntityListing.md +2 -2
  6. data/docs/AuthzDivisionEntityListing.md +2 -2
  7. data/docs/CalibrationEntityListing.md +2 -2
  8. data/docs/CallConversationEntityListing.md +2 -2
  9. data/docs/CallHistoryConversationEntityListing.md +2 -2
  10. data/docs/CallableTimeSetEntityListing.md +2 -2
  11. data/docs/CallbackConversationEntityListing.md +2 -2
  12. data/docs/CampaignDivisionViewListing.md +2 -2
  13. data/docs/CampaignEntityListing.md +2 -2
  14. data/docs/CampaignRuleEntityListing.md +2 -2
  15. data/docs/CampaignSequenceEntityListing.md +2 -2
  16. data/docs/CertificateAuthorityEntityListing.md +2 -2
  17. data/docs/ChatConversationEntityListing.md +2 -2
  18. data/docs/ClientAppEntityListing.md +2 -2
  19. data/docs/CobrowseConversationEntityListing.md +2 -2
  20. data/docs/CommandStatusEntityListing.md +2 -2
  21. data/docs/ConsumedResourcesEntityListing.md +2 -2
  22. data/docs/ConsumingResourcesEntityListing.md +2 -2
  23. data/docs/ContactListDivisionViewListing.md +2 -2
  24. data/docs/ContactListEntityListing.md +2 -2
  25. data/docs/ContactListFilterEntityListing.md +2 -2
  26. data/docs/ContactListing.md +2 -2
  27. data/docs/ConversationEntityListing.md +2 -2
  28. data/docs/CredentialInfoListing.md +2 -2
  29. data/docs/CredentialTypeListing.md +2 -2
  30. data/docs/DIDEntityListing.md +2 -2
  31. data/docs/DIDPoolEntityListing.md +2 -2
  32. data/docs/DataTableRowEntityListing.md +2 -2
  33. data/docs/DataTablesDomainEntityListing.md +2 -2
  34. data/docs/DependencyObjectEntityListing.md +2 -2
  35. data/docs/DependencyTypeEntityListing.md +2 -2
  36. data/docs/DialerEventEntityListing.md +2 -2
  37. data/docs/DirectoryUserDevicesListing.md +2 -2
  38. data/docs/DncListDivisionViewListing.md +2 -2
  39. data/docs/DncListEntityListing.md +2 -2
  40. data/docs/DocumentAuditEntityListing.md +2 -2
  41. data/docs/DocumentEntityListing.md +2 -2
  42. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  43. data/docs/DomainEntityListing.md +2 -2
  44. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  45. data/docs/DomainEntityListingQueryResult.md +2 -2
  46. data/docs/DomainEntityListingSurveyForm.md +2 -2
  47. data/docs/EdgeEntityListing.md +2 -2
  48. data/docs/EdgeGroupEntityListing.md +2 -2
  49. data/docs/EdgeLineEntityListing.md +2 -2
  50. data/docs/EmailConversationEntityListing.md +2 -2
  51. data/docs/EmailMessageListing.md +2 -2
  52. data/docs/EmergencyGroupListing.md +2 -2
  53. data/docs/EncryptionKeyEntityListing.md +2 -2
  54. data/docs/EvaluationEntityListing.md +2 -2
  55. data/docs/EvaluationFormEntityListing.md +2 -2
  56. data/docs/EvaluatorActivityEntityListing.md +2 -2
  57. data/docs/ExtensionEntityListing.md +2 -2
  58. data/docs/ExtensionPoolEntityListing.md +2 -2
  59. data/docs/ExternalOrganizationListing.md +2 -2
  60. data/docs/FacebookIntegrationEntityListing.md +2 -2
  61. data/docs/FaxDocumentEntityListing.md +2 -2
  62. data/docs/FlowDivisionViewEntityListing.md +2 -2
  63. data/docs/FlowEntityListing.md +2 -2
  64. data/docs/FlowVersionEntityListing.md +2 -2
  65. data/docs/GDPRRequestEntityListing.md +2 -2
  66. data/docs/GDPRSubjectEntityListing.md +2 -2
  67. data/docs/GreetingListing.md +2 -2
  68. data/docs/GroupEntityListing.md +2 -2
  69. data/docs/GroupProfileEntityListing.md +2 -2
  70. data/docs/IVREntityListing.md +2 -2
  71. data/docs/InboundDomainEntityListing.md +2 -2
  72. data/docs/InboundRouteEntityListing.md +2 -2
  73. data/docs/IntegrationEntityListing.md +2 -2
  74. data/docs/IntegrationEventEntityListing.md +2 -2
  75. data/docs/IntegrationTypeEntityListing.md +2 -2
  76. data/docs/InteractionStatsAlertContainer.md +2 -2
  77. data/docs/InteractionStatsRuleContainer.md +2 -2
  78. data/docs/KeywordSetEntityListing.md +2 -2
  79. data/docs/LanguageEntityListing.md +2 -2
  80. data/docs/LibraryEntityListing.md +2 -2
  81. data/docs/LineBaseEntityListing.md +2 -2
  82. data/docs/LineEntityListing.md +2 -2
  83. data/docs/LineIntegrationEntityListing.md +2 -2
  84. data/docs/LocationEntityListing.md +2 -2
  85. data/docs/LocationsApi.md +1 -2
  86. data/docs/LogicalInterfaceEntityListing.md +2 -2
  87. data/docs/ManagementUnitListing.md +2 -2
  88. data/docs/MessageConversationEntityListing.md +2 -2
  89. data/docs/MessagingStickerEntityListing.md +2 -2
  90. data/docs/NoteListing.md +2 -2
  91. data/docs/OAuthClientEntityListing.md +2 -2
  92. data/docs/OAuthProviderEntityListing.md +2 -2
  93. data/docs/OrganizationPresenceEntityListing.md +2 -2
  94. data/docs/OrganizationRoleEntityListing.md +2 -2
  95. data/docs/OrphanRecordingListing.md +2 -2
  96. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  97. data/docs/OutboundRouteEntityListing.md +2 -2
  98. data/docs/PermissionCollectionEntityListing.md +2 -2
  99. data/docs/PhoneBaseEntityListing.md +2 -2
  100. data/docs/PhoneEntityListing.md +2 -2
  101. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  102. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  103. data/docs/PolicyEntityListing.md +2 -2
  104. data/docs/PromptAssetEntityListing.md +2 -2
  105. data/docs/PromptEntityListing.md +2 -2
  106. data/docs/QualityAuditPage.md +2 -2
  107. data/docs/QueueEntityListing.md +2 -2
  108. data/docs/QueueMemberEntityListing.md +2 -2
  109. data/docs/RecipientListing.md +2 -2
  110. data/docs/RelationshipListing.md +2 -2
  111. data/docs/ReportMetaDataEntityListing.md +2 -2
  112. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  113. data/docs/ReportScheduleEntityListing.md +2 -2
  114. data/docs/ReportingExportJobListing.md +2 -2
  115. data/docs/ResponseEntityList.md +2 -2
  116. data/docs/ResponseEntityListing.md +2 -2
  117. data/docs/ResponseSetEntityListing.md +2 -2
  118. data/docs/RuleSetEntityListing.md +2 -2
  119. data/docs/ScheduleEntityListing.md +2 -2
  120. data/docs/ScheduleGroupEntityListing.md +2 -2
  121. data/docs/SchemaCategoryEntityListing.md +2 -2
  122. data/docs/SchemaReferenceEntityListing.md +2 -2
  123. data/docs/ScreenRecordingSessionListing.md +2 -2
  124. data/docs/ScriptEntityListing.md +2 -2
  125. data/docs/SecurityProfileEntityListing.md +2 -2
  126. data/docs/ShareEntityListing.md +2 -2
  127. data/docs/ShiftTradeResponse.md +1 -1
  128. data/docs/SiteEntityListing.md +2 -2
  129. data/docs/SkillEntityListing.md +2 -2
  130. data/docs/SmsPhoneNumberEntityListing.md +2 -2
  131. data/docs/StationEntityListing.md +2 -2
  132. data/docs/SubjectDivisionGrantsEntityListing.md +2 -2
  133. data/docs/SurveyFormEntityListing.md +2 -2
  134. data/docs/SystemPromptAssetEntityListing.md +2 -2
  135. data/docs/SystemPromptEntityListing.md +2 -2
  136. data/docs/TagValueEntityListing.md +2 -2
  137. data/docs/TextMessageListing.md +2 -2
  138. data/docs/TimeZoneEntityListing.md +2 -2
  139. data/docs/TrunkBaseEntityListing.md +2 -2
  140. data/docs/TrunkEntityListing.md +2 -2
  141. data/docs/TrunkMetabaseEntityListing.md +2 -2
  142. data/docs/TrustEntityListing.md +2 -2
  143. data/docs/TrustUserEntityListing.md +2 -2
  144. data/docs/TrustorEntityListing.md +2 -2
  145. data/docs/TwitterIntegrationEntityListing.md +2 -2
  146. data/docs/UserActionCategoryEntityListing.md +2 -2
  147. data/docs/UserEntityListing.md +2 -2
  148. data/docs/UserLanguageEntityListing.md +2 -2
  149. data/docs/UserProfileEntityListing.md +2 -2
  150. data/docs/UserQueueEntityListing.md +2 -2
  151. data/docs/UserRecordingEntityListing.md +2 -2
  152. data/docs/UserSkillEntityListing.md +2 -2
  153. data/docs/VoicemailMessageEntityListing.md +2 -2
  154. data/docs/WfmAgent.md +4 -4
  155. data/docs/WorkforceManagementApi.md +0 -652
  156. data/docs/WorkspaceEntityListing.md +2 -2
  157. data/docs/WorkspaceMemberEntityListing.md +2 -2
  158. data/docs/WrapupCodeEntityListing.md +2 -2
  159. data/lib/purecloudplatformclientv2.rb +0 -54
  160. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +53 -751
  161. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  162. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +13 -13
  163. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +13 -13
  164. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +13 -13
  165. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +13 -13
  166. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +13 -13
  167. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +13 -13
  168. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +13 -13
  169. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +13 -13
  170. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +13 -13
  171. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +13 -13
  172. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +13 -13
  173. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +13 -13
  174. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +13 -13
  175. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +13 -13
  176. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +13 -13
  177. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +13 -13
  178. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +13 -13
  179. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +13 -13
  180. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +13 -13
  181. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +13 -13
  182. data/lib/purecloudplatformclientv2/models/contact_list_division_view_listing.rb +13 -13
  183. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +13 -13
  184. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +13 -13
  185. data/lib/purecloudplatformclientv2/models/contact_listing.rb +13 -13
  186. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +13 -13
  187. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +13 -13
  188. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +13 -13
  189. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +13 -13
  190. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +13 -13
  191. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +13 -13
  192. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +13 -13
  193. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +13 -13
  194. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +13 -13
  195. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +13 -13
  196. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +13 -13
  197. data/lib/purecloudplatformclientv2/models/dnc_list_division_view_listing.rb +13 -13
  198. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +13 -13
  199. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +13 -13
  200. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +13 -13
  201. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +13 -13
  202. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +13 -13
  203. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +13 -13
  204. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +13 -13
  205. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +13 -13
  206. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +13 -13
  207. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +13 -13
  208. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +13 -13
  209. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +13 -13
  210. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +13 -13
  211. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +13 -13
  212. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +13 -13
  213. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +13 -13
  214. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +13 -13
  215. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +13 -13
  216. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +13 -13
  217. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +13 -13
  218. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +13 -13
  219. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +13 -13
  220. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +13 -13
  221. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +13 -13
  222. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +13 -13
  223. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +13 -13
  224. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +13 -13
  225. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +13 -13
  226. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +13 -13
  227. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +13 -13
  228. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +13 -13
  229. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +13 -13
  230. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +13 -13
  231. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +13 -13
  232. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +13 -13
  233. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +13 -13
  234. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +13 -13
  235. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +13 -13
  236. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +13 -13
  237. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +13 -13
  238. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +13 -13
  239. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +13 -13
  240. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +13 -13
  241. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +13 -13
  242. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +13 -13
  243. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +13 -13
  244. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +13 -13
  245. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +13 -13
  246. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +13 -13
  247. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +13 -13
  248. data/lib/purecloudplatformclientv2/models/note_listing.rb +13 -13
  249. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +13 -13
  250. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +13 -13
  251. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +13 -13
  252. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +13 -13
  253. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +13 -13
  254. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +13 -13
  255. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +13 -13
  256. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +13 -13
  257. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +13 -13
  258. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +13 -13
  259. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +13 -13
  260. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +13 -13
  261. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +13 -13
  262. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +13 -13
  263. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +13 -13
  264. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +13 -13
  265. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +13 -13
  266. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +13 -13
  267. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +13 -13
  268. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +13 -13
  269. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +13 -13
  270. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +13 -13
  271. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +13 -13
  272. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +13 -13
  273. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +13 -13
  274. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +13 -13
  275. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +13 -13
  276. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +13 -13
  277. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +13 -13
  278. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +13 -13
  279. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +13 -13
  280. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +13 -13
  281. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +13 -13
  282. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +13 -13
  283. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +13 -13
  284. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +13 -13
  285. data/lib/purecloudplatformclientv2/models/shift_trade_response.rb +1 -1
  286. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +13 -13
  287. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +13 -13
  288. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +13 -13
  289. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +13 -13
  290. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +13 -13
  291. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +13 -13
  292. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +13 -13
  293. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +13 -13
  294. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +13 -13
  295. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +13 -13
  296. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +13 -13
  297. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +13 -13
  298. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +13 -13
  299. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +13 -13
  300. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +13 -13
  301. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +13 -13
  302. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +13 -13
  303. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +13 -13
  304. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +13 -13
  305. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +13 -13
  306. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +13 -13
  307. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +13 -13
  308. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +13 -13
  309. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +13 -13
  310. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +13 -13
  311. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +13 -13
  312. data/lib/purecloudplatformclientv2/models/wfm_agent.rb +55 -55
  313. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +13 -13
  314. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +13 -13
  315. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +13 -13
  316. data/lib/purecloudplatformclientv2/version.rb +1 -1
  317. metadata +2 -110
  318. data/docs/ActionMap.md +0 -30
  319. data/docs/ActionMapAction.md +0 -16
  320. data/docs/ActionProperties.md +0 -14
  321. data/docs/ActionSurvey.md +0 -13
  322. data/docs/ActionTarget.md +0 -15
  323. data/docs/Activation.md +0 -14
  324. data/docs/AddShiftTradeRequest.md +0 -17
  325. data/docs/Browser.md +0 -23
  326. data/docs/Context.md +0 -13
  327. data/docs/ContextPattern.md +0 -13
  328. data/docs/Criteria.md +0 -16
  329. data/docs/Cursors.md +0 -14
  330. data/docs/CustomEventAttribute.md +0 -14
  331. data/docs/Device.md +0 -20
  332. data/docs/EntityTypeCriteria.md +0 -17
  333. data/docs/Event.md +0 -24
  334. data/docs/EventAction.md +0 -17
  335. data/docs/EventCondition.md +0 -15
  336. data/docs/EventListing.md +0 -16
  337. data/docs/GenericActionEvent.md +0 -16
  338. data/docs/GenericEventAction.md +0 -18
  339. data/docs/Journey.md +0 -13
  340. data/docs/JourneyApi.md +0 -85
  341. data/docs/JourneyCampaign.md +0 -19
  342. data/docs/JourneyGeolocation.md +0 -22
  343. data/docs/JourneyPage.md +0 -22
  344. data/docs/JourneyPattern.md +0 -14
  345. data/docs/JourneySegment.md +0 -25
  346. data/docs/JourneySurveyQuestion.md +0 -17
  347. data/docs/MatchShiftTradeRequest.md +0 -15
  348. data/docs/MatchShiftTradeResponse.md +0 -15
  349. data/docs/Outcome.md +0 -24
  350. data/docs/OutcomeAchievedEvent.md +0 -22
  351. data/docs/OutcomeProbabilityCondition.md +0 -15
  352. data/docs/Referrer.md +0 -21
  353. data/docs/SearchShiftTradeResponse.md +0 -15
  354. data/docs/SearchShiftTradesRequest.md +0 -14
  355. data/docs/SearchShiftTradesResponse.md +0 -13
  356. data/docs/SegmentAssignedEvent.md +0 -22
  357. data/docs/Session.md +0 -15
  358. data/docs/ShiftTradeActivityPreviewResponse.md +0 -16
  359. data/docs/ShiftTradeMatchReviewResponse.md +0 -16
  360. data/docs/ShiftTradeMatchReviewUserResponse.md +0 -17
  361. data/docs/ShiftTradeMatchViolation.md +0 -14
  362. data/docs/ShiftTradePreviewResponse.md +0 -13
  363. data/docs/ShiftTradeResponseAcceptableIntervals.md +0 -14
  364. data/docs/UpdateAgentRequest.md +0 -13
  365. data/docs/UpdateShiftTradeRequest.md +0 -16
  366. data/docs/UpdateShiftTradeStateRequest.md +0 -14
  367. data/docs/UrlCondition.md +0 -14
  368. data/docs/WebActionEvent.md +0 -26
  369. data/docs/WebEvent.md +0 -25
  370. data/docs/WeekShiftTradeListResponse.md +0 -13
  371. data/docs/WeekShiftTradeResponse.md +0 -14
  372. data/lib/purecloudplatformclientv2/api/journey_api.rb +0 -119
  373. data/lib/purecloudplatformclientv2/models/action_map.rb +0 -666
  374. data/lib/purecloudplatformclientv2/models/action_map_action.rb +0 -299
  375. data/lib/purecloudplatformclientv2/models/action_properties.rb +0 -228
  376. data/lib/purecloudplatformclientv2/models/action_survey.rb +0 -209
  377. data/lib/purecloudplatformclientv2/models/action_target.rb +0 -253
  378. data/lib/purecloudplatformclientv2/models/activation.rb +0 -233
  379. data/lib/purecloudplatformclientv2/models/add_shift_trade_request.rb +0 -317
  380. data/lib/purecloudplatformclientv2/models/browser.rb +0 -472
  381. data/lib/purecloudplatformclientv2/models/context.rb +0 -209
  382. data/lib/purecloudplatformclientv2/models/context_pattern.rb +0 -209
  383. data/lib/purecloudplatformclientv2/models/criteria.rb +0 -311
  384. data/lib/purecloudplatformclientv2/models/cursors.rb +0 -226
  385. data/lib/purecloudplatformclientv2/models/custom_event_attribute.rb +0 -228
  386. data/lib/purecloudplatformclientv2/models/device.rb +0 -418
  387. data/lib/purecloudplatformclientv2/models/entity_type_criteria.rb +0 -351
  388. data/lib/purecloudplatformclientv2/models/event.rb +0 -503
  389. data/lib/purecloudplatformclientv2/models/event_action.rb +0 -339
  390. data/lib/purecloudplatformclientv2/models/event_condition.rb +0 -280
  391. data/lib/purecloudplatformclientv2/models/event_listing.rb +0 -278
  392. data/lib/purecloudplatformclientv2/models/generic_action_event.rb +0 -285
  393. data/lib/purecloudplatformclientv2/models/generic_event_action.rb +0 -365
  394. data/lib/purecloudplatformclientv2/models/journey.rb +0 -209
  395. data/lib/purecloudplatformclientv2/models/journey_campaign.rb +0 -358
  396. data/lib/purecloudplatformclientv2/models/journey_geolocation.rb +0 -436
  397. data/lib/purecloudplatformclientv2/models/journey_page.rb +0 -458
  398. data/lib/purecloudplatformclientv2/models/journey_pattern.rb +0 -235
  399. data/lib/purecloudplatformclientv2/models/journey_segment.rb +0 -518
  400. data/lib/purecloudplatformclientv2/models/journey_survey_question.rb +0 -341
  401. data/lib/purecloudplatformclientv2/models/match_shift_trade_request.rb +0 -264
  402. data/lib/purecloudplatformclientv2/models/match_shift_trade_response.rb +0 -258
  403. data/lib/purecloudplatformclientv2/models/outcome.rb +0 -492
  404. data/lib/purecloudplatformclientv2/models/outcome_achieved_event.rb +0 -441
  405. data/lib/purecloudplatformclientv2/models/outcome_probability_condition.rb +0 -264
  406. data/lib/purecloudplatformclientv2/models/referrer.rb +0 -444
  407. data/lib/purecloudplatformclientv2/models/search_shift_trade_response.rb +0 -256
  408. data/lib/purecloudplatformclientv2/models/search_shift_trades_request.rb +0 -235
  409. data/lib/purecloudplatformclientv2/models/search_shift_trades_response.rb +0 -204
  410. data/lib/purecloudplatformclientv2/models/segment_assigned_event.rb +0 -441
  411. data/lib/purecloudplatformclientv2/models/session.rb +0 -253
  412. data/lib/purecloudplatformclientv2/models/shift_trade_activity_preview_response.rb +0 -280
  413. data/lib/purecloudplatformclientv2/models/shift_trade_match_review_response.rb +0 -284
  414. data/lib/purecloudplatformclientv2/models/shift_trade_match_review_user_response.rb +0 -306
  415. data/lib/purecloudplatformclientv2/models/shift_trade_match_violation.rb +0 -244
  416. data/lib/purecloudplatformclientv2/models/shift_trade_preview_response.rb +0 -204
  417. data/lib/purecloudplatformclientv2/models/shift_trade_response_acceptable_intervals.rb +0 -228
  418. data/lib/purecloudplatformclientv2/models/update_agent_request.rb +0 -202
  419. data/lib/purecloudplatformclientv2/models/update_shift_trade_request.rb +0 -286
  420. data/lib/purecloudplatformclientv2/models/update_shift_trade_state_request.rb +0 -252
  421. data/lib/purecloudplatformclientv2/models/url_condition.rb +0 -254
  422. data/lib/purecloudplatformclientv2/models/web_action_event.rb +0 -545
  423. data/lib/purecloudplatformclientv2/models/web_event.rb +0 -521
  424. data/lib/purecloudplatformclientv2/models/week_shift_trade_list_response.rb +0 -203
  425. data/lib/purecloudplatformclientv2/models/week_shift_trade_response.rb +0 -228
@@ -1,339 +0,0 @@
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 EventAction
21
- # ID of the action.
22
- attr_accessor :id
23
-
24
- # Current state of the action (e.g. qualified, succeeded, errored).
25
- attr_accessor :state
26
-
27
- # The media type used to deliver the action (e.g. email, webhook).
28
- attr_accessor :media_type
29
-
30
- # Prompt of the action to be displayed/sent to the visitor.
31
- attr_accessor :prompt
32
-
33
- # Timestamp indicating when the action was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
34
- attr_accessor :created_date
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
-
40
- :'id' => :'id',
41
-
42
- :'state' => :'state',
43
-
44
- :'media_type' => :'mediaType',
45
-
46
- :'prompt' => :'prompt',
47
-
48
- :'created_date' => :'createdDate'
49
-
50
- }
51
- end
52
-
53
- # Attribute type mapping.
54
- def self.swagger_types
55
- {
56
-
57
- :'id' => :'String',
58
-
59
- :'state' => :'String',
60
-
61
- :'media_type' => :'String',
62
-
63
- :'prompt' => :'String',
64
-
65
- :'created_date' => :'DateTime'
66
-
67
- }
68
- end
69
-
70
- # Initializes the object
71
- # @param [Hash] attributes Model attributes in the form of hash
72
- def initialize(attributes = {})
73
- return unless attributes.is_a?(Hash)
74
-
75
- # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
77
-
78
-
79
- if attributes.has_key?(:'id')
80
-
81
-
82
- self.id = attributes[:'id']
83
-
84
-
85
- end
86
-
87
-
88
- if attributes.has_key?(:'state')
89
-
90
-
91
- self.state = attributes[:'state']
92
-
93
-
94
- end
95
-
96
-
97
- if attributes.has_key?(:'mediaType')
98
-
99
-
100
- self.media_type = attributes[:'mediaType']
101
-
102
-
103
- end
104
-
105
-
106
- if attributes.has_key?(:'prompt')
107
-
108
-
109
- self.prompt = attributes[:'prompt']
110
-
111
-
112
- end
113
-
114
-
115
- if attributes.has_key?(:'createdDate')
116
-
117
-
118
- self.created_date = attributes[:'createdDate']
119
-
120
-
121
- end
122
-
123
-
124
- end
125
-
126
- # Show invalid properties with the reasons. Usually used together with valid?
127
- # @return Array for valid properies with the reasons
128
- def list_invalid_properties
129
- invalid_properties = Array.new
130
-
131
-
132
- return invalid_properties
133
- end
134
-
135
- # Check to see if the all the properties in the model are valid
136
- # @return true if the model is valid
137
- def valid?
138
-
139
-
140
- if @id.nil?
141
- return false
142
- end
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- allowed_values = ["accepted", "rejected", "timedout", "errored", "missed", "ignored", "qualified", "offered"]
151
- if @state && !allowed_values.include?(@state)
152
- return false
153
- end
154
-
155
-
156
-
157
-
158
-
159
- allowed_values = ["webchat"]
160
- if @media_type && !allowed_values.include?(@media_type)
161
- return false
162
- end
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
- end
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- # Custom attribute writer method checking allowed values (enum).
184
- # @param [Object] state Object to be assigned
185
- def state=(state)
186
- allowed_values = ["accepted", "rejected", "timedout", "errored", "missed", "ignored", "qualified", "offered"]
187
- if state && !allowed_values.include?(state)
188
- fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
189
- end
190
- @state = state
191
- end
192
-
193
-
194
-
195
-
196
-
197
- # Custom attribute writer method checking allowed values (enum).
198
- # @param [Object] media_type Object to be assigned
199
- def media_type=(media_type)
200
- allowed_values = ["webchat"]
201
- if media_type && !allowed_values.include?(media_type)
202
- fail ArgumentError, "invalid value for 'media_type', must be one of #{allowed_values}."
203
- end
204
- @media_type = media_type
205
- end
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
- # Checks equality by comparing each attribute.
221
- # @param [Object] Object to be compared
222
- def ==(o)
223
- return true if self.equal?(o)
224
- self.class == o.class &&
225
- id == o.id &&
226
- state == o.state &&
227
- media_type == o.media_type &&
228
- prompt == o.prompt &&
229
- created_date == o.created_date
230
- end
231
-
232
- # @see the `==` method
233
- # @param [Object] Object to be compared
234
- def eql?(o)
235
- self == o
236
- end
237
-
238
- # Calculates hash code according to all attributes.
239
- # @return [Fixnum] Hash code
240
- def hash
241
- [id, state, media_type, prompt, created_date].hash
242
- end
243
-
244
- # build the object from hash
245
- def build_from_hash(attributes)
246
- return nil unless attributes.is_a?(Hash)
247
- self.class.swagger_types.each_pair do |key, type|
248
- if type =~ /^Array<(.*)>/i
249
- if attributes[self.class.attribute_map[key]].is_a?(Array)
250
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
251
- else
252
- #TODO show warning in debug mode
253
- end
254
- elsif !attributes[self.class.attribute_map[key]].nil?
255
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
256
- else
257
- # data not found in attributes(hash), not an issue as the data can be optional
258
- end
259
- end
260
-
261
- self
262
- end
263
-
264
- def _deserialize(type, value)
265
- case type.to_sym
266
- when :DateTime
267
- DateTime.parse(value)
268
- when :Date
269
- Date.parse(value)
270
- when :String
271
- value.to_s
272
- when :Integer
273
- value.to_i
274
- when :Float
275
- value.to_f
276
- when :BOOLEAN
277
- if value.to_s =~ /^(true|t|yes|y|1)$/i
278
- true
279
- else
280
- false
281
- end
282
- when :Object
283
- # generic object (usually a Hash), return directly
284
- value
285
- when /\AArray<(?<inner_type>.+)>\z/
286
- inner_type = Regexp.last_match[:inner_type]
287
- value.map { |v| _deserialize(inner_type, v) }
288
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
289
- k_type = Regexp.last_match[:k_type]
290
- v_type = Regexp.last_match[:v_type]
291
- {}.tap do |hash|
292
- value.each do |k, v|
293
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
294
- end
295
- end
296
- else # model
297
- _model = Object.const_get("PureCloud").const_get(type).new
298
- _model.build_from_hash(value)
299
- end
300
- end
301
-
302
- def to_s
303
- to_hash.to_s
304
- end
305
-
306
- # to_body is an alias to to_body (backward compatibility))
307
- def to_body
308
- to_hash
309
- end
310
-
311
- # return the object in the form of hash
312
- def to_hash
313
- hash = {}
314
- self.class.attribute_map.each_pair do |attr, param|
315
- value = self.send(attr)
316
- next if value.nil?
317
- hash[param] = _to_hash(value)
318
- end
319
- hash
320
- end
321
-
322
- # Method to output non-array value in the form of hash
323
- # For object, use to_hash. Otherwise, just return the value
324
- def _to_hash(value)
325
- if value.is_a?(Array)
326
- value.compact.map{ |v| _to_hash(v) }
327
- elsif value.is_a?(Hash)
328
- {}.tap do |hash|
329
- value.each { |k, v| hash[k] = _to_hash(v) }
330
- end
331
- elsif value.respond_to? :to_hash
332
- value.to_hash
333
- else
334
- value
335
- end
336
- end
337
-
338
- end
339
- end
@@ -1,280 +0,0 @@
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 EventCondition
21
- # The event key.
22
- attr_accessor :key
23
-
24
- # The event values.
25
- attr_accessor :values
26
-
27
- # The comparison operator.
28
- attr_accessor :operator
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
-
34
- :'key' => :'key',
35
-
36
- :'values' => :'values',
37
-
38
- :'operator' => :'operator'
39
-
40
- }
41
- end
42
-
43
- # Attribute type mapping.
44
- def self.swagger_types
45
- {
46
-
47
- :'key' => :'String',
48
-
49
- :'values' => :'Array<String>',
50
-
51
- :'operator' => :'String'
52
-
53
- }
54
- end
55
-
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- return unless attributes.is_a?(Hash)
60
-
61
- # convert string to symbol for hash key
62
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
-
64
-
65
- if attributes.has_key?(:'key')
66
-
67
-
68
- self.key = attributes[:'key']
69
-
70
-
71
- end
72
-
73
-
74
- if attributes.has_key?(:'values')
75
-
76
- if (value = attributes[:'values']).is_a?(Array)
77
- self.values = value
78
- end
79
-
80
-
81
-
82
- end
83
-
84
-
85
- if attributes.has_key?(:'operator')
86
-
87
-
88
- self.operator = attributes[:'operator']
89
-
90
-
91
- end
92
-
93
-
94
- end
95
-
96
- # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properies with the reasons
98
- def list_invalid_properties
99
- invalid_properties = Array.new
100
-
101
-
102
- return invalid_properties
103
- end
104
-
105
- # Check to see if the all the properties in the model are valid
106
- # @return true if the model is valid
107
- def valid?
108
-
109
-
110
- if @key.nil?
111
- return false
112
- end
113
-
114
-
115
-
116
-
117
-
118
-
119
- if @values.nil?
120
- return false
121
- end
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- allowed_values = ["equal", "notEqual", "like", "notLike", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"]
130
- if @operator && !allowed_values.include?(@operator)
131
- return false
132
- end
133
-
134
-
135
-
136
- end
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- # Custom attribute writer method checking allowed values (enum).
151
- # @param [Object] operator Object to be assigned
152
- def operator=(operator)
153
- allowed_values = ["equal", "notEqual", "like", "notLike", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"]
154
- if operator && !allowed_values.include?(operator)
155
- fail ArgumentError, "invalid value for 'operator', must be one of #{allowed_values}."
156
- end
157
- @operator = operator
158
- end
159
-
160
-
161
-
162
-
163
- # Checks equality by comparing each attribute.
164
- # @param [Object] Object to be compared
165
- def ==(o)
166
- return true if self.equal?(o)
167
- self.class == o.class &&
168
- key == o.key &&
169
- values == o.values &&
170
- operator == o.operator
171
- end
172
-
173
- # @see the `==` method
174
- # @param [Object] Object to be compared
175
- def eql?(o)
176
- self == o
177
- end
178
-
179
- # Calculates hash code according to all attributes.
180
- # @return [Fixnum] Hash code
181
- def hash
182
- [key, values, operator].hash
183
- end
184
-
185
- # build the object from hash
186
- def build_from_hash(attributes)
187
- return nil unless attributes.is_a?(Hash)
188
- self.class.swagger_types.each_pair do |key, type|
189
- if type =~ /^Array<(.*)>/i
190
- if attributes[self.class.attribute_map[key]].is_a?(Array)
191
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
192
- else
193
- #TODO show warning in debug mode
194
- end
195
- elsif !attributes[self.class.attribute_map[key]].nil?
196
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
197
- else
198
- # data not found in attributes(hash), not an issue as the data can be optional
199
- end
200
- end
201
-
202
- self
203
- end
204
-
205
- def _deserialize(type, value)
206
- case type.to_sym
207
- when :DateTime
208
- DateTime.parse(value)
209
- when :Date
210
- Date.parse(value)
211
- when :String
212
- value.to_s
213
- when :Integer
214
- value.to_i
215
- when :Float
216
- value.to_f
217
- when :BOOLEAN
218
- if value.to_s =~ /^(true|t|yes|y|1)$/i
219
- true
220
- else
221
- false
222
- end
223
- when :Object
224
- # generic object (usually a Hash), return directly
225
- value
226
- when /\AArray<(?<inner_type>.+)>\z/
227
- inner_type = Regexp.last_match[:inner_type]
228
- value.map { |v| _deserialize(inner_type, v) }
229
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
230
- k_type = Regexp.last_match[:k_type]
231
- v_type = Regexp.last_match[:v_type]
232
- {}.tap do |hash|
233
- value.each do |k, v|
234
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
235
- end
236
- end
237
- else # model
238
- _model = Object.const_get("PureCloud").const_get(type).new
239
- _model.build_from_hash(value)
240
- end
241
- end
242
-
243
- def to_s
244
- to_hash.to_s
245
- end
246
-
247
- # to_body is an alias to to_body (backward compatibility))
248
- def to_body
249
- to_hash
250
- end
251
-
252
- # return the object in the form of hash
253
- def to_hash
254
- hash = {}
255
- self.class.attribute_map.each_pair do |attr, param|
256
- value = self.send(attr)
257
- next if value.nil?
258
- hash[param] = _to_hash(value)
259
- end
260
- hash
261
- end
262
-
263
- # Method to output non-array value in the form of hash
264
- # For object, use to_hash. Otherwise, just return the value
265
- def _to_hash(value)
266
- if value.is_a?(Array)
267
- value.compact.map{ |v| _to_hash(v) }
268
- elsif value.is_a?(Hash)
269
- {}.tap do |hash|
270
- value.each { |k, v| hash[k] = _to_hash(v) }
271
- end
272
- elsif value.respond_to? :to_hash
273
- value.to_hash
274
- else
275
- value
276
- end
277
- end
278
-
279
- end
280
- end