purecloudplatformclientv2 86.0.0 → 91.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AnalyticsEvaluation.md +1 -1
  4. data/docs/ApiUsageQuery.md +16 -0
  5. data/docs/ApiUsageQueryResult.md +14 -0
  6. data/docs/ApiUsageRow.md +25 -0
  7. data/docs/ArchitectApi.md +132 -0
  8. data/docs/AuditApi.md +60 -0
  9. data/docs/AuditQueryEntity.md +14 -0
  10. data/docs/AuditQueryExecutionStatusResponse.md +1 -0
  11. data/docs/AuditQueryRequest.md +1 -0
  12. data/docs/AuditQueryService.md +14 -0
  13. data/docs/AuditQueryServiceMapping.md +13 -0
  14. data/docs/AuditQuerySort.md +14 -0
  15. data/docs/BuAgentScheduleActivity.md +2 -0
  16. data/docs/BuRescheduleRequest.md +2 -2
  17. data/docs/CoachingAnnotation.md +21 -0
  18. data/docs/CoachingAnnotationCreateRequest.md +14 -0
  19. data/docs/CoachingAnnotationList.md +22 -0
  20. data/docs/CoachingApi.md +1132 -0
  21. data/docs/CoachingAppointmentReference.md +14 -0
  22. data/docs/CoachingAppointmentResponse.md +27 -0
  23. data/docs/CoachingAppointmentResponseList.md +22 -0
  24. data/docs/CoachingAppointmentStatusDto.md +16 -0
  25. data/docs/CoachingAppointmentStatusDtoList.md +17 -0
  26. data/docs/CoachingNotification.md +23 -0
  27. data/docs/CoachingNotificationList.md +22 -0
  28. data/docs/ConversationAggregationQuery.md +1 -1
  29. data/docs/ConversationEventTopicCall.md +1 -0
  30. data/docs/ConversationEventTopicCallback.md +1 -0
  31. data/docs/ConversationEventTopicChat.md +1 -0
  32. data/docs/ConversationEventTopicCobrowse.md +1 -0
  33. data/docs/ConversationEventTopicEmail.md +1 -0
  34. data/docs/ConversationEventTopicMessage.md +1 -0
  35. data/docs/ConversationEventTopicScreenshare.md +1 -0
  36. data/docs/ConversationEventTopicSocialExpression.md +1 -0
  37. data/docs/ConversationEventTopicVideo.md +1 -0
  38. data/docs/ConversationReference.md +14 -0
  39. data/docs/CreateCoachingAppointmentRequest.md +20 -0
  40. data/docs/CreateQueueRequest.md +1 -0
  41. data/docs/DocumentReference.md +14 -0
  42. data/docs/EntityListing.md +5 -1
  43. data/docs/EvaluationAggregationQuery.md +1 -1
  44. data/docs/ExternalContact.md +2 -0
  45. data/docs/ExternalOrganization.md +2 -0
  46. data/docs/FlowAggregationQuery.md +1 -1
  47. data/docs/FlowExecutionLaunchRequest.md +16 -0
  48. data/docs/FlowExecutionLaunchResponse.md +16 -0
  49. data/docs/FlowRuntimeExecution.md +23 -0
  50. data/docs/GenericSAML.md +22 -0
  51. data/docs/GroupsApi.md +4 -4
  52. data/docs/IdentityProviderApi.md +187 -0
  53. data/docs/IpAddressAuthentication.md +13 -0
  54. data/docs/KnowledgeSearchResponse.md +1 -1
  55. data/docs/NluDomainVersion.md +1 -0
  56. data/docs/OAuthApi.md +208 -0
  57. data/docs/OrganizationApi.md +126 -0
  58. data/docs/Prompt.md +2 -2
  59. data/docs/Queue.md +1 -0
  60. data/docs/QueueConversationEventTopicCall.md +1 -0
  61. data/docs/QueueConversationEventTopicCallback.md +1 -0
  62. data/docs/QueueConversationEventTopicChat.md +1 -0
  63. data/docs/QueueConversationEventTopicCobrowse.md +1 -0
  64. data/docs/QueueConversationEventTopicEmail.md +1 -0
  65. data/docs/QueueConversationEventTopicMessage.md +1 -0
  66. data/docs/QueueConversationEventTopicScreenshare.md +1 -0
  67. data/docs/QueueConversationEventTopicSocialExpression.md +1 -0
  68. data/docs/QueueConversationEventTopicVideo.md +1 -0
  69. data/docs/QueueConversationSocialExpressionEventTopicCall.md +1 -0
  70. data/docs/QueueConversationSocialExpressionEventTopicCallback.md +1 -0
  71. data/docs/QueueConversationSocialExpressionEventTopicChat.md +1 -0
  72. data/docs/QueueConversationSocialExpressionEventTopicCobrowse.md +1 -0
  73. data/docs/QueueConversationSocialExpressionEventTopicEmail.md +1 -0
  74. data/docs/QueueConversationSocialExpressionEventTopicMessage.md +1 -0
  75. data/docs/QueueConversationSocialExpressionEventTopicScreenshare.md +1 -0
  76. data/docs/QueueConversationSocialExpressionEventTopicSocialExpression.md +1 -0
  77. data/docs/QueueConversationSocialExpressionEventTopicVideo.md +1 -0
  78. data/docs/QueueConversationVideoEventTopicCall.md +1 -0
  79. data/docs/QueueConversationVideoEventTopicCallback.md +1 -0
  80. data/docs/QueueConversationVideoEventTopicChat.md +1 -0
  81. data/docs/QueueConversationVideoEventTopicCobrowse.md +1 -0
  82. data/docs/QueueConversationVideoEventTopicEmail.md +1 -0
  83. data/docs/QueueConversationVideoEventTopicMessage.md +1 -0
  84. data/docs/QueueConversationVideoEventTopicScreenshare.md +1 -0
  85. data/docs/QueueConversationVideoEventTopicSocialExpression.md +1 -0
  86. data/docs/QueueConversationVideoEventTopicVideo.md +1 -0
  87. data/docs/QueueRequest.md +1 -0
  88. data/docs/RecordingApi.md +12 -0
  89. data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
  90. data/docs/ScimEmail.md +1 -1
  91. data/docs/SurveyAggregationQuery.md +1 -1
  92. data/docs/UpdateCoachingAppointmentRequest.md +18 -0
  93. data/docs/UploadUrlRequest.md +1 -0
  94. data/docs/UsageApi.md +144 -0
  95. data/docs/UsageExecutionResult.md +14 -0
  96. data/docs/UserAggregationQuery.md +1 -1
  97. data/docs/UserQueue.md +1 -0
  98. data/docs/UsersApi.md +5 -5
  99. data/docs/ViewFilter.md +2 -0
  100. data/docs/VoicemailMessagesTopicOwner.md +13 -0
  101. data/docs/VoicemailMessagesTopicVoicemailCopyRecord.md +14 -0
  102. data/docs/VoicemailMessagesTopicVoicemailMessage.md +2 -0
  103. data/docs/WemLearningAssignmentRuleRunTopicLearningAssignmentRuleRunNotification.md +14 -0
  104. data/docs/WemLearningAssignmentRuleRunTopicLearningModuleReference.md +14 -0
  105. data/docs/WemLearningAssignmentRuleRunTopicWemLearningAssignmentsCreated.md +13 -0
  106. data/docs/WemLearningAssignmentTopicLearningAssignmentNotification.md +22 -0
  107. data/docs/WemLearningAssignmentTopicLearningModuleReference.md +14 -0
  108. data/docs/WemLearningAssignmentTopicUserReference.md +13 -0
  109. data/docs/WfmBuShortTermForecastImportCompleteTopicBuForecastModification.md +23 -0
  110. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecast.md +24 -0
  111. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecastNotification.md +15 -0
  112. data/docs/WfmBuShortTermForecastImportCompleteTopicForecastSourceDayPointer.md +17 -0
  113. data/docs/WfmBuShortTermForecastImportCompleteTopicModificationIntervalOffsetValue.md +14 -0
  114. data/docs/WfmBuShortTermForecastImportCompleteTopicUserReference.md +13 -0
  115. data/docs/WfmBuShortTermForecastImportCompleteTopicWfmVersionedEntityMetadata.md +15 -0
  116. data/docs/WorkforceManagementApi.md +3 -3
  117. data/lib/purecloudplatformclientv2.rb +44 -0
  118. data/lib/purecloudplatformclientv2/api/architect_api.rb +130 -0
  119. data/lib/purecloudplatformclientv2/api/audit_api.rb +55 -0
  120. data/lib/purecloudplatformclientv2/api/coaching_api.rb +1296 -0
  121. data/lib/purecloudplatformclientv2/api/groups_api.rb +4 -4
  122. data/lib/purecloudplatformclientv2/api/identity_provider_api.rb +175 -0
  123. data/lib/purecloudplatformclientv2/api/o_auth_api.rb +224 -0
  124. data/lib/purecloudplatformclientv2/api/organization_api.rb +120 -0
  125. data/lib/purecloudplatformclientv2/api/recording_api.rb +78 -0
  126. data/lib/purecloudplatformclientv2/api/usage_api.rb +157 -0
  127. data/lib/purecloudplatformclientv2/api/users_api.rb +4 -4
  128. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +6 -6
  129. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  130. data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
  131. data/lib/purecloudplatformclientv2/models/api_usage_query.rb +303 -0
  132. data/lib/purecloudplatformclientv2/models/api_usage_query_result.rb +244 -0
  133. data/lib/purecloudplatformclientv2/models/api_usage_row.rb +514 -0
  134. data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
  135. data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +244 -0
  136. data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +34 -6
  137. data/lib/purecloudplatformclientv2/models/audit_query_request.rb +34 -6
  138. data/lib/purecloudplatformclientv2/models/audit_query_service.rb +244 -0
  139. data/lib/purecloudplatformclientv2/models/audit_query_service_mapping.rb +204 -0
  140. data/lib/purecloudplatformclientv2/models/audit_query_sort.rb +266 -0
  141. data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +70 -4
  142. data/lib/purecloudplatformclientv2/models/bu_reschedule_request.rb +2 -12
  143. data/lib/purecloudplatformclientv2/models/coaching_annotation.rb +429 -0
  144. data/lib/purecloudplatformclientv2/models/coaching_annotation_create_request.rb +252 -0
  145. data/lib/purecloudplatformclientv2/models/coaching_annotation_list.rb +428 -0
  146. data/lib/purecloudplatformclientv2/models/coaching_appointment_reference.rb +228 -0
  147. data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +587 -0
  148. data/lib/purecloudplatformclientv2/models/coaching_appointment_response_list.rb +428 -0
  149. data/lib/purecloudplatformclientv2/models/coaching_appointment_status_dto.rb +299 -0
  150. data/lib/purecloudplatformclientv2/models/coaching_appointment_status_dto_list.rb +303 -0
  151. data/lib/purecloudplatformclientv2/models/coaching_notification.rb +504 -0
  152. data/lib/purecloudplatformclientv2/models/coaching_notification_list.rb +428 -0
  153. data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
  154. data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +1 -1
  155. data/lib/purecloudplatformclientv2/models/conversation_chat.rb +2 -2
  156. data/lib/purecloudplatformclientv2/models/conversation_event_topic_call.rb +26 -1
  157. data/lib/purecloudplatformclientv2/models/conversation_event_topic_callback.rb +26 -1
  158. data/lib/purecloudplatformclientv2/models/conversation_event_topic_chat.rb +26 -1
  159. data/lib/purecloudplatformclientv2/models/conversation_event_topic_cobrowse.rb +26 -1
  160. data/lib/purecloudplatformclientv2/models/conversation_event_topic_email.rb +26 -1
  161. data/lib/purecloudplatformclientv2/models/conversation_event_topic_message.rb +26 -1
  162. data/lib/purecloudplatformclientv2/models/conversation_event_topic_screenshare.rb +26 -1
  163. data/lib/purecloudplatformclientv2/models/conversation_event_topic_social_expression.rb +26 -1
  164. data/lib/purecloudplatformclientv2/models/conversation_event_topic_video.rb +26 -1
  165. data/lib/purecloudplatformclientv2/models/conversation_reference.rb +228 -0
  166. data/lib/purecloudplatformclientv2/models/create_coaching_appointment_request.rb +426 -0
  167. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +29 -1
  168. data/lib/purecloudplatformclientv2/models/document_reference.rb +228 -0
  169. data/lib/purecloudplatformclientv2/models/entity_listing.rb +104 -4
  170. data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +1 -1
  171. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  172. data/lib/purecloudplatformclientv2/models/external_contact.rb +55 -1
  173. data/lib/purecloudplatformclientv2/models/external_organization.rb +55 -1
  174. data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
  175. data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +1 -1
  176. data/lib/purecloudplatformclientv2/models/flow_execution_launch_request.rb +288 -0
  177. data/lib/purecloudplatformclientv2/models/flow_execution_launch_response.rb +281 -0
  178. data/lib/purecloudplatformclientv2/models/flow_runtime_execution.rb +494 -0
  179. data/lib/purecloudplatformclientv2/models/generic_saml.rb +428 -0
  180. data/lib/purecloudplatformclientv2/models/ip_address_authentication.rb +203 -0
  181. data/lib/purecloudplatformclientv2/models/knowledge_search_response.rb +18 -18
  182. data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +41 -1
  183. data/lib/purecloudplatformclientv2/models/prompt.rb +2 -0
  184. data/lib/purecloudplatformclientv2/models/prompt_asset.rb +15 -1
  185. data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +15 -1
  186. data/lib/purecloudplatformclientv2/models/queue.rb +29 -1
  187. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_call.rb +26 -1
  188. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_callback.rb +26 -1
  189. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_chat.rb +26 -1
  190. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_cobrowse.rb +26 -1
  191. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_email.rb +26 -1
  192. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_message.rb +26 -1
  193. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_screenshare.rb +26 -1
  194. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_social_expression.rb +26 -1
  195. data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_video.rb +26 -1
  196. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_call.rb +26 -1
  197. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_callback.rb +26 -1
  198. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_chat.rb +26 -1
  199. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_cobrowse.rb +26 -1
  200. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_email.rb +26 -1
  201. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_message.rb +26 -1
  202. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_screenshare.rb +26 -1
  203. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_social_expression.rb +26 -1
  204. data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_video.rb +26 -1
  205. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_call.rb +26 -1
  206. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_callback.rb +26 -1
  207. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_chat.rb +26 -1
  208. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_cobrowse.rb +26 -1
  209. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_email.rb +26 -1
  210. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_message.rb +26 -1
  211. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_screenshare.rb +26 -1
  212. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_social_expression.rb +26 -1
  213. data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_video.rb +26 -1
  214. data/lib/purecloudplatformclientv2/models/queue_request.rb +29 -1
  215. data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +31 -4
  216. data/lib/purecloudplatformclientv2/models/scim_email.rb +1 -1
  217. data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +1 -1
  218. data/lib/purecloudplatformclientv2/models/update_coaching_appointment_request.rb +337 -0
  219. data/lib/purecloudplatformclientv2/models/upload_url_request.rb +43 -4
  220. data/lib/purecloudplatformclientv2/models/usage_execution_result.rb +228 -0
  221. data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +1 -1
  222. data/lib/purecloudplatformclientv2/models/user_queue.rb +29 -1
  223. data/lib/purecloudplatformclientv2/models/view_filter.rb +58 -4
  224. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_owner.rb +201 -0
  225. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_copy_record.rb +226 -0
  226. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_message.rb +56 -4
  227. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_rule_run_topic_learning_assignment_rule_run_notification.rb +228 -0
  228. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_rule_run_topic_learning_module_reference.rb +226 -0
  229. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_rule_run_topic_wem_learning_assignments_created.rb +201 -0
  230. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_topic_learning_assignment_notification.rb +440 -0
  231. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_topic_learning_module_reference.rb +226 -0
  232. data/lib/purecloudplatformclientv2/models/wem_learning_assignment_topic_user_reference.rb +201 -0
  233. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_forecast_modification.rb +497 -0
  234. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast.rb +494 -0
  235. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast_notification.rb +265 -0
  236. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_forecast_source_day_pointer.rb +315 -0
  237. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_modification_interval_offset_value.rb +226 -0
  238. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_user_reference.rb +201 -0
  239. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_wfm_versioned_entity_metadata.rb +251 -0
  240. data/lib/purecloudplatformclientv2/version.rb +1 -1
  241. metadata +90 -2
