purecloudplatformclientv2 87.0.0 → 92.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 (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AmazonLexRequest.md +14 -0
  4. data/docs/AnalyticsEvaluation.md +1 -1
  5. data/docs/ApiUsageQuery.md +16 -0
  6. data/docs/ApiUsageQueryResult.md +14 -0
  7. data/docs/ApiUsageRow.md +25 -0
  8. data/docs/ArchitectApi.md +132 -0
  9. data/docs/AuditApi.md +130 -0
  10. data/docs/AuditQueryEntity.md +14 -0
  11. data/docs/AuditQueryExecutionStatusResponse.md +1 -0
  12. data/docs/AuditQueryRequest.md +1 -0
  13. data/docs/AuditQueryService.md +14 -0
  14. data/docs/AuditQueryServiceMapping.md +13 -0
  15. data/docs/AuditQuerySort.md +14 -0
  16. data/docs/AuditRealtimeQueryRequest.md +18 -0
  17. data/docs/AuditRealtimeQueryResultsResponse.md +17 -0
  18. data/docs/BuAgentScheduleActivity.md +2 -0
  19. data/docs/BuRescheduleRequest.md +2 -2
  20. data/docs/ButtonComponent.md +16 -0
  21. data/docs/CoachingApi.md +1 -1
  22. data/docs/ContentActions.md +17 -0
  23. data/docs/ContentAttachment.md +19 -0
  24. data/docs/ContentGeneric.md +19 -0
  25. data/docs/ContentList.md +19 -0
  26. data/docs/ContentLocation.md +17 -0
  27. data/docs/ContentNotificationTemplate.md +17 -0
  28. data/docs/ContentQuickReply.md +16 -0
  29. data/docs/ConversationAggregationQuery.md +1 -1
  30. data/docs/CreateQueueRequest.md +1 -0
  31. data/docs/EdgeGroup.md +1 -0
  32. data/docs/EntityListing.md +1 -5
  33. data/docs/EvaluationAggregationQuery.md +1 -1
  34. data/docs/ExternalContact.md +2 -0
  35. data/docs/ExternalOrganization.md +2 -0
  36. data/docs/FlowAggregationQuery.md +1 -1
  37. data/docs/FlowExecutionLaunchRequest.md +16 -0
  38. data/docs/FlowExecutionLaunchResponse.md +16 -0
  39. data/docs/FlowRuntimeExecution.md +23 -0
  40. data/docs/GenericSAML.md +22 -0
  41. data/docs/GoogleDialogflowCustomSettings.md +13 -0
  42. data/docs/GroupsApi.md +4 -4
  43. data/docs/IdentityProviderApi.md +187 -0
  44. data/docs/IpAddressAuthentication.md +13 -0
  45. data/docs/KnowledgeSearchResponse.md +1 -1
  46. data/docs/LanguageUnderstandingApi.md +164 -30
  47. data/docs/ListItemComponent.md +19 -0
  48. data/docs/MessageContent.md +19 -0
  49. data/docs/NluDomainVersion.md +3 -1
  50. data/docs/NotificationTemplateBody.md +14 -0
  51. data/docs/NotificationTemplateFooter.md +13 -0
  52. data/docs/NotificationTemplateHeader.md +16 -0
  53. data/docs/NotificationTemplateParameter.md +14 -0
  54. data/docs/OAuthApi.md +208 -0
  55. data/docs/OrganizationApi.md +126 -0
  56. data/docs/PostTextMessage.md +15 -0
  57. data/docs/PostTextRequest.md +23 -0
  58. data/docs/PostTextResponse.md +20 -0
  59. data/docs/Prompt.md +2 -2
  60. data/docs/Queue.md +1 -0
  61. data/docs/QueueRequest.md +1 -0
  62. data/docs/RecordingApi.md +12 -0
  63. data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
  64. data/docs/ScimEmail.md +1 -1
  65. data/docs/SurveyAggregationQuery.md +1 -1
  66. data/docs/SurveyForm.md +0 -2
  67. data/docs/TextbotsApi.md +78 -0
  68. data/docs/UploadUrlRequest.md +1 -0
  69. data/docs/UsageApi.md +144 -0
  70. data/docs/UsageExecutionResult.md +14 -0
  71. data/docs/UserAggregationQuery.md +1 -1
  72. data/docs/UserQueue.md +1 -0
  73. data/docs/UsersApi.md +5 -5
  74. data/docs/ViewFilter.md +2 -0
  75. data/docs/VoicemailMessagesTopicOwner.md +13 -0
  76. data/docs/VoicemailMessagesTopicVoicemailCopyRecord.md +14 -0
  77. data/docs/VoicemailMessagesTopicVoicemailMessage.md +2 -0
  78. data/docs/WfmBuShortTermForecastImportCompleteTopicBuForecastModification.md +23 -0
  79. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecast.md +24 -0
  80. data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecastNotification.md +15 -0
  81. data/docs/WfmBuShortTermForecastImportCompleteTopicForecastSourceDayPointer.md +17 -0
  82. data/docs/WfmBuShortTermForecastImportCompleteTopicModificationIntervalOffsetValue.md +14 -0
  83. data/docs/WfmBuShortTermForecastImportCompleteTopicUserReference.md +13 -0
  84. data/docs/WfmBuShortTermForecastImportCompleteTopicWfmVersionedEntityMetadata.md +15 -0
  85. data/docs/WorkforceManagementApi.md +3 -3
  86. data/lib/purecloudplatformclientv2.rb +45 -0
  87. data/lib/purecloudplatformclientv2/api/architect_api.rb +130 -0
  88. data/lib/purecloudplatformclientv2/api/audit_api.rb +129 -0
  89. data/lib/purecloudplatformclientv2/api/groups_api.rb +4 -4
  90. data/lib/purecloudplatformclientv2/api/identity_provider_api.rb +175 -0
  91. data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +189 -30
  92. data/lib/purecloudplatformclientv2/api/o_auth_api.rb +224 -0
  93. data/lib/purecloudplatformclientv2/api/organization_api.rb +120 -0
  94. data/lib/purecloudplatformclientv2/api/recording_api.rb +78 -0
  95. data/lib/purecloudplatformclientv2/api/textbots_api.rb +92 -0
  96. data/lib/purecloudplatformclientv2/api/usage_api.rb +157 -0
  97. data/lib/purecloudplatformclientv2/api/users_api.rb +4 -4
  98. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +6 -6
  99. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  100. data/lib/purecloudplatformclientv2/models/amazon_lex_request.rb +232 -0
  101. data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
  102. data/lib/purecloudplatformclientv2/models/api_usage_query.rb +303 -0
  103. data/lib/purecloudplatformclientv2/models/api_usage_query_result.rb +244 -0
  104. data/lib/purecloudplatformclientv2/models/api_usage_row.rb +514 -0
  105. data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
  106. data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +244 -0
  107. data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +34 -6
  108. data/lib/purecloudplatformclientv2/models/audit_query_request.rb +34 -6
  109. data/lib/purecloudplatformclientv2/models/audit_query_service.rb +244 -0
  110. data/lib/purecloudplatformclientv2/models/audit_query_service_mapping.rb +204 -0
  111. data/lib/purecloudplatformclientv2/models/audit_query_sort.rb +266 -0
  112. data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +360 -0
  113. data/lib/purecloudplatformclientv2/models/audit_realtime_query_results_response.rb +303 -0
  114. data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +70 -4
  115. data/lib/purecloudplatformclientv2/models/bu_reschedule_request.rb +2 -12
  116. data/lib/purecloudplatformclientv2/models/button_component.rb +281 -0
  117. data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +2 -2
  118. data/lib/purecloudplatformclientv2/models/coaching_notification.rb +2 -2
  119. data/lib/purecloudplatformclientv2/models/content_actions.rb +309 -0
  120. data/lib/purecloudplatformclientv2/models/content_attachment.rb +378 -0
  121. data/lib/purecloudplatformclientv2/models/content_generic.rb +361 -0
  122. data/lib/purecloudplatformclientv2/models/content_list.rb +375 -0
  123. data/lib/purecloudplatformclientv2/models/content_location.rb +307 -0
  124. data/lib/purecloudplatformclientv2/models/content_notification_template.rb +312 -0
  125. data/lib/purecloudplatformclientv2/models/content_quick_reply.rb +300 -0
  126. data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
  127. data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +1 -1
  128. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +29 -1
  129. data/lib/purecloudplatformclientv2/models/edge_group.rb +27 -1
  130. data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
  131. data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +1 -1
  132. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  133. data/lib/purecloudplatformclientv2/models/external_contact.rb +55 -1
  134. data/lib/purecloudplatformclientv2/models/external_organization.rb +55 -1
  135. data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
  136. data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +1 -1
  137. data/lib/purecloudplatformclientv2/models/flow_execution_launch_request.rb +288 -0
  138. data/lib/purecloudplatformclientv2/models/flow_execution_launch_response.rb +281 -0
  139. data/lib/purecloudplatformclientv2/models/flow_runtime_execution.rb +494 -0
  140. data/lib/purecloudplatformclientv2/models/generic_saml.rb +428 -0
  141. data/lib/purecloudplatformclientv2/models/google_dialogflow_custom_settings.rb +202 -0
  142. data/lib/purecloudplatformclientv2/models/ip_address_authentication.rb +203 -0
  143. data/lib/purecloudplatformclientv2/models/knowledge_search_response.rb +18 -18
  144. data/lib/purecloudplatformclientv2/models/list_item_component.rb +373 -0
  145. data/lib/purecloudplatformclientv2/models/message_content.rb +378 -0
  146. data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +72 -1
  147. data/lib/purecloudplatformclientv2/models/notification_template_body.rb +236 -0
  148. data/lib/purecloudplatformclientv2/models/notification_template_footer.rb +203 -0
  149. data/lib/purecloudplatformclientv2/models/notification_template_header.rb +302 -0
  150. data/lib/purecloudplatformclientv2/models/notification_template_parameter.rb +234 -0
  151. data/lib/purecloudplatformclientv2/models/post_text_message.rb +275 -0
  152. data/lib/purecloudplatformclientv2/models/post_text_request.rb +482 -0
  153. data/lib/purecloudplatformclientv2/models/post_text_response.rb +413 -0
  154. data/lib/purecloudplatformclientv2/models/prompt.rb +2 -0
  155. data/lib/purecloudplatformclientv2/models/prompt_asset.rb +15 -1
  156. data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +15 -1
  157. data/lib/purecloudplatformclientv2/models/queue.rb +29 -1
  158. data/lib/purecloudplatformclientv2/models/queue_request.rb +29 -1
  159. data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +31 -4
  160. data/lib/purecloudplatformclientv2/models/scim_email.rb +1 -1
  161. data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +1 -1
  162. data/lib/purecloudplatformclientv2/models/survey_form.rb +1 -53
  163. data/lib/purecloudplatformclientv2/models/upload_url_request.rb +43 -4
  164. data/lib/purecloudplatformclientv2/models/usage_execution_result.rb +228 -0
  165. data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +1 -1
  166. data/lib/purecloudplatformclientv2/models/user_queue.rb +29 -1
  167. data/lib/purecloudplatformclientv2/models/view_filter.rb +58 -4
  168. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_owner.rb +201 -0
  169. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_copy_record.rb +226 -0
  170. data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_message.rb +56 -4
  171. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_forecast_modification.rb +497 -0
  172. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast.rb +494 -0
  173. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast_notification.rb +265 -0
  174. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_forecast_source_day_pointer.rb +315 -0
  175. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_modification_interval_offset_value.rb +226 -0
  176. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_user_reference.rb +201 -0
  177. data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_wfm_versioned_entity_metadata.rb +251 -0
  178. data/lib/purecloudplatformclientv2/version.rb +1 -1
  179. metadata +92 -2
@@ -24,6 +24,61 @@ module PureCloud
24
24
  @api_client = api_client
25
25
  end
26
26
 
27
+ # Get service mapping information used in audits.
28
+ #
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [AuditQueryServiceMapping]
31
+ def get_audits_query_servicemapping(opts = {})
32
+ data, _status_code, _headers = get_audits_query_servicemapping_with_http_info(opts)
33
+ return data
34
+ end
35
+
36
+ # Get service mapping information used in audits.
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(AuditQueryServiceMapping, Fixnum, Hash)>] AuditQueryServiceMapping data, response status code and response headers
40
+ def get_audits_query_servicemapping_with_http_info(opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: AuditApi.get_audits_query_servicemapping ..."
43
+ end
44
+
45
+ # resource path
46
+ local_var_path = "/api/v2/audits/query/servicemapping".sub('{format}','json')
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+
54
+ # HTTP header 'Accept' (if needed)
55
+ local_header_accept = ['application/json']
56
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
57
+
58
+ # HTTP header 'Content-Type'
59
+ local_header_content_type = ['application/json']
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = nil
67
+
68
+ auth_names = ['PureCloud OAuth']
69
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names,
75
+ :return_type => 'AuditQueryServiceMapping')
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: AuditApi#get_audits_query_servicemapping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
27
82
  # Get status of audit query execution
