purecloud 0.56.1 → 0.57.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/AgentActivityEntityListing.html.md +2 -2
  5. data/doc_out/AttemptLimitsEntityListing.html.md +2 -2
  6. data/doc_out/AttributeEntityListing.html.md +2 -2
  7. data/doc_out/CalibrationEntityListing.html.md +2 -2
  8. data/doc_out/CallConversationEntityListing.html.md +2 -2
  9. data/doc_out/CallableTimeSetEntityListing.html.md +2 -2
  10. data/doc_out/CallbackConversationEntityListing.html.md +2 -2
  11. data/doc_out/CampaignEntityListing.html.md +2 -2
  12. data/doc_out/CampaignSequenceEntityListing.html.md +2 -2
  13. data/doc_out/CertificateAuthorityEntityListing.html.md +2 -2
  14. data/doc_out/ChannelEntityListing.html.md +2 -2
  15. data/doc_out/ChatConversationEntityListing.html.md +2 -2
  16. data/doc_out/CobrowseConversationEntityListing.html.md +2 -2
  17. data/doc_out/Cobrowsesession.html.md +1 -0
  18. data/doc_out/CommandStatusEntityListing.html.md +2 -2
  19. data/doc_out/ContactListEntityListing.html.md +2 -2
  20. data/doc_out/ConversationEntityListing.html.md +2 -2
  21. data/doc_out/DIDEntityListing.html.md +2 -2
  22. data/doc_out/DIDPoolEntityListing.html.md +2 -2
  23. data/doc_out/DncListEntityListing.html.md +2 -2
  24. data/doc_out/DocumentAuditEntityListing.html.md +2 -2
  25. data/doc_out/DocumentEntityListing.html.md +2 -2
  26. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +2 -2
  27. data/doc_out/DomainEntityListing.html.md +2 -2
  28. data/doc_out/DomainEntityListingEvaluationForm.html.md +2 -2
  29. data/doc_out/DomainEntityListingQueryResult.html.md +2 -2
  30. data/doc_out/EdgeEntityListing.html.md +2 -2
  31. data/doc_out/EdgeGroupEntityListing.html.md +2 -2
  32. data/doc_out/EdgeLineEntityListing.html.md +2 -2
  33. data/doc_out/EmailConversationEntityListing.html.md +2 -2
  34. data/doc_out/EmailMessageListing.html.md +2 -2
  35. data/doc_out/EncryptionKey.html.md +4 -4
  36. data/doc_out/EncryptionKeyEntityListing.html.md +2 -2
  37. data/doc_out/EndpointEntityListing.html.md +2 -2
  38. data/doc_out/EvaluationEntityListing.html.md +2 -2
  39. data/doc_out/EvaluationFormEntityListing.html.md +2 -2
  40. data/doc_out/EvaluatorActivityEntityListing.html.md +2 -2
  41. data/doc_out/ExtensionEntityListing.html.md +2 -2
  42. data/doc_out/ExtensionPoolEntityListing.html.md +2 -2
  43. data/doc_out/FaxDocumentEntityListing.html.md +2 -2
  44. data/doc_out/ForecastCreation.html.md +1 -0
  45. data/doc_out/ForecastCreationCompletion.html.md +2 -1
  46. data/doc_out/GroupEntityListing.html.md +2 -2
  47. data/doc_out/HeartBeatAlertContainer.html.md +2 -2
  48. data/doc_out/HeartBeatRuleContainer.html.md +2 -2
  49. data/doc_out/InboundDomainEntityListing.html.md +2 -2
  50. data/doc_out/InboundRouteEntityListing.html.md +2 -2
  51. data/doc_out/InteractionStatsAlertContainer.html.md +2 -2
  52. data/doc_out/InteractionStatsRuleContainer.html.md +2 -2
  53. data/doc_out/KeywordSetEntityListing.html.md +2 -2
  54. data/doc_out/LanguageEntityListing.html.md +2 -2
  55. data/doc_out/LibraryEntityListing.html.md +2 -2
  56. data/doc_out/LineBaseEntityListing.html.md +2 -2
  57. data/doc_out/LineEntityListing.html.md +2 -2
  58. data/doc_out/LocalEncryptionConfiguration.html.md +18 -0
  59. data/doc_out/{ForecastMetadataEntityListing.html.md → LocalEncryptionConfigurationListing.html.md} +5 -5
  60. data/doc_out/LocalEncryptionKeyRequest.html.md +15 -0
  61. data/doc_out/LogicalInterfaceEntityListing.html.md +2 -2
  62. data/doc_out/OAuthClientEntityListing.html.md +2 -2
  63. data/doc_out/OAuthProviderEntityListing.html.md +2 -2
  64. data/doc_out/OrganizationPresenceEntityListing.html.md +2 -2
  65. data/doc_out/OrganizationRoleEntityListing.html.md +2 -2
  66. data/doc_out/OrphanRecordingListing.html.md +2 -2
  67. data/doc_out/OutboundRouteEntityListing.html.md +2 -2
  68. data/doc_out/PermissionCollectionEntityListing.html.md +2 -2
  69. data/doc_out/PhoneBaseEntityListing.html.md +2 -2
  70. data/doc_out/PhoneEntityListing.html.md +2 -2
  71. data/doc_out/PhoneMetaBaseEntityListing.html.md +2 -2
  72. data/doc_out/PhysicalInterfaceEntityListing.html.md +2 -2
  73. data/doc_out/PolicyEntityListing.html.md +2 -2
  74. data/doc_out/QualityAuditPage.html.md +2 -2
  75. data/doc_out/QueueEntityListing.html.md +2 -2
  76. data/doc_out/QueueMemberEntityListing.html.md +2 -2
  77. data/doc_out/RecordingApi.html.md +501 -0
  78. data/doc_out/ReportMetaDataEntityListing.html.md +2 -2
  79. data/doc_out/ReportRunEntryEntityDomainListing.html.md +2 -2
  80. data/doc_out/ReportScheduleEntityListing.html.md +2 -2
  81. data/doc_out/ResponseEntityList.html.md +2 -2
  82. data/doc_out/ResponseEntityListing.html.md +2 -2
  83. data/doc_out/ResponseSetEntityListing.html.md +2 -2
  84. data/doc_out/RuleSetEntityListing.html.md +2 -2
  85. data/doc_out/SchemaCategoryEntityListing.html.md +2 -2
  86. data/doc_out/SchemaReferenceEntityListing.html.md +2 -2
  87. data/doc_out/ScreenRecordingSessionListing.html.md +2 -2
  88. data/doc_out/Screenshare.html.md +1 -0
  89. data/doc_out/SecurityProfileEntityListing.html.md +2 -2
  90. data/doc_out/ShareEntityListing.html.md +2 -2
  91. data/doc_out/SiteEntityListing.html.md +2 -2
  92. data/doc_out/SkillEntityListing.html.md +2 -2
  93. data/doc_out/StationEntityListing.html.md +2 -2
  94. data/doc_out/TagValueEntityListing.html.md +2 -2
  95. data/doc_out/TimeZoneEntityListing.html.md +2 -2
  96. data/doc_out/TrunkBaseEntityListing.html.md +2 -2
  97. data/doc_out/TrunkEntityListing.html.md +2 -2
  98. data/doc_out/TrunkMetabaseEntityListing.html.md +2 -2
  99. data/doc_out/User.html.md +1 -0
  100. data/doc_out/UserEntityListing.html.md +2 -2
  101. data/doc_out/UserMe.html.md +2 -0
  102. data/doc_out/UserQueueEntityListing.html.md +2 -2
  103. data/doc_out/UserRecordingEntityListing.html.md +2 -2
  104. data/doc_out/UserSkillEntityListing.html.md +2 -2
  105. data/doc_out/UsersEntityListing.html.md +2 -2
  106. data/doc_out/WorkforceManagementApi.html.md +0 -406
  107. data/doc_out/WorkspaceEntityListing.html.md +2 -2
  108. data/doc_out/WorkspaceMemberEntityListing.html.md +2 -2
  109. data/doc_out/WrapupCodeEntityListing.html.md +2 -2
  110. data/doc_out/index.html.md +3 -3
  111. data/lib/purecloud.rb +3 -11
  112. data/lib/purecloud/api/recording_api.rb +531 -0
  113. data/lib/purecloud/api/workforce_management_api.rb +0 -433
  114. data/lib/purecloud/api_client.rb +1 -1
  115. data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
  116. data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
  117. data/lib/purecloud/models/attempt_limits_entity_listing.rb +17 -17
  118. data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
  119. data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
  120. data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
  121. data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
  122. data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
  123. data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
  124. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
  125. data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
  126. data/lib/purecloud/models/channel_entity_listing.rb +17 -17
  127. data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
  128. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +17 -17
  129. data/lib/purecloud/models/cobrowsesession.rb +17 -4
  130. data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
  131. data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
  132. data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
  133. data/lib/purecloud/models/dialer_action.rb +1 -1
  134. data/lib/purecloud/models/did_entity_listing.rb +17 -17
  135. data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
  136. data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
  137. data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
  138. data/lib/purecloud/models/document_entity_listing.rb +17 -17
  139. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +17 -17
  140. data/lib/purecloud/models/domain_entity_listing.rb +17 -17
  141. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
  142. data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
  143. data/lib/purecloud/models/edge_entity_listing.rb +17 -17
  144. data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
  145. data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
  146. data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
  147. data/lib/purecloud/models/email_message_listing.rb +17 -17
  148. data/lib/purecloud/models/encryption_key.rb +4 -1
  149. data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
  150. data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
  151. data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
  152. data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
  153. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
  154. data/lib/purecloud/models/extension_entity_listing.rb +17 -17
  155. data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
  156. data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
  157. data/lib/purecloud/models/forecast_creation.rb +15 -4
  158. data/lib/purecloud/models/forecast_creation_completion.rb +18 -7
  159. data/lib/purecloud/models/group_entity_listing.rb +17 -17
  160. data/lib/purecloud/models/heart_beat_alert_container.rb +17 -17
  161. data/lib/purecloud/models/heart_beat_rule_container.rb +17 -17
  162. data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
  163. data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
  164. data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
  165. data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
  166. data/lib/purecloud/models/keyword_set_entity_listing.rb +17 -17
  167. data/lib/purecloud/models/language_entity_listing.rb +17 -17
  168. data/lib/purecloud/models/library_entity_listing.rb +17 -17
  169. data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
  170. data/lib/purecloud/models/line_entity_listing.rb +17 -17
  171. data/lib/purecloud/models/{forecast.rb → local_encryption_configuration.rb} +51 -32
  172. data/lib/purecloud/models/{forecast_metadata_entity_listing.rb → local_encryption_configuration_listing.rb} +19 -19
  173. data/lib/purecloud/models/{forecast_filter_attributes.rb → local_encryption_key_request.rb} +23 -26
  174. data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
  175. data/lib/purecloud/models/o_auth_client_entity_listing.rb +17 -17
  176. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
  177. data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
  178. data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
  179. data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
  180. data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
  181. data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
  182. data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
  183. data/lib/purecloud/models/phone_entity_listing.rb +17 -17
  184. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
  185. data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
  186. data/lib/purecloud/models/policy_entity_listing.rb +17 -17
  187. data/lib/purecloud/models/quality_audit_page.rb +17 -17
  188. data/lib/purecloud/models/queue_entity_listing.rb +17 -17
  189. data/lib/purecloud/models/queue_member_entity_listing.rb +17 -17
  190. data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
  191. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
  192. data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
  193. data/lib/purecloud/models/response_entity_list.rb +17 -17
  194. data/lib/purecloud/models/response_entity_listing.rb +17 -17
  195. data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
  196. data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
  197. data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
  198. data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
  199. data/lib/purecloud/models/screen_recording_session_listing.rb +17 -17
  200. data/lib/purecloud/models/screenshare.rb +17 -4
  201. data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
  202. data/lib/purecloud/models/share_entity_listing.rb +17 -17
  203. data/lib/purecloud/models/site_entity_listing.rb +17 -17
  204. data/lib/purecloud/models/skill_entity_listing.rb +17 -17
  205. data/lib/purecloud/models/station_entity_listing.rb +17 -17
  206. data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
  207. data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
  208. data/lib/purecloud/models/trunk_base_entity_listing.rb +17 -17
  209. data/lib/purecloud/models/trunk_entity_listing.rb +17 -17
  210. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
  211. data/lib/purecloud/models/user.rb +11 -1
  212. data/lib/purecloud/models/user_entity_listing.rb +17 -17
  213. data/lib/purecloud/models/user_me.rb +24 -1
  214. data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
  215. data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
  216. data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
  217. data/lib/purecloud/models/users_entity_listing.rb +17 -17
  218. data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
  219. data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
  220. data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
  221. data/lib/purecloud/version.rb +1 -1
  222. data/newVersion.md +1 -1
  223. data/swagger.json +1 -1
  224. data/version.json +1 -1
  225. metadata +8 -24
  226. data/doc_out/ConfigurationApi.html.md +0 -231
  227. data/doc_out/Forecast.html.md +0 -16
  228. data/doc_out/ForecastDimensions.html.md +0 -15
  229. data/doc_out/ForecastEntry.html.md +0 -15
  230. data/doc_out/ForecastFilterAttributes.html.md +0 -15
  231. data/doc_out/ForecastMetadata.html.md +0 -22
  232. data/doc_out/ForecastModification.html.md +0 -27
  233. data/doc_out/ForecastModificationCreation.html.md +0 -25
  234. data/doc_out/ForecastSearchCriteria.html.md +0 -20
  235. data/doc_out/ForecastSearchRequest.html.md +0 -20
  236. data/lib/purecloud/api/configuration_api.rb +0 -258
  237. data/lib/purecloud/models/forecast_dimensions.rb +0 -197
  238. data/lib/purecloud/models/forecast_entry.rb +0 -199
  239. data/lib/purecloud/models/forecast_metadata.rb +0 -284
  240. data/lib/purecloud/models/forecast_modification.rb +0 -339
  241. data/lib/purecloud/models/forecast_modification_creation.rb +0 -317
  242. data/lib/purecloud/models/forecast_search_criteria.rb +0 -267
  243. data/lib/purecloud/models/forecast_search_request.rb +0 -259
