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
@@ -471,7 +471,7 @@ module PureCloud
471
471
  end
472
472
 
473
473
  # Get group profile
474
- #
474
+ # This api is deprecated. Use /api/v2/groups instead
475
475
  # @param group_id groupId
476
476
  # @param [Hash] opts the optional parameters
477
477
  # @option opts [String] :fields Comma separated fields to return. Allowable values can be found by querying /api/v2/fieldconfig?type=group and using the key for the elements returned by the fieldList
@@ -482,7 +482,7 @@ module PureCloud
482
482
  end
483
483
 
484
484
  # Get group profile
485
- #
485
+ # This api is deprecated. Use /api/v2/groups instead
486
486
  # @param group_id groupId
487
487
  # @param [Hash] opts the optional parameters
488
488
  # @option opts [String] :fields Comma separated fields to return. Allowable values can be found by querying /api/v2/fieldconfig?type=group and using the key for the elements returned by the fieldList
@@ -724,7 +724,7 @@ module PureCloud
724
724
  end
725
725
 
726
726
  # Get group profile listing
727
- #
727
+ # This api is deprecated. Use /api/v2/groups instead.
728
728
  # @param [Hash] opts the optional parameters
729
729
  # @option opts [Integer] :page_size Page size (default to 25)
730
730
  # @option opts [Integer] :page_number Page number (default to 1)
@@ -737,7 +737,7 @@ module PureCloud
737
737
  end
738
738
 
739
739
  # Get group profile listing
740
- #
740
+ # This api is deprecated. Use /api/v2/groups instead.
741
741
  # @param [Hash] opts the optional parameters
742
742
  # @option opts [Integer] :page_size Page size
743
743
  # @option opts [Integer] :page_number Page number
@@ -134,6 +134,61 @@ module PureCloud
134
134
  return data, status_code, headers
135
135
  end
136
136
 
137
+ # Delete Generic SAML Identity Provider
138
+ #
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [Empty]
141
+ def delete_identityproviders_generic(opts = {})
142
+ data, _status_code, _headers = delete_identityproviders_generic_with_http_info(opts)
143
+ return data
144
+ end
145
+
146
+ # Delete Generic SAML Identity Provider
147
+ #
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
150
+ def delete_identityproviders_generic_with_http_info(opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi.delete_identityproviders_generic ..."
153
+ end
154
+
155
+ # resource path
156
+ local_var_path = "/api/v2/identityproviders/generic".sub('{format}','json')
157
+
158
+ # query parameters
159
+ query_params = {}
160
+
161
+ # header parameters
162
+ header_params = {}
163
+
164
+ # HTTP header 'Accept' (if needed)
165
+ local_header_accept = ['application/json']
166
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
167
+
168
+ # HTTP header 'Content-Type'
169
+ local_header_content_type = ['application/json']
170
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
171
+
172
+ # form parameters
173
+ form_params = {}
174
+
175
+ # http body (model)
176
+ post_body = nil
177
+
178
+ auth_names = ['PureCloud OAuth']
179
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names,
185
+ :return_type => 'Empty')
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug "API called: IdentityProviderApi#delete_identityproviders_generic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
+ end
189
+ return data, status_code, headers
190
+ end
191
+
137
192
  # Delete G Suite Identity Provider
138
193
  #
139
194
  # @param [Hash] opts the optional parameters
@@ -739,6 +794,61 @@ module PureCloud
739
794
  return data, status_code, headers
740
795
  end
741
796
 