28
83
  #
29
84
  # @param transaction_id Transaction ID
@@ -245,5 +300,79 @@ module PureCloud
245
300
  end
246
301
  return data, status_code, headers
247
302
  end
303
+
304
+ # This endpoint will only retrieve 7 days worth of audits for certain services. Please use /query to get a full list and older audits.
305
+ #
306
+ # @param body query
307
+ # @param [Hash] opts the optional parameters
308
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
309
+ # @return [AuditRealtimeQueryResultsResponse]
310
+ def post_audits_query_realtime(body, opts = {})
311
+ data, _status_code, _headers = post_audits_query_realtime_with_http_info(body, opts)
312
+ return data
313
+ end
314
+
315
+ # This endpoint will only retrieve 7 days worth of audits for certain services. Please use /query to get a full list and older audits.
316
+ #
317
+ # @param body query
318
+ # @param [Hash] opts the optional parameters
319
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
320
+ # @return [Array<(AuditRealtimeQueryResultsResponse, Fixnum, Hash)>] AuditRealtimeQueryResultsResponse data, response status code and response headers
321
+ def post_audits_query_realtime_with_http_info(body, opts = {})
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug "Calling API: AuditApi.post_audits_query_realtime ..."
324
+ end
325
+
326
+
327
+ # verify the required parameter 'body' is set
328
+ fail ArgumentError, "Missing the required parameter 'body' when calling AuditApi.post_audits_query_realtime" if body.nil?
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ # resource path
341
+ local_var_path = "/api/v2/audits/query/realtime".sub('{format}','json')
342
+
343
+ # query parameters
344
+ query_params = {}
345
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
346
+
347
+ # header parameters
348
+ header_params = {}
349
+
350
+ # HTTP header 'Accept' (if needed)
351
+ local_header_accept = ['application/json']
352
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
353
+
354
+ # HTTP header 'Content-Type'
355
+ local_header_content_type = ['application/json']
356
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
357
+
358
+ # form parameters
359
+ form_params = {}
360
+
361
+ # http body (model)
362
+ post_body = @api_client.object_to_http_body(body)
363
+
364
+ auth_names = ['PureCloud OAuth']
365
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names,
371
+ :return_type => 'AuditRealtimeQueryResultsResponse')
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug "API called: AuditApi#post_audits_query_realtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
+ end
375
+ return data, status_code, headers
376
+ end
248
377
  end
