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 IntradayHistoricalAgentData
21
+ # The total on-queue time in seconds for all agents in this group
22
+ attr_accessor :on_queue_time_seconds
23
+
24
+ # The total time spent interacting in seconds for all agents in this group
25
+ attr_accessor :interacting_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
+ :'interacting_time_seconds' => :'interactingTimeSeconds'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'on_queue_time_seconds' => :'Float',
39
+ :'interacting_time_seconds' => :'Float'
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?(:'interactingTimeSeconds')
56
+ self.interacting_time_seconds = attributes[:'interactingTimeSeconds']
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
+ interacting_time_seconds == o.interacting_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, interacting_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
@@ -0,0 +1,249 @@
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 IntradayHistoricalQueueData
21
+ # The number of interactions routed into the queue for the given media type(s) for an agent to answer
22
+ attr_accessor :offered
23
+
24
+ # The number of interactions completed
25
+ attr_accessor :completed
26
+
27
+ # The number of interactions answered by an agent in a given period
28
+ attr_accessor :answered
29
+
30
+ # The number of customers who disconnect before connecting with an agent
31
+ attr_accessor :abandoned
32
+
33
+ # The average time in seconds an agent spends interacting with a customer per talk segment for a defined period of time
34
+ attr_accessor :average_talk_time_seconds
35
+
36
+ # The average time in seconds spent in after-call work. After-call work is the work that an agent performs immediately following an interaction
37
+ attr_accessor :average_after_call_work_seconds
38
+
39
+ # Percent of interactions answered in X seconds, where X is the service level objective configured in the service goal group matching this intraday group
40
+ attr_accessor :service_level_percent
41
+
42
+ # The average time in seconds it takes to answer an interaction once the interaction becomes available to be routed
43
+ attr_accessor :average_speed_of_answer_seconds
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'offered' => :'offered',
49
+ :'completed' => :'completed',
50
+ :'answered' => :'answered',
51
+ :'abandoned' => :'abandoned',
52
+ :'average_talk_time_seconds' => :'averageTalkTimeSeconds',
53
+ :'average_after_call_work_seconds' => :'averageAfterCallWorkSeconds',
54
+ :'service_level_percent' => :'serviceLevelPercent',
55
+ :'average_speed_of_answer_seconds' => :'averageSpeedOfAnswerSeconds'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'offered' => :'Integer',
63
+ :'completed' => :'Integer',
64
+ :'answered' => :'Integer',
65
+ :'abandoned' => :'Integer',
66
+ :'average_talk_time_seconds' => :'Float',
67
+ :'average_after_call_work_seconds' => :'Float',
68
+ :'service_level_percent' => :'Float',
69
+ :'average_speed_of_answer_seconds' => :'Float'
70
+ }
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ return unless attributes.is_a?(Hash)
77
+
78
+ # convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
+
81
+ if attributes.has_key?(:'offered')
82
+ self.offered = attributes[:'offered']
83
+ end
84
+
85
+ if attributes.has_key?(:'completed')
86
+ self.completed = attributes[:'completed']
87
+ end
88
+
89
+ if attributes.has_key?(:'answered')
90
+ self.answered = attributes[:'answered']
91
+ end
92
+
93
+ if attributes.has_key?(:'abandoned')
94
+ self.abandoned = attributes[:'abandoned']
95
+ end
96
+
97
+ if attributes.has_key?(:'averageTalkTimeSeconds')
98
+ self.average_talk_time_seconds = attributes[:'averageTalkTimeSeconds']
99
+ end
100
+
101
+ if attributes.has_key?(:'averageAfterCallWorkSeconds')
102
+ self.average_after_call_work_seconds = attributes[:'averageAfterCallWorkSeconds']
103
+ end
104
+
105
+ if attributes.has_key?(:'serviceLevelPercent')
106
+ self.service_level_percent = attributes[:'serviceLevelPercent']
107
+ end
108
+
109
+ if attributes.has_key?(:'averageSpeedOfAnswerSeconds')
110
+ self.average_speed_of_answer_seconds = attributes[:'averageSpeedOfAnswerSeconds']
111
+ end
112
+
113
+ end
114
+
115
+ # Show invalid properties with the reasons. Usually used together with valid?
116
+ # @return Array for valid properies with the reasons
117
+ def list_invalid_properties
118
+ invalid_properties = Array.new
119
+ return invalid_properties
120
+ end
121
+
122
+ # Check to see if the all the properties in the model are valid
123
+ # @return true if the model is valid
124
+ def valid?
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ offered == o.offered &&
133
+ completed == o.completed &&
134
+ answered == o.answered &&
135
+ abandoned == o.abandoned &&
136
+ average_talk_time_seconds == o.average_talk_time_seconds &&
137
+ average_after_call_work_seconds == o.average_after_call_work_seconds &&
138
+ service_level_percent == o.service_level_percent &&
139
+ average_speed_of_answer_seconds == o.average_speed_of_answer_seconds
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Fixnum] Hash code
150
+ def hash
151
+ [offered, completed, answered, abandoned, average_talk_time_seconds, average_after_call_work_seconds, service_level_percent, average_speed_of_answer_seconds].hash
152
+ end
153
+
154
+ # build the object from hash
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.swagger_types.each_pair do |key, type|
158
+ if type =~ /^Array<(.*)>/i
159
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
160
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
161
+ else
162
+ #TODO show warning in debug mode
163
+ end
164
+ elsif !attributes[self.class.attribute_map[key]].nil?
165
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
+ else
167
+ # data not found in attributes(hash), not an issue as the data can be optional
168
+ end
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ def _deserialize(type, value)
175
+ case type.to_sym
176
+ when :DateTime
177
+ DateTime.parse(value)
178
+ when :Date
179
+ Date.parse(value)
180
+ when :String
181
+ value.to_s
182
+ when :Integer
183
+ value.to_i
184
+ when :Float
185
+ value.to_f
186
+ when :BOOLEAN
187
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
188
+ true
189
+ else
190
+ false
191
+ end
192
+ when :Object
193
+ # generic object (usually a Hash), return directly
194
+ value
195
+ when /\AArray<(?<inner_type>.+)>\z/
196
+ inner_type = Regexp.last_match[:inner_type]
197
+ value.map { |v| _deserialize(inner_type, v) }
198
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
199
+ k_type = Regexp.last_match[:k_type]
200
+ v_type = Regexp.last_match[:v_type]
201
+ {}.tap do |hash|
202
+ value.each do |k, v|
203
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
204
+ end
205
+ end
206
+ else # model
207
+ _model = Object.const_get("PureCloud").const_get(type).new
208
+ _model.build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ def to_s
213
+ to_hash.to_s
214
+ end
215
+
216
+ # to_body is an alias to to_body (backward compatibility))
217
+ def to_body
218
+ to_hash
219
+ end
220
+
221
+ # return the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ next if value.nil?
227
+ hash[param] = _to_hash(value)
228
+ end
229
+ hash
230
+ end
231
+
232
+ # Method to output non-array value in the form of hash
233
+ # For object, use to_hash. Otherwise, just return the value
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map{ |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+ end
@@ -0,0 +1,203 @@
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 IntradayMetric
21
+ # The metric category
22
+ attr_accessor :category
23
+
24
+ # The current version id for this metric category
25
+ attr_accessor :version
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'category' => :'category',
31
+ :'version' => :'version'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'category' => :'String',
39
+ :'version' => :'String'
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?(:'category')
52
+ self.category = attributes[:'category']
53
+ end
54
+
55
+ if attributes.has_key?(:'version')
56
+ self.version = attributes[:'version']
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
+ allowed_values = ["ForecastData", "ScheduleData", "HistoricalQueueData", "HistoricalAgentData", "PerformancePredictionQueueData", "PerformancePredictionAgentData"]
72
+ if @category && !allowed_values.include?(@category)
73
+ return false
74
+ end
75
+ end
76
+
77
+ # Custom attribute writer method checking allowed values (enum).
78
+ # @param [Object] category Object to be assigned
79
+ def category=(category)
80
+ allowed_values = ["ForecastData", "ScheduleData", "HistoricalQueueData", "HistoricalAgentData", "PerformancePredictionQueueData", "PerformancePredictionAgentData"]
81
+ if category && !allowed_values.include?(category)
82
+ fail ArgumentError, "invalid value for 'category', must be one of #{allowed_values}."
83
+ end
84
+ @category = category
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ category == o.category &&
93
+ version == o.version
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Fixnum] Hash code
104
+ def hash
105
+ [category, version].hash
106
+ end
107
+
108
+ # build the object from hash
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.swagger_types.each_pair do |key, type|
112
+ if type =~ /^Array<(.*)>/i
113
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
114
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
115
+ else
116
+ #TODO show warning in debug mode
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ else
121
+ # data not found in attributes(hash), not an issue as the data can be optional
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ def _deserialize(type, value)
129
+ case type.to_sym
130
+ when :DateTime
131
+ DateTime.parse(value)
132
+ when :Date
133
+ Date.parse(value)
134
+ when :String
135
+ value.to_s
136
+ when :Integer
137
+ value.to_i
138
+ when :Float
139
+ value.to_f
140
+ when :BOOLEAN
141
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
142
+ true
143
+ else
144
+ false
145
+ end
146
+ when :Object
147
+ # generic object (usually a Hash), return directly
148
+ value
149
+ when /\AArray<(?<inner_type>.+)>\z/
150
+ inner_type = Regexp.last_match[:inner_type]
151
+ value.map { |v| _deserialize(inner_type, v) }
152
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
153
+ k_type = Regexp.last_match[:k_type]
154
+ v_type = Regexp.last_match[:v_type]
155
+ {}.tap do |hash|
156
+ value.each do |k, v|
157
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
158
+ end
159
+ end
160
+ else # model
161
+ _model = Object.const_get("PureCloud").const_get(type).new
162
+ _model.build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_body (backward compatibility))
171
+ def to_body
172
+ to_hash
173
+ end
174
+
175
+ # return the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ next if value.nil?
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ # Method to output non-array value in the form of hash
187
+ # For object, use to_hash. Otherwise, just return the value
188
+ def _to_hash(value)
189
+ if value.is_a?(Array)
190
+ value.compact.map{ |v| _to_hash(v) }
191
+ elsif value.is_a?(Hash)
192
+ {}.tap do |hash|
193
+ value.each { |k, v| hash[k] = _to_hash(v) }
194
+ end
195
+ elsif value.respond_to? :to_hash
196
+ value.to_hash
197
+ else
198
+ value
199
+ end
200
+ end
201
+
202
+ end
203
+ end