797
+ # Get Generic SAML Identity Provider
798
+ #
799
+ # @param [Hash] opts the optional parameters
800
+ # @return [GenericSAML]
801
+ def get_identityproviders_generic(opts = {})
802
+ data, _status_code, _headers = get_identityproviders_generic_with_http_info(opts)
803
+ return data
804
+ end
805
+
806
+ # Get Generic SAML Identity Provider
807
+ #
808
+ # @param [Hash] opts the optional parameters
809
+ # @return [Array<(GenericSAML, Fixnum, Hash)>] GenericSAML data, response status code and response headers
810
+ def get_identityproviders_generic_with_http_info(opts = {})
811
+ if @api_client.config.debugging
812
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi.get_identityproviders_generic ..."
813
+ end
814
+
815
+ # resource path
816
+ local_var_path = "/api/v2/identityproviders/generic".sub('{format}','json')
817
+
818
+ # query parameters
819
+ query_params = {}
820
+
821
+ # header parameters
822
+ header_params = {}
823
+
824
+ # HTTP header 'Accept' (if needed)
825
+ local_header_accept = ['application/json']
826
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
827
+
828
+ # HTTP header 'Content-Type'
829
+ local_header_content_type = ['application/json']
830
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
831
+
832
+ # form parameters
833
+ form_params = {}
834
+
835
+ # http body (model)
836
+ post_body = nil
837
+
838
+ auth_names = ['PureCloud OAuth']
839
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
840
+ :header_params => header_params,
841
+ :query_params => query_params,
842
+ :form_params => form_params,
843
+ :body => post_body,
844
+ :auth_names => auth_names,
845
+ :return_type => 'GenericSAML')
846
+ if @api_client.config.debugging
847
+ @api_client.config.logger.debug "API called: IdentityProviderApi#get_identityproviders_generic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
848
+ end
849
+ return data, status_code, headers
850
+ end
851
+
742
852
  # Get G Suite Identity Provider
743
853
  #
744
854
  # @param [Hash] opts the optional parameters
@@ -1309,6 +1419,71 @@ module PureCloud
1309
1419
  return data, status_code, headers
1310
1420
  end
1311
1421
 
1422
+ # Update/Create Generic SAML Identity Provider
1423
+ #
1424
+ # @param body Provider
1425
+ # @param [Hash] opts the optional parameters
1426
+ # @return [OAuthProvider]
1427
+ def put_identityproviders_generic(body, opts = {})
1428
+ data, _status_code, _headers = put_identityproviders_generic_with_http_info(body, opts)
1429
+ return data
1430
+ end
1431
+
1432
+ # Update/Create Generic SAML Identity Provider
1433
+ #
1434
+ # @param body Provider
1435
+ # @param [Hash] opts the optional parameters
1436
+ # @return [Array<(OAuthProvider, Fixnum, Hash)>] OAuthProvider data, response status code and response headers
1437
+ def put_identityproviders_generic_with_http_info(body, opts = {})
1438
+ if @api_client.config.debugging
1439
+ @api_client.config.logger.debug "Calling API: IdentityProviderApi.put_identityproviders_generic ..."
1440
+ end
1441
+
1442
+
1443
+ # verify the required parameter 'body' is set
1444
+ fail ArgumentError, "Missing the required parameter 'body' when calling IdentityProviderApi.put_identityproviders_generic" if body.nil?
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+ # resource path
1451
+ local_var_path = "/api/v2/identityproviders/generic".sub('{format}','json')
1452
+
1453
+ # query parameters
1454
+ query_params = {}
1455
+
1456
+ # header parameters
1457
+ header_params = {}
1458
+
1459
+ # HTTP header 'Accept' (if needed)
1460
+ local_header_accept = ['application/json']
1461
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1462
+
1463
+ # HTTP header 'Content-Type'
1464
+ local_header_content_type = ['application/json']
1465
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1466
+
1467
+ # form parameters
1468
+ form_params = {}
1469
+
1470
+ # http body (model)
1471
+ post_body = @api_client.object_to_http_body(body)
1472
+
1473
+ auth_names = ['PureCloud OAuth']
1474
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1475
+ :header_params => header_params,
1476
+ :query_params => query_params,
1477
+ :form_params => form_params,
1478
+ :body => post_body,
1479
+ :auth_names => auth_names,
1480
+ :return_type => 'OAuthProvider')
1481
+ if @api_client.config.debugging
1482
+ @api_client.config.logger.debug "API called: IdentityProviderApi#put_identityproviders_generic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1483
+ end
1484
+ return data, status_code, headers
1485
+ end
1486
+
1312
1487
  # Update/Create G Suite Identity Provider
1313
1488
  #
1314
1489
  # @param body Provider