249
378
  end
@@ -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
@@ -162,6 +162,80 @@ module PureCloud
162
162
  return data, status_code, headers
163
163
  end
164
164
 
165
+ # Delete an NLU Domain Version
166
+ #
167
+ # @param domain_id ID of the NLU domain.
168
+ # @param domain_version_id ID of the NLU domain version.
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [nil]
171
+ def delete_languageunderstanding_domain_version(domain_id, domain_version_id, opts = {})
172
+ delete_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts)
173
+ return nil
174
+ end
175
+
176
+ # Delete an NLU Domain Version
177
+ #
178
+ # @param domain_id ID of the NLU domain.
179
+ # @param domain_version_id ID of the NLU domain version.
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
182
+ def delete_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts = {})
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.delete_languageunderstanding_domain_version ..."
185
+ end
186
+
187
+
188
+ # verify the required parameter 'domain_id' is set
189
+ fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.delete_languageunderstanding_domain_version" if domain_id.nil?
190
+
191
+
192
+
193
+
194
+
195
+
196
+ # verify the required parameter 'domain_version_id' is set
197
+ fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.delete_languageunderstanding_domain_version" if domain_version_id.nil?
198
+
199
+
200
+
201
+
202
+
203
+ # resource path
204
+ local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'domainVersionId' + '}', domain_version_id.to_s)
205
+
206
+ # query parameters
207
+ query_params = {}
208
+
209
+ # header parameters
210
+ header_params = {}
211
+
212
+ # HTTP header 'Accept' (if needed)
213
+ local_header_accept = ['application/json']
214
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
215
+
216
+ # HTTP header 'Content-Type'
217
+ local_header_content_type = ['application/json']
218
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
219
+
220
+ # form parameters
221
+ form_params = {}
222
+
223
+ # http body (model)
224
+ post_body = nil
225
+
226
+ auth_names = ['PureCloud OAuth']
227
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
228
+ :header_params => header_params,
229
+ :query_params => query_params,
230
+ :form_params => form_params,
231
+ :body => post_body,
232
+ :auth_names => auth_names)
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug "API called: LanguageUnderstandingApi#delete_languageunderstanding_domain_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ end
236
+ return data, status_code, headers
237
+ end
238
+
165
239
  # Find an NLU Domain.