@@ -150,6 +150,61 @@ module PureCloud
150
150
  return data, status_code, headers
151
151
  end
152
152
 
153
+ # Get organization IP address whitelist settings
154
+ #
155
+ # @param [Hash] opts the optional parameters
156
+ # @return [IpAddressAuthentication]
157
+ def get_organizations_ipaddressauthentication(opts = {})
158
+ data, _status_code, _headers = get_organizations_ipaddressauthentication_with_http_info(opts)
159
+ return data
160
+ end
161
+
162
+ # Get organization IP address whitelist settings
163
+ #
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [Array<(IpAddressAuthentication, Fixnum, Hash)>] IpAddressAuthentication data, response status code and response headers
166
+ def get_organizations_ipaddressauthentication_with_http_info(opts = {})
167
+ if @api_client.config.debugging
168
+ @api_client.config.logger.debug "Calling API: OrganizationApi.get_organizations_ipaddressauthentication ..."
169
+ end
170
+
171
+ # resource path
172
+ local_var_path = "/api/v2/organizations/ipaddressauthentication".sub('{format}','json')
173
+
174
+ # query parameters
175
+ query_params = {}
176
+
177
+ # header parameters
178
+ header_params = {}
179
+
180
+ # HTTP header 'Accept' (if needed)
181
+ local_header_accept = ['application/json']
182
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
183
+
184
+ # HTTP header 'Content-Type'
185
+ local_header_content_type = ['application/json']
186
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
187
+
188
+ # form parameters
189
+ form_params = {}
190
+
191
+ # http body (model)
192
+ post_body = nil
193
+
194
+ auth_names = ['PureCloud OAuth']
195
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => 'IpAddressAuthentication')
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: OrganizationApi#get_organizations_ipaddressauthentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
153
208
  # Get organization.
