purecloudplatformclientv2 2.0.40 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AgentActivityEntityListing.md +1 -1
  4. data/docs/AttemptLimitsEntityListing.md +1 -1
  5. data/docs/AttributeEntityListing.md +1 -1
  6. data/docs/CalibrationEntityListing.md +1 -1
  7. data/docs/Call.md +1 -0
  8. data/docs/CallBasic.md +1 -0
  9. data/docs/CallConversationEntityListing.md +1 -1
  10. data/docs/CallableTimeSetEntityListing.md +1 -1
  11. data/docs/CallbackConversationEntityListing.md +1 -1
  12. data/docs/CampaignEntityListing.md +1 -1
  13. data/docs/CampaignRuleEntityListing.md +1 -1
  14. data/docs/CampaignSequenceEntityListing.md +1 -1
  15. data/docs/CertificateAuthorityEntityListing.md +1 -1
  16. data/docs/ChatConversationEntityListing.md +1 -1
  17. data/docs/CobrowseConversationEntityListing.md +1 -1
  18. data/docs/CommandStatusEntityListing.md +1 -1
  19. data/docs/ConsumedResourcesEntityListing.md +1 -1
  20. data/docs/ConsumingResourcesEntityListing.md +1 -1
  21. data/docs/ContactListEntityListing.md +1 -1
  22. data/docs/ContactListing.md +1 -1
  23. data/docs/ConversationEntityListing.md +1 -1
  24. data/docs/ConversationsApi.md +260 -260
  25. data/docs/DIDEntityListing.md +1 -1
  26. data/docs/DIDPoolEntityListing.md +1 -1
  27. data/docs/Dependency.md +1 -0
  28. data/docs/DependencyObject.md +1 -0
  29. data/docs/DependencyObjectEntityListing.md +1 -1
  30. data/docs/DependencyTypeEntityListing.md +1 -1
  31. data/docs/DncListEntityListing.md +1 -1
  32. data/docs/DocumentAuditEntityListing.md +1 -1
  33. data/docs/DocumentEntityListing.md +1 -1
  34. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  35. data/docs/DomainEntityListing.md +1 -1
  36. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  37. data/docs/DomainEntityListingQueryResult.md +1 -1
  38. data/docs/DomainOrganizationRole.md +1 -1
  39. data/docs/DomainOrganizationRoleCreate.md +1 -1
  40. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  41. data/docs/EdgeEntityListing.md +1 -1
  42. data/docs/EdgeGroupEntityListing.md +1 -1
  43. data/docs/EdgeLineEntityListing.md +1 -1
  44. data/docs/EmailConversationEntityListing.md +1 -1
  45. data/docs/EmailMessageListing.md +1 -1
  46. data/docs/EncryptionKeyEntityListing.md +1 -1
  47. data/docs/EndpointEntityListing.md +1 -1
  48. data/docs/EvaluationEntityListing.md +1 -1
  49. data/docs/EvaluationFormEntityListing.md +1 -1
  50. data/docs/EvaluatorActivityEntityListing.md +1 -1
  51. data/docs/ExtensionEntityListing.md +1 -1
  52. data/docs/ExtensionPoolEntityListing.md +1 -1
  53. data/docs/ExternalOrganizationListing.md +1 -1
  54. data/docs/FaxDocumentEntityListing.md +1 -1
  55. data/docs/FlowEntityListing.md +1 -1
  56. data/docs/FlowVersionEntityListing.md +1 -1
  57. data/docs/GreetingListing.md +1 -1
  58. data/docs/GroupEntityListing.md +1 -1
  59. data/docs/HeartBeatAlertContainer.md +1 -1
  60. data/docs/HeartBeatRuleContainer.md +1 -1
  61. data/docs/InboundDomainEntityListing.md +1 -1
  62. data/docs/InboundRouteEntityListing.md +1 -1
  63. data/docs/InteractionStatsAlertContainer.md +1 -1
  64. data/docs/InteractionStatsRuleContainer.md +1 -1
  65. data/docs/IntradayDataGroup.md +19 -0
  66. data/docs/IntradayForecastData.md +15 -0
  67. data/docs/IntradayHistoricalAgentData.md +14 -0
  68. data/docs/IntradayHistoricalQueueData.md +20 -0
  69. data/docs/IntradayMetric.md +14 -0
  70. data/docs/IntradayPerformancePredictionAgentData.md +13 -0
  71. data/docs/IntradayPerformancePredictionQueueData.md +15 -0
  72. data/docs/IntradayQueryDataCommand.md +17 -0
  73. data/docs/IntradayQueue.md +15 -0
  74. data/docs/IntradayResponse.md +20 -0
  75. data/docs/IntradayScheduleData.md +14 -0
  76. data/docs/JsonNode.md +5 -5
  77. data/docs/KeywordSetEntityListing.md +1 -1
  78. data/docs/LanguageEntityListing.md +1 -1
  79. data/docs/LibraryEntityListing.md +1 -1
  80. data/docs/LicenseDefinition.md +1 -0
  81. data/docs/LicenseDefinitionListing.md +1 -1
  82. data/docs/LineBaseEntityListing.md +1 -1
  83. data/docs/LineEntityListing.md +1 -1
  84. data/docs/LogicalInterfaceEntityListing.md +1 -1
  85. data/docs/MediaTranscription.md +15 -0
  86. data/docs/NoteListing.md +1 -1
  87. data/docs/OAuthClientEntityListing.md +1 -1
  88. data/docs/OAuthProviderEntityListing.md +1 -1
  89. data/docs/OrganizationPresenceEntityListing.md +1 -1
  90. data/docs/OrganizationRoleEntityListing.md +1 -1
  91. data/docs/OrphanRecordingListing.md +1 -1
  92. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  93. data/docs/OutboundRouteEntityListing.md +1 -1
  94. data/docs/PermissionCollectionEntityListing.md +1 -1
  95. data/docs/PhoneBaseEntityListing.md +1 -1
  96. data/docs/PhoneEntityListing.md +1 -1
  97. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  98. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  99. data/docs/PolicyActions.md +1 -0
  100. data/docs/PolicyEntityListing.md +1 -1
  101. data/docs/PromptAssetEntityListing.md +1 -1
  102. data/docs/PromptEntityListing.md +1 -1
  103. data/docs/QualityAuditPage.md +1 -1
  104. data/docs/QueueEntityListing.md +1 -1
  105. data/docs/QueueMemberEntityListing.md +1 -1
  106. data/docs/RelationshipListing.md +1 -1
  107. data/docs/ReportMetaDataEntityListing.md +1 -1
  108. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  109. data/docs/ReportScheduleEntityListing.md +1 -1
  110. data/docs/ResponseEntityList.md +1 -1
  111. data/docs/ResponseEntityListing.md +1 -1
  112. data/docs/ResponseSetEntityListing.md +1 -1
  113. data/docs/RoutingStatusAlertContainer.md +1 -1
  114. data/docs/RoutingStatusRuleContainer.md +1 -1
  115. data/docs/RuleSetEntityListing.md +1 -1
  116. data/docs/SchemaCategoryEntityListing.md +1 -1
  117. data/docs/SchemaReferenceEntityListing.md +1 -1
  118. data/docs/ScreenRecordingSessionListing.md +1 -1
  119. data/docs/ScriptEntityListing.md +1 -1
  120. data/docs/SecurityProfileEntityListing.md +1 -1
  121. data/docs/ShareEntityListing.md +1 -1
  122. data/docs/SiteEntityListing.md +1 -1
  123. data/docs/SkillEntityListing.md +1 -1
  124. data/docs/StationEntityListing.md +1 -1
  125. data/docs/SystemPromptAssetEntityListing.md +1 -1
  126. data/docs/SystemPromptEntityListing.md +1 -1
  127. data/docs/TagValueEntityListing.md +1 -1
  128. data/docs/TelephonyProvidersEdgeApi.md +60 -0
  129. data/docs/TimeZoneEntityListing.md +1 -1
  130. data/docs/TrunkBaseEntityListing.md +1 -1
  131. data/docs/TrunkEntityListing.md +1 -1
  132. data/docs/TrunkMetabaseEntityListing.md +1 -1
  133. data/docs/UserEntityListing.md +1 -1
  134. data/docs/UserPresenceAlertContainer.md +1 -1
  135. data/docs/UserPresenceRuleContainer.md +1 -1
  136. data/docs/UserQueueEntityListing.md +1 -1
  137. data/docs/UserRecordingEntityListing.md +1 -1
  138. data/docs/UserSkillEntityListing.md +1 -1
  139. data/docs/VoicemailMessageEntityListing.md +1 -1
  140. data/docs/WfmIntradayQueueListing.md +14 -0
  141. data/docs/WorkforceManagementApi.md +127 -0
  142. data/docs/WorkspaceEntityListing.md +1 -1
  143. data/docs/WorkspaceMemberEntityListing.md +1 -1
  144. data/docs/WrapupCodeEntityListing.md +1 -1
  145. data/lib/purecloudplatformclientv2.rb +13 -0
  146. data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
  147. data/lib/purecloudplatformclientv2/api/conversations_api.rb +416 -416
  148. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +58 -0
  149. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +121 -0
  150. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +10 -10
  151. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +10 -10
  152. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +10 -10
  153. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +10 -10
  154. data/lib/purecloudplatformclientv2/models/call.rb +14 -4
  155. data/lib/purecloudplatformclientv2/models/call_basic.rb +14 -4
  156. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +10 -10
  157. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +10 -10
  158. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +10 -10
  159. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +10 -10
  160. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +10 -10
  161. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +10 -10
  162. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +10 -10
  163. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +10 -10
  164. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +10 -10
  165. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +10 -10
  166. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +10 -10
  167. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +10 -10
  168. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +10 -10
  169. data/lib/purecloudplatformclientv2/models/contact_listing.rb +10 -10
  170. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +10 -10
  171. data/lib/purecloudplatformclientv2/models/dependency.rb +12 -3
  172. data/lib/purecloudplatformclientv2/models/dependency_object.rb +12 -3
  173. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +10 -10
  174. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +10 -10
  175. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +10 -10
  176. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +10 -10
  177. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +10 -10
  178. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +10 -10
  179. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +10 -10
  180. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +10 -10
  181. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +10 -10
  182. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +10 -10
  183. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +10 -10
  184. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +10 -10
  185. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +10 -10
  186. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +10 -10
  187. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +10 -10
  188. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +10 -10
  189. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +10 -10
  190. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +10 -10
  191. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +10 -10
  192. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +10 -10
  193. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +10 -10
  194. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +10 -10
  195. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +10 -10
  196. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +10 -10
  197. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +10 -10
  198. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +10 -10
  199. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +10 -10
  200. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +10 -10
  201. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +10 -10
  202. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +10 -10
  203. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +10 -10
  204. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +10 -10
  205. data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +10 -10
  206. data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +10 -10
  207. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +10 -10
  208. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +10 -10
  209. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +10 -10
  210. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +10 -10
  211. data/lib/purecloudplatformclientv2/models/intraday_data_group.rb +265 -0
  212. data/lib/purecloudplatformclientv2/models/intraday_forecast_data.rb +199 -0
  213. data/lib/purecloudplatformclientv2/models/intraday_historical_agent_data.rb +189 -0
  214. data/lib/purecloudplatformclientv2/models/intraday_historical_queue_data.rb +249 -0
  215. data/lib/purecloudplatformclientv2/models/intraday_metric.rb +203 -0
  216. data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_agent_data.rb +179 -0
  217. data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_queue_data.rb +199 -0
  218. data/lib/purecloudplatformclientv2/models/intraday_query_data_command.rb +235 -0
  219. data/lib/purecloudplatformclientv2/models/intraday_queue.rb +201 -0
  220. data/lib/purecloudplatformclientv2/models/intraday_response.rb +269 -0
  221. data/lib/purecloudplatformclientv2/models/intraday_schedule_data.rb +189 -0
  222. data/lib/purecloudplatformclientv2/models/json_node.rb +37 -37
  223. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +10 -10
  224. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +10 -10
  225. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +10 -10
  226. data/lib/purecloudplatformclientv2/models/license_definition.rb +12 -1
  227. data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +10 -10
  228. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +10 -10
  229. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +10 -10
  230. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +10 -10
  231. data/lib/purecloudplatformclientv2/models/media_transcription.rb +210 -0
  232. data/lib/purecloudplatformclientv2/models/note_listing.rb +10 -10
  233. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +10 -10
  234. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +10 -10
  235. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +10 -10
  236. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +10 -10
  237. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +10 -10
  238. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +10 -10
  239. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +10 -10
  240. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +10 -10
  241. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +10 -10
  242. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +10 -10
  243. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +10 -10
  244. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +10 -10
  245. data/lib/purecloudplatformclientv2/models/policy_actions.rb +15 -4
  246. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +10 -10
  247. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +10 -10
  248. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +10 -10
  249. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +10 -10
  250. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +10 -10
  251. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +10 -10
  252. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +10 -10
  253. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +10 -10
  254. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +10 -10
  255. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +10 -10
  256. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +10 -10
  257. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +10 -10
  258. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +10 -10
  259. data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +10 -10
  260. data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +10 -10
  261. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +10 -10
  262. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +10 -10
  263. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +10 -10
  264. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +10 -10
  265. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +10 -10
  266. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +10 -10
  267. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +10 -10
  268. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +10 -10
  269. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +10 -10
  270. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +10 -10
  271. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +10 -10
  272. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +10 -10
  273. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +10 -10
  274. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +10 -10
  275. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +10 -10
  276. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +10 -10
  277. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +10 -10
  278. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +10 -10
  279. data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +10 -10
  280. data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +10 -10
  281. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +10 -10
  282. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +10 -10
  283. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +10 -10
  284. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +10 -10
  285. data/lib/purecloudplatformclientv2/models/wfm_intraday_queue_listing.rb +204 -0
  286. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +10 -10
  287. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +10 -10
  288. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +10 -10
  289. data/lib/purecloudplatformclientv2/version.rb +1 -1
  290. metadata +28 -2