166
240
  #
167
241
  # @param domain_id ID of the NLU domain.
@@ -779,21 +853,21 @@ module PureCloud
779
853
  # Update an NLU Domain.
780
854
  #
781
855
  # @param domain_id ID of the NLU domain.
856
+ # @param body The updated NLU Domain.
782
857
  # @param [Hash] opts the optional parameters
783
- # @option opts [NluDomain] :body
784
858
  # @return [NluDomain]
785
- def patch_languageunderstanding_domain(domain_id, opts = {})
786
- data, _status_code, _headers = patch_languageunderstanding_domain_with_http_info(domain_id, opts)
859
+ def patch_languageunderstanding_domain(domain_id, body, opts = {})
860
+ data, _status_code, _headers = patch_languageunderstanding_domain_with_http_info(domain_id, body, opts)
787
861
  return data
788
862
  end
789
863
 
790
864
  # Update an NLU Domain.
791
865
  #
792
866
  # @param domain_id ID of the NLU domain.
867
+ # @param body The updated NLU Domain.
793
868
  # @param [Hash] opts the optional parameters
794
- # @option opts [NluDomain] :body
795
869
  # @return [Array<(NluDomain, Fixnum, Hash)>] NluDomain data, response status code and response headers
796
- def patch_languageunderstanding_domain_with_http_info(domain_id, opts = {})
870
+ def patch_languageunderstanding_domain_with_http_info(domain_id, body, opts = {})
797
871
  if @api_client.config.debugging