154
209
  #
155
210
  # @param [Hash] opts the optional parameters
@@ -405,6 +460,71 @@ module PureCloud
405
460
  return data, status_code, headers
406
461
  end
407
462
 
463
+ # Update organization IP address whitelist settings
464
+ #
465
+ # @param body IP address Whitelist settings
466
+ # @param [Hash] opts the optional parameters
467
+ # @return [IpAddressAuthentication]
468
+ def put_organizations_ipaddressauthentication(body, opts = {})
469
+ data, _status_code, _headers = put_organizations_ipaddressauthentication_with_http_info(body, opts)
470
+ return data
471
+ end
472
+
473
+ # Update organization IP address whitelist settings
474
+ #
475
+ # @param body IP address Whitelist settings
476
+ # @param [Hash] opts the optional parameters
477
+ # @return [Array<(IpAddressAuthentication, Fixnum, Hash)>] IpAddressAuthentication data, response status code and response headers
478
+ def put_organizations_ipaddressauthentication_with_http_info(body, opts = {})
479
+ if @api_client.config.debugging
480
+ @api_client.config.logger.debug "Calling API: OrganizationApi.put_organizations_ipaddressauthentication ..."
481
+ end
482
+
483
+
484
+ # verify the required parameter 'body' is set
485
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationApi.put_organizations_ipaddressauthentication" if body.nil?
486
+
487
+
488
+
489
+
490
+
491
+ # resource path
492
+ local_var_path = "/api/v2/organizations/ipaddressauthentication".sub('{format}','json')
493
+
494
+ # query parameters
495
+ query_params = {}
496
+
497
+ # header parameters
498
+ header_params = {}
499
+
500
+ # HTTP header 'Accept' (if needed)
501
+ local_header_accept = ['application/json']
502
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
503
+
504
+ # HTTP header 'Content-Type'
505
+ local_header_content_type = ['application/json']
506
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
507
+
508
+ # form parameters
509
+ form_params = {}
510
+
511
+ # http body (model)
512
+ post_body = @api_client.object_to_http_body(body)
513
+
514
+ auth_names = ['PureCloud OAuth']
515
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
516
+ :header_params => header_params,
517
+ :query_params => query_params,
518
+ :form_params => form_params,
519
+ :body => post_body,
520
+ :auth_names => auth_names,
521
+ :return_type => 'IpAddressAuthentication')
522
+ if @api_client.config.debugging
523
+ @api_client.config.logger.debug "API called: OrganizationApi#put_organizations_ipaddressauthentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
524
+ end
525
+ return data, status_code, headers
526
+ end
527
+
408
528
  # Update organization.