@@ -0,0 +1,189 @@
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@inin.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class IntradayScheduleData
21
+ # The total scheduled on-queue time in seconds for all agents in this group
22
+ attr_accessor :on_queue_time_seconds
23
+
24
+ # The total scheduled time in seconds for all agents in this group
25
+ attr_accessor :scheduled_time_seconds
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'on_queue_time_seconds' => :'onQueueTimeSeconds',
31
+ :'scheduled_time_seconds' => :'scheduledTimeSeconds'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'on_queue_time_seconds' => :'Integer',
39
+ :'scheduled_time_seconds' => :'Integer'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+
51
+ if attributes.has_key?(:'onQueueTimeSeconds')
52
+ self.on_queue_time_seconds = attributes[:'onQueueTimeSeconds']
53
+ end
54
+
55
+ if attributes.has_key?(:'scheduledTimeSeconds')
56
+ self.scheduled_time_seconds = attributes[:'scheduledTimeSeconds']
57
+ end
58
+
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properies with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ return invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ end
72
+
73
+ # Checks equality by comparing each attribute.
74
+ # @param [Object] Object to be compared
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ on_queue_time_seconds == o.on_queue_time_seconds &&
79
+ scheduled_time_seconds == o.scheduled_time_seconds
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Fixnum] Hash code
90
+ def hash
91
+ [on_queue_time_seconds, scheduled_time_seconds].hash
92
+ end
93
+
94
+ # build the object from hash
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /^Array<(.*)>/i
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ else
102
+ #TODO show warning in debug mode
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ else
107
+ # data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+ end
110
+
111
+ self
112
+ end
113
+
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ _model = Object.const_get("PureCloud").const_get(type).new
148
+ _model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ def to_s
153
+ to_hash.to_s
154
+ end
155
+
156
+ # to_body is an alias to to_body (backward compatibility))
157
+ def to_body
158
+ to_hash
159
+ end
160
+
161
+ # return the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Method to output non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ def _to_hash(value)
175
+ if value.is_a?(Array)
176
+ value.compact.map{ |v| _to_hash(v) }
177
+ elsif value.is_a?(Hash)
178
+ {}.tap do |hash|
179
+ value.each { |k, v| hash[k] = _to_hash(v) }
180
+ end
181
+ elsif value.respond_to? :to_hash
182
+ value.to_hash
183
+ else
184
+ value
185
+ end
186
+ end
187
+
188
+ end
189
+ end
@@ -18,19 +18,19 @@ require 'date'
18
18
 