798
872
  @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.patch_languageunderstanding_domain ..."
799
873
  end
@@ -807,6 +881,8 @@ module PureCloud
807
881
 
808
882
 
809
883
 
884
+ # verify the required parameter 'body' is set
885
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.patch_languageunderstanding_domain" if body.nil?
810
886
 
811
887
 
812
888
 
@@ -833,7 +909,7 @@ module PureCloud
833
909
  form_params = {}
834
910
 
835
911
  # http body (model)
836
- post_body = @api_client.object_to_http_body(opts[:'body'])
912
+ post_body = @api_client.object_to_http_body(body)
837
913
 
838
914
  auth_names = ['PureCloud OAuth']
839
915
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -852,21 +928,21 @@ module PureCloud
852
928
  # Create feedback for the NLU Domain Version.
853
929
  #
854
930
  # @param domain_id ID of the NLU domain.
931
+ # @param body The Feedback to create.
855
932
  # @param [Hash] opts the optional parameters
856
- # @option opts [NluFeedbackRequest] :body
857
933
  # @return [NluFeedbackResponse]
858
- def post_languageunderstanding_domain_feedback(domain_id, opts = {})
859
- data, _status_code, _headers = post_languageunderstanding_domain_feedback_with_http_info(domain_id, opts)
934
+ def post_languageunderstanding_domain_feedback(domain_id, body, opts = {})
935
+ data, _status_code, _headers = post_languageunderstanding_domain_feedback_with_http_info(domain_id, body, opts)
860
936
  return data
