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,244 +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 ShiftTradeMatchViolation
21
- # The type of constraint violation
22
- attr_accessor :type
23
-
24
- # Clarifying user params for constructing helpful error messages
25
- attr_accessor :params
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
-
31
- :'type' => :'type',
32
-
33
- :'params' => :'params'
34
-
35
- }
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.swagger_types
40
- {
41
-
42
- :'type' => :'String',
43
-
44
- :'params' => :'Hash<String, String>'
45
-
46
- }
47
- end
48
-
49
- # Initializes the object
50
- # @param [Hash] attributes Model attributes in the form of hash
51
- def initialize(attributes = {})
52
- return unless attributes.is_a?(Hash)
53
-
54
- # convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
-
57
-
58
- if attributes.has_key?(:'type')
59
-
60
-
61
- self.type = attributes[:'type']
62
-
63
-
64
- end
65
-
66
-
67
- if attributes.has_key?(:'params')
68
-
69
- if (value = attributes[:'params']).is_a?(Array)
70
- self.params = value
71
- end
72
-
73
-
74
-
75
- end
76
-
77
-
78
- end
79
-
80
- # Show invalid properties with the reasons. Usually used together with valid?
81
- # @return Array for valid properies with the reasons
82
- def list_invalid_properties
83
- invalid_properties = Array.new
84
-
85
-
86
- return invalid_properties
87
- end
88
-
89
- # Check to see if the all the properties in the model are valid
90
- # @return true if the model is valid
91
- def valid?
92
-
93
-
94
-
95
- allowed_values = ["AgentCapabilityMismatch", "CannotTradeWithYourself", "DirectTradeForOtherUser", "InitiatingAgentScheduleDoesNotExist", "InitiatingShiftDisallowedActivityCategory", "InitiatingShiftDoesNotExist", "InitiatingShiftOverlapsExisting", "InitiatingShiftStartTooClose", "InitiatingShiftTimesChanged", "InitiatingWeeklyMaxPaidTime", "InitiatingWeeklyMinPaidTime", "InvalidState", "OneSidedTradeCreation", "ReceivingAgentScheduleDoesNotExist", "ReceivingShiftDisallowedActivityCategory", "ReceivingShiftDoesNotExist", "ReceivingShiftForOneSidedTrade", "ReceivingShiftMissingForTwoSidedTrade", "ReceivingShiftOutsideAcceptableIntervals", "ReceivingShiftStartTooClose", "ReceivingShiftTimesChanged", "ReceivingWeeklyMaxPaidTime", "ReceivingWeeklyMinPaidTime", "ShiftTradingNotEnabled", "UnequalPaidTime", "WeekScheduleDifferent", "WeekScheduleDoesNotExist", "WeekScheduleUnpublished"]
96
- if @type && !allowed_values.include?(@type)
97
- return false
98
- end
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- end
107
-
108
-
109
-
110
- # Custom attribute writer method checking allowed values (enum).
111
- # @param [Object] type Object to be assigned
112
- def type=(type)
113
- allowed_values = ["AgentCapabilityMismatch", "CannotTradeWithYourself", "DirectTradeForOtherUser", "InitiatingAgentScheduleDoesNotExist", "InitiatingShiftDisallowedActivityCategory", "InitiatingShiftDoesNotExist", "InitiatingShiftOverlapsExisting", "InitiatingShiftStartTooClose", "InitiatingShiftTimesChanged", "InitiatingWeeklyMaxPaidTime", "InitiatingWeeklyMinPaidTime", "InvalidState", "OneSidedTradeCreation", "ReceivingAgentScheduleDoesNotExist", "ReceivingShiftDisallowedActivityCategory", "ReceivingShiftDoesNotExist", "ReceivingShiftForOneSidedTrade", "ReceivingShiftMissingForTwoSidedTrade", "ReceivingShiftOutsideAcceptableIntervals", "ReceivingShiftStartTooClose", "ReceivingShiftTimesChanged", "ReceivingWeeklyMaxPaidTime", "ReceivingWeeklyMinPaidTime", "ShiftTradingNotEnabled", "UnequalPaidTime", "WeekScheduleDifferent", "WeekScheduleDoesNotExist", "WeekScheduleUnpublished"]
114
- if type && !allowed_values.include?(type)
115
- fail ArgumentError, "invalid value for 'type', must be one of #{allowed_values}."
116
- end
117
- @type = type
118
- end
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- type == o.type &&
134
- params == o.params
135
- end
136
-
137
- # @see the `==` method
138
- # @param [Object] Object to be compared
139
- def eql?(o)
140
- self == o
141
- end
142
-
143
- # Calculates hash code according to all attributes.
144
- # @return [Fixnum] Hash code
145
- def hash
146
- [type, params].hash
147
- end
148
-
149
- # build the object from hash
150
- def build_from_hash(attributes)
151
- return nil unless attributes.is_a?(Hash)
152
- self.class.swagger_types.each_pair do |key, type|
153
- if type =~ /^Array<(.*)>/i
154
- if attributes[self.class.attribute_map[key]].is_a?(Array)
155
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
156
- else
157
- #TODO show warning in debug mode
158
- end
159
- elsif !attributes[self.class.attribute_map[key]].nil?
160
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
- else
162
- # data not found in attributes(hash), not an issue as the data can be optional
163
- end
164
- end
165
-
166
- self
167
- end
168
-
169
- def _deserialize(type, value)
170
- case type.to_sym
171
- when :DateTime
172
- DateTime.parse(value)
173
- when :Date
174
- Date.parse(value)
175
- when :String
176
- value.to_s
177
- when :Integer
178
- value.to_i
179
- when :Float
180
- value.to_f
181
- when :BOOLEAN
182
- if value.to_s =~ /^(true|t|yes|y|1)$/i
183
- true
184
- else
185
- false
186
- end
187
- when :Object
188
- # generic object (usually a Hash), return directly
189
- value
190
- when /\AArray<(?<inner_type>.+)>\z/
191
- inner_type = Regexp.last_match[:inner_type]
192
- value.map { |v| _deserialize(inner_type, v) }
193
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
194
- k_type = Regexp.last_match[:k_type]
195
- v_type = Regexp.last_match[:v_type]
196
- {}.tap do |hash|
197
- value.each do |k, v|
198
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
- end
200
- end
201
- else # model
202
- _model = Object.const_get("PureCloud").const_get(type).new
203
- _model.build_from_hash(value)
204
- end
205
- end
206
-
207
- def to_s
208
- to_hash.to_s
209
- end
210
-
211
- # to_body is an alias to to_body (backward compatibility))
212
- def to_body
213
- to_hash
214
- end
215
-
216
- # return the object in the form of hash
217
- def to_hash
218
- hash = {}
219
- self.class.attribute_map.each_pair do |attr, param|
220
- value = self.send(attr)
221
- next if value.nil?
222
- hash[param] = _to_hash(value)
223
- end
224
- hash
225
- end
226
-
227
- # Method to output non-array value in the form of hash
228
- # For object, use to_hash. Otherwise, just return the value
229
- def _to_hash(value)
230
- if value.is_a?(Array)
231
- value.compact.map{ |v| _to_hash(v) }
232
- elsif value.is_a?(Hash)
233
- {}.tap do |hash|
234
- value.each { |k, v| hash[k] = _to_hash(v) }
235
- end
236
- elsif value.respond_to? :to_hash
237
- value.to_hash
238
- else
239
- value
240
- end
241
- end
242
-
243
- end
244
- end
@@ -1,204 +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 ShiftTradePreviewResponse
21
- # List of activities that will make up the new shift if this shift trade is approved
22
- attr_accessor :activities
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
-
28
- :'activities' => :'activities'
29
-
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.swagger_types
35
- {
36
-
37
- :'activities' => :'Array<ShiftTradeActivityPreviewResponse>'
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?(:'activities')
52
-
53
- if (value = attributes[:'activities']).is_a?(Array)
54
- self.activities = value
55
- end
56
-
57
-
58
-
59
- end
60
-
61
-
62
- end
63
-
64
- # Show invalid properties with the reasons. Usually used together with valid?
65
- # @return Array for valid properies with the reasons
66
- def list_invalid_properties
67
- invalid_properties = Array.new
68
-
69
-
70
- return invalid_properties
71
- end
72
-
73
- # Check to see if the all the properties in the model are valid
74
- # @return true if the model is valid
75
- def valid?
76
-
77
-
78
-
79
-
80
-
81
- end
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- # Checks equality by comparing each attribute.
90
- # @param [Object] Object to be compared
91
- def ==(o)
92
- return true if self.equal?(o)
93
- self.class == o.class &&
94
- activities == o.activities
95
- end
96
-
97
- # @see the `==` method
98
- # @param [Object] Object to be compared
99
- def eql?(o)
100
- self == o
101
- end
102
-
103
- # Calculates hash code according to all attributes.
104
- # @return [Fixnum] Hash code
105
- def hash
106
- [activities].hash
107
- end
108
-
109
- # build the object from hash
110
- def build_from_hash(attributes)
111
- return nil unless attributes.is_a?(Hash)
112
- self.class.swagger_types.each_pair do |key, type|
113
- if type =~ /^Array<(.*)>/i
114
- if attributes[self.class.attribute_map[key]].is_a?(Array)
115
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
116
- else
117
- #TODO show warning in debug mode
118
- end
119
- elsif !attributes[self.class.attribute_map[key]].nil?
120
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
- else
122
- # data not found in attributes(hash), not an issue as the data can be optional
123
- end
124
- end
125
-
126
- self
127
- end
128
-
129
- def _deserialize(type, value)
130
- case type.to_sym
131
- when :DateTime
132
- DateTime.parse(value)
133
- when :Date
134
- Date.parse(value)
135
- when :String
136
- value.to_s
137
- when :Integer
138
- value.to_i
139
- when :Float
140
- value.to_f
141
- when :BOOLEAN
142
- if value.to_s =~ /^(true|t|yes|y|1)$/i
143
- true
144
- else
145
- false
146
- end
147
- when :Object
148
- # generic object (usually a Hash), return directly
149
- value
150
- when /\AArray<(?<inner_type>.+)>\z/
151
- inner_type = Regexp.last_match[:inner_type]
152
- value.map { |v| _deserialize(inner_type, v) }
153
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
154
- k_type = Regexp.last_match[:k_type]
155
- v_type = Regexp.last_match[:v_type]
156
- {}.tap do |hash|
157
- value.each do |k, v|
158
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
- end
160
- end
161
- else # model
162
- _model = Object.const_get("PureCloud").const_get(type).new
163
- _model.build_from_hash(value)
164
- end
165
- end
166
-
167
- def to_s
168
- to_hash.to_s
169
- end
170
-
171
- # to_body is an alias to to_body (backward compatibility))
172
- def to_body
173
- to_hash
174
- end
175
-
176
- # return the object in the form of hash
177
- def to_hash
178
- hash = {}
179
- self.class.attribute_map.each_pair do |attr, param|
180
- value = self.send(attr)
181
- next if value.nil?
182
- hash[param] = _to_hash(value)
183
- end
184
- hash
185
- end
186
-
187
- # Method to output non-array value in the form of hash
188
- # For object, use to_hash. Otherwise, just return the value
189
- def _to_hash(value)
190
- if value.is_a?(Array)
191
- value.compact.map{ |v| _to_hash(v) }
192
- elsif value.is_a?(Hash)
193
- {}.tap do |hash|
194
- value.each { |k, v| hash[k] = _to_hash(v) }
195
- end
196
- elsif value.respond_to? :to_hash
197
- value.to_hash
198
- else
199
- value
200
- end
201
- end
202
-
203
- end
204
- end
@@ -1,228 +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 ShiftTradeResponseAcceptableIntervals
21
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
22
- attr_accessor :start
23
-
24
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
25
- attr_accessor :_end
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
-
31
- :'start' => :'start',
32
-
33
- :'_end' => :'end'
34
-
35
- }
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.swagger_types
40
- {
41
-
42
- :'start' => :'DateTime',
43
-
44
- :'_end' => :'DateTime'
45
-
46
- }
47
- end
48
-
49
- # Initializes the object
50
- # @param [Hash] attributes Model attributes in the form of hash
51
- def initialize(attributes = {})
52
- return unless attributes.is_a?(Hash)
53
-
54
- # convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
-
57
-
58
- if attributes.has_key?(:'start')
59
-
60
-
61
- self.start = attributes[:'start']
62
-
63
-
64
- end
65
-
66
-
67
- if attributes.has_key?(:'end')
68
-
69
-
70
- self._end = attributes[:'end']
71
-
72
-
73
- end
74
-
75
-
76
- end
77
-
78
- # Show invalid properties with the reasons. Usually used together with valid?
79
- # @return Array for valid properies with the reasons
80
- def list_invalid_properties
81
- invalid_properties = Array.new
82
-
83
-
84
- return invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- end
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- # Checks equality by comparing each attribute.
113
- # @param [Object] Object to be compared
114
- def ==(o)
115
- return true if self.equal?(o)
116
- self.class == o.class &&
117
- start == o.start &&
118
- _end == o._end
119
- end
120
-
121
- # @see the `==` method
122
- # @param [Object] Object to be compared
123
- def eql?(o)
124
- self == o
125
- end
126
-
127
- # Calculates hash code according to all attributes.
128
- # @return [Fixnum] Hash code
129
- def hash
130
- [start, _end].hash
131
- end
132
-
133
- # build the object from hash
134
- def build_from_hash(attributes)
135
- return nil unless attributes.is_a?(Hash)
136
- self.class.swagger_types.each_pair do |key, type|
137
- if type =~ /^Array<(.*)>/i
138
- if attributes[self.class.attribute_map[key]].is_a?(Array)
139
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
140
- else
141
- #TODO show warning in debug mode
142
- end
143
- elsif !attributes[self.class.attribute_map[key]].nil?
144
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
- else
146
- # data not found in attributes(hash), not an issue as the data can be optional
147
- end
148
- end
149
-
150
- self
151
- end
152
-
153
- def _deserialize(type, value)
154
- case type.to_sym
155
- when :DateTime
156
- DateTime.parse(value)
157
- when :Date
158
- Date.parse(value)
159
- when :String
160
- value.to_s
161
- when :Integer
162
- value.to_i
163
- when :Float
164
- value.to_f
165
- when :BOOLEAN
166
- if value.to_s =~ /^(true|t|yes|y|1)$/i
167
- true
168
- else
169
- false
170
- end
171
- when :Object
172
- # generic object (usually a Hash), return directly
173
- value
174
- when /\AArray<(?<inner_type>.+)>\z/
175
- inner_type = Regexp.last_match[:inner_type]
176
- value.map { |v| _deserialize(inner_type, v) }
177
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
178
- k_type = Regexp.last_match[:k_type]
179
- v_type = Regexp.last_match[:v_type]
180
- {}.tap do |hash|
181
- value.each do |k, v|
182
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
- end
184
- end
185
- else # model
186
- _model = Object.const_get("PureCloud").const_get(type).new
187
- _model.build_from_hash(value)
188
- end
189
- end
190
-
191
- def to_s
192
- to_hash.to_s
193
- end
194
-
195
- # to_body is an alias to to_body (backward compatibility))
196
- def to_body
197
- to_hash
198
- end
199
-
200
- # return the object in the form of hash
201
- def to_hash
202
- hash = {}
203
- self.class.attribute_map.each_pair do |attr, param|
204
- value = self.send(attr)
205
- next if value.nil?
206
- hash[param] = _to_hash(value)
207
- end
208
- hash
209
- end
210
-
211
- # Method to output non-array value in the form of hash
212
- # For object, use to_hash. Otherwise, just return the value
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map{ |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
- end
228
- end