19
19
  module PureCloud
20
20
  class JsonNode
21
- attr_accessor :array
22
-
23
- attr_accessor :null
24
-
25
21
  attr_accessor :node_type
26
22
 
27
23
  attr_accessor :float
28
24
 
25
+ attr_accessor :object
26
+
29
27
  attr_accessor :boolean
30
28
 
31
29
  attr_accessor :number
32
30
 
33
- attr_accessor :object
31
+ attr_accessor :value_node
32
+
33
+ attr_accessor :container_node
34
34
 
35
35
  attr_accessor :missing_node
36
36
 
@@ -56,20 +56,20 @@ module PureCloud
56
56
 
57
57
  attr_accessor :binary
58
58
 
59
- attr_accessor :value_node
59
+ attr_accessor :array
60
60
 
61
- attr_accessor :container_node
61
+ attr_accessor :null
62
62
 
63
63
  # Attribute mapping from ruby-style variable name to JSON key.
64
64
  def self.attribute_map
65
65
  {
66
- :'array' => :'array',
67
- :'null' => :'null',
68
66
  :'node_type' => :'nodeType',
69
67
  :'float' => :'float',
68
+ :'object' => :'object',
70
69
  :'boolean' => :'boolean',
71
70
  :'number' => :'number',
72
- :'object' => :'object',
71
+ :'value_node' => :'valueNode',
72
+ :'container_node' => :'containerNode',
73
73
  :'missing_node' => :'missingNode',
74
74
  :'pojo' => :'pojo',
75
75
  :'integral_number' => :'integralNumber',
@@ -82,21 +82,21 @@ module PureCloud
82
82
  :'big_integer' => :'bigInteger',
83
83
  :'textual' => :'textual',
84
84
  :'binary' => :'binary',
85
- :'value_node' => :'valueNode',
86
- :'container_node' => :'containerNode'
85
+ :'array' => :'array',
86
+ :'null' => :'null'
87
87
  }