861
937
  end
862
938
 
863
939
  # Create feedback for the NLU Domain Version.
864
940
  #
865
941
  # @param domain_id ID of the NLU domain.
942
+ # @param body The Feedback to create.
866
943
  # @param [Hash] opts the optional parameters
867
- # @option opts [NluFeedbackRequest] :body
868
944
  # @return [Array<(NluFeedbackResponse, Fixnum, Hash)>] NluFeedbackResponse data, response status code and response headers
869
- def post_languageunderstanding_domain_feedback_with_http_info(domain_id, opts = {})
945
+ def post_languageunderstanding_domain_feedback_with_http_info(domain_id, body, opts = {})
870
946
  if @api_client.config.debugging
871
947
  @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_feedback ..."
872
948
  end
@@ -880,6 +956,8 @@ module PureCloud
880
956
 
881
957
 
882
958
 
959
+ # verify the required parameter 'body' is set
960
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_feedback" if body.nil?
883
961
 
884
962
 
885
963
 
@@ -906,7 +984,7 @@ module PureCloud
906
984
  form_params = {}
907
985
 
908
986
  # http body (model)
909
- post_body = @api_client.object_to_http_body(opts[:'body'])
987
+ post_body = @api_client.object_to_http_body(body)
910
988
 
911
989
  auth_names = ['PureCloud OAuth']
912
990
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -926,11 +1004,11 @@ module PureCloud
926
1004
  #
927
1005
  # @param domain_id ID of the NLU domain.
928
1006
  # @param domain_version_id ID of the NLU domain version.
1007
+ # @param body The input data to perform detection on.
929
1008
  # @param [Hash] opts the optional parameters
930
- # @option opts [NluDetectionRequest] :body
931
1009
  # @return [NluDetectionResponse]
932
- def post_languageunderstanding_domain_version_detect(domain_id, domain_version_id, opts = {})
933
- data, _status_code, _headers = post_languageunderstanding_domain_version_detect_with_http_info(domain_id, domain_version_id, opts)
1010
+ def post_languageunderstanding_domain_version_detect(domain_id, domain_version_id, body, opts = {})
1011
+ data, _status_code, _headers = post_languageunderstanding_domain_version_detect_with_http_info(domain_id, domain_version_id, body, opts)
934
1012
  return data
935
1013
  end
936
1014
 
@@ -938,10 +1016,10 @@ module PureCloud
938
1016
  #
939
1017
  # @param domain_id ID of the NLU domain.
940
1018
  # @param domain_version_id ID of the NLU domain version.
1019
+ # @param body The input data to perform detection on.
941
1020
  # @param [Hash] opts the optional parameters
