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,201 @@
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 IntradayQueue
21
+ # Queue ID
22
+ attr_accessor :id
23
+
24
+ # Queue name
25
+ attr_accessor :name
26
+
27
+ # The media types valid for this queue as defined by the service goal groups in this management unit
28
+ attr_accessor :media_types
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'id' => :'id',
34
+ :'name' => :'name',
35
+ :'media_types' => :'mediaTypes'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'id' => :'String',
43
+ :'name' => :'String',
44
+ :'media_types' => :'Array<String>'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
55
+
56
+ if attributes.has_key?(:'id')
57
+ self.id = attributes[:'id']
58
+ end
59
+
60
+ if attributes.has_key?(:'name')
61
+ self.name = attributes[:'name']
62
+ end
63
+
64
+ if attributes.has_key?(:'mediaTypes')
65
+ if (value = attributes[:'mediaTypes']).is_a?(Array)
66
+ self.media_types = value
67
+ end
68
+ end
69
+
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properies with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ return invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ id == o.id &&
90
+ name == o.name &&
91
+ media_types == o.media_types
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Fixnum] Hash code
102
+ def hash
103
+ [id, name, media_types].hash
104
+ end
105
+
106
+ # build the object from hash
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.swagger_types.each_pair do |key, type|
110
+ if type =~ /^Array<(.*)>/i
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
113
+ else
114
+ #TODO show warning in debug mode
115
+ end
116
+ elsif !attributes[self.class.attribute_map[key]].nil?
117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ else
119
+ # data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ _model = Object.const_get("PureCloud").const_get(type).new
160
+ _model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_body (backward compatibility))
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # return the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ next if value.nil?
179
+ hash[param] = _to_hash(value)
180
+ end
181
+ hash
182
+ end
183
+
184
+ # Method to output non-array value in the form of hash
185
+ # For object, use to_hash. Otherwise, just return the value
186
+ def _to_hash(value)
187
+ if value.is_a?(Array)
188
+ value.compact.map{ |v| _to_hash(v) }
189
+ elsif value.is_a?(Hash)
190
+ {}.tap do |hash|
191
+ value.each { |k, v| hash[k] = _to_hash(v) }
192
+ end
193
+ elsif value.respond_to? :to_hash
194
+ value.to_hash
195
+ else
196
+ value
197
+ end
198
+ end
199
+
200
+ end
201
+ end
@@ -0,0 +1,269 @@
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 IntradayResponse
21
+ # The start of the date range for which this data applies. This is also the start reference point for the intervals represented in the various arrays. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
22
+ attr_accessor :start_date
23
+
24
+ # The end of the date range for which this data applies. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
25
+ attr_accessor :end_date
26
+
27
+ # The aggregation period in minutes, which determines the interval duration of the returned data
28
+ attr_accessor :interval_length_minutes
29
+
30
+ # The total number of time intervals represented by this data
31
+ attr_accessor :number_of_intervals
32
+
33
+ # The metrics to which this data corresponds
34
+ attr_accessor :metrics
35
+
36
+ # If not null, the reason there was no data for the request
37
+ attr_accessor :no_data_reason
38
+
39
+ # The IDs of the queues this data corresponds to
40
+ attr_accessor :queue_ids
41
+
42
+ # Intraday data grouped by a single media type and set of queue IDs
43
+ attr_accessor :intraday_data_groupings
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'start_date' => :'startDate',
49
+ :'end_date' => :'endDate',
50
+ :'interval_length_minutes' => :'intervalLengthMinutes',
51
+ :'number_of_intervals' => :'numberOfIntervals',
52
+ :'metrics' => :'metrics',
53
+ :'no_data_reason' => :'noDataReason',
54
+ :'queue_ids' => :'queueIds',
55
+ :'intraday_data_groupings' => :'intradayDataGroupings'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'start_date' => :'DateTime',
63
+ :'end_date' => :'DateTime',
64
+ :'interval_length_minutes' => :'Integer',
65
+ :'number_of_intervals' => :'Integer',
66
+ :'metrics' => :'Array<IntradayMetric>',
67
+ :'no_data_reason' => :'String',
68
+ :'queue_ids' => :'Array<String>',
69
+ :'intraday_data_groupings' => :'Array<IntradayDataGroup>'
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?(:'startDate')
82
+ self.start_date = attributes[:'startDate']
83
+ end
84
+
85
+ if attributes.has_key?(:'endDate')
86
+ self.end_date = attributes[:'endDate']
87
+ end
88
+
89
+ if attributes.has_key?(:'intervalLengthMinutes')
90
+ self.interval_length_minutes = attributes[:'intervalLengthMinutes']
91
+ end
92
+
93
+ if attributes.has_key?(:'numberOfIntervals')
94
+ self.number_of_intervals = attributes[:'numberOfIntervals']
95
+ end
96
+
97
+ if attributes.has_key?(:'metrics')
98
+ if (value = attributes[:'metrics']).is_a?(Array)
99
+ self.metrics = value
100
+ end
101
+ end
102
+
103
+ if attributes.has_key?(:'noDataReason')
104
+ self.no_data_reason = attributes[:'noDataReason']
105
+ end
106
+
107
+ if attributes.has_key?(:'queueIds')
108
+ if (value = attributes[:'queueIds']).is_a?(Array)
109
+ self.queue_ids = value
110
+ end
111
+ end
112
+
113
+ if attributes.has_key?(:'intradayDataGroupings')
114
+ if (value = attributes[:'intradayDataGroupings']).is_a?(Array)
115
+ self.intraday_data_groupings = value
116
+ end
117
+ end
118
+
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properies with the reasons
123
+ def list_invalid_properties
124
+ invalid_properties = Array.new
125
+ return invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ allowed_values = ["NoWeekData", "NoPublishedSchedule", "NoSourceForecast"]
132
+ if @no_data_reason && !allowed_values.include?(@no_data_reason)
133
+ return false
134
+ end
135
+ end
136
+
137
+ # Custom attribute writer method checking allowed values (enum).
138
+ # @param [Object] no_data_reason Object to be assigned
139
+ def no_data_reason=(no_data_reason)
140
+ allowed_values = ["NoWeekData", "NoPublishedSchedule", "NoSourceForecast"]
141
+ if no_data_reason && !allowed_values.include?(no_data_reason)
142
+ fail ArgumentError, "invalid value for 'no_data_reason', must be one of #{allowed_values}."
143
+ end
144
+ @no_data_reason = no_data_reason
145
+ end
146
+
147
+ # Checks equality by comparing each attribute.
148
+ # @param [Object] Object to be compared
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ start_date == o.start_date &&
153
+ end_date == o.end_date &&
154
+ interval_length_minutes == o.interval_length_minutes &&
155
+ number_of_intervals == o.number_of_intervals &&
156
+ metrics == o.metrics &&
157
+ no_data_reason == o.no_data_reason &&
158
+ queue_ids == o.queue_ids &&
159
+ intraday_data_groupings == o.intraday_data_groupings
160
+ end
161
+
162
+ # @see the `==` method
163
+ # @param [Object] Object to be compared
164
+ def eql?(o)
165
+ self == o
166
+ end
167
+
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Fixnum] Hash code
170
+ def hash
171
+ [start_date, end_date, interval_length_minutes, number_of_intervals, metrics, no_data_reason, queue_ids, intraday_data_groupings].hash
172
+ end
173
+
174
+ # build the object from hash
175
+ def build_from_hash(attributes)
176
+ return nil unless attributes.is_a?(Hash)
177
+ self.class.swagger_types.each_pair do |key, type|
178
+ if type =~ /^Array<(.*)>/i
179
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
180
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
181
+ else
182
+ #TODO show warning in debug mode
183
+ end
184
+ elsif !attributes[self.class.attribute_map[key]].nil?
185
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
186
+ else
187
+ # data not found in attributes(hash), not an issue as the data can be optional
188
+ end
189
+ end
190
+
191
+ self
192
+ end
193
+
194
+ def _deserialize(type, value)
195
+ case type.to_sym
196
+ when :DateTime
197
+ DateTime.parse(value)
198
+ when :Date
199
+ Date.parse(value)
200
+ when :String
201
+ value.to_s
202
+ when :Integer
203
+ value.to_i
204
+ when :Float
205
+ value.to_f
206
+ when :BOOLEAN
207
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
208
+ true
209
+ else
210
+ false
211
+ end
212
+ when :Object
213
+ # generic object (usually a Hash), return directly
214
+ value
215
+ when /\AArray<(?<inner_type>.+)>\z/
216
+ inner_type = Regexp.last_match[:inner_type]
217
+ value.map { |v| _deserialize(inner_type, v) }
218
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
219
+ k_type = Regexp.last_match[:k_type]
220
+ v_type = Regexp.last_match[:v_type]
221
+ {}.tap do |hash|
222
+ value.each do |k, v|
223
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
224
+ end
225
+ end
226
+ else # model
227
+ _model = Object.const_get("PureCloud").const_get(type).new
228
+ _model.build_from_hash(value)
229
+ end
230
+ end
231
+
232
+ def to_s
233
+ to_hash.to_s
234
+ end
235
+
236
+ # to_body is an alias to to_body (backward compatibility))
237
+ def to_body
238
+ to_hash
239
+ end
240
+
241
+ # return the object in the form of hash
242
+ def to_hash
243
+ hash = {}
244
+ self.class.attribute_map.each_pair do |attr, param|
245
+ value = self.send(attr)
246
+ next if value.nil?
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ # Method to output non-array value in the form of hash
253
+ # For object, use to_hash. Otherwise, just return the value
254
+ def _to_hash(value)
255
+ if value.is_a?(Array)
256
+ value.compact.map{ |v| _to_hash(v) }
257
+ elsif value.is_a?(Hash)
258
+ {}.tap do |hash|
259
+ value.each { |k, v| hash[k] = _to_hash(v) }
260
+ end
261
+ elsif value.respond_to? :to_hash
262
+ value.to_hash
263
+ else
264
+ value
265
+ end
266
+ end
267
+
268
+ end
269
+ end