88
88
  end
89
89
 
90
90
  # Attribute type mapping.
91
91
  def self.swagger_types
92
92
  {
93
- :'array' => :'BOOLEAN',
94
- :'null' => :'BOOLEAN',
95
93
  :'node_type' => :'String',
96
94
  :'float' => :'BOOLEAN',
95
+ :'object' => :'BOOLEAN',
97
96
  :'boolean' => :'BOOLEAN',
98
97
  :'number' => :'BOOLEAN',
99
- :'object' => :'BOOLEAN',
98
+ :'value_node' => :'BOOLEAN',
99
+ :'container_node' => :'BOOLEAN',
100
100
  :'missing_node' => :'BOOLEAN',
101
101
  :'pojo' => :'BOOLEAN',
102
102
  :'integral_number' => :'BOOLEAN',
@@ -109,8 +109,8 @@ module PureCloud
109
109
  :'big_integer' => :'BOOLEAN',
110
110
  :'textual' => :'BOOLEAN',
111
111
  :'binary' => :'BOOLEAN',
112
- :'value_node' => :'BOOLEAN',
113
- :'container_node' => :'BOOLEAN'
112
+ :'array' => :'BOOLEAN',
113
+ :'null' => :'BOOLEAN'
114
114
  }
115
115
  end
116
116
 