942
- # @option opts [NluDetectionRequest] :body
943
1021
  # @return [Array<(NluDetectionResponse, Fixnum, Hash)>] NluDetectionResponse data, response status code and response headers
944
- def post_languageunderstanding_domain_version_detect_with_http_info(domain_id, domain_version_id, opts = {})
1022
+ def post_languageunderstanding_domain_version_detect_with_http_info(domain_id, domain_version_id, body, opts = {})
945
1023
  if @api_client.config.debugging
946
1024
  @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_version_detect ..."
947
1025
  end
@@ -963,6 +1041,8 @@ module PureCloud
963
1041
 
964
1042
 
965
1043
 
1044
+ # verify the required parameter 'body' is set
1045
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_detect" if body.nil?
966
1046
 
967
1047
 
968
1048
 
@@ -989,7 +1069,7 @@ module PureCloud
989
1069
  form_params = {}
990
1070
 
991
1071
  # http body (model)
992
- post_body = @api_client.object_to_http_body(opts[:'body'])
1072
+ post_body = @api_client.object_to_http_body(body)
993
1073
 
994
1074
  auth_names = ['PureCloud OAuth']
995
1075
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -1155,27 +1235,104 @@ module PureCloud
1155
1235
  return data, status_code, headers
1156
1236
  end
1157
1237
 
1238
+ # Create an NLU Domain Version.
1239
+ #
1240
+ # @param domain_id ID of the NLU domain.
1241
+ # @param body The NLU Domain Version to create.
1242
+ # @param [Hash] opts the optional parameters
1243
+ # @return [NluDomainVersion]
1244
+ def post_languageunderstanding_domain_versions(domain_id, body, opts = {})
1245
+ data, _status_code, _headers = post_languageunderstanding_domain_versions_with_http_info(domain_id, body, opts)
1246
+ return data
1247
+ end
1248
+
1249
+ # Create an NLU Domain Version.
1250
+ #
1251
+ # @param domain_id ID of the NLU domain.
1252
+ # @param body The NLU Domain Version to create.
1253
+ # @param [Hash] opts the optional parameters
1254
+ # @return [Array<(NluDomainVersion, Fixnum, Hash)>] NluDomainVersion data, response status code and response headers
1255
+ def post_languageunderstanding_domain_versions_with_http_info(domain_id, body, opts = {})
1256
+ if @api_client.config.debugging
1257
+ @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_versions ..."
1258
+ end
1259
+
1260
+
1261
+ # verify the required parameter 'domain_id' is set
1262
+ fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_versions" if domain_id.nil?
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+ # verify the required parameter 'body' is set
1270
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_versions" if body.nil?
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+ # resource path
1277
+ local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
1278
+
1279
+ # query parameters
1280
+ query_params = {}
1281
+
1282
+ # header parameters
1283
+ header_params = {}
1284
+
1285
+ # HTTP header 'Accept' (if needed)
1286
+ local_header_accept = ['application/json']
1287
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1288
+
1289
+ # HTTP header 'Content-Type'
1290
+ local_header_content_type = ['application/json']
1291
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1292
+
1293
+ # form parameters
1294
+ form_params = {}
1295
+
1296
+ # http body (model)
1297
+ post_body = @api_client.object_to_http_body(body)
1298
+
1299
+ auth_names = ['PureCloud OAuth']
1300
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1301
+ :header_params => header_params,
1302
+ :query_params => query_params,
1303
+ :form_params => form_params,
1304
+ :body => post_body,
1305
+ :auth_names => auth_names,
1306
+ :return_type => 'NluDomainVersion')
1307
+ if @api_client.config.debugging
1308
+ @api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domain_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1309
+ end
1310
+ return data, status_code, headers
1311
+ end
1312
+
1158
1313
  # Create an NLU Domain.
1159
1314
  #
1315
+ # @param body The NLU Domain to create.
1160
1316
  # @param [Hash] opts the optional parameters
1161
- # @option opts [NluDomain] :body
1162
1317
  # @return [NluDomain]