409
529
  #
410
530
  # @param [Hash] opts the optional parameters
@@ -372,6 +372,9 @@ module PureCloud
372
372
  # @param recording_id Recording ID
373
373
  # @param [Hash] opts the optional parameters
374
374
  # @option opts [String] :format_id The desired media format. (default to WEBM)
375
+ # @option opts [String] :email_format_id The desired media format when downloading an email recording. (default to EML)
376
+ # @option opts [String] :chat_format_id The desired media format when downloading a chat recording. (default to ZIP)
377
+ # @option opts [String] :message_format_id The desired media format when downloading a message recording. (default to ZIP)
375
378
  # @option opts [BOOLEAN] :download requesting a download format of the recording (default to false)
376
379
  # @option opts [String] :file_name the name of the downloaded fileName
377
380
  # @option opts [String] :locale The locale for the requested file when downloading, as an ISO 639-1 code
@@ -387,6 +390,9 @@ module PureCloud
387
390
  # @param recording_id Recording ID
388
391
  # @param [Hash] opts the optional parameters
389
392
  # @option opts [String] :format_id The desired media format.
393
+ # @option opts [String] :email_format_id The desired media format when downloading an email recording.
394
+ # @option opts [String] :chat_format_id The desired media format when downloading a chat recording.
395
+ # @option opts [String] :message_format_id The desired media format when downloading a message recording.
390
396
  # @option opts [BOOLEAN] :download requesting a download format of the recording