@@ -122,14 +122,6 @@ module PureCloud
122
122
  # convert string to symbol for hash key
123
123
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
124
124
 
125
- if attributes.has_key?(:'array')
126
- self.array = attributes[:'array']
127
- end
128
-
129
- if attributes.has_key?(:'null')
130
- self.null = attributes[:'null']
131
- end
132
-
133
125
  if attributes.has_key?(:'nodeType')
134
126
  self.node_type = attributes[:'nodeType']
135
127
  end
@@ -138,6 +130,10 @@ module PureCloud
138
130
  self.float = attributes[:'float']
139
131
  end
140
132
 
133
+ if attributes.has_key?(:'object')
134
+ self.object = attributes[:'object']
135
+ end
136
+
141
137
  if attributes.has_key?(:'boolean')
142
138
  self.boolean = attributes[:'boolean']
143
139
  end
@@ -146,8 +142,12 @@ module PureCloud
146
142
  self.number = attributes[:'number']
147
143
  end
148
144
 
149
- if attributes.has_key?(:'object')
150
- self.object = attributes[:'object']
145
+ if attributes.has_key?(:'valueNode')
146
+ self.value_node = attributes[:'valueNode']
147
+ end
148
+
149
+ if attributes.has_key?(:'containerNode')
150
+ self.container_node = attributes[:'containerNode']
151
151
  end