@@ -24,129 +24,6 @@ module PureCloud
24
24
  @api_client = api_client
25
25
  end
26
26
 
27
- # Delete a forecast
28
- #
29
- # @param forecast_id The forecast id
30
- # @param [Hash] opts the optional parameters
31
- # @return [nil]
32
- def delete_longtermforecasts_forecast_id(forecast_id, opts = {})
33
- delete_longtermforecasts_forecast_id_with_http_info(forecast_id, opts)
34
- return nil
35
- end
36
-
37
- # Delete a forecast
38
- #
39
- # @param forecast_id The forecast id
40
- # @param [Hash] opts the optional parameters
41
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
- def delete_longtermforecasts_forecast_id_with_http_info(forecast_id, opts = {})
43
- if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#delete_longtermforecasts_forecast_id ..."
45
- end
46
-
47
- # verify the required parameter 'forecast_id' is set
48
- fail "Missing the required parameter 'forecast_id' when calling delete_longtermforecasts_forecast_id" if forecast_id.nil?
49
-
50
- # resource path
51
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s)
52
-
53
- # query parameters
54
- query_params = {}
55
-
56
- # header parameters
57
- header_params = {}
58
-
59
- # HTTP header 'Accept' (if needed)
60
- _header_accept = ['application/json']
61
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
62
-
63
- # HTTP header 'Content-Type'
64
- _header_content_type = ['application/json']
65
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
66
-
67
- # form parameters
68
- form_params = {}
69
-
70
- # http body (model)
71
- post_body = nil
72
-
73
- auth_names = ['PureCloud Auth']
74
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
75
- :header_params => header_params,
76
- :query_params => query_params,
77
- :form_params => form_params,
78
- :body => post_body,
79
- :auth_names => auth_names)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: WorkforceManagementApi#delete_longtermforecasts_forecast_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
- # Delete a forecast modification
87
- #
88
- # @param forecast_id The forecast id
89
- # @param forecast_modification_id The forecast Modification id
90
- # @param [Hash] opts the optional parameters
91
- # @return [nil]
92
- def delete_longtermforecasts_forecast_id_modifications_forecastmodification_id(forecast_id, forecast_modification_id, opts = {})
93
- delete_longtermforecasts_forecast_id_modifications_forecastmodification_id_with_http_info(forecast_id, forecast_modification_id, opts)
94
- return nil
95
- end
96
-
97
- # Delete a forecast modification
98
- #
99
- # @param forecast_id The forecast id
100
- # @param forecast_modification_id The forecast Modification id
101
- # @param [Hash] opts the optional parameters
102
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
103
- def delete_longtermforecasts_forecast_id_modifications_forecastmodification_id_with_http_info(forecast_id, forecast_modification_id, opts = {})
104
- if @api_client.config.debugging
105
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#delete_longtermforecasts_forecast_id_modifications_forecastmodification_id ..."
106
- end
107
-
108
- # verify the required parameter 'forecast_id' is set
109
- fail "Missing the required parameter 'forecast_id' when calling delete_longtermforecasts_forecast_id_modifications_forecastmodification_id" if forecast_id.nil?
110
-
111
- # verify the required parameter 'forecast_modification_id' is set
112
- fail "Missing the required parameter 'forecast_modification_id' when calling delete_longtermforecasts_forecast_id_modifications_forecastmodification_id" if forecast_modification_id.nil?
113
-
114
- # resource path
115
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}/modifications/{forecastModificationId}".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s).sub('{' + 'forecastModificationId' + '}', forecast_modification_id.to_s)
116
-
117
- # query parameters
118
- query_params = {}
119
-
120
- # header parameters
121
- header_params = {}
122
-
123
- # HTTP header 'Accept' (if needed)
124
- _header_accept = ['application/json']
125
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
126
-
127
- # HTTP header 'Content-Type'
128
- _header_content_type = ['application/json']
129
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
130
-
131
- # form parameters
132
- form_params = {}
133
-
134
- # http body (model)
135
- post_body = nil
136
-
137
- auth_names = ['PureCloud Auth']
138
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
139
- :header_params => header_params,
140
- :query_params => query_params,
141
- :form_params => form_params,
142
- :body => post_body,
143
- :auth_names => auth_names)
144
- if @api_client.config.debugging
145
- @api_client.config.logger.debug "API called: WorkforceManagementApi#delete_longtermforecasts_forecast_id_modifications_forecastmodification_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
- end
147
- return data, status_code, headers
148
- end
149
-
150
27
  # Get a list of UserScheduleAdherence records for the requested users