@@ -273,6 +273,155 @@ module PureCloud
273
273
  return data, status_code, headers
274
274
  end
275
275
 
276
+ # Get the results of a usage query
277
+ #
278
+ # @param execution_id ID of the query execution
279
+ # @param client_id Client ID
280
+ # @param [Hash] opts the optional parameters
281
+ # @return [ApiUsageQueryResult]
282
+ def get_oauth_client_usage_query_result(execution_id, client_id, opts = {})
283
+ data, _status_code, _headers = get_oauth_client_usage_query_result_with_http_info(execution_id, client_id, opts)
284
+ return data
285
+ end
286
+
287
+ # Get the results of a usage query
288
+ #
289
+ # @param execution_id ID of the query execution
290
+ # @param client_id Client ID
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [Array<(ApiUsageQueryResult, Fixnum, Hash)>] ApiUsageQueryResult data, response status code and response headers
293
+ def get_oauth_client_usage_query_result_with_http_info(execution_id, client_id, opts = {})
294
+ if @api_client.config.debugging
295
+ @api_client.config.logger.debug "Calling API: OAuthApi.get_oauth_client_usage_query_result ..."
296
+ end
297
+
298
+
299
+ # verify the required parameter 'execution_id' is set
300
+ fail ArgumentError, "Missing the required parameter 'execution_id' when calling OAuthApi.get_oauth_client_usage_query_result" if execution_id.nil?
301
+
302
+
303
+
304
+
305
+
306
+
307
+ # verify the required parameter 'client_id' is set
308
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthApi.get_oauth_client_usage_query_result" if client_id.nil?
309
+
310
+
311
+
312
+
313
+
314
+ # resource path
315
+ local_var_path = "/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}".sub('{format}','json').sub('{' + 'executionId' + '}', execution_id.to_s).sub('{' + 'clientId' + '}', client_id.to_s)
316
+
317
+ # query parameters
318
+ query_params = {}
319
+
320
+ # header parameters
321
+ header_params = {}
322
+
323
+ # HTTP header 'Accept' (if needed)
324
+ local_header_accept = ['application/json']
325
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
326
+
327
+ # HTTP header 'Content-Type'
328
+ local_header_content_type = ['application/json']
329
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
330
+
331
+ # form parameters
332
+ form_params = {}
333
+
334
+ # http body (model)
335
+ post_body = nil
336
+
337
+ auth_names = ['PureCloud OAuth']
338
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => 'ApiUsageQueryResult')
345
+ if @api_client.config.debugging
346
+ @api_client.config.logger.debug "API called: OAuthApi#get_oauth_client_usage_query_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
+ end
348
+ return data, status_code, headers
349
+ end
350
+
351
+ # Get a summary of OAuth client API usage
352
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
353
+ # @param client_id Client ID
354
+ # @param [Hash] opts the optional parameters
355
+ # @option opts [String] :days Previous number of days to query (default to 7)
356
+ # @return [UsageExecutionResult]
357
+ def get_oauth_client_usage_summary(client_id, opts = {})
358
+ data, _status_code, _headers = get_oauth_client_usage_summary_with_http_info(client_id, opts)
359
+ return data
360
+ end
361
+
362
+ # Get a summary of OAuth client API usage
363
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
364
+ # @param client_id Client ID
365
+ # @param [Hash] opts the optional parameters
366
+ # @option opts [String] :days Previous number of days to query
367
+ # @return [Array<(UsageExecutionResult, Fixnum, Hash)>] UsageExecutionResult data, response status code and response headers
368
+ def get_oauth_client_usage_summary_with_http_info(client_id, opts = {})
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug "Calling API: OAuthApi.get_oauth_client_usage_summary ..."
371
+ end
372
+
373
+
374
+ # verify the required parameter 'client_id' is set
375
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthApi.get_oauth_client_usage_summary" if client_id.nil?
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+ # resource path
388
+ local_var_path = "/api/v2/oauth/clients/{clientId}/usage/summary".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s)
389
+
390
+ # query parameters
391
+ query_params = {}
392
+ query_params[:'days'] = opts[:'days'] if opts[:'days']
393
+
394
+ # header parameters
395
+ header_params = {}
396
+
397
+ # HTTP header 'Accept' (if needed)
398
+ local_header_accept = ['application/json']
399
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
400
+
401
+ # HTTP header 'Content-Type'
402
+ local_header_content_type = ['application/json']
403
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
404
+
405
+ # form parameters
406
+ form_params = {}
407
+
408
+ # http body (model)
409
+ post_body = nil
410
+
411
+ auth_names = ['PureCloud OAuth']
412
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => 'UsageExecutionResult')
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: OAuthApi#get_oauth_client_usage_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
276
425
  # The list of OAuth clients