152
152
 
153
153
  if attributes.has_key?(:'missingNode')
@@ -198,12 +198,12 @@ module PureCloud
198
198
  self.binary = attributes[:'binary']
199
199
  end
200
200
 
201
- if attributes.has_key?(:'valueNode')
202
- self.value_node = attributes[:'valueNode']
201
+ if attributes.has_key?(:'array')
202
+ self.array = attributes[:'array']
203
203
  end
204
204
 
205
- if attributes.has_key?(:'containerNode')
206
- self.container_node = attributes[:'containerNode']
205
+ if attributes.has_key?(:'null')
206
+ self.null = attributes[:'null']
207
207
  end
208
208
 
209
209
  end
@@ -239,13 +239,13 @@ module PureCloud
239
239
  def ==(o)
240
240
  return true if self.equal?(o)
241
241
  self.class == o.class &&
242
- array == o.array &&
243
- null == o.null &&
244
242
  node_type == o.node_type &&
245
243
  float == o.float &&
244
+ object == o.object &&
246
245
  boolean == o.boolean &&
247
246
  number == o.number &&
248
- object == o.object &&
247
+ value_node == o.value_node &&
248
+ container_node == o.container_node &&
249
249
  missing_node == o.missing_node &&
250
250
  pojo == o.pojo &&
251
251
  integral_number == o.integral_number &&
@@ -258,8 +258,8 @@ module PureCloud
258
258
  big_integer == o.big_integer &&
259
259
  textual == o.textual &&
260
260
  binary == o.binary &&
261
- value_node == o.value_node &&
262
- container_node == o.container_node
261
+ array == o.array &&
262
+ null == o.null
263
263
  end
264
264
 
265
265
  # @see the `==` method
@@ -271,7 +271,7 @@ module PureCloud
271
271
  # Calculates hash code according to all attributes.
272
272
  # @return [Fixnum] Hash code
273
273
  def hash
274
- [array, null, node_type, float, boolean, number, object, missing_node, pojo, integral_number, floating_point_number, short, int, long, double, big_decimal, big_integer, textual, binary, value_node, container_node].hash
274
+ [node_type, float, object, boolean, number, value_node, container_node, missing_node, pojo, integral_number, floating_point_number, short, int, long, double, big_decimal, big_integer, textual, binary, array, null].hash
275
275
  end
