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