391
397
  # @option opts [String] :file_name the name of the downloaded fileName
392
398
  # @option opts [String] :locale The locale for the requested file when downloading, as an ISO 639-1 code
@@ -425,6 +431,36 @@ module PureCloud
425
431
 
426
432
 
427
433
 
434
+ if opts[:'email_format_id'] && !['EML', 'NONE'].include?(opts[:'email_format_id'])
435
+ fail ArgumentError, 'invalid value for "email_format_id", must be one of EML, NONE'
436
+ end
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+ if opts[:'chat_format_id'] && !['ZIP', 'NONE'].include?(opts[:'chat_format_id'])
445
+ fail ArgumentError, 'invalid value for "chat_format_id", must be one of ZIP, NONE'
446
+ end
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+ if opts[:'message_format_id'] && !['ZIP', 'NONE'].include?(opts[:'message_format_id'])
455
+ fail ArgumentError, 'invalid value for "message_format_id", must be one of ZIP, NONE'
456
+ end
457
+
458
+
459
+
460
+
461
+
462
+
463
+
428
464
 
429
465
 
430
466
 
@@ -446,6 +482,9 @@ module PureCloud
446
482
  # query parameters
447
483
  query_params = {}
448
484
  query_params[:'formatId'] = opts[:'format_id'] if opts[:'format_id']