276
276
 
277
277
  # build the object from hash
@@ -32,10 +32,10 @@ module PureCloud
32
32
 
33
33
  attr_accessor :previous_uri
34
34
 
35
- attr_accessor :next_uri
36
-
37
35
  attr_accessor :last_uri
38
36
 
37
+ attr_accessor :next_uri
38
+
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,8 +48,8 @@ module PureCloud
48
48
  :'self_uri' => :'selfUri',
49
49
  :'first_uri' => :'firstUri',
50
50
  :'previous_uri' => :'previousUri',
51
- :'next_uri' => :'nextUri',
52
51
  :'last_uri' => :'lastUri',
52
+ :'next_uri' => :'nextUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -64,8 +64,8 @@ module PureCloud
64
64
  :'self_uri' => :'String',
65
65
  :'first_uri' => :'String',
66
66
  :'previous_uri' => :'String',
67
- :'next_uri' => :'String',
68
67
  :'last_uri' => :'String',
68
+ :'next_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -108,14 +108,14 @@ module PureCloud
108
108
  self.previous_uri = attributes[:'previousUri']
109
109
  end
110
110
 
111
- if attributes.has_key?(:'nextUri')
112
- self.next_uri = attributes[:'nextUri']
113
- end
114
-
115
111
  if attributes.has_key?(:'lastUri')
116
112
  self.last_uri = attributes[:'lastUri']
117
113
  end
118
114
 
115
+ if attributes.has_key?(:'nextUri')
116
+ self.next_uri = attributes[:'nextUri']
117
+ end
118
+
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -146,8 +146,8 @@ module PureCloud
146
146
  self_uri == o.self_uri &&
147
147
  first_uri == o.first_uri &&
148
148
  previous_uri == o.previous_uri &&
149
- next_uri == o.next_uri &&
150
149
  last_uri == o.last_uri &&
150
+ next_uri == o.next_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
163
+ [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, last_uri, next_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash
@@ -32,10 +32,10 @@ module PureCloud
32
32
 
33
33
  attr_accessor :previous_uri
34
34
 
35
- attr_accessor :next_uri
36
-
37
35
  attr_accessor :last_uri
38
36
 
37
+ attr_accessor :next_uri
38
+
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,8 +48,8 @@ module PureCloud
48
48
  :'self_uri' => :'selfUri',
49
49
  :'first_uri' => :'firstUri',
50
50
  :'previous_uri' => :'previousUri',
51
- :'next_uri' => :'nextUri',
52
51
  :'last_uri' => :'lastUri',
52
+ :'next_uri' => :'nextUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -64,8 +64,8 @@ module PureCloud
64
64
  :'self_uri' => :'String',
65
65
  :'first_uri' => :'String',
66
66
  :'previous_uri' => :'String',
67
- :'next_uri' => :'String',
68
67
  :'last_uri' => :'String',
68
+ :'next_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -108,14 +108,14 @@ module PureCloud
108
108
  self.previous_uri = attributes[:'previousUri']
109
109
  end
110
110
 
111
- if attributes.has_key?(:'nextUri')
112
- self.next_uri = attributes[:'nextUri']
113
- end
114
-
115
111
  if attributes.has_key?(:'lastUri')
116
112
  self.last_uri = attributes[:'lastUri']
117
113
  end
118
114
 
115
+ if attributes.has_key?(:'nextUri')
116
+ self.next_uri = attributes[:'nextUri']
117
+ end
118
+
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -146,8 +146,8 @@ module PureCloud
146
146
  self_uri == o.self_uri &&
147
147
  first_uri == o.first_uri &&
148
148
  previous_uri == o.previous_uri &&
149
- next_uri == o.next_uri &&
150
149
  last_uri == o.last_uri &&
150
+ next_uri == o.next_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
163
+ [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, last_uri, next_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash