ibm_watson 0.13.0 → 0.14.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/lib/ibm_watson/assistant_v1.rb +84 -85
- data/lib/ibm_watson/assistant_v2.rb +8 -9
- data/lib/ibm_watson/common.rb +1 -1
- data/lib/ibm_watson/compare_comply_v1.rb +27 -28
- data/lib/ibm_watson/discovery_v1.rb +124 -125
- data/lib/ibm_watson/language_translator_v3.rb +17 -18
- data/lib/ibm_watson/natural_language_classifier_v1.rb +14 -15
- data/lib/ibm_watson/natural_language_understanding_v1.rb +9 -10
- data/lib/ibm_watson/personality_insights_v3.rb +5 -6
- data/lib/ibm_watson/speech_to_text_v1.rb +68 -69
- data/lib/ibm_watson/text_to_speech_v1.rb +27 -28
- data/lib/ibm_watson/tone_analyzer_v3.rb +7 -8
- data/lib/ibm_watson/version.rb +1 -1
- data/lib/ibm_watson/visual_recognition_v3.rb +24 -23
- data/test/integration/test_iam_assistant_v1.rb +1 -1
- data/test/integration/test_speech_to_text_v1.rb +1 -1
- data/test/unit/test_assistant_v1.rb +2 -2
- data/test/unit/test_configure_http_client.rb +1 -1
- data/test/unit/test_personality_insights_v3.rb +4 -4
- data/test/unit/test_tone_analyzer_v3.rb +4 -5
- data/test/unit/test_vcap_using_personality_insights.rb +4 -4
- metadata +16 -7
- data/lib/ibm_watson/detailed_response.rb +0 -21
- data/lib/ibm_watson/iam_token_manager.rb +0 -152
- data/lib/ibm_watson/watson_api_exception.rb +0 -41
- data/lib/ibm_watson/watson_service.rb +0 -285
- data/test/unit/test_iam_token_manager.rb +0 -175
@@ -21,16 +21,15 @@
|
|
21
21
|
require "concurrent"
|
22
22
|
require "erb"
|
23
23
|
require "json"
|
24
|
-
require_relative "./detailed_response"
|
25
|
-
require_relative "./common.rb"
|
26
24
|
|
27
|
-
|
25
|
+
require "ibm_cloud_sdk_core"
|
26
|
+
require_relative "./common.rb"
|
28
27
|
|
29
28
|
# Module for the Watson APIs
|
30
29
|
module IBMWatson
|
31
30
|
##
|
32
31
|
# The Assistant V1 service.
|
33
|
-
class AssistantV1 <
|
32
|
+
class AssistantV1 < IBMCloudSdkCore::BaseService
|
34
33
|
include Concurrent::Async
|
35
34
|
##
|
36
35
|
# @!method initialize(args)
|
@@ -112,13 +111,13 @@ module IBMWatson
|
|
112
111
|
# were triggered, and messages from the log.
|
113
112
|
# @param nodes_visited_details [Boolean] Whether to include additional diagnostic information about the dialog nodes that
|
114
113
|
# were visited during processing of the message.
|
115
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
114
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
116
115
|
def message(workspace_id:, input: nil, alternate_intents: nil, context: nil, entities: nil, intents: nil, output: nil, nodes_visited_details: nil)
|
117
116
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
118
117
|
|
119
118
|
headers = {
|
120
119
|
}
|
121
|
-
headers = Common.new.
|
120
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "message")
|
122
121
|
|
123
122
|
params = {
|
124
123
|
"version" => @version,
|
@@ -164,11 +163,11 @@ module IBMWatson
|
|
164
163
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
165
164
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
166
165
|
# the response.
|
167
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
166
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
168
167
|
def list_workspaces(page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
169
168
|
headers = {
|
170
169
|
}
|
171
|
-
headers = Common.new.
|
170
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_workspaces")
|
172
171
|
|
173
172
|
params = {
|
174
173
|
"version" => @version,
|
@@ -213,11 +212,11 @@ module IBMWatson
|
|
213
212
|
# @param learning_opt_out [Boolean] Whether training data from the workspace can be used by IBM for general service
|
214
213
|
# improvements. `true` indicates that workspace training data is not to be used.
|
215
214
|
# @param system_settings [WorkspaceSystemSettings] Global settings for the workspace.
|
216
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
215
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
217
216
|
def create_workspace(name: nil, description: nil, language: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, metadata: nil, learning_opt_out: nil, system_settings: nil)
|
218
217
|
headers = {
|
219
218
|
}
|
220
|
-
headers = Common.new.
|
219
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_workspace")
|
221
220
|
|
222
221
|
params = {
|
223
222
|
"version" => @version
|
@@ -266,13 +265,13 @@ module IBMWatson
|
|
266
265
|
# @param sort [String] Indicates how the returned workspace data will be sorted. This parameter is valid
|
267
266
|
# only if **export**=`true`. Specify `sort=stable` to sort all workspace objects by
|
268
267
|
# unique identifier, in ascending alphabetical order.
|
269
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
268
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
270
269
|
def get_workspace(workspace_id:, export: nil, include_audit: nil, sort: nil)
|
271
270
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
272
271
|
|
273
272
|
headers = {
|
274
273
|
}
|
275
|
-
headers = Common.new.
|
274
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_workspace")
|
276
275
|
|
277
276
|
params = {
|
278
277
|
"version" => @version,
|
@@ -325,13 +324,13 @@ module IBMWatson
|
|
325
324
|
# If **append**=`true`, existing elements are preserved, and the new elements are
|
326
325
|
# added. If any elements in the new data collide with existing elements, the update
|
327
326
|
# request fails.
|
328
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
327
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
329
328
|
def update_workspace(workspace_id:, name: nil, description: nil, language: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, append: nil)
|
330
329
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
331
330
|
|
332
331
|
headers = {
|
333
332
|
}
|
334
|
-
headers = Common.new.
|
333
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_workspace")
|
335
334
|
|
336
335
|
params = {
|
337
336
|
"version" => @version,
|
@@ -378,7 +377,7 @@ module IBMWatson
|
|
378
377
|
|
379
378
|
headers = {
|
380
379
|
}
|
381
|
-
headers = Common.new.
|
380
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_workspace")
|
382
381
|
|
383
382
|
params = {
|
384
383
|
"version" => @version
|
@@ -418,13 +417,13 @@ module IBMWatson
|
|
418
417
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
419
418
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
420
419
|
# the response.
|
421
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
420
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
422
421
|
def list_intents(workspace_id:, export: nil, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
423
422
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
424
423
|
|
425
424
|
headers = {
|
426
425
|
}
|
427
|
-
headers = Common.new.
|
426
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_intents")
|
428
427
|
|
429
428
|
params = {
|
430
429
|
"version" => @version,
|
@@ -464,7 +463,7 @@ module IBMWatson
|
|
464
463
|
# @param description [String] The description of the intent. This string cannot contain carriage return,
|
465
464
|
# newline, or tab characters, and it must be no longer than 128 characters.
|
466
465
|
# @param examples [Array[CreateExample]] An array of user input examples for the intent.
|
467
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
466
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
468
467
|
def create_intent(workspace_id:, intent:, description: nil, examples: nil)
|
469
468
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
470
469
|
|
@@ -472,7 +471,7 @@ module IBMWatson
|
|
472
471
|
|
473
472
|
headers = {
|
474
473
|
}
|
475
|
-
headers = Common.new.
|
474
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_intent")
|
476
475
|
|
477
476
|
params = {
|
478
477
|
"version" => @version
|
@@ -512,7 +511,7 @@ module IBMWatson
|
|
512
511
|
# itself. If **export**=`true`, all content, including subelements, is included.
|
513
512
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
514
513
|
# the response.
|
515
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
514
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
516
515
|
def get_intent(workspace_id:, intent:, export: nil, include_audit: nil)
|
517
516
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
518
517
|
|
@@ -520,7 +519,7 @@ module IBMWatson
|
|
520
519
|
|
521
520
|
headers = {
|
522
521
|
}
|
523
|
-
headers = Common.new.
|
522
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_intent")
|
524
523
|
|
525
524
|
params = {
|
526
525
|
"version" => @version,
|
@@ -557,7 +556,7 @@ module IBMWatson
|
|
557
556
|
# - It must be no longer than 128 characters.
|
558
557
|
# @param new_description [String] The description of the intent.
|
559
558
|
# @param new_examples [Array[CreateExample]] An array of user input examples for the intent.
|
560
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
559
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
561
560
|
def update_intent(workspace_id:, intent:, new_intent: nil, new_description: nil, new_examples: nil)
|
562
561
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
563
562
|
|
@@ -565,7 +564,7 @@ module IBMWatson
|
|
565
564
|
|
566
565
|
headers = {
|
567
566
|
}
|
568
|
-
headers = Common.new.
|
567
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_intent")
|
569
568
|
|
570
569
|
params = {
|
571
570
|
"version" => @version
|
@@ -607,7 +606,7 @@ module IBMWatson
|
|
607
606
|
|
608
607
|
headers = {
|
609
608
|
}
|
610
|
-
headers = Common.new.
|
609
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_intent")
|
611
610
|
|
612
611
|
params = {
|
613
612
|
"version" => @version
|
@@ -645,7 +644,7 @@ module IBMWatson
|
|
645
644
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
646
645
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
647
646
|
# the response.
|
648
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
647
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
649
648
|
def list_examples(workspace_id:, intent:, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
650
649
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
651
650
|
|
@@ -653,7 +652,7 @@ module IBMWatson
|
|
653
652
|
|
654
653
|
headers = {
|
655
654
|
}
|
656
|
-
headers = Common.new.
|
655
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_examples")
|
657
656
|
|
658
657
|
params = {
|
659
658
|
"version" => @version,
|
@@ -691,7 +690,7 @@ module IBMWatson
|
|
691
690
|
# - It cannot consist of only whitespace characters.
|
692
691
|
# - It must be no longer than 1024 characters.
|
693
692
|
# @param mentions [Array[Mentions]] An array of contextual entity mentions.
|
694
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
693
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
695
694
|
def create_example(workspace_id:, intent:, text:, mentions: nil)
|
696
695
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
697
696
|
|
@@ -701,7 +700,7 @@ module IBMWatson
|
|
701
700
|
|
702
701
|
headers = {
|
703
702
|
}
|
704
|
-
headers = Common.new.
|
703
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_example")
|
705
704
|
|
706
705
|
params = {
|
707
706
|
"version" => @version
|
@@ -737,7 +736,7 @@ module IBMWatson
|
|
737
736
|
# @param text [String] The text of the user input example.
|
738
737
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
739
738
|
# the response.
|
740
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
739
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
741
740
|
def get_example(workspace_id:, intent:, text:, include_audit: nil)
|
742
741
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
743
742
|
|
@@ -747,7 +746,7 @@ module IBMWatson
|
|
747
746
|
|
748
747
|
headers = {
|
749
748
|
}
|
750
|
-
headers = Common.new.
|
749
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_example")
|
751
750
|
|
752
751
|
params = {
|
753
752
|
"version" => @version,
|
@@ -782,7 +781,7 @@ module IBMWatson
|
|
782
781
|
# - It cannot consist of only whitespace characters.
|
783
782
|
# - It must be no longer than 1024 characters.
|
784
783
|
# @param new_mentions [Array[Mentions]] An array of contextual entity mentions.
|
785
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
784
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
786
785
|
def update_example(workspace_id:, intent:, text:, new_text: nil, new_mentions: nil)
|
787
786
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
788
787
|
|
@@ -792,7 +791,7 @@ module IBMWatson
|
|
792
791
|
|
793
792
|
headers = {
|
794
793
|
}
|
795
|
-
headers = Common.new.
|
794
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_example")
|
796
795
|
|
797
796
|
params = {
|
798
797
|
"version" => @version
|
@@ -836,7 +835,7 @@ module IBMWatson
|
|
836
835
|
|
837
836
|
headers = {
|
838
837
|
}
|
839
|
-
headers = Common.new.
|
838
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_example")
|
840
839
|
|
841
840
|
params = {
|
842
841
|
"version" => @version
|
@@ -873,13 +872,13 @@ module IBMWatson
|
|
873
872
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
874
873
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
875
874
|
# the response.
|
876
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
875
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
877
876
|
def list_counterexamples(workspace_id:, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
878
877
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
879
878
|
|
880
879
|
headers = {
|
881
880
|
}
|
882
|
-
headers = Common.new.
|
881
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_counterexamples")
|
883
882
|
|
884
883
|
params = {
|
885
884
|
"version" => @version,
|
@@ -916,7 +915,7 @@ module IBMWatson
|
|
916
915
|
# - It cannot contain carriage return, newline, or tab characters
|
917
916
|
# - It cannot consist of only whitespace characters
|
918
917
|
# - It must be no longer than 1024 characters.
|
919
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
918
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
920
919
|
def create_counterexample(workspace_id:, text:)
|
921
920
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
922
921
|
|
@@ -924,7 +923,7 @@ module IBMWatson
|
|
924
923
|
|
925
924
|
headers = {
|
926
925
|
}
|
927
|
-
headers = Common.new.
|
926
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_counterexample")
|
928
927
|
|
929
928
|
params = {
|
930
929
|
"version" => @version
|
@@ -959,7 +958,7 @@ module IBMWatson
|
|
959
958
|
# @param text [String] The text of a user input counterexample (for example, `What are you wearing?`).
|
960
959
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
961
960
|
# the response.
|
962
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
961
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
963
962
|
def get_counterexample(workspace_id:, text:, include_audit: nil)
|
964
963
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
965
964
|
|
@@ -967,7 +966,7 @@ module IBMWatson
|
|
967
966
|
|
968
967
|
headers = {
|
969
968
|
}
|
970
|
-
headers = Common.new.
|
969
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_counterexample")
|
971
970
|
|
972
971
|
params = {
|
973
972
|
"version" => @version,
|
@@ -997,7 +996,7 @@ module IBMWatson
|
|
997
996
|
# @param workspace_id [String] Unique identifier of the workspace.
|
998
997
|
# @param text [String] The text of a user input counterexample (for example, `What are you wearing?`).
|
999
998
|
# @param new_text [String] The text of a user input counterexample.
|
1000
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
999
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1001
1000
|
def update_counterexample(workspace_id:, text:, new_text: nil)
|
1002
1001
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1003
1002
|
|
@@ -1005,7 +1004,7 @@ module IBMWatson
|
|
1005
1004
|
|
1006
1005
|
headers = {
|
1007
1006
|
}
|
1008
|
-
headers = Common.new.
|
1007
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_counterexample")
|
1009
1008
|
|
1010
1009
|
params = {
|
1011
1010
|
"version" => @version
|
@@ -1046,7 +1045,7 @@ module IBMWatson
|
|
1046
1045
|
|
1047
1046
|
headers = {
|
1048
1047
|
}
|
1049
|
-
headers = Common.new.
|
1048
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_counterexample")
|
1050
1049
|
|
1051
1050
|
params = {
|
1052
1051
|
"version" => @version
|
@@ -1086,13 +1085,13 @@ module IBMWatson
|
|
1086
1085
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
1087
1086
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1088
1087
|
# the response.
|
1089
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1088
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1090
1089
|
def list_entities(workspace_id:, export: nil, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
1091
1090
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1092
1091
|
|
1093
1092
|
headers = {
|
1094
1093
|
}
|
1095
|
-
headers = Common.new.
|
1094
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_entities")
|
1096
1095
|
|
1097
1096
|
params = {
|
1098
1097
|
"version" => @version,
|
@@ -1136,7 +1135,7 @@ module IBMWatson
|
|
1136
1135
|
# @param metadata [Object] Any metadata related to the value.
|
1137
1136
|
# @param values [Array[CreateValue]] An array of objects describing the entity values.
|
1138
1137
|
# @param fuzzy_match [Boolean] Whether to use fuzzy matching for the entity.
|
1139
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1138
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1140
1139
|
def create_entity(workspace_id:, entity:, description: nil, metadata: nil, values: nil, fuzzy_match: nil)
|
1141
1140
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1142
1141
|
|
@@ -1144,7 +1143,7 @@ module IBMWatson
|
|
1144
1143
|
|
1145
1144
|
headers = {
|
1146
1145
|
}
|
1147
|
-
headers = Common.new.
|
1146
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_entity")
|
1148
1147
|
|
1149
1148
|
params = {
|
1150
1149
|
"version" => @version
|
@@ -1186,7 +1185,7 @@ module IBMWatson
|
|
1186
1185
|
# itself. If **export**=`true`, all content, including subelements, is included.
|
1187
1186
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1188
1187
|
# the response.
|
1189
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1188
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1190
1189
|
def get_entity(workspace_id:, entity:, export: nil, include_audit: nil)
|
1191
1190
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1192
1191
|
|
@@ -1194,7 +1193,7 @@ module IBMWatson
|
|
1194
1193
|
|
1195
1194
|
headers = {
|
1196
1195
|
}
|
1197
|
-
headers = Common.new.
|
1196
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_entity")
|
1198
1197
|
|
1199
1198
|
params = {
|
1200
1199
|
"version" => @version,
|
@@ -1233,7 +1232,7 @@ module IBMWatson
|
|
1233
1232
|
# @param new_metadata [Object] Any metadata related to the entity.
|
1234
1233
|
# @param new_fuzzy_match [Boolean] Whether to use fuzzy matching for the entity.
|
1235
1234
|
# @param new_values [Array[CreateValue]] An array of entity values.
|
1236
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1235
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1237
1236
|
def update_entity(workspace_id:, entity:, new_entity: nil, new_description: nil, new_metadata: nil, new_fuzzy_match: nil, new_values: nil)
|
1238
1237
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1239
1238
|
|
@@ -1241,7 +1240,7 @@ module IBMWatson
|
|
1241
1240
|
|
1242
1241
|
headers = {
|
1243
1242
|
}
|
1244
|
-
headers = Common.new.
|
1243
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_entity")
|
1245
1244
|
|
1246
1245
|
params = {
|
1247
1246
|
"version" => @version
|
@@ -1285,7 +1284,7 @@ module IBMWatson
|
|
1285
1284
|
|
1286
1285
|
headers = {
|
1287
1286
|
}
|
1288
|
-
headers = Common.new.
|
1287
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_entity")
|
1289
1288
|
|
1290
1289
|
params = {
|
1291
1290
|
"version" => @version
|
@@ -1321,7 +1320,7 @@ module IBMWatson
|
|
1321
1320
|
# itself. If **export**=`true`, all content, including subelements, is included.
|
1322
1321
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1323
1322
|
# the response.
|
1324
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1323
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1325
1324
|
def list_mentions(workspace_id:, entity:, export: nil, include_audit: nil)
|
1326
1325
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1327
1326
|
|
@@ -1329,7 +1328,7 @@ module IBMWatson
|
|
1329
1328
|
|
1330
1329
|
headers = {
|
1331
1330
|
}
|
1332
|
-
headers = Common.new.
|
1331
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_mentions")
|
1333
1332
|
|
1334
1333
|
params = {
|
1335
1334
|
"version" => @version,
|
@@ -1371,7 +1370,7 @@ module IBMWatson
|
|
1371
1370
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
1372
1371
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1373
1372
|
# the response.
|
1374
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1373
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1375
1374
|
def list_values(workspace_id:, entity:, export: nil, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
1376
1375
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1377
1376
|
|
@@ -1379,7 +1378,7 @@ module IBMWatson
|
|
1379
1378
|
|
1380
1379
|
headers = {
|
1381
1380
|
}
|
1382
|
-
headers = Common.new.
|
1381
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_values")
|
1383
1382
|
|
1384
1383
|
params = {
|
1385
1384
|
"version" => @version,
|
@@ -1430,7 +1429,7 @@ module IBMWatson
|
|
1430
1429
|
# specify a pattern, see the
|
1431
1430
|
# [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#creating-entities).
|
1432
1431
|
# @param value_type [String] Specifies the type of value.
|
1433
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1432
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1434
1433
|
def create_value(workspace_id:, entity:, value:, metadata: nil, synonyms: nil, patterns: nil, value_type: nil)
|
1435
1434
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1436
1435
|
|
@@ -1440,7 +1439,7 @@ module IBMWatson
|
|
1440
1439
|
|
1441
1440
|
headers = {
|
1442
1441
|
}
|
1443
|
-
headers = Common.new.
|
1442
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_value")
|
1444
1443
|
|
1445
1444
|
params = {
|
1446
1445
|
"version" => @version
|
@@ -1482,7 +1481,7 @@ module IBMWatson
|
|
1482
1481
|
# itself. If **export**=`true`, all content, including subelements, is included.
|
1483
1482
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1484
1483
|
# the response.
|
1485
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1484
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1486
1485
|
def get_value(workspace_id:, entity:, value:, export: nil, include_audit: nil)
|
1487
1486
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1488
1487
|
|
@@ -1492,7 +1491,7 @@ module IBMWatson
|
|
1492
1491
|
|
1493
1492
|
headers = {
|
1494
1493
|
}
|
1495
|
-
headers = Common.new.
|
1494
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_value")
|
1496
1495
|
|
1497
1496
|
params = {
|
1498
1497
|
"version" => @version,
|
@@ -1541,7 +1540,7 @@ module IBMWatson
|
|
1541
1540
|
# expression no longer than 512 characters. For more information about how to
|
1542
1541
|
# specify a pattern, see the
|
1543
1542
|
# [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#creating-entities).
|
1544
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1543
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1545
1544
|
def update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil)
|
1546
1545
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1547
1546
|
|
@@ -1551,7 +1550,7 @@ module IBMWatson
|
|
1551
1550
|
|
1552
1551
|
headers = {
|
1553
1552
|
}
|
1554
|
-
headers = Common.new.
|
1553
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_value")
|
1555
1554
|
|
1556
1555
|
params = {
|
1557
1556
|
"version" => @version
|
@@ -1598,7 +1597,7 @@ module IBMWatson
|
|
1598
1597
|
|
1599
1598
|
headers = {
|
1600
1599
|
}
|
1601
|
-
headers = Common.new.
|
1600
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_value")
|
1602
1601
|
|
1603
1602
|
params = {
|
1604
1603
|
"version" => @version
|
@@ -1636,7 +1635,7 @@ module IBMWatson
|
|
1636
1635
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
1637
1636
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1638
1637
|
# the response.
|
1639
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1638
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1640
1639
|
def list_synonyms(workspace_id:, entity:, value:, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
1641
1640
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1642
1641
|
|
@@ -1646,7 +1645,7 @@ module IBMWatson
|
|
1646
1645
|
|
1647
1646
|
headers = {
|
1648
1647
|
}
|
1649
|
-
headers = Common.new.
|
1648
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_synonyms")
|
1650
1649
|
|
1651
1650
|
params = {
|
1652
1651
|
"version" => @version,
|
@@ -1683,7 +1682,7 @@ module IBMWatson
|
|
1683
1682
|
# - It cannot contain carriage return, newline, or tab characters.
|
1684
1683
|
# - It cannot consist of only whitespace characters.
|
1685
1684
|
# - It must be no longer than 64 characters.
|
1686
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1685
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1687
1686
|
def create_synonym(workspace_id:, entity:, value:, synonym:)
|
1688
1687
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1689
1688
|
|
@@ -1695,7 +1694,7 @@ module IBMWatson
|
|
1695
1694
|
|
1696
1695
|
headers = {
|
1697
1696
|
}
|
1698
|
-
headers = Common.new.
|
1697
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_synonym")
|
1699
1698
|
|
1700
1699
|
params = {
|
1701
1700
|
"version" => @version
|
@@ -1731,7 +1730,7 @@ module IBMWatson
|
|
1731
1730
|
# @param synonym [String] The text of the synonym.
|
1732
1731
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1733
1732
|
# the response.
|
1734
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1733
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1735
1734
|
def get_synonym(workspace_id:, entity:, value:, synonym:, include_audit: nil)
|
1736
1735
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1737
1736
|
|
@@ -1743,7 +1742,7 @@ module IBMWatson
|
|
1743
1742
|
|
1744
1743
|
headers = {
|
1745
1744
|
}
|
1746
|
-
headers = Common.new.
|
1745
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_synonym")
|
1747
1746
|
|
1748
1747
|
params = {
|
1749
1748
|
"version" => @version,
|
@@ -1777,7 +1776,7 @@ module IBMWatson
|
|
1777
1776
|
# - It cannot contain carriage return, newline, or tab characters.
|
1778
1777
|
# - It cannot consist of only whitespace characters.
|
1779
1778
|
# - It must be no longer than 64 characters.
|
1780
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1779
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1781
1780
|
def update_synonym(workspace_id:, entity:, value:, synonym:, new_synonym: nil)
|
1782
1781
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1783
1782
|
|
@@ -1789,7 +1788,7 @@ module IBMWatson
|
|
1789
1788
|
|
1790
1789
|
headers = {
|
1791
1790
|
}
|
1792
|
-
headers = Common.new.
|
1791
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_synonym")
|
1793
1792
|
|
1794
1793
|
params = {
|
1795
1794
|
"version" => @version
|
@@ -1835,7 +1834,7 @@ module IBMWatson
|
|
1835
1834
|
|
1836
1835
|
headers = {
|
1837
1836
|
}
|
1838
|
-
headers = Common.new.
|
1837
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_synonym")
|
1839
1838
|
|
1840
1839
|
params = {
|
1841
1840
|
"version" => @version
|
@@ -1871,13 +1870,13 @@ module IBMWatson
|
|
1871
1870
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
1872
1871
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1873
1872
|
# the response.
|
1874
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1873
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1875
1874
|
def list_dialog_nodes(workspace_id:, page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
|
1876
1875
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1877
1876
|
|
1878
1877
|
headers = {
|
1879
1878
|
}
|
1880
|
-
headers = Common.new.
|
1879
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_dialog_nodes")
|
1881
1880
|
|
1882
1881
|
params = {
|
1883
1882
|
"version" => @version,
|
@@ -1939,7 +1938,7 @@ module IBMWatson
|
|
1939
1938
|
# @param digress_out_slots [String] Whether the user can digress to top-level nodes while filling out slots.
|
1940
1939
|
# @param user_label [String] A label that can be displayed externally to describe the purpose of the node to
|
1941
1940
|
# users. This string must be no longer than 512 characters.
|
1942
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
1941
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1943
1942
|
def create_dialog_node(workspace_id:, dialog_node:, description: nil, conditions: nil, parent: nil, previous_sibling: nil, output: nil, context: nil, metadata: nil, next_step: nil, actions: nil, title: nil, node_type: nil, event_name: nil, variable: nil, digress_in: nil, digress_out: nil, digress_out_slots: nil, user_label: nil)
|
1944
1943
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1945
1944
|
|
@@ -1947,7 +1946,7 @@ module IBMWatson
|
|
1947
1946
|
|
1948
1947
|
headers = {
|
1949
1948
|
}
|
1950
|
-
headers = Common.new.
|
1949
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "create_dialog_node")
|
1951
1950
|
|
1952
1951
|
params = {
|
1953
1952
|
"version" => @version
|
@@ -1998,7 +1997,7 @@ module IBMWatson
|
|
1998
1997
|
# @param dialog_node [String] The dialog node ID (for example, `get_order`).
|
1999
1998
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
2000
1999
|
# the response.
|
2001
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
2000
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2002
2001
|
def get_dialog_node(workspace_id:, dialog_node:, include_audit: nil)
|
2003
2002
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
2004
2003
|
|
@@ -2006,7 +2005,7 @@ module IBMWatson
|
|
2006
2005
|
|
2007
2006
|
headers = {
|
2008
2007
|
}
|
2009
|
-
headers = Common.new.
|
2008
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "get_dialog_node")
|
2010
2009
|
|
2011
2010
|
params = {
|
2012
2011
|
"version" => @version,
|
@@ -2065,7 +2064,7 @@ module IBMWatson
|
|
2065
2064
|
# @param new_digress_out_slots [String] Whether the user can digress to top-level nodes while filling out slots.
|
2066
2065
|
# @param new_user_label [String] A label that can be displayed externally to describe the purpose of the node to
|
2067
2066
|
# users. This string must be no longer than 512 characters.
|
2068
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
2067
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2069
2068
|
def update_dialog_node(workspace_id:, dialog_node:, new_dialog_node: nil, new_description: nil, new_conditions: nil, new_parent: nil, new_previous_sibling: nil, new_output: nil, new_context: nil, new_metadata: nil, new_next_step: nil, new_title: nil, new_type: nil, new_event_name: nil, new_variable: nil, new_actions: nil, new_digress_in: nil, new_digress_out: nil, new_digress_out_slots: nil, new_user_label: nil)
|
2070
2069
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
2071
2070
|
|
@@ -2073,7 +2072,7 @@ module IBMWatson
|
|
2073
2072
|
|
2074
2073
|
headers = {
|
2075
2074
|
}
|
2076
|
-
headers = Common.new.
|
2075
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "update_dialog_node")
|
2077
2076
|
|
2078
2077
|
params = {
|
2079
2078
|
"version" => @version
|
@@ -2130,7 +2129,7 @@ module IBMWatson
|
|
2130
2129
|
|
2131
2130
|
headers = {
|
2132
2131
|
}
|
2133
|
-
headers = Common.new.
|
2132
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_dialog_node")
|
2134
2133
|
|
2135
2134
|
params = {
|
2136
2135
|
"version" => @version
|
@@ -2167,13 +2166,13 @@ module IBMWatson
|
|
2167
2166
|
# [documentation](https://cloud.ibm.com/docs/services/assistant/filter-reference.html#filter-query-syntax).
|
2168
2167
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
2169
2168
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
2170
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
2169
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2171
2170
|
def list_logs(workspace_id:, sort: nil, filter: nil, page_limit: nil, cursor: nil)
|
2172
2171
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
2173
2172
|
|
2174
2173
|
headers = {
|
2175
2174
|
}
|
2176
|
-
headers = Common.new.
|
2175
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_logs")
|
2177
2176
|
|
2178
2177
|
params = {
|
2179
2178
|
"version" => @version,
|
@@ -2212,13 +2211,13 @@ module IBMWatson
|
|
2212
2211
|
# reverse the sort order, prefix the parameter value with a minus sign (`-`).
|
2213
2212
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
2214
2213
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
2215
|
-
# @return [DetailedResponse] A `DetailedResponse` object representing the response.
|
2214
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2216
2215
|
def list_all_logs(filter:, sort: nil, page_limit: nil, cursor: nil)
|
2217
2216
|
raise ArgumentError.new("filter must be provided") if filter.nil?
|
2218
2217
|
|
2219
2218
|
headers = {
|
2220
2219
|
}
|
2221
|
-
headers = Common.new.
|
2220
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "list_all_logs")
|
2222
2221
|
|
2223
2222
|
params = {
|
2224
2223
|
"version" => @version,
|
@@ -2260,7 +2259,7 @@ module IBMWatson
|
|
2260
2259
|
|
2261
2260
|
headers = {
|
2262
2261
|
}
|
2263
|
-
headers = Common.new.
|
2262
|
+
headers = Common.new.get_sdk_headers(headers: headers, service_name: "conversation", service_version: "V1", operation_id: "delete_user_data")
|
2264
2263
|
|
2265
2264
|
params = {
|
2266
2265
|
"version" => @version,
|