277
426
  #
278
427
  # @param [Hash] opts the optional parameters
@@ -531,6 +680,81 @@ module PureCloud
531
680
  return data, status_code, headers
532
681
  end
533
682
 
683
+ # Query for OAuth client API usage
684
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
685
+ # @param client_id Client ID
686
+ # @param body Query
687
+ # @param [Hash] opts the optional parameters
688
+ # @return [UsageExecutionResult]
689
+ def post_oauth_client_usage_query(client_id, body, opts = {})
690
+ data, _status_code, _headers = post_oauth_client_usage_query_with_http_info(client_id, body, opts)
691
+ return data
692
+ end
693
+
694
+ # Query for OAuth client API usage
695
+ # After calling this method, you will then need to poll for the query results based on the returned execution Id
696
+ # @param client_id Client ID
697
+ # @param body Query
698
+ # @param [Hash] opts the optional parameters
699
+ # @return [Array<(UsageExecutionResult, Fixnum, Hash)>] UsageExecutionResult data, response status code and response headers
700
+ def post_oauth_client_usage_query_with_http_info(client_id, body, opts = {})
701
+ if @api_client.config.debugging
702
+ @api_client.config.logger.debug "Calling API: OAuthApi.post_oauth_client_usage_query ..."
703
+ end
704
+
705
+
706
+ # verify the required parameter 'client_id' is set
707
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthApi.post_oauth_client_usage_query" if client_id.nil?
708
+
709
+
710
+
711
+
712
+
713
+
714
+ # verify the required parameter 'body' is set
715
+ fail ArgumentError, "Missing the required parameter 'body' when calling OAuthApi.post_oauth_client_usage_query" if body.nil?
716
+
717
+
718
+
719
+
720
+
721
+ # resource path
722
+ local_var_path = "/api/v2/oauth/clients/{clientId}/usage/query".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s)
723
+
724
+ # query parameters
725
+ query_params = {}
726
+
727
+ # header parameters
728
+ header_params = {}
729
+
730
+ # HTTP header 'Accept' (if needed)
731
+ local_header_accept = ['application/json']
732
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
733
+
734
+ # HTTP header 'Content-Type'
735
+ local_header_content_type = ['application/json']
736
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
737
+
738
+ # form parameters
739
+ form_params = {}
740
+
741
+ # http body (model)
742
+ post_body = @api_client.object_to_http_body(body)
743
+
744
+ auth_names = ['PureCloud OAuth']
745
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
746
+ :header_params => header_params,
747
+ :query_params => query_params,
748
+ :form_params => form_params,
749
+ :body => post_body,
750
+ :auth_names => auth_names,
751
+ :return_type => 'UsageExecutionResult')
752
+ if @api_client.config.debugging
753
+ @api_client.config.logger.debug "API called: OAuthApi#post_oauth_client_usage_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
754
+ end
755
+ return data, status_code, headers
756
+ end
757
+
534
758
  # Create OAuth client
535
759
  # The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud. The preferred authorizedGrantTypes is 'CODE' which requires applications to send a client ID and client secret. This is typically a web server. If the client is unable to secure the client secret then the 'TOKEN' grant type aka IMPLICIT should be used. This is would be for browser or mobile apps. If a client is to be used outside of the context of a user then the 'CLIENT-CREDENTIALS' grant may be used. In this case the client must be granted roles via the 'roleIds' field.
536
760
  # @param body Client