485
+ query_params[:'emailFormatId'] = opts[:'email_format_id'] if opts[:'email_format_id']
486
+ query_params[:'chatFormatId'] = opts[:'chat_format_id'] if opts[:'chat_format_id']
487
+ query_params[:'messageFormatId'] = opts[:'message_format_id'] if opts[:'message_format_id']
449
488
  query_params[:'download'] = opts[:'download'] if opts[:'download']
450
489
  query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
451
490
  query_params[:'locale'] = opts[:'locale'] if opts[:'locale']
@@ -938,6 +977,9 @@ module PureCloud
938
977
  # @param orphan_id Orphan ID
939
978
  # @param [Hash] opts the optional parameters
940
979
  # @option opts [String] :format_id The desired media format. (default to WEBM)
980
+ # @option opts [String] :email_format_id The desired media format when downloading an email recording. (default to EML)
981
+ # @option opts [String] :chat_format_id The desired media format when downloading a chat recording. (default to ZIP)
982
+ # @option opts [String] :message_format_id The desired media format when downloading a message recording. (default to ZIP)
941
983
  # @option opts [BOOLEAN] :download requesting a download format of the recording (default to false)
942
984
  # @option opts [String] :file_name the name of the downloaded fileName
943
985
  # @option opts [String] :locale The locale for the requested file when downloading, as an ISO 639-1 code
@@ -952,6 +994,9 @@ module PureCloud
952
994
  # @param orphan_id Orphan ID
953
995
  # @param [Hash] opts the optional parameters
954
996
  # @option opts [String] :format_id The desired media format.
997
+ # @option opts [String] :email_format_id The desired media format when downloading an email recording.
998
+ # @option opts [String] :chat_format_id The desired media format when downloading a chat recording.
999
+ # @option opts [String] :message_format_id The desired media format when downloading a message recording.
955
1000
  # @option opts [BOOLEAN] :download requesting a download format of the recording
956
1001
  # @option opts [String] :file_name the name of the downloaded fileName
957
1002
  # @option opts [String] :locale The locale for the requested file when downloading, as an ISO 639-1 code
@@ -982,6 +1027,36 @@ module PureCloud
982
1027
 
983
1028
 
984
1029
 
1030
+ if opts[:'email_format_id'] && !['EML', 'NONE'].include?(opts[:'email_format_id'])
1031
+ fail ArgumentError, 'invalid value for "email_format_id", must be one of EML, NONE'
1032
+ end
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+ if opts[:'chat_format_id'] && !['ZIP', 'NONE'].include?(opts[:'chat_format_id'])
1041
+ fail ArgumentError, 'invalid value for "chat_format_id", must be one of ZIP, NONE'
1042
+ end
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ if opts[:'message_format_id'] && !['ZIP', 'NONE'].include?(opts[:'message_format_id'])
1051
+ fail ArgumentError, 'invalid value for "message_format_id", must be one of ZIP, NONE'
1052
+ end
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
985
1060
 
986
1061
 
987
1062
 
@@ -1003,6 +1078,9 @@ module PureCloud
1003
1078
  # query parameters
1004
1079
  query_params = {}
1005
1080
  query_params[:'formatId'] = opts[:'format_id'] if opts[:'format_id']
1081
+ query_params[:'emailFormatId'] = opts[:'email_format_id'] if opts[:'email_format_id']
1082
+ query_params[:'chatFormatId'] = opts[:'chat_format_id'] if opts[:'chat_format_id']
1083
+ query_params[:'messageFormatId'] = opts[:'message_format_id'] if opts[:'message_format_id']
1006
1084
  query_params[:'download'] = opts[:'download'] if opts[:'download']
1007
1085
  query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
1008
1086
  query_params[:'locale'] = opts[:'locale'] if opts[:'locale']
