purecloudplatformclientv2 85.0.1 → 86.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/Call.md +1 -0
- data/docs/CallBasic.md +1 -0
- data/docs/Callback.md +1 -0
- data/docs/CallbackBasic.md +1 -0
- data/docs/Cobrowsesession.md +1 -0
- data/docs/{PartialUploadResponse.md → ContextEntity.md} +3 -3
- data/docs/ContextIntent.md +13 -0
- data/docs/ConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEventTopicCallback.md +1 -0
- data/docs/Coretype.md +23 -0
- data/docs/CoretypeListing.md +15 -0
- data/docs/DataExtensionsApi.md +198 -0
- data/docs/DataSchemaListing.md +15 -0
- data/docs/DetectedDialogAct.md +14 -0
- data/docs/DetectedIntent.md +15 -0
- data/docs/DetectedNamedEntity.md +16 -0
- data/docs/DetectedNamedEntityValue.md +14 -0
- data/docs/DialogflowAgent.md +3 -2
- data/docs/Edge.md +1 -1
- data/docs/Email.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/ExternalContactsApi.md +1001 -144
- data/docs/FlowDivisionView.md +2 -0
- data/docs/IntentDefinition.md +15 -0
- data/docs/IntentFeedback.md +16 -0
- data/docs/ItemValidationLimits.md +14 -0
- data/docs/Items.md +14 -0
- data/docs/LanguageUnderstandingApi.md +1160 -0
- data/docs/MaxLength.md +14 -0
- data/docs/Message.md +1 -0
- data/docs/MinLength.md +14 -0
- data/docs/NamedEntityAnnotation.md +13 -0
- data/docs/NamedEntityTypeBinding.md +14 -0
- data/docs/NamedEntityTypeDefinition.md +15 -0
- data/docs/NamedEntityTypeItem.md +14 -0
- data/docs/NamedEntityTypeMechanism.md +15 -0
- data/docs/NluConfusionMatrixColumn.md +14 -0
- data/docs/NluConfusionMatrixRow.md +14 -0
- data/docs/NluDetectionContext.md +14 -0
- data/docs/NluDetectionInput.md +13 -0
- data/docs/NluDetectionOutput.md +14 -0
- data/docs/NluDetectionRequest.md +14 -0
- data/docs/NluDetectionResponse.md +15 -0
- data/docs/NluDomain.md +19 -0
- data/docs/NluDomainListing.md +22 -0
- data/docs/NluDomainVersion.md +24 -0
- data/docs/NluDomainVersionListing.md +22 -0
- data/docs/NluDomainVersionQualityReport.md +15 -0
- data/docs/NluDomainVersionTrainingResponse.md +14 -0
- data/docs/NluFeedbackListing.md +22 -0
- data/docs/NluFeedbackRequest.md +15 -0
- data/docs/NluFeedbackResponse.md +18 -0
- data/docs/NluQualityReportSummary.md +13 -0
- data/docs/NluQualityReportSummaryMetric.md +14 -0
- data/docs/NluUtterance.md +13 -0
- data/docs/NluUtteranceSegment.md +14 -0
- data/docs/QueueConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/QueueConversationEventTopicCallback.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicCallback.md +1 -0
- data/docs/QueueConversationVideoEventTopicCallback.md +1 -0
- data/docs/ReportingExportJobRequest.md +1 -0
- data/docs/ReportingExportJobResponse.md +2 -0
- data/docs/RoutingApi.md +65 -0
- data/docs/SCIMApi.md +12 -12
- data/docs/Schema.md +17 -0
- data/docs/SchemaQuantityLimits.md +26 -0
- data/docs/ScimV2EnterpriseUser.md +1 -0
- data/docs/Screenshare.md +1 -0
- data/docs/SocialExpression.md +1 -0
- data/docs/{TimeOffRequestLookup.md → TimeOffRequest.md} +2 -2
- data/docs/TimeOffRequestListing.md +13 -0
- data/docs/UploadUrlRequest.md +15 -0
- data/docs/UploadUrlResponse.md +14 -0
- data/docs/UploadsApi.md +78 -0
- data/docs/ValidationLimits.md +18 -0
- data/docs/Video.md +1 -0
- data/docs/WorkforceManagementApi.md +297 -448
- data/lib/purecloudplatformclientv2.rb +50 -57
- data/lib/purecloudplatformclientv2/api/data_extensions_api.rb +207 -0
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +868 -4
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +1304 -0
- data/lib/purecloudplatformclientv2/api/routing_api.rb +64 -0
- data/lib/purecloudplatformclientv2/api/scim_api.rb +8 -8
- data/lib/purecloudplatformclientv2/api/uploads_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +314 -571
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/bulk_update_shift_trade_state_result_item.rb +2 -2
- data/lib/purecloudplatformclientv2/models/call.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{partial_upload_response.rb → context_entity.rb} +14 -9
- data/lib/purecloudplatformclientv2/models/{list_wrapper_wfm_forecast_modification.rb → context_intent.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +30 -4
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/{rescheduling_options_response.rb → coretype.rb} +97 -102
- data/lib/purecloudplatformclientv2/models/{service_goal_group_list.rb → coretype_listing.rb} +34 -11
- data/lib/purecloudplatformclientv2/models/data_schema_listing.rb +253 -0
- data/lib/purecloudplatformclientv2/models/{forecast_result_response.rb → detected_dialog_act.rb} +16 -16
- data/lib/purecloudplatformclientv2/models/{intraday_queue.rb → detected_intent.rb} +23 -23
- data/lib/purecloudplatformclientv2/models/detected_named_entity.rb +280 -0
- data/lib/purecloudplatformclientv2/models/detected_named_entity_value.rb +228 -0
- data/lib/purecloudplatformclientv2/models/dialogflow_agent.rb +31 -3
- data/lib/purecloudplatformclientv2/models/edge.rb +1 -0
- data/lib/purecloudplatformclientv2/models/email.rb +30 -4
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/flow_division_view.rb +53 -1
- data/lib/purecloudplatformclientv2/models/{create_service_goal_group_request.rb → intent_definition.rb} +30 -19
- data/lib/purecloudplatformclientv2/models/{wfm_intraday_queue_listing.rb → intent_feedback.rb} +71 -18
- data/lib/purecloudplatformclientv2/models/{service_goal_group_goals.rb → item_validation_limits.rb} +18 -45
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_response.rb → items.rb} +33 -10
- data/lib/purecloudplatformclientv2/models/max_length.rb +238 -0
- data/lib/purecloudplatformclientv2/models/message.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{forecast_generation_route_group_result.rb → min_length.rb} +26 -18
- data/lib/purecloudplatformclientv2/models/{list_wrapper_forecast_source_day_pointer.rb → named_entity_annotation.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/{copy_short_term_forecast_request.rb → named_entity_type_binding.rb} +18 -19
- data/lib/purecloudplatformclientv2/models/{generate_week_schedule_request.rb → named_entity_type_definition.rb} +38 -13
- data/lib/purecloudplatformclientv2/models/{wfm_abandon_rate.rb → named_entity_type_item.rb} +19 -18
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_response.rb → named_entity_type_mechanism.rb} +48 -36
- data/lib/purecloudplatformclientv2/models/{copy_week_schedule_request.rb → nlu_confusion_matrix_column.rb} +18 -18
- data/lib/purecloudplatformclientv2/models/{wfm_average_speed_of_answer.rb → nlu_confusion_matrix_row.rb} +24 -18
- data/lib/purecloudplatformclientv2/models/nlu_detection_context.rb +228 -0
- data/lib/purecloudplatformclientv2/models/{scheduling_run_list_response.rb → nlu_detection_input.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/nlu_detection_output.rb +232 -0
- data/lib/purecloudplatformclientv2/models/nlu_detection_request.rb +233 -0
- data/lib/purecloudplatformclientv2/models/{route_group_list.rb → nlu_detection_response.rb} +39 -22
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_item_response.rb → nlu_domain.rb} +66 -60
- data/lib/purecloudplatformclientv2/models/{intraday_query_data_command.rb → nlu_domain_listing.rb} +156 -53
- data/lib/purecloudplatformclientv2/models/{short_term_forecast.rb → nlu_domain_version.rb} +132 -87
- data/lib/purecloudplatformclientv2/models/nlu_domain_version_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/{intraday_metric.rb → nlu_domain_version_quality_report.rb} +57 -28
- data/lib/purecloudplatformclientv2/models/{user_schedules_partial_upload_request.rb → nlu_domain_version_training_response.rb} +33 -16
- data/lib/purecloudplatformclientv2/models/{import_week_schedule_request.rb → nlu_feedback_listing.rb} +158 -46
- data/lib/purecloudplatformclientv2/models/{wfm_service_level.rb → nlu_feedback_request.rb} +36 -25
- data/lib/purecloudplatformclientv2/models/{service_goal_group.rb → nlu_feedback_response.rb} +32 -37
- data/lib/purecloudplatformclientv2/models/{generate_short_term_forecast_request.rb → nlu_quality_report_summary.rb} +12 -10
- data/lib/purecloudplatformclientv2/models/nlu_quality_report_summary_metric.rb +238 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance.rb +209 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance_segment.rb +233 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +32 -4
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +57 -1
- data/lib/purecloudplatformclientv2/models/{import_short_term_forecast_request.rb → schema.rb} +50 -35
- data/lib/purecloudplatformclientv2/models/schema_quantity_limits.rb +539 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_enterprise_user.rb +30 -4
- data/lib/purecloudplatformclientv2/models/screenshare.rb +30 -4
- data/lib/purecloudplatformclientv2/models/shift_trade_match_violation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/social_expression.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup.rb → time_off_request.rb} +1 -1
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup_list.rb → time_off_request_listing.rb} +2 -2
- data/lib/purecloudplatformclientv2/models/{create_queue_media_association_request.rb → upload_url_request.rb} +23 -26
- data/lib/purecloudplatformclientv2/models/upload_url_response.rb +230 -0
- data/lib/purecloudplatformclientv2/models/{wfm_forecast_modification_attributes.rb → validation_limits.rb} +76 -38
- data/lib/purecloudplatformclientv2/models/video.rb +30 -4
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +102 -116
- data/docs/AsyncWeekScheduleResponse.md +0 -16
- data/docs/CopyShortTermForecastRequest.md +0 -14
- data/docs/CopyWeekScheduleRequest.md +0 -14
- data/docs/CreateQueueMediaAssociationRequest.md +0 -15
- data/docs/CreateServiceGoalGroupRequest.md +0 -15
- data/docs/ForecastGenerationResult.md +0 -13
- data/docs/ForecastGenerationRouteGroupResult.md +0 -14
- data/docs/ForecastResultResponse.md +0 -14
- data/docs/ForecastTimeSeriesResult.md +0 -14
- data/docs/GenerateShortTermForecastRequest.md +0 -13
- data/docs/GenerateShortTermForecastResponse.md +0 -16
- data/docs/GenerateWeekScheduleRequest.md +0 -14
- data/docs/GenerateWeekScheduleResponse.md +0 -15
- data/docs/ImportShortTermForecastRequest.md +0 -16
- data/docs/ImportWeekScheduleRequest.md +0 -17
- data/docs/IntradayDataGroup.md +0 -19
- data/docs/IntradayForecastData.md +0 -15
- data/docs/IntradayHistoricalAgentData.md +0 -14
- data/docs/IntradayHistoricalQueueData.md +0 -20
- data/docs/IntradayMetric.md +0 -14
- data/docs/IntradayPerformancePredictionAgentData.md +0 -13
- data/docs/IntradayPerformancePredictionQueueData.md +0 -15
- data/docs/IntradayQueryDataCommand.md +0 -17
- data/docs/IntradayQueue.md +0 -15
- data/docs/IntradayResponse.md +0 -20
- data/docs/IntradayScheduleData.md +0 -14
- data/docs/ListWrapperForecastSourceDayPointer.md +0 -13
- data/docs/ListWrapperWfmForecastModification.md +0 -13
- data/docs/QueueMediaAssociation.md +0 -16
- data/docs/RescheduleRequest.md +0 -20
- data/docs/RescheduleResult.md +0 -13
- data/docs/ReschedulingOptionsResponse.md +0 -22
- data/docs/RouteGroup.md +0 -18
- data/docs/RouteGroupAttributes.md +0 -16
- data/docs/RouteGroupList.md +0 -14
- data/docs/SchedulingRunListResponse.md +0 -13
- data/docs/SchedulingRunResponse.md +0 -28
- data/docs/ServiceGoalGroup.md +0 -18
- data/docs/ServiceGoalGroupGoals.md +0 -15
- data/docs/ServiceGoalGroupList.md +0 -14
- data/docs/ShortTermForecast.md +0 -22
- data/docs/ShortTermForecastListItemResponse.md +0 -18
- data/docs/ShortTermForecastListResponse.md +0 -13
- data/docs/ShortTermForecastResponse.md +0 -15
- data/docs/TimeOffRequestEntityList.md +0 -13
- data/docs/TimeOffRequestLookupList.md +0 -13
- data/docs/UnscheduledAgentWarning.md +0 -14
- data/docs/UpdateWeekScheduleRequest.md +0 -21
- data/docs/UserSchedulesPartialUploadRequest.md +0 -13
- data/docs/WfmAbandonRate.md +0 -14
- data/docs/WfmAverageSpeedOfAnswer.md +0 -14
- data/docs/WfmForecastModification.md +0 -20
- data/docs/WfmForecastModificationAttributes.md +0 -16
- data/docs/WfmIntradayQueueListing.md +0 -14
- data/docs/WfmServiceLevel.md +0 -15
- data/lib/purecloudplatformclientv2/models/async_week_schedule_response.rb +0 -295
- data/lib/purecloudplatformclientv2/models/forecast_generation_result.rb +0 -204
- data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +0 -256
- data/lib/purecloudplatformclientv2/models/generate_short_term_forecast_response.rb +0 -294
- data/lib/purecloudplatformclientv2/models/generate_week_schedule_response.rb +0 -269
- data/lib/purecloudplatformclientv2/models/intraday_data_group.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_forecast_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_historical_agent_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/intraday_historical_queue_data.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_agent_data.rb +0 -202
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_queue_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_response.rb +0 -404
- data/lib/purecloudplatformclientv2/models/intraday_schedule_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/queue_media_association.rb +0 -283
- data/lib/purecloudplatformclientv2/models/reschedule_request.rb +0 -418
- data/lib/purecloudplatformclientv2/models/reschedule_result.rb +0 -202
- data/lib/purecloudplatformclientv2/models/route_group.rb +0 -363
- data/lib/purecloudplatformclientv2/models/route_group_attributes.rb +0 -307
- data/lib/purecloudplatformclientv2/models/scheduling_run_response.rb +0 -609
- data/lib/purecloudplatformclientv2/models/time_off_request_entity_list.rb +0 -203
- data/lib/purecloudplatformclientv2/models/unscheduled_agent_warning.rb +0 -242
- data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +0 -438
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification.rb +0 -435
@@ -0,0 +1,1304 @@
|
|
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 LanguageUnderstandingApi
|
21
|
+
attr_accessor :api_client
|
22
|
+
|
23
|
+
def initialize(api_client = ApiClient.default)
|
24
|
+
@api_client = api_client
|
25
|
+
end
|
26
|
+
|
27
|
+
# Delete an NLU Domain.
|
28
|
+
#
|
29
|
+
# @param domain_id ID of the NLU domain.
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [nil]
|
32
|
+
def delete_languageunderstanding_domain(domain_id, opts = {})
|
33
|
+
delete_languageunderstanding_domain_with_http_info(domain_id, opts)
|
34
|
+
return nil
|
35
|
+
end
|
36
|
+
|
37
|
+
# Delete an NLU Domain.
|
38
|
+
#
|
39
|
+
# @param domain_id ID of the NLU domain.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
|
+
def delete_languageunderstanding_domain_with_http_info(domain_id, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.delete_languageunderstanding_domain ..."
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
# verify the required parameter 'domain_id' is set
|
49
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.delete_languageunderstanding_domain" if domain_id.nil?
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_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(:DELETE, 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
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#delete_languageunderstanding_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Delete the feedback on the NLU Domain Version.
|
92
|
+
#
|
93
|
+
# @param domain_id ID of the NLU domain.
|
94
|
+
# @param feedback_id ID of the Feedback
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [nil]
|
97
|
+
def delete_languageunderstanding_domain_feedback_feedback_id(domain_id, feedback_id, opts = {})
|
98
|
+
delete_languageunderstanding_domain_feedback_feedback_id_with_http_info(domain_id, feedback_id, opts)
|
99
|
+
return nil
|
100
|
+
end
|
101
|
+
|
102
|
+
# Delete the feedback on the NLU Domain Version.
|
103
|
+
#
|
104
|
+
# @param domain_id ID of the NLU domain.
|
105
|
+
# @param feedback_id ID of the Feedback
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
108
|
+
def delete_languageunderstanding_domain_feedback_feedback_id_with_http_info(domain_id, feedback_id, opts = {})
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.delete_languageunderstanding_domain_feedback_feedback_id ..."
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
# verify the required parameter 'domain_id' is set
|
115
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.delete_languageunderstanding_domain_feedback_feedback_id" if domain_id.nil?
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
# verify the required parameter 'feedback_id' is set
|
123
|
+
fail ArgumentError, "Missing the required parameter 'feedback_id' when calling LanguageUnderstandingApi.delete_languageunderstanding_domain_feedback_feedback_id" if feedback_id.nil?
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# resource path
|
130
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'feedbackId' + '}', feedback_id.to_s)
|
131
|
+
|
132
|
+
# query parameters
|
133
|
+
query_params = {}
|
134
|
+
|
135
|
+
# header parameters
|
136
|
+
header_params = {}
|
137
|
+
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
local_header_accept = ['application/json']
|
140
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
141
|
+
|
142
|
+
# HTTP header 'Content-Type'
|
143
|
+
local_header_content_type = ['application/json']
|
144
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
145
|
+
|
146
|
+
# form parameters
|
147
|
+
form_params = {}
|
148
|
+
|
149
|
+
# http body (model)
|
150
|
+
post_body = nil
|
151
|
+
|
152
|
+
auth_names = ['PureCloud OAuth']
|
153
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
154
|
+
:header_params => header_params,
|
155
|
+
:query_params => query_params,
|
156
|
+
:form_params => form_params,
|
157
|
+
:body => post_body,
|
158
|
+
:auth_names => auth_names)
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#delete_languageunderstanding_domain_feedback_feedback_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
+
end
|
162
|
+
return data, status_code, headers
|
163
|
+
end
|
164
|
+
|
165
|
+
# Find an NLU Domain.
|
166
|
+
#
|
167
|
+
# @param domain_id ID of the NLU domain.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [NluDomain]
|
170
|
+
def get_languageunderstanding_domain(domain_id, opts = {})
|
171
|
+
data, _status_code, _headers = get_languageunderstanding_domain_with_http_info(domain_id, opts)
|
172
|
+
return data
|
173
|
+
end
|
174
|
+
|
175
|
+
# Find an NLU Domain.
|
176
|
+
#
|
177
|
+
# @param domain_id ID of the NLU domain.
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [Array<(NluDomain, Fixnum, Hash)>] NluDomain data, response status code and response headers
|
180
|
+
def get_languageunderstanding_domain_with_http_info(domain_id, opts = {})
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain ..."
|
183
|
+
end
|
184
|
+
|
185
|
+
|
186
|
+
# verify the required parameter 'domain_id' is set
|
187
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain" if domain_id.nil?
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
# resource path
|
194
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
|
195
|
+
|
196
|
+
# query parameters
|
197
|
+
query_params = {}
|
198
|
+
|
199
|
+
# header parameters
|
200
|
+
header_params = {}
|
201
|
+
|
202
|
+
# HTTP header 'Accept' (if needed)
|
203
|
+
local_header_accept = ['application/json']
|
204
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
205
|
+
|
206
|
+
# HTTP header 'Content-Type'
|
207
|
+
local_header_content_type = ['application/json']
|
208
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
209
|
+
|
210
|
+
# form parameters
|
211
|
+
form_params = {}
|
212
|
+
|
213
|
+
# http body (model)
|
214
|
+
post_body = nil
|
215
|
+
|
216
|
+
auth_names = ['PureCloud OAuth']
|
217
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
218
|
+
:header_params => header_params,
|
219
|
+
:query_params => query_params,
|
220
|
+
:form_params => form_params,
|
221
|
+
:body => post_body,
|
222
|
+
:auth_names => auth_names,
|
223
|
+
:return_type => 'NluDomain')
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
|
230
|
+
# Get all feedback in the given NLU Domain Version.
|
231
|
+
#
|
232
|
+
# @param domain_id ID of the NLU domain.
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [String] :intent_name The top intent name to retrieve feedback for.
|
235
|
+
# @option opts [String] :assessment The top assessment to retrieve feedback for.
|
236
|
+
# @option opts [Date] :date_start Begin of time window as ISO-8601 date.
|
237
|
+
# @option opts [Date] :date_end End of time window as ISO-8601 date.
|
238
|
+
# @option opts [BOOLEAN] :include_deleted Whether to include soft-deleted items in the result.
|
239
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
240
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
241
|
+
# @option opts [Array<String>] :fields Fields and properties to get, comma-separated
|
242
|
+
# @return [NluFeedbackListing]
|
243
|
+
def get_languageunderstanding_domain_feedback(domain_id, opts = {})
|
244
|
+
data, _status_code, _headers = get_languageunderstanding_domain_feedback_with_http_info(domain_id, opts)
|
245
|
+
return data
|
246
|
+
end
|
247
|
+
|
248
|
+
# Get all feedback in the given NLU Domain Version.
|
249
|
+
#
|
250
|
+
# @param domain_id ID of the NLU domain.
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @option opts [String] :intent_name The top intent name to retrieve feedback for.
|
253
|
+
# @option opts [String] :assessment The top assessment to retrieve feedback for.
|
254
|
+
# @option opts [Date] :date_start Begin of time window as ISO-8601 date.
|
255
|
+
# @option opts [Date] :date_end End of time window as ISO-8601 date.
|
256
|
+
# @option opts [BOOLEAN] :include_deleted Whether to include soft-deleted items in the result.
|
257
|
+
# @option opts [Integer] :page_number Page number
|
258
|
+
# @option opts [Integer] :page_size Page size
|
259
|
+
# @option opts [Array<String>] :fields Fields and properties to get, comma-separated
|
260
|
+
# @return [Array<(NluFeedbackListing, Fixnum, Hash)>] NluFeedbackListing data, response status code and response headers
|
261
|
+
def get_languageunderstanding_domain_feedback_with_http_info(domain_id, opts = {})
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain_feedback ..."
|
264
|
+
end
|
265
|
+
|
266
|
+
|
267
|
+
# verify the required parameter 'domain_id' is set
|
268
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_feedback" if domain_id.nil?
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
if opts[:'assessment'] && !['Incorrect', 'Correct', 'Unknown'].include?(opts[:'assessment'])
|
284
|
+
fail ArgumentError, 'invalid value for "assessment", must be one of Incorrect, Correct, Unknown'
|
285
|
+
end
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
# resource path
|
327
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/feedback".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
|
328
|
+
|
329
|
+
# query parameters
|
330
|
+
query_params = {}
|
331
|
+
query_params[:'intentName'] = opts[:'intent_name'] if opts[:'intent_name']
|
332
|
+
query_params[:'assessment'] = opts[:'assessment'] if opts[:'assessment']
|
333
|
+
query_params[:'dateStart'] = opts[:'date_start'] if opts[:'date_start']
|
334
|
+
query_params[:'dateEnd'] = opts[:'date_end'] if opts[:'date_end']
|
335
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if opts[:'include_deleted']
|
336
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
337
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
338
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if opts[:'fields']
|
339
|
+
|
340
|
+
# header parameters
|
341
|
+
header_params = {}
|
342
|
+
|
343
|
+
# HTTP header 'Accept' (if needed)
|
344
|
+
local_header_accept = ['application/json']
|
345
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
346
|
+
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
local_header_content_type = ['application/json']
|
349
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
350
|
+
|
351
|
+
# form parameters
|
352
|
+
form_params = {}
|
353
|
+
|
354
|
+
# http body (model)
|
355
|
+
post_body = nil
|
356
|
+
|
357
|
+
auth_names = ['PureCloud OAuth']
|
358
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
359
|
+
:header_params => header_params,
|
360
|
+
:query_params => query_params,
|
361
|
+
:form_params => form_params,
|
362
|
+
:body => post_body,
|
363
|
+
:auth_names => auth_names,
|
364
|
+
:return_type => 'NluFeedbackListing')
|
365
|
+
if @api_client.config.debugging
|
366
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain_feedback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
367
|
+
end
|
368
|
+
return data, status_code, headers
|
369
|
+
end
|
370
|
+
|
371
|
+
# Find a Feedback
|
372
|
+
#
|
373
|
+
# @param domain_id ID of the NLU domain.
|
374
|
+
# @param feedback_id ID of the Feedback
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [Array<String>] :fields Fields and properties to get, comma-separated
|
377
|
+
# @return [NluFeedbackResponse]
|
378
|
+
def get_languageunderstanding_domain_feedback_feedback_id(domain_id, feedback_id, opts = {})
|
379
|
+
data, _status_code, _headers = get_languageunderstanding_domain_feedback_feedback_id_with_http_info(domain_id, feedback_id, opts)
|
380
|
+
return data
|
381
|
+
end
|
382
|
+
|
383
|
+
# Find a Feedback
|
384
|
+
#
|
385
|
+
# @param domain_id ID of the NLU domain.
|
386
|
+
# @param feedback_id ID of the Feedback
|
387
|
+
# @param [Hash] opts the optional parameters
|
388
|
+
# @option opts [Array<String>] :fields Fields and properties to get, comma-separated
|
389
|
+
# @return [Array<(NluFeedbackResponse, Fixnum, Hash)>] NluFeedbackResponse data, response status code and response headers
|
390
|
+
def get_languageunderstanding_domain_feedback_feedback_id_with_http_info(domain_id, feedback_id, opts = {})
|
391
|
+
if @api_client.config.debugging
|
392
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain_feedback_feedback_id ..."
|
393
|
+
end
|
394
|
+
|
395
|
+
|
396
|
+
# verify the required parameter 'domain_id' is set
|
397
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_feedback_feedback_id" if domain_id.nil?
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
# verify the required parameter 'feedback_id' is set
|
405
|
+
fail ArgumentError, "Missing the required parameter 'feedback_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_feedback_feedback_id" if feedback_id.nil?
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
# resource path
|
418
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'feedbackId' + '}', feedback_id.to_s)
|
419
|
+
|
420
|
+
# query parameters
|
421
|
+
query_params = {}
|
422
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if opts[:'fields']
|
423
|
+
|
424
|
+
# header parameters
|
425
|
+
header_params = {}
|
426
|
+
|
427
|
+
# HTTP header 'Accept' (if needed)
|
428
|
+
local_header_accept = ['application/json']
|
429
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
430
|
+
|
431
|
+
# HTTP header 'Content-Type'
|
432
|
+
local_header_content_type = ['application/json']
|
433
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
434
|
+
|
435
|
+
# form parameters
|
436
|
+
form_params = {}
|
437
|
+
|
438
|
+
# http body (model)
|
439
|
+
post_body = nil
|
440
|
+
|
441
|
+
auth_names = ['PureCloud OAuth']
|
442
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
443
|
+
:header_params => header_params,
|
444
|
+
:query_params => query_params,
|
445
|
+
:form_params => form_params,
|
446
|
+
:body => post_body,
|
447
|
+
:auth_names => auth_names,
|
448
|
+
:return_type => 'NluFeedbackResponse')
|
449
|
+
if @api_client.config.debugging
|
450
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain_feedback_feedback_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
451
|
+
end
|
452
|
+
return data, status_code, headers
|
453
|
+
end
|
454
|
+
|
455
|
+
# Find an NLU Domain Version.
|
456
|
+
#
|
457
|
+
# @param domain_id ID of the NLU domain.
|
458
|
+
# @param domain_version_id ID of the NLU domain version.
|
459
|
+
# @param [Hash] opts the optional parameters
|
460
|
+
# @option opts [BOOLEAN] :include_utterances Whether utterances for intent definition should be included when marshalling response.
|
461
|
+
# @return [NluDomainVersion]
|
462
|
+
def get_languageunderstanding_domain_version(domain_id, domain_version_id, opts = {})
|
463
|
+
data, _status_code, _headers = get_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts)
|
464
|
+
return data
|
465
|
+
end
|
466
|
+
|
467
|
+
# Find an NLU Domain Version.
|
468
|
+
#
|
469
|
+
# @param domain_id ID of the NLU domain.
|
470
|
+
# @param domain_version_id ID of the NLU domain version.
|
471
|
+
# @param [Hash] opts the optional parameters
|
472
|
+
# @option opts [BOOLEAN] :include_utterances Whether utterances for intent definition should be included when marshalling response.
|
473
|
+
# @return [Array<(NluDomainVersion, Fixnum, Hash)>] NluDomainVersion data, response status code and response headers
|
474
|
+
def get_languageunderstanding_domain_version_with_http_info(domain_id, domain_version_id, opts = {})
|
475
|
+
if @api_client.config.debugging
|
476
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain_version ..."
|
477
|
+
end
|
478
|
+
|
479
|
+
|
480
|
+
# verify the required parameter 'domain_id' is set
|
481
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_version" if domain_id.nil?
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
# verify the required parameter 'domain_version_id' is set
|
489
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_version" if domain_version_id.nil?
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
# resource path
|
502
|
+
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)
|
503
|
+
|
504
|
+
# query parameters
|
505
|
+
query_params = {}
|
506
|
+
query_params[:'includeUtterances'] = opts[:'include_utterances'] if opts[:'include_utterances']
|
507
|
+
|
508
|
+
# header parameters
|
509
|
+
header_params = {}
|
510
|
+
|
511
|
+
# HTTP header 'Accept' (if needed)
|
512
|
+
local_header_accept = ['application/json']
|
513
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
514
|
+
|
515
|
+
# HTTP header 'Content-Type'
|
516
|
+
local_header_content_type = ['application/json']
|
517
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
518
|
+
|
519
|
+
# form parameters
|
520
|
+
form_params = {}
|
521
|
+
|
522
|
+
# http body (model)
|
523
|
+
post_body = nil
|
524
|
+
|
525
|
+
auth_names = ['PureCloud OAuth']
|
526
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
527
|
+
:header_params => header_params,
|
528
|
+
:query_params => query_params,
|
529
|
+
:form_params => form_params,
|
530
|
+
:body => post_body,
|
531
|
+
:auth_names => auth_names,
|
532
|
+
:return_type => 'NluDomainVersion')
|
533
|
+
if @api_client.config.debugging
|
534
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
535
|
+
end
|
536
|
+
return data, status_code, headers
|
537
|
+
end
|
538
|
+
|
539
|
+
# Retrieved quality report for the specified NLU Domain Version
|
540
|
+
#
|
541
|
+
# @param domain_id ID of the NLU domain.
|
542
|
+
# @param domain_version_id ID of the NLU domain version.
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @return [NluDomainVersionQualityReport]
|
545
|
+
def get_languageunderstanding_domain_version_report(domain_id, domain_version_id, opts = {})
|
546
|
+
data, _status_code, _headers = get_languageunderstanding_domain_version_report_with_http_info(domain_id, domain_version_id, opts)
|
547
|
+
return data
|
548
|
+
end
|
549
|
+
|
550
|
+
# Retrieved quality report for the specified NLU Domain Version
|
551
|
+
#
|
552
|
+
# @param domain_id ID of the NLU domain.
|
553
|
+
# @param domain_version_id ID of the NLU domain version.
|
554
|
+
# @param [Hash] opts the optional parameters
|
555
|
+
# @return [Array<(NluDomainVersionQualityReport, Fixnum, Hash)>] NluDomainVersionQualityReport data, response status code and response headers
|
556
|
+
def get_languageunderstanding_domain_version_report_with_http_info(domain_id, domain_version_id, opts = {})
|
557
|
+
if @api_client.config.debugging
|
558
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain_version_report ..."
|
559
|
+
end
|
560
|
+
|
561
|
+
|
562
|
+
# verify the required parameter 'domain_id' is set
|
563
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_version_report" if domain_id.nil?
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
# verify the required parameter 'domain_version_id' is set
|
571
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_version_report" if domain_version_id.nil?
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
# resource path
|
578
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/report".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'domainVersionId' + '}', domain_version_id.to_s)
|
579
|
+
|
580
|
+
# query parameters
|
581
|
+
query_params = {}
|
582
|
+
|
583
|
+
# header parameters
|
584
|
+
header_params = {}
|
585
|
+
|
586
|
+
# HTTP header 'Accept' (if needed)
|
587
|
+
local_header_accept = ['application/json']
|
588
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
589
|
+
|
590
|
+
# HTTP header 'Content-Type'
|
591
|
+
local_header_content_type = ['application/json']
|
592
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
593
|
+
|
594
|
+
# form parameters
|
595
|
+
form_params = {}
|
596
|
+
|
597
|
+
# http body (model)
|
598
|
+
post_body = nil
|
599
|
+
|
600
|
+
auth_names = ['PureCloud OAuth']
|
601
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
602
|
+
:header_params => header_params,
|
603
|
+
:query_params => query_params,
|
604
|
+
:form_params => form_params,
|
605
|
+
:body => post_body,
|
606
|
+
:auth_names => auth_names,
|
607
|
+
:return_type => 'NluDomainVersionQualityReport')
|
608
|
+
if @api_client.config.debugging
|
609
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain_version_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
610
|
+
end
|
611
|
+
return data, status_code, headers
|
612
|
+
end
|
613
|
+
|
614
|
+
# Get all NLU Domain Versions for a given Domain.
|
615
|
+
#
|
616
|
+
# @param domain_id ID of the NLU domain.
|
617
|
+
# @param [Hash] opts the optional parameters
|
618
|
+
# @option opts [BOOLEAN] :include_utterances Whether utterances for intent definition should be included when marshalling response.
|
619
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
620
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
621
|
+
# @return [NluDomainVersionListing]
|
622
|
+
def get_languageunderstanding_domain_versions(domain_id, opts = {})
|
623
|
+
data, _status_code, _headers = get_languageunderstanding_domain_versions_with_http_info(domain_id, opts)
|
624
|
+
return data
|
625
|
+
end
|
626
|
+
|
627
|
+
# Get all NLU Domain Versions for a given Domain.
|
628
|
+
#
|
629
|
+
# @param domain_id ID of the NLU domain.
|
630
|
+
# @param [Hash] opts the optional parameters
|
631
|
+
# @option opts [BOOLEAN] :include_utterances Whether utterances for intent definition should be included when marshalling response.
|
632
|
+
# @option opts [Integer] :page_number Page number
|
633
|
+
# @option opts [Integer] :page_size Page size
|
634
|
+
# @return [Array<(NluDomainVersionListing, Fixnum, Hash)>] NluDomainVersionListing data, response status code and response headers
|
635
|
+
def get_languageunderstanding_domain_versions_with_http_info(domain_id, opts = {})
|
636
|
+
if @api_client.config.debugging
|
637
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domain_versions ..."
|
638
|
+
end
|
639
|
+
|
640
|
+
|
641
|
+
# verify the required parameter 'domain_id' is set
|
642
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.get_languageunderstanding_domain_versions" if domain_id.nil?
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
# resource path
|
667
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
|
668
|
+
|
669
|
+
# query parameters
|
670
|
+
query_params = {}
|
671
|
+
query_params[:'includeUtterances'] = opts[:'include_utterances'] if opts[:'include_utterances']
|
672
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
673
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
674
|
+
|
675
|
+
# header parameters
|
676
|
+
header_params = {}
|
677
|
+
|
678
|
+
# HTTP header 'Accept' (if needed)
|
679
|
+
local_header_accept = ['application/json']
|
680
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
681
|
+
|
682
|
+
# HTTP header 'Content-Type'
|
683
|
+
local_header_content_type = ['application/json']
|
684
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
685
|
+
|
686
|
+
# form parameters
|
687
|
+
form_params = {}
|
688
|
+
|
689
|
+
# http body (model)
|
690
|
+
post_body = nil
|
691
|
+
|
692
|
+
auth_names = ['PureCloud OAuth']
|
693
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
694
|
+
:header_params => header_params,
|
695
|
+
:query_params => query_params,
|
696
|
+
:form_params => form_params,
|
697
|
+
:body => post_body,
|
698
|
+
:auth_names => auth_names,
|
699
|
+
:return_type => 'NluDomainVersionListing')
|
700
|
+
if @api_client.config.debugging
|
701
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domain_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
702
|
+
end
|
703
|
+
return data, status_code, headers
|
704
|
+
end
|
705
|
+
|
706
|
+
# Get all NLU Domains.
|
707
|
+
#
|
708
|
+
# @param [Hash] opts the optional parameters
|
709
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
710
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
711
|
+
# @return [NluDomainListing]
|
712
|
+
def get_languageunderstanding_domains(opts = {})
|
713
|
+
data, _status_code, _headers = get_languageunderstanding_domains_with_http_info(opts)
|
714
|
+
return data
|
715
|
+
end
|
716
|
+
|
717
|
+
# Get all NLU Domains.
|
718
|
+
#
|
719
|
+
# @param [Hash] opts the optional parameters
|
720
|
+
# @option opts [Integer] :page_number Page number
|
721
|
+
# @option opts [Integer] :page_size Page size
|
722
|
+
# @return [Array<(NluDomainListing, Fixnum, Hash)>] NluDomainListing data, response status code and response headers
|
723
|
+
def get_languageunderstanding_domains_with_http_info(opts = {})
|
724
|
+
if @api_client.config.debugging
|
725
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.get_languageunderstanding_domains ..."
|
726
|
+
end
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
# resource path
|
741
|
+
local_var_path = "/api/v2/languageunderstanding/domains".sub('{format}','json')
|
742
|
+
|
743
|
+
# query parameters
|
744
|
+
query_params = {}
|
745
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
746
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
747
|
+
|
748
|
+
# header parameters
|
749
|
+
header_params = {}
|
750
|
+
|
751
|
+
# HTTP header 'Accept' (if needed)
|
752
|
+
local_header_accept = ['application/json']
|
753
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
754
|
+
|
755
|
+
# HTTP header 'Content-Type'
|
756
|
+
local_header_content_type = ['application/json']
|
757
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
758
|
+
|
759
|
+
# form parameters
|
760
|
+
form_params = {}
|
761
|
+
|
762
|
+
# http body (model)
|
763
|
+
post_body = nil
|
764
|
+
|
765
|
+
auth_names = ['PureCloud OAuth']
|
766
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
767
|
+
:header_params => header_params,
|
768
|
+
:query_params => query_params,
|
769
|
+
:form_params => form_params,
|
770
|
+
:body => post_body,
|
771
|
+
:auth_names => auth_names,
|
772
|
+
:return_type => 'NluDomainListing')
|
773
|
+
if @api_client.config.debugging
|
774
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#get_languageunderstanding_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
775
|
+
end
|
776
|
+
return data, status_code, headers
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update an NLU Domain.
|
780
|
+
#
|
781
|
+
# @param domain_id ID of the NLU domain.
|
782
|
+
# @param [Hash] opts the optional parameters
|
783
|
+
# @option opts [NluDomain] :body
|
784
|
+
# @return [NluDomain]
|
785
|
+
def patch_languageunderstanding_domain(domain_id, opts = {})
|
786
|
+
data, _status_code, _headers = patch_languageunderstanding_domain_with_http_info(domain_id, opts)
|
787
|
+
return data
|
788
|
+
end
|
789
|
+
|
790
|
+
# Update an NLU Domain.
|
791
|
+
#
|
792
|
+
# @param domain_id ID of the NLU domain.
|
793
|
+
# @param [Hash] opts the optional parameters
|
794
|
+
# @option opts [NluDomain] :body
|
795
|
+
# @return [Array<(NluDomain, Fixnum, Hash)>] NluDomain data, response status code and response headers
|
796
|
+
def patch_languageunderstanding_domain_with_http_info(domain_id, opts = {})
|
797
|
+
if @api_client.config.debugging
|
798
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.patch_languageunderstanding_domain ..."
|
799
|
+
end
|
800
|
+
|
801
|
+
|
802
|
+
# verify the required parameter 'domain_id' is set
|
803
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.patch_languageunderstanding_domain" if domain_id.nil?
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
# resource path
|
816
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
|
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 = @api_client.object_to_http_body(opts[:'body'])
|
837
|
+
|
838
|
+
auth_names = ['PureCloud OAuth']
|
839
|
+
data, status_code, headers = @api_client.call_api(:PATCH, 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 => 'NluDomain')
|
846
|
+
if @api_client.config.debugging
|
847
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#patch_languageunderstanding_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
848
|
+
end
|
849
|
+
return data, status_code, headers
|
850
|
+
end
|
851
|
+
|
852
|
+
# Create feedback for the NLU Domain Version.
|
853
|
+
#
|
854
|
+
# @param domain_id ID of the NLU domain.
|
855
|
+
# @param [Hash] opts the optional parameters
|
856
|
+
# @option opts [NluFeedbackRequest] :body
|
857
|
+
# @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)
|
860
|
+
return data
|
861
|
+
end
|
862
|
+
|
863
|
+
# Create feedback for the NLU Domain Version.
|
864
|
+
#
|
865
|
+
# @param domain_id ID of the NLU domain.
|
866
|
+
# @param [Hash] opts the optional parameters
|
867
|
+
# @option opts [NluFeedbackRequest] :body
|
868
|
+
# @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 = {})
|
870
|
+
if @api_client.config.debugging
|
871
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_feedback ..."
|
872
|
+
end
|
873
|
+
|
874
|
+
|
875
|
+
# verify the required parameter 'domain_id' is set
|
876
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_feedback" if domain_id.nil?
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
|
888
|
+
# resource path
|
889
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/feedback".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
|
890
|
+
|
891
|
+
# query parameters
|
892
|
+
query_params = {}
|
893
|
+
|
894
|
+
# header parameters
|
895
|
+
header_params = {}
|
896
|
+
|
897
|
+
# HTTP header 'Accept' (if needed)
|
898
|
+
local_header_accept = ['application/json']
|
899
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
900
|
+
|
901
|
+
# HTTP header 'Content-Type'
|
902
|
+
local_header_content_type = ['application/json']
|
903
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
904
|
+
|
905
|
+
# form parameters
|
906
|
+
form_params = {}
|
907
|
+
|
908
|
+
# http body (model)
|
909
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
910
|
+
|
911
|
+
auth_names = ['PureCloud OAuth']
|
912
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
913
|
+
:header_params => header_params,
|
914
|
+
:query_params => query_params,
|
915
|
+
:form_params => form_params,
|
916
|
+
:body => post_body,
|
917
|
+
:auth_names => auth_names,
|
918
|
+
:return_type => 'NluFeedbackResponse')
|
919
|
+
if @api_client.config.debugging
|
920
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domain_feedback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
921
|
+
end
|
922
|
+
return data, status_code, headers
|
923
|
+
end
|
924
|
+
|
925
|
+
# Detect intent, entities, etc. in the submitted text using the specified NLU domain version.
|
926
|
+
#
|
927
|
+
# @param domain_id ID of the NLU domain.
|
928
|
+
# @param domain_version_id ID of the NLU domain version.
|
929
|
+
# @param [Hash] opts the optional parameters
|
930
|
+
# @option opts [NluDetectionRequest] :body
|
931
|
+
# @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)
|
934
|
+
return data
|
935
|
+
end
|
936
|
+
|
937
|
+
# Detect intent, entities, etc. in the submitted text using the specified NLU domain version.
|
938
|
+
#
|
939
|
+
# @param domain_id ID of the NLU domain.
|
940
|
+
# @param domain_version_id ID of the NLU domain version.
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @option opts [NluDetectionRequest] :body
|
943
|
+
# @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 = {})
|
945
|
+
if @api_client.config.debugging
|
946
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_version_detect ..."
|
947
|
+
end
|
948
|
+
|
949
|
+
|
950
|
+
# verify the required parameter 'domain_id' is set
|
951
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_detect" if domain_id.nil?
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
# verify the required parameter 'domain_version_id' is set
|
959
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_detect" if domain_version_id.nil?
|
960
|
+
|
961
|
+
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
# resource path
|
972
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/detect".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'domainVersionId' + '}', domain_version_id.to_s)
|
973
|
+
|
974
|
+
# query parameters
|
975
|
+
query_params = {}
|
976
|
+
|
977
|
+
# header parameters
|
978
|
+
header_params = {}
|
979
|
+
|
980
|
+
# HTTP header 'Accept' (if needed)
|
981
|
+
local_header_accept = ['application/json']
|
982
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
983
|
+
|
984
|
+
# HTTP header 'Content-Type'
|
985
|
+
local_header_content_type = ['application/json']
|
986
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
987
|
+
|
988
|
+
# form parameters
|
989
|
+
form_params = {}
|
990
|
+
|
991
|
+
# http body (model)
|
992
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
993
|
+
|
994
|
+
auth_names = ['PureCloud OAuth']
|
995
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
996
|
+
:header_params => header_params,
|
997
|
+
:query_params => query_params,
|
998
|
+
:form_params => form_params,
|
999
|
+
:body => post_body,
|
1000
|
+
:auth_names => auth_names,
|
1001
|
+
:return_type => 'NluDetectionResponse')
|
1002
|
+
if @api_client.config.debugging
|
1003
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domain_version_detect\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1004
|
+
end
|
1005
|
+
return data, status_code, headers
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Publish the draft NLU Domain Version.
|
1009
|
+
#
|
1010
|
+
# @param domain_id ID of the NLU domain.
|
1011
|
+
# @param domain_version_id ID of the NLU domain version.
|
1012
|
+
# @param [Hash] opts the optional parameters
|
1013
|
+
# @return [NluDomainVersion]
|
1014
|
+
def post_languageunderstanding_domain_version_publish(domain_id, domain_version_id, opts = {})
|
1015
|
+
data, _status_code, _headers = post_languageunderstanding_domain_version_publish_with_http_info(domain_id, domain_version_id, opts)
|
1016
|
+
return data
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# Publish the draft NLU Domain Version.
|
1020
|
+
#
|
1021
|
+
# @param domain_id ID of the NLU domain.
|
1022
|
+
# @param domain_version_id ID of the NLU domain version.
|
1023
|
+
# @param [Hash] opts the optional parameters
|
1024
|
+
# @return [Array<(NluDomainVersion, Fixnum, Hash)>] NluDomainVersion data, response status code and response headers
|
1025
|
+
def post_languageunderstanding_domain_version_publish_with_http_info(domain_id, domain_version_id, opts = {})
|
1026
|
+
if @api_client.config.debugging
|
1027
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_version_publish ..."
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
|
1031
|
+
# verify the required parameter 'domain_id' is set
|
1032
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_publish" if domain_id.nil?
|
1033
|
+
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
1039
|
+
# verify the required parameter 'domain_version_id' is set
|
1040
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_publish" if domain_version_id.nil?
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
# resource path
|
1047
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/publish".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'domainVersionId' + '}', domain_version_id.to_s)
|
1048
|
+
|
1049
|
+
# query parameters
|
1050
|
+
query_params = {}
|
1051
|
+
|
1052
|
+
# header parameters
|
1053
|
+
header_params = {}
|
1054
|
+
|
1055
|
+
# HTTP header 'Accept' (if needed)
|
1056
|
+
local_header_accept = ['application/json']
|
1057
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1058
|
+
|
1059
|
+
# HTTP header 'Content-Type'
|
1060
|
+
local_header_content_type = ['application/json']
|
1061
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1062
|
+
|
1063
|
+
# form parameters
|
1064
|
+
form_params = {}
|
1065
|
+
|
1066
|
+
# http body (model)
|
1067
|
+
post_body = nil
|
1068
|
+
|
1069
|
+
auth_names = ['PureCloud OAuth']
|
1070
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1071
|
+
:header_params => header_params,
|
1072
|
+
:query_params => query_params,
|
1073
|
+
:form_params => form_params,
|
1074
|
+
:body => post_body,
|
1075
|
+
:auth_names => auth_names,
|
1076
|
+
:return_type => 'NluDomainVersion')
|
1077
|
+
if @api_client.config.debugging
|
1078
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domain_version_publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1079
|
+
end
|
1080
|
+
return data, status_code, headers
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Train the draft NLU Domain Version.
|
1084
|
+
#
|
1085
|
+
# @param domain_id ID of the NLU domain.
|
1086
|
+
# @param domain_version_id ID of the NLU domain version.
|
1087
|
+
# @param [Hash] opts the optional parameters
|
1088
|
+
# @return [NluDomainVersionTrainingResponse]
|
1089
|
+
def post_languageunderstanding_domain_version_train(domain_id, domain_version_id, opts = {})
|
1090
|
+
data, _status_code, _headers = post_languageunderstanding_domain_version_train_with_http_info(domain_id, domain_version_id, opts)
|
1091
|
+
return data
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
# Train the draft NLU Domain Version.
|
1095
|
+
#
|
1096
|
+
# @param domain_id ID of the NLU domain.
|
1097
|
+
# @param domain_version_id ID of the NLU domain version.
|
1098
|
+
# @param [Hash] opts the optional parameters
|
1099
|
+
# @return [Array<(NluDomainVersionTrainingResponse, Fixnum, Hash)>] NluDomainVersionTrainingResponse data, response status code and response headers
|
1100
|
+
def post_languageunderstanding_domain_version_train_with_http_info(domain_id, domain_version_id, opts = {})
|
1101
|
+
if @api_client.config.debugging
|
1102
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domain_version_train ..."
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
|
1106
|
+
# verify the required parameter 'domain_id' is set
|
1107
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_train" if domain_id.nil?
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
# verify the required parameter 'domain_version_id' is set
|
1115
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.post_languageunderstanding_domain_version_train" if domain_version_id.nil?
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
# resource path
|
1122
|
+
local_var_path = "/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/train".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s).sub('{' + 'domainVersionId' + '}', domain_version_id.to_s)
|
1123
|
+
|
1124
|
+
# query parameters
|
1125
|
+
query_params = {}
|
1126
|
+
|
1127
|
+
# header parameters
|
1128
|
+
header_params = {}
|
1129
|
+
|
1130
|
+
# HTTP header 'Accept' (if needed)
|
1131
|
+
local_header_accept = ['application/json']
|
1132
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1133
|
+
|
1134
|
+
# HTTP header 'Content-Type'
|
1135
|
+
local_header_content_type = ['application/json']
|
1136
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1137
|
+
|
1138
|
+
# form parameters
|
1139
|
+
form_params = {}
|
1140
|
+
|
1141
|
+
# http body (model)
|
1142
|
+
post_body = nil
|
1143
|
+
|
1144
|
+
auth_names = ['PureCloud OAuth']
|
1145
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1146
|
+
:header_params => header_params,
|
1147
|
+
:query_params => query_params,
|
1148
|
+
:form_params => form_params,
|
1149
|
+
:body => post_body,
|
1150
|
+
:auth_names => auth_names,
|
1151
|
+
:return_type => 'NluDomainVersionTrainingResponse')
|
1152
|
+
if @api_client.config.debugging
|
1153
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domain_version_train\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1154
|
+
end
|
1155
|
+
return data, status_code, headers
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
# Create an NLU Domain.
|
1159
|
+
#
|
1160
|
+
# @param [Hash] opts the optional parameters
|
1161
|
+
# @option opts [NluDomain] :body
|
1162
|
+
# @return [NluDomain]
|
1163
|
+
def post_languageunderstanding_domains(opts = {})
|
1164
|
+
data, _status_code, _headers = post_languageunderstanding_domains_with_http_info(opts)
|
1165
|
+
return data
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# Create an NLU Domain.
|
1169
|
+
#
|
1170
|
+
# @param [Hash] opts the optional parameters
|
1171
|
+
# @option opts [NluDomain] :body
|
1172
|
+
# @return [Array<(NluDomain, Fixnum, Hash)>] NluDomain data, response status code and response headers
|
1173
|
+
def post_languageunderstanding_domains_with_http_info(opts = {})
|
1174
|
+
if @api_client.config.debugging
|
1175
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.post_languageunderstanding_domains ..."
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
# resource path
|
1185
|
+
local_var_path = "/api/v2/languageunderstanding/domains".sub('{format}','json')
|
1186
|
+
|
1187
|
+
# query parameters
|
1188
|
+
query_params = {}
|
1189
|
+
|
1190
|
+
# header parameters
|
1191
|
+
header_params = {}
|
1192
|
+
|
1193
|
+
# HTTP header 'Accept' (if needed)
|
1194
|
+
local_header_accept = ['application/json']
|
1195
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1196
|
+
|
1197
|
+
# HTTP header 'Content-Type'
|
1198
|
+
local_header_content_type = ['application/json']
|
1199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1200
|
+
|
1201
|
+
# form parameters
|
1202
|
+
form_params = {}
|
1203
|
+
|
1204
|
+
# http body (model)
|
1205
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1206
|
+
|
1207
|
+
auth_names = ['PureCloud OAuth']
|
1208
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1209
|
+
:header_params => header_params,
|
1210
|
+
:query_params => query_params,
|
1211
|
+
:form_params => form_params,
|
1212
|
+
:body => post_body,
|
1213
|
+
:auth_names => auth_names,
|
1214
|
+
:return_type => 'NluDomain')
|
1215
|
+
if @api_client.config.debugging
|
1216
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#post_languageunderstanding_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1217
|
+
end
|
1218
|
+
return data, status_code, headers
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# Update an NLU Domain Version.
|
1222
|
+
#
|
1223
|
+
# @param domain_id ID of the NLU domain.
|
1224
|
+
# @param domain_version_id ID of the NLU domain version.
|
1225
|
+
# @param [Hash] opts the optional parameters
|
1226
|
+
# @option opts [NluDomainVersion] :body
|
1227
|
+
# @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)
|
1230
|
+
return data
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# Update an NLU Domain Version.
|
1234
|
+
#
|
1235
|
+
# @param domain_id ID of the NLU domain.
|
1236
|
+
# @param domain_version_id ID of the NLU domain version.
|
1237
|
+
# @param [Hash] opts the optional parameters
|
1238
|
+
# @option opts [NluDomainVersion] :body
|
1239
|
+
# @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 = {})
|
1241
|
+
if @api_client.config.debugging
|
1242
|
+
@api_client.config.logger.debug "Calling API: LanguageUnderstandingApi.put_languageunderstanding_domain_version ..."
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
|
1246
|
+
# verify the required parameter 'domain_id' is set
|
1247
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling LanguageUnderstandingApi.put_languageunderstanding_domain_version" if domain_id.nil?
|
1248
|
+
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
|
1254
|
+
# verify the required parameter 'domain_version_id' is set
|
1255
|
+
fail ArgumentError, "Missing the required parameter 'domain_version_id' when calling LanguageUnderstandingApi.put_languageunderstanding_domain_version" if domain_version_id.nil?
|
1256
|
+
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
# resource path
|
1268
|
+
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)
|
1269
|
+
|
1270
|
+
# query parameters
|
1271
|
+
query_params = {}
|
1272
|
+
|
1273
|
+
# header parameters
|
1274
|
+
header_params = {}
|
1275
|
+
|
1276
|
+
# HTTP header 'Accept' (if needed)
|
1277
|
+
local_header_accept = ['application/json']
|
1278
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1279
|
+
|
1280
|
+
# HTTP header 'Content-Type'
|
1281
|
+
local_header_content_type = ['application/json']
|
1282
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1283
|
+
|
1284
|
+
# form parameters
|
1285
|
+
form_params = {}
|
1286
|
+
|
1287
|
+
# http body (model)
|
1288
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1289
|
+
|
1290
|
+
auth_names = ['PureCloud OAuth']
|
1291
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1292
|
+
:header_params => header_params,
|
1293
|
+
:query_params => query_params,
|
1294
|
+
:form_params => form_params,
|
1295
|
+
:body => post_body,
|
1296
|
+
:auth_names => auth_names,
|
1297
|
+
:return_type => 'NluDomainVersion')
|
1298
|
+
if @api_client.config.debugging
|
1299
|
+
@api_client.config.logger.debug "API called: LanguageUnderstandingApi#put_languageunderstanding_domain_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1300
|
+
end
|
1301
|
+
return data, status_code, headers
|
1302
|
+
end
|
1303
|
+
end
|
1304
|
+
end
|