1163
- def post_languageunderstanding_domains(opts = {})
1164
- data, _status_code, _headers = post_languageunderstanding_domains_with_http_info(opts)
1318
+ def post_languageunderstanding_domains(body, opts = {})
1319
+ data, _status_code, _headers = post_languageunderstanding_domains_with_http_info(body, opts)
1165
1320
  return data
1166
1321
  end
1167
1322
 
1168
1323
  # Create an NLU Domain.
1169
1324
  #
1325
+ # @param body The NLU Domain to create.
1170
1326
  # @param [Hash] opts the optional parameters
1171
- # @option opts [NluDomain] :body
1172
1327
  # @return [Array<(NluDomain, Fixnum, Hash)>] NluDomain data, response status code and response headers
1173
- def post_languageunderstanding_domains_with_http_info(opts = {})
1328
+ def post_languageunderstanding_domains_with_http_info(body, opts = {})
1174
1329
  if @api_client.config.debugging
1175
1330
  @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domains ..."
1176
1331
  end
1177
1332
 
1178
1333
 
1334
+ # verify the required parameter 'body' is set
1335
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.post_languageunderstanding_domains" if body.nil?
1179
1336
 
1180
1337
 
1181
1338
 
@@ -1202,7 +1359,7 @@ module PureCloud
1202
1359
  form_params = {}
1203
1360
 
1204
1361
  # http body (model)
1205
- post_body = @api_client.object_to_http_body(opts[:'body'])
1362
+ post_body = @api_client.object_to_http_body(body)
1206
1363
 
1207
1364
  auth_names = ['PureCloud OAuth']
1208
1365
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -1222,11 +1379,11 @@ module PureCloud
1222
1379
  #
1223
1380
  # @param domain_id ID of the NLU domain.
1224
1381
  # @param domain_version_id ID of the NLU domain version.
1382
+ # @param body The updated NLU Domain Version.
1225
1383
  # @param [Hash] opts the optional parameters
1226
- # @option opts [NluDomainVersion] :body
1227
1384
  # @return [NluDomainVersion]
1228
- def put_languageunderstanding_domain_version(domain_id, domain_version_id, opts = {})
1229
- data, _status_code, _headers = put_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts)
1385
+ def put_languageunderstanding_domain_version(domain_id, domain_version_id, body, opts = {})
1386
+ data, _status_code, _headers = put_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, body, opts)
1230
1387
  return data
1231
1388
  end
1232
1389
 
@@ -1234,10 +1391,10 @@ module PureCloud
1234
1391
  #
1235
1392
  # @param domain_id ID of the NLU domain.
1236
1393
  # @param domain_version_id ID of the NLU domain version.
1394
+ # @param body The updated NLU Domain Version.
1237
1395
  # @param [Hash] opts the optional parameters
1238
- # @option opts [NluDomainVersion] :body
1239
1396
  # @return [Array<(NluDomainVersion, Fixnum, Hash)>] NluDomainVersion data, response status code and response headers
1240
- def put_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts = {})
1397
+ def put_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, body, opts = {})
1241
1398
  if @api_client.config.debugging
1242
1399
  @api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.put_languageunderstanding_domain_version ..."
1243
1400
  end
@@ -1259,6 +1416,8 @@ module PureCloud
1259
1416
 
1260
1417
 
1261
1418
 
1419
+ # verify the required parameter 'body' is set
1420
+ fail ArgumentError, "Missing the required parameter 'body' when calling LanguageUnderstandingApi.put_languageunderstanding_domain_version" if body.nil?
1262
1421
 
1263
1422
 
1264
1423
 
@@ -1285,7 +1444,7 @@ module PureCloud
1285
1444
  form_params = {}
1286
1445
 
1287
1446
  # http body (model)
1288
- post_body = @api_client.object_to_http_body(opts[:'body'])
1447
+ post_body = @api_client.object_to_http_body(body)
1289
1448
 
1290
1449
  auth_names = ['PureCloud OAuth']
1291
1450
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,