@@ -0,0 +1,157 @@
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@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: UNLICENSED
11
+ https://help.mypurecloud.com/articles/terms-and-conditions/
12
+
13
+ Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
14
+
15
+ =end
16
+
17
+ require "uri"
18
+
19
+ module PureCloud
20
+ class UsageApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Get the results of a usage query
28
+ #
29
+ # @param execution_id ID of the query execution
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [ApiUsageQueryResult]
32
+ def get_usage_query_execution_id_results(execution_id, opts = {})
33
+ data, _status_code, _headers = get_usage_query_execution_id_results_with_http_info(execution_id, opts)
34
+ return data
35
+ end
36
+
37
+ # Get the results of a usage query
38
+ #
39
+ # @param execution_id ID of the query execution
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(ApiUsageQueryResult, Fixnum, Hash)>] ApiUsageQueryResult data, response status code and response headers
42
+ def get_usage_query_execution_id_results_with_http_info(execution_id, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: UsageApi.get_usage_query_execution_id_results ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'execution_id' is set
49
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling UsageApi.get_usage_query_execution_id_results" if execution_id.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/usage/query/{executionId}/results".sub('{format}','json').sub('{' + 'executionId' + '}', execution_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+
78
+ auth_names = ['PureCloud OAuth']
79
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => 'ApiUsageQueryResult')
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: UsageApi#get_usage_query_execution_id_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Query organization API Usage -
93
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
94
+ # @param body Query
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [UsageExecutionResult]
97
+ def post_usage_query(body, opts = {})
98
+ data, _status_code, _headers = post_usage_query_with_http_info(body, opts)
99
+ return data
100
+ end
101
+
102
+ # Query organization API Usage -
103
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
104
+ # @param body Query
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [Array<(UsageExecutionResult, Fixnum, Hash)>] UsageExecutionResult data, response status code and response headers
107
+ def post_usage_query_with_http_info(body, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug "Calling API: UsageApi.post_usage_query ..."
110
+ end
111
+
112
+
113
+ # verify the required parameter 'body' is set
114
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsageApi.post_usage_query" if body.nil?
115
+
116
+
117
+
118
+
119
+
120
+ # resource path
121
+ local_var_path = "/api/v2/usage/query".sub('{format}','json')
122
+
123
+ # query parameters
124
+ query_params = {}
125
+
126
+ # header parameters
127
+ header_params = {}
128
+
129
+ # HTTP header 'Accept' (if needed)
130
+ local_header_accept = ['application/json']
131
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
132
+
133
+ # HTTP header 'Content-Type'
134
+ local_header_content_type = ['application/json']
135
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
136
+
137
+ # form parameters
138
+ form_params = {}
139
+
140
+ # http body (model)
141
+ post_body = @api_client.object_to_http_body(body)
142
+
143
+ auth_names = ['PureCloud OAuth']
144
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => 'UsageExecutionResult')
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "API called: UsageApi#post_usage_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ end
154
+ return data, status_code, headers
155
+ end
156
+ end
157
+ end
@@ -1170,7 +1170,7 @@ module PureCloud
1170
1170
  end
1171
1171
 
1172
1172
  # Get a user profile listing
1173
- #
1173
+ # This api is deprecated. User /api/v2/users
1174
1174
  # @param [Hash] opts the optional parameters
1175
1175
  # @option opts [Integer] :page_size Page size (default to 25)
1176
1176
  # @option opts [Integer] :page_number Page number (default to 1)
@@ -1185,7 +1185,7 @@ module PureCloud
1185
1185
  end
1186
1186
 
1187
1187
  # Get a user profile listing
1188
- #
1188
+ # This api is deprecated. User /api/v2/users
1189
1189
  # @param [Hash] opts the optional parameters
1190
1190
  # @option opts [Integer] :page_size Page size
1191
1191
  # @option opts [Integer] :page_number Page number
@@ -1889,7 +1889,7 @@ module PureCloud
1889
1889
  end
1890
1890
 
1891
1891
  # Get user profile
1892
- #
1892
+ # This api has been deprecated. Use api/v2/users instead
1893
1893
  # @param user_id userId
1894
1894
  # @param [Hash] opts the optional parameters
1895
1895
  # @option opts [Array<String>] :expand Which fields, if any, to expand
@@ -1900,7 +1900,7 @@ module PureCloud
1900
1900
  end
1901
1901
 
1902
1902
  # Get user profile
1903
- #
1903
+ # This api has been deprecated. Use api/v2/users instead
1904
1904
  # @param user_id userId
1905
1905
  # @param [Hash] opts the optional parameters
1906
1906
  # @option opts [Array<String>] :expand Which fields, if any, to expand