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,209 +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 Context
21
- # A list of one or more patterns to match.
22
- attr_accessor :patterns
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
-
28
- :'patterns' => :'patterns'
29
-
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.swagger_types
35
- {
36
-
37
- :'patterns' => :'Array<ContextPattern>'
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?(:'patterns')
52
-
53
- if (value = attributes[:'patterns']).is_a?(Array)
54
- self.patterns = 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
- if @patterns.nil?
79
- return false
80
- end
81
-
82
-
83
-
84
-
85
-
86
- end
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- patterns == o.patterns
100
- end
101
-
102
- # @see the `==` method
103
- # @param [Object] Object to be compared
104
- def eql?(o)
105
- self == o
106
- end
107
-
108
- # Calculates hash code according to all attributes.
109
- # @return [Fixnum] Hash code
110
- def hash
111
- [patterns].hash
112
- end
113
-
114
- # build the object from hash
115
- def build_from_hash(attributes)
116
- return nil unless attributes.is_a?(Hash)
117
- self.class.swagger_types.each_pair do |key, type|
118
- if type =~ /^Array<(.*)>/i
119
- if attributes[self.class.attribute_map[key]].is_a?(Array)
120
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
121
- else
122
- #TODO show warning in debug mode
123
- end
124
- elsif !attributes[self.class.attribute_map[key]].nil?
125
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
- else
127
- # data not found in attributes(hash), not an issue as the data can be optional
128
- end
129
- end
130
-
131
- self
132
- end
133
-
134
- def _deserialize(type, value)
135
- case type.to_sym
136
- when :DateTime
137
- DateTime.parse(value)
138
- when :Date
139
- Date.parse(value)
140
- when :String
141
- value.to_s
142
- when :Integer
143
- value.to_i
144
- when :Float
145
- value.to_f
146
- when :BOOLEAN
147
- if value.to_s =~ /^(true|t|yes|y|1)$/i
148
- true
149
- else
150
- false
151
- end
152
- when :Object
153
- # generic object (usually a Hash), return directly
154
- value
155
- when /\AArray<(?<inner_type>.+)>\z/
156
- inner_type = Regexp.last_match[:inner_type]
157
- value.map { |v| _deserialize(inner_type, v) }
158
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
159
- k_type = Regexp.last_match[:k_type]
160
- v_type = Regexp.last_match[:v_type]
161
- {}.tap do |hash|
162
- value.each do |k, v|
163
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
- end
165
- end
166
- else # model
167
- _model = Object.const_get("PureCloud").const_get(type).new
168
- _model.build_from_hash(value)
169
- end
170
- end
171
-
172
- def to_s
173
- to_hash.to_s
174
- end
175
-
176
- # to_body is an alias to to_body (backward compatibility))
177
- def to_body
178
- to_hash
179
- end
180
-
181
- # return the object in the form of hash
182
- def to_hash
183
- hash = {}
184
- self.class.attribute_map.each_pair do |attr, param|
185
- value = self.send(attr)
186
- next if value.nil?
187
- hash[param] = _to_hash(value)
188
- end
189
- hash
190
- end
191
-
192
- # Method to output non-array value in the form of hash
193
- # For object, use to_hash. Otherwise, just return the value
194
- def _to_hash(value)
195
- if value.is_a?(Array)
196
- value.compact.map{ |v| _to_hash(v) }
197
- elsif value.is_a?(Hash)
198
- {}.tap do |hash|
199
- value.each { |k, v| hash[k] = _to_hash(v) }
200
- end
201
- elsif value.respond_to? :to_hash
202
- value.to_hash
203
- else
204
- value
205
- end
206
- end
207
-
208
- end
209
- end
@@ -1,209 +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 ContextPattern
21
- # A list of one or more criteria to satisfy.
22
- attr_accessor :criteria
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
-
28
- :'criteria' => :'criteria'
29
-
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.swagger_types
35
- {
36
-
37
- :'criteria' => :'Array<EntityTypeCriteria>'
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?(:'criteria')
52
-
53
- if (value = attributes[:'criteria']).is_a?(Array)
54
- self.criteria = 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
- if @criteria.nil?
79
- return false
80
- end
81
-
82
-
83
-
84
-
85
-
86
- end
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- criteria == o.criteria
100
- end
101
-
102
- # @see the `==` method
103
- # @param [Object] Object to be compared
104
- def eql?(o)
105
- self == o
106
- end
107
-
108
- # Calculates hash code according to all attributes.
109
- # @return [Fixnum] Hash code
110
- def hash
111
- [criteria].hash
112
- end
113
-
114
- # build the object from hash
115
- def build_from_hash(attributes)
116
- return nil unless attributes.is_a?(Hash)
117
- self.class.swagger_types.each_pair do |key, type|
118
- if type =~ /^Array<(.*)>/i
119
- if attributes[self.class.attribute_map[key]].is_a?(Array)
120
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
121
- else
122
- #TODO show warning in debug mode
123
- end
124
- elsif !attributes[self.class.attribute_map[key]].nil?
125
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
- else
127
- # data not found in attributes(hash), not an issue as the data can be optional
128
- end
129
- end
130
-
131
- self
132
- end
133
-
134
- def _deserialize(type, value)
135
- case type.to_sym
136
- when :DateTime
137
- DateTime.parse(value)
138
- when :Date
139
- Date.parse(value)
140
- when :String
141
- value.to_s
142
- when :Integer
143
- value.to_i
144
- when :Float
145
- value.to_f
146
- when :BOOLEAN
147
- if value.to_s =~ /^(true|t|yes|y|1)$/i
148
- true
149
- else
150
- false
151
- end
152
- when :Object
153
- # generic object (usually a Hash), return directly
154
- value
155
- when /\AArray<(?<inner_type>.+)>\z/
156
- inner_type = Regexp.last_match[:inner_type]
157
- value.map { |v| _deserialize(inner_type, v) }
158
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
159
- k_type = Regexp.last_match[:k_type]
160
- v_type = Regexp.last_match[:v_type]
161
- {}.tap do |hash|
162
- value.each do |k, v|
163
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
- end
165
- end
166
- else # model
167
- _model = Object.const_get("PureCloud").const_get(type).new
168
- _model.build_from_hash(value)
169
- end
170
- end
171
-
172
- def to_s
173
- to_hash.to_s
174
- end
175
-
176
- # to_body is an alias to to_body (backward compatibility))
177
- def to_body
178
- to_hash
179
- end
180
-
181
- # return the object in the form of hash
182
- def to_hash
183
- hash = {}
184
- self.class.attribute_map.each_pair do |attr, param|
185
- value = self.send(attr)
186
- next if value.nil?
187
- hash[param] = _to_hash(value)
188
- end
189
- hash
190
- end
191
-
192
- # Method to output non-array value in the form of hash
193
- # For object, use to_hash. Otherwise, just return the value
194
- def _to_hash(value)
195
- if value.is_a?(Array)
196
- value.compact.map{ |v| _to_hash(v) }
197
- elsif value.is_a?(Hash)
198
- {}.tap do |hash|
199
- value.each { |k, v| hash[k] = _to_hash(v) }
200
- end
201
- elsif value.respond_to? :to_hash
202
- value.to_hash
203
- else
204
- value
205
- end
206
- end
207
-
208
- end
209
- end
@@ -1,311 +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 Criteria
21
- # The criteria key.
22
- attr_accessor :key
23
-
24
- # The criteria values.
25
- attr_accessor :values
26
-
27
- # Should criteria be case insensitive.
28
- attr_accessor :should_ignore_case
29
-
30
- # The comparison operator.
31
- attr_accessor :operator
32
-
33
- # Attribute mapping from ruby-style variable name to JSON key.
34
- def self.attribute_map
35
- {
36
-
37
- :'key' => :'key',
38
-
39
- :'values' => :'values',
40
-
41
- :'should_ignore_case' => :'shouldIgnoreCase',
42
-
43
- :'operator' => :'operator'
44
-
45
- }
46
- end
47
-
48
- # Attribute type mapping.
49
- def self.swagger_types
50
- {
51
-
52
- :'key' => :'String',
53
-
54
- :'values' => :'Array<String>',
55
-
56
- :'should_ignore_case' => :'BOOLEAN',
57
-
58
- :'operator' => :'String'
59
-
60
- }
61
- end
62
-
63
- # Initializes the object
64
- # @param [Hash] attributes Model attributes in the form of hash
65
- def initialize(attributes = {})
66
- return unless attributes.is_a?(Hash)
67
-
68
- # convert string to symbol for hash key
69
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
-
71
-
72
- if attributes.has_key?(:'key')
73
-
74
-
75
- self.key = attributes[:'key']
76
-
77
-
78
- end
79
-
80
-
81
- if attributes.has_key?(:'values')
82
-
83
- if (value = attributes[:'values']).is_a?(Array)
84
- self.values = value
85
- end
86
-
87
-
88
-
89
- end
90
-
91
-
92
- if attributes.has_key?(:'shouldIgnoreCase')
93
-
94
-
95
- self.should_ignore_case = attributes[:'shouldIgnoreCase']
96
-
97
-
98
- end
99
-
100
-
101
- if attributes.has_key?(:'operator')
102
-
103
-
104
- self.operator = attributes[:'operator']
105
-
106
-
107
- end
108
-
109
-
110
- end
111
-
112
- # Show invalid properties with the reasons. Usually used together with valid?
113
- # @return Array for valid properies with the reasons
114
- def list_invalid_properties
115
- invalid_properties = Array.new
116
-
117
-
118
- return invalid_properties
119
- end
120
-
121
- # Check to see if the all the properties in the model are valid
122
- # @return true if the model is valid
123
- def valid?
124
-
125
-
126
- if @key.nil?
127
- return false
128
- end
129
-
130
-
131
-
132
-
133
-
134
-
135
- if @values.nil?
136
- return false
137
- end
138
-
139
-
140
-
141
-
142
-
143
-
144
- if @should_ignore_case.nil?
145
- return false
146
- end
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- allowed_values = ["equal", "notEqual", "like", "notLike", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"]
155
- if @operator && !allowed_values.include?(@operator)
156
- return false
157
- end
158
-
159
-
160
-
161
- end
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
- # Custom attribute writer method checking allowed values (enum).
181
- # @param [Object] operator Object to be assigned
182
- def operator=(operator)
183
- allowed_values = ["equal", "notEqual", "like", "notLike", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"]
184
- if operator && !allowed_values.include?(operator)
185
- fail ArgumentError, "invalid value for 'operator', must be one of #{allowed_values}."
186
- end
187
- @operator = operator
188
- end
189
-
190
-
191
-
192
-
193
- # Checks equality by comparing each attribute.
194
- # @param [Object] Object to be compared
195
- def ==(o)
196
- return true if self.equal?(o)
197
- self.class == o.class &&
198
- key == o.key &&
199
- values == o.values &&
200
- should_ignore_case == o.should_ignore_case &&
201
- operator == o.operator
202
- end
203
-
204
- # @see the `==` method
205
- # @param [Object] Object to be compared
206
- def eql?(o)
207
- self == o
208
- end
209
-
210
- # Calculates hash code according to all attributes.
211
- # @return [Fixnum] Hash code
212
- def hash
213
- [key, values, should_ignore_case, operator].hash
214
- end
215
-
216
- # build the object from hash
217
- def build_from_hash(attributes)
218
- return nil unless attributes.is_a?(Hash)
219
- self.class.swagger_types.each_pair do |key, type|
220
- if type =~ /^Array<(.*)>/i
221
- if attributes[self.class.attribute_map[key]].is_a?(Array)
222
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
223
- else
224
- #TODO show warning in debug mode
225
- end
226
- elsif !attributes[self.class.attribute_map[key]].nil?
227
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
228
- else
229
- # data not found in attributes(hash), not an issue as the data can be optional
230
- end
231
- end
232
-
233
- self
234
- end
235
-
236
- def _deserialize(type, value)
237
- case type.to_sym
238
- when :DateTime
239
- DateTime.parse(value)
240
- when :Date
241
- Date.parse(value)
242
- when :String
243
- value.to_s
244
- when :Integer
245
- value.to_i
246
- when :Float
247
- value.to_f
248
- when :BOOLEAN
249
- if value.to_s =~ /^(true|t|yes|y|1)$/i
250
- true
251
- else
252
- false
253
- end
254
- when :Object
255
- # generic object (usually a Hash), return directly
256
- value
257
- when /\AArray<(?<inner_type>.+)>\z/
258
- inner_type = Regexp.last_match[:inner_type]
259
- value.map { |v| _deserialize(inner_type, v) }
260
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
261
- k_type = Regexp.last_match[:k_type]
262
- v_type = Regexp.last_match[:v_type]
263
- {}.tap do |hash|
264
- value.each do |k, v|
265
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
266
- end
267
- end
268
- else # model
269
- _model = Object.const_get("PureCloud").const_get(type).new
270
- _model.build_from_hash(value)
271
- end
272
- end
273
-
274
- def to_s
275
- to_hash.to_s
276
- end
277
-
278
- # to_body is an alias to to_body (backward compatibility))
279
- def to_body
280
- to_hash
281
- end
282
-
283
- # return the object in the form of hash
284
- def to_hash
285
- hash = {}
286
- self.class.attribute_map.each_pair do |attr, param|
287
- value = self.send(attr)
288
- next if value.nil?
289
- hash[param] = _to_hash(value)
290
- end
291
- hash
292
- end
293
-
294
- # Method to output non-array value in the form of hash
295
- # For object, use to_hash. Otherwise, just return the value
296
- def _to_hash(value)
297
- if value.is_a?(Array)
298
- value.compact.map{ |v| _to_hash(v) }
299
- elsif value.is_a?(Hash)
300
- {}.tap do |hash|
301
- value.each { |k, v| hash[k] = _to_hash(v) }
302
- end
303
- elsif value.respond_to? :to_hash
304
- value.to_hash
305
- else
306
- value
307
- end
308
- end
309
-
310
- end
311
- end