151
28
  #
152
29
  # @param user_id User Id(s) for which to fetch current schedule adherence information. Max of 100 userIds per request
@@ -208,126 +85,6 @@ module PureCloud
208
85
  return data, status_code, headers
209
86
  end
210
87
 
211
- # Get forecast
212
- #
213
- # @param forecast_id The forecast id
214
- # @param [Hash] opts the optional parameters
215
- # @return [Forecast]
216
- def get_longtermforecasts_forecast_id(forecast_id, opts = {})
217
- data, status_code, headers = get_longtermforecasts_forecast_id_with_http_info(forecast_id, opts)
218
- return data
219
- end
220
-
221
- # Get forecast
222
- #
223
- # @param forecast_id The forecast id
224
- # @param [Hash] opts the optional parameters
225
- # @return [Array<(Forecast, Fixnum, Hash)>] Forecast data, response status code and response headers
226
- def get_longtermforecasts_forecast_id_with_http_info(forecast_id, opts = {})
227
- if @api_client.config.debugging
228
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#get_longtermforecasts_forecast_id ..."
229
- end
230
-
231
- # verify the required parameter 'forecast_id' is set
232
- fail "Missing the required parameter 'forecast_id' when calling get_longtermforecasts_forecast_id" if forecast_id.nil?
233
-
234
- # resource path
235
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s)
236
-
237
- # query parameters
238
- query_params = {}
239
-
240
- # header parameters
241
- header_params = {}
242
-
243
- # HTTP header 'Accept' (if needed)
244
- _header_accept = ['application/json']
245
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
246
-
247
- # HTTP header 'Content-Type'
248
- _header_content_type = ['application/json']
249
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
250
-
251
- # form parameters
252
- form_params = {}
253
-
254
- # http body (model)
255
- post_body = nil
256
-
257
- auth_names = ['PureCloud Auth']
258
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
259
- :header_params => header_params,
260
- :query_params => query_params,
261
- :form_params => form_params,
262
- :body => post_body,
263
- :auth_names => auth_names,
264
- :return_type => 'Forecast')
265
- if @api_client.config.debugging
266
- @api_client.config.logger.debug "API called: WorkforceManagementApi#get_longtermforecasts_forecast_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
267
- end
268
- return data, status_code, headers
269
- end
270
-
271
- # Get forecast Modifications
272
- #
273
- # @param forecast_id The forecast id
274
- # @param [Hash] opts the optional parameters
275
- # @return [Array<ForecastModification>]
276
- def get_longtermforecasts_forecast_id_modifications(forecast_id, opts = {})
277
- data, status_code, headers = get_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, opts)
278
- return data
279
- end
280
-
281
- # Get forecast Modifications
282
- #
283
- # @param forecast_id The forecast id
284
- # @param [Hash] opts the optional parameters
285
- # @return [Array<(Array<ForecastModification>, Fixnum, Hash)>] Array<ForecastModification> data, response status code and response headers
286
- def get_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, opts = {})
287
- if @api_client.config.debugging
288
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#get_longtermforecasts_forecast_id_modifications ..."
289
- end
290
-
291
- # verify the required parameter 'forecast_id' is set
292
- fail "Missing the required parameter 'forecast_id' when calling get_longtermforecasts_forecast_id_modifications" if forecast_id.nil?
293
-
294
- # resource path
295
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}/modifications".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s)
296
-
297
- # query parameters
298
- query_params = {}
299
-
300
- # header parameters
301
- header_params = {}
302
-
303
- # HTTP header 'Accept' (if needed)
304
- _header_accept = ['application/json']
305
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
306
-
307
- # HTTP header 'Content-Type'
308
- _header_content_type = ['application/json']
309
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
310
-
311
- # form parameters
312
- form_params = {}
313
-
314
- # http body (model)
315
- post_body = nil
316
-
317
- auth_names = ['PureCloud Auth']
318
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
319
- :header_params => header_params,
320
- :query_params => query_params,
321
- :form_params => form_params,
322
- :body => post_body,
323
- :auth_names => auth_names,
324
- :return_type => 'Array<ForecastModification>')
325
- if @api_client.config.debugging
326
- @api_client.config.logger.debug "API called: WorkforceManagementApi#get_longtermforecasts_forecast_id_modifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
327
- end
328
- return data, status_code, headers
329
- end
330
-
331
88
  # Create a forecast
332
89
  #
333
90
  # @param body The request body
@@ -387,195 +144,5 @@ module PureCloud
387
144
  end
388
145
  return data, status_code, headers
389
146
  end
390
-
391
- # Create a forecast modification
392
- #
393
- # @param forecast_id The forecast id
394
- # @param body The request body
395
- # @param [Hash] opts the optional parameters
396
- # @return [ForecastModificationCreation]
397
- def post_longtermforecasts_forecast_id_modifications(forecast_id, body, opts = {})
398
- data, status_code, headers = post_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, body, opts)
399
- return data
400
- end
401
-
402
- # Create a forecast modification
403
- #
404
- # @param forecast_id The forecast id
405
- # @param body The request body
406
- # @param [Hash] opts the optional parameters
407
- # @return [Array<(ForecastModificationCreation, Fixnum, Hash)>] ForecastModificationCreation data, response status code and response headers
408
- def post_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, body, opts = {})
409
- if @api_client.config.debugging
410
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#post_longtermforecasts_forecast_id_modifications ..."
411
- end
412
-
413
- # verify the required parameter 'forecast_id' is set
414
- fail "Missing the required parameter 'forecast_id' when calling post_longtermforecasts_forecast_id_modifications" if forecast_id.nil?
415
-
416
- # verify the required parameter 'body' is set
417
- fail "Missing the required parameter 'body' when calling post_longtermforecasts_forecast_id_modifications" if body.nil?
418
-
419
- # resource path
420
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}/modifications".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s)
421
-
422
- # query parameters
423
- query_params = {}
424
-
425
- # header parameters
426
- header_params = {}
427
-
428
- # HTTP header 'Accept' (if needed)
429
- _header_accept = ['application/json']
430
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
431
-
432
- # HTTP header 'Content-Type'
433
- _header_content_type = ['application/json']
434
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
435
-
436
- # form parameters
437
- form_params = {}
438
-
439
- # http body (model)
440
- post_body = @api_client.object_to_http_body(body)
441
-
442
- auth_names = ['PureCloud Auth']
443
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
444
- :header_params => header_params,
445
- :query_params => query_params,
446
- :form_params => form_params,
447
- :body => post_body,
448
- :auth_names => auth_names,
449
- :return_type => 'ForecastModificationCreation')
450
- if @api_client.config.debugging
451
- @api_client.config.logger.debug "API called: WorkforceManagementApi#post_longtermforecasts_forecast_id_modifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
- end
453
- return data, status_code, headers
454
- end
455
-
456
- # Search forecasts
457
- #
458
- # @param body
459
- # @param [Hash] opts the optional parameters
460
- # @return [ForecastMetadataEntityListing]
461
- def post_longtermforecasts_search(body, opts = {})
462
- data, status_code, headers = post_longtermforecasts_search_with_http_info(body, opts)
463
- return data
464
- end
465
-
466
- # Search forecasts
467
- #
468
- # @param body
469
- # @param [Hash] opts the optional parameters
470
- # @return [Array<(ForecastMetadataEntityListing, Fixnum, Hash)>] ForecastMetadataEntityListing data, response status code and response headers
471
- def post_longtermforecasts_search_with_http_info(body, opts = {})
472
- if @api_client.config.debugging
473
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#post_longtermforecasts_search ..."
474
- end
475
-
476
- # verify the required parameter 'body' is set
477
- fail "Missing the required parameter 'body' when calling post_longtermforecasts_search" if body.nil?
478
-
479
- # resource path
480
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/search".sub('{format}','json')
481
-
482
- # query parameters
483
- query_params = {}
484
-
485
- # header parameters
486
- header_params = {}
487
-
488
- # HTTP header 'Accept' (if needed)
489
- _header_accept = ['application/json']
490
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
491
-
492
- # HTTP header 'Content-Type'
493
- _header_content_type = ['application/json']
494
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
495
-
496
- # form parameters
497
- form_params = {}
498
-
499
- # http body (model)
500
- post_body = @api_client.object_to_http_body(body)
501
-
502
- auth_names = ['PureCloud Auth']
503
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
504
- :header_params => header_params,
505
- :query_params => query_params,
506
- :form_params => form_params,
507
- :body => post_body,
508
- :auth_names => auth_names,
509
- :return_type => 'ForecastMetadataEntityListing')
510
- if @api_client.config.debugging
511
- @api_client.config.logger.debug "API called: WorkforceManagementApi#post_longtermforecasts_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
512
- end
513
- return data, status_code, headers
514
- end
515
-
516
- # Update a forecast modification
517
- #
518
- # @param forecast_id The forecast id
519
- # @param body The request body
520
- # @param [Hash] opts the optional parameters
521
- # @return [ForecastModification]
522
- def put_longtermforecasts_forecast_id_modifications(forecast_id, body, opts = {})
523
- data, status_code, headers = put_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, body, opts)
524
- return data
525
- end
526
-
527
- # Update a forecast modification
528
- #
529
- # @param forecast_id The forecast id
530
- # @param body The request body
531
- # @param [Hash] opts the optional parameters
532
- # @return [Array<(ForecastModification, Fixnum, Hash)>] ForecastModification data, response status code and response headers
533
- def put_longtermforecasts_forecast_id_modifications_with_http_info(forecast_id, body, opts = {})
534
- if @api_client.config.debugging
535
- @api_client.config.logger.debug "Calling API: WorkforceManagementApi#put_longtermforecasts_forecast_id_modifications ..."
536
- end
537
-
538
- # verify the required parameter 'forecast_id' is set
539
- fail "Missing the required parameter 'forecast_id' when calling put_longtermforecasts_forecast_id_modifications" if forecast_id.nil?
540
-
541
- # verify the required parameter 'body' is set
542
- fail "Missing the required parameter 'body' when calling put_longtermforecasts_forecast_id_modifications" if body.nil?
543
-
544
- # resource path
545
- local_var_path = "/api/v2/workforcemanagement/longtermforecasts/{forecastId}/modifications".sub('{format}','json').sub('{' + 'forecastId' + '}', forecast_id.to_s)
546
-
547
- # query parameters
548
- query_params = {}
549
-
550
- # header parameters
551
- header_params = {}
552
-
553
- # HTTP header 'Accept' (if needed)
554
- _header_accept = ['application/json']
555
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
556
-
557
- # HTTP header 'Content-Type'
558
- _header_content_type = ['application/json']
559
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
560
-
561
- # form parameters
562
- form_params = {}
563
-
564
- # http body (model)
565
- post_body = @api_client.object_to_http_body(body)
566
-
567
- auth_names = ['PureCloud Auth']
568
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
569
- :header_params => header_params,
570
- :query_params => query_params,
571
- :form_params => form_params,
572
- :body => post_body,
573
- :auth_names => auth_names,
574
- :return_type => 'ForecastModification')
575
- if @api_client.config.debugging
576
- @api_client.config.logger.debug "API called: WorkforceManagementApi#put_longtermforecasts_forecast_id_modifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
- end
578
- return data, status_code, headers
579
- end
580
147
  end
581
148
  end
@@ -33,7 +33,7 @@ module PureCloud
33
33
 
34
34
  def initialize(config = Configuration.default)
35
35
  @config = config
36
- @user_agent = "PureCloud SDK/Ruby 0.56.1"
36
+ @user_agent = "PureCloud SDK/Ruby 0.57.1"
37
37
  @default_headers = {
38
38
  'Content-Type' => "application/json",
39
39
  'User-Agent' => @user_agent