ibm_watson 1.1.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -5
- data/lib/ibm_watson/assistant_v1.rb +156 -65
- data/lib/ibm_watson/assistant_v2.rb +76 -13
- data/lib/ibm_watson/compare_comply_v1.rb +11 -5
- data/lib/ibm_watson/discovery_v1.rb +19 -9
- data/lib/ibm_watson/discovery_v2.rb +25 -9
- data/lib/ibm_watson/language_translator_v3.rb +27 -13
- data/lib/ibm_watson/natural_language_classifier_v1.rb +10 -4
- data/lib/ibm_watson/natural_language_understanding_v1.rb +20 -10
- data/lib/ibm_watson/personality_insights_v3.rb +17 -11
- data/lib/ibm_watson/speech_to_text_v1.rb +394 -168
- data/lib/ibm_watson/text_to_speech_v1.rb +57 -46
- data/lib/ibm_watson/tone_analyzer_v3.rb +11 -5
- data/lib/ibm_watson/version.rb +1 -1
- data/lib/ibm_watson/visual_recognition_v3.rb +15 -7
- data/lib/ibm_watson/visual_recognition_v4.rb +199 -4
- data/test/integration/test_assistant_v2.rb +7 -0
- data/test/integration/test_compare_comply_v1.rb +1 -12
- data/test/integration/test_speech_to_text_v1.rb +7 -2
- data/test/integration/test_visual_recognition_v4.rb +9 -0
- data/test/unit/test_assistant_v2.rb +66 -0
- data/test/unit/test_personality_insights_v3.rb +4 -0
- data/test/unit/test_visual_recognition_v4.rb +87 -0
- metadata +5 -6
- data/test/unit/test_vcap_using_personality_insights.rb +0 -161
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b197aaa628e62691bfa2a18c5b15bb0bc7688d73c3d8ed7f005d2e805f72f549
|
4
|
+
data.tar.gz: d9db08b75ff0bcc1fad6af8f9e6b234e97523dae6ce9d01eea5a65f64d46529a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9650dad4ea8eda2cd026015cc4863fc0a2834ab081f3602ed52be9dec392cac4fe47b4d9d918cba76be42994de3e53d658e147516b2272c3e4dfb68c102a54b6
|
7
|
+
data.tar.gz: cf68a5911478d0171f4e4fed85e839ec10187eeb5ec2fda145a812389787ad7a9245c5dfc51d6826f574b6ea80c29d01c807ec411a9286dd5203d8882ea4c176
|
data/README.md
CHANGED
@@ -129,7 +129,7 @@ IBM Cloud is migrating to token-based Identity and Access Management (IAM) authe
|
|
129
129
|
You supply either an IAM service **API key** or an **access token**:
|
130
130
|
|
131
131
|
* Use the API key to have the SDK manage the lifecycle of the access token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary.
|
132
|
-
* Use the access token if you want to manage the lifecycle yourself. For details, see [Authenticating with IAM tokens](https://cloud.ibm.com/docs/
|
132
|
+
* Use the access token if you want to manage the lifecycle yourself. For details, see [Authenticating with IAM tokens](https://cloud.ibm.com/docs/watson?topic=watson-iam).
|
133
133
|
|
134
134
|
#### Supplying the IAM API key
|
135
135
|
|
@@ -267,6 +267,28 @@ Headers: "
|
|
267
267
|
Result: "<response returned by service>"
|
268
268
|
```
|
269
269
|
|
270
|
+
### Transaction IDs
|
271
|
+
|
272
|
+
Every SDK call will return a response which will contain a transaction ID, accessible via the `x-global-transaction-id` header. This transaction ID is useful for troubleshooting and accessing relevant logs from your service instance.
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
require "ibm_watson"
|
276
|
+
include IBMWatson
|
277
|
+
|
278
|
+
assistant = AssistantV1.new(
|
279
|
+
authenticator: "<authenticator>"
|
280
|
+
version: "2017-04-21"
|
281
|
+
)
|
282
|
+
|
283
|
+
begin
|
284
|
+
response = assistant.list_workspaces
|
285
|
+
p "Global transaction id: #{response.headers["X-Global-Transaction-Id"]}"
|
286
|
+
rescue IBMCloudSdkCore::ApiException => e
|
287
|
+
# Global transaction on failed api call is contained in the error message
|
288
|
+
print "Error: ##{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
270
292
|
## Configuring the HTTP client
|
271
293
|
|
272
294
|
To set client configs like timeout or proxy use the `configure_http_client` function and pass in the configurations.
|
@@ -368,12 +390,18 @@ assistant = IBMWatson::AssistantV1.new(
|
|
368
390
|
|
369
391
|
```
|
370
392
|
|
393
|
+
## Questions
|
394
|
+
|
395
|
+
If you have issues with the APIs or have a question about the Watson services, see [Stack Overflow](https://stackoverflow.com/questions/tagged/ibm-watson+ruby).
|
396
|
+
|
371
397
|
## Ruby version
|
372
398
|
|
373
399
|
Tested on:
|
374
400
|
|
375
|
-
* MRI Ruby (RVM): 2.
|
376
|
-
* RubyInstaller (Windows x64): 2.
|
401
|
+
* MRI Ruby (RVM): 2.5.1, 2.6.1
|
402
|
+
* RubyInstaller (Windows x64): 2.5.1, 2.6.1
|
403
|
+
|
404
|
+
2.3.7 and 2.4.4 should still work but support will be deprecated in next major release.
|
377
405
|
|
378
406
|
## Contributing
|
379
407
|
|
@@ -397,6 +425,6 @@ We'd love to highlight cool open-source projects that use this SDK! If you'd lik
|
|
397
425
|
[examples]: https://github.com/watson-developer-cloud/ruby-sdk/tree/master/examples
|
398
426
|
[CONTRIBUTING]: https://github.com/watson-developer-cloud/ruby-sdk/blob/master/CONTRIBUTING.md
|
399
427
|
[license]: http://www.apache.org/licenses/LICENSE-2.0
|
400
|
-
[vcap_services]: https://cloud.ibm.com/docs/
|
428
|
+
[vcap_services]: https://cloud.ibm.com/docs/watson?topic=watson-vcapServices
|
401
429
|
[ibm-cloud-onboarding]: http://cloud.ibm.com/registration?target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Ruby
|
402
|
-
[ivar]: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/IVar.html
|
430
|
+
[ivar]: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/IVar.html
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# (C) Copyright IBM Corp.
|
3
|
+
# (C) Copyright IBM Corp. 2018, 2020.
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -33,6 +33,8 @@ module IBMWatson
|
|
33
33
|
# The Assistant V1 service.
|
34
34
|
class AssistantV1 < IBMCloudSdkCore::BaseService
|
35
35
|
include Concurrent::Async
|
36
|
+
DEFAULT_SERVICE_NAME = "assistant"
|
37
|
+
DEFAULT_SERVICE_URL = "https://gateway.watsonplatform.net/assistant/api"
|
36
38
|
##
|
37
39
|
# @!method initialize(args)
|
38
40
|
# Construct a new client for the Assistant service.
|
@@ -51,19 +53,23 @@ module IBMWatson
|
|
51
53
|
# @option args service_url [String] The base service URL to use when contacting the service.
|
52
54
|
# The base service_url may differ between IBM Cloud regions.
|
53
55
|
# @option args authenticator [Object] The Authenticator instance to be configured for this service.
|
56
|
+
# @option args service_name [String] The name of the service to configure. Will be used as the key to load
|
57
|
+
# any external configuration, if applicable.
|
54
58
|
def initialize(args = {})
|
55
59
|
@__async_initialized__ = false
|
56
60
|
defaults = {}
|
57
61
|
defaults[:version] = nil
|
58
|
-
defaults[:service_url] =
|
62
|
+
defaults[:service_url] = DEFAULT_SERVICE_URL
|
63
|
+
defaults[:service_name] = DEFAULT_SERVICE_NAME
|
59
64
|
defaults[:authenticator] = nil
|
65
|
+
user_service_url = args[:service_url] unless args[:service_url].nil?
|
60
66
|
args = defaults.merge(args)
|
61
67
|
@version = args[:version]
|
62
68
|
raise ArgumentError.new("version must be provided") if @version.nil?
|
63
69
|
|
64
|
-
args[:service_name] = "assistant"
|
65
70
|
args[:authenticator] = IBMCloudSdkCore::ConfigBasedAuthenticatorFactory.new.get_authenticator(service_name: args[:service_name]) if args[:authenticator].nil?
|
66
71
|
super
|
72
|
+
@service_url = user_service_url unless user_service_url.nil?
|
67
73
|
end
|
68
74
|
|
69
75
|
#########################
|
@@ -78,7 +84,7 @@ module IBMWatson
|
|
78
84
|
# **Important:** This method has been superseded by the new v2 runtime API. The v2
|
79
85
|
# API offers significant advantages, including ease of deployment, automatic state
|
80
86
|
# management, versioning, and search capabilities. For more information, see the
|
81
|
-
# [documentation](https://cloud.ibm.com/docs/
|
87
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-api-overview).
|
82
88
|
#
|
83
89
|
# There is no rate limit for this operation.
|
84
90
|
# @param workspace_id [String] Unique identifier of the workspace.
|
@@ -177,7 +183,7 @@ module IBMWatson
|
|
177
183
|
end
|
178
184
|
|
179
185
|
##
|
180
|
-
# @!method create_workspace(name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil)
|
186
|
+
# @!method create_workspace(name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, include_audit: nil)
|
181
187
|
# Create workspace.
|
182
188
|
# Create a workspace based on component objects. You must provide workspace
|
183
189
|
# components defining the content of the new workspace.
|
@@ -200,15 +206,18 @@ module IBMWatson
|
|
200
206
|
# @param counterexamples [Array[Counterexample]] An array of objects defining input examples that have been marked as irrelevant
|
201
207
|
# input.
|
202
208
|
# @param webhooks [Array[Webhook]]
|
209
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
210
|
+
# the response.
|
203
211
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
204
|
-
def create_workspace(name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil)
|
212
|
+
def create_workspace(name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, include_audit: nil)
|
205
213
|
headers = {
|
206
214
|
}
|
207
215
|
sdk_headers = Common.new.get_sdk_headers("conversation", "V1", "create_workspace")
|
208
216
|
headers.merge!(sdk_headers)
|
209
217
|
|
210
218
|
params = {
|
211
|
-
"version" => @version
|
219
|
+
"version" => @version,
|
220
|
+
"include_audit" => include_audit
|
212
221
|
}
|
213
222
|
|
214
223
|
data = {
|
@@ -284,7 +293,7 @@ module IBMWatson
|
|
284
293
|
end
|
285
294
|
|
286
295
|
##
|
287
|
-
# @!method update_workspace(workspace_id:, name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, append: nil)
|
296
|
+
# @!method update_workspace(workspace_id:, name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, append: nil, include_audit: nil)
|
288
297
|
# Update workspace.
|
289
298
|
# Update an existing workspace with new or modified data. You must provide component
|
290
299
|
# objects defining the content of the updated workspace.
|
@@ -308,17 +317,20 @@ module IBMWatson
|
|
308
317
|
# @param counterexamples [Array[Counterexample]] An array of objects defining input examples that have been marked as irrelevant
|
309
318
|
# input.
|
310
319
|
# @param webhooks [Array[Webhook]]
|
311
|
-
# @param append [Boolean] Whether the new data is to be appended to the existing data in the
|
320
|
+
# @param append [Boolean] Whether the new data is to be appended to the existing data in the object. If
|
312
321
|
# **append**=`false`, elements included in the new data completely replace the
|
313
322
|
# corresponding existing elements, including all subelements. For example, if the
|
314
|
-
# new data includes **entities** and **append**=`false`, all
|
315
|
-
# the workspace are discarded and replaced with the new
|
323
|
+
# new data for a workspace includes **entities** and **append**=`false`, all
|
324
|
+
# existing entities in the workspace are discarded and replaced with the new
|
325
|
+
# entities.
|
316
326
|
#
|
317
327
|
# If **append**=`true`, existing elements are preserved, and the new elements are
|
318
328
|
# added. If any elements in the new data collide with existing elements, the update
|
319
329
|
# request fails.
|
330
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
331
|
+
# the response.
|
320
332
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
321
|
-
def update_workspace(workspace_id:, name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, append: nil)
|
333
|
+
def update_workspace(workspace_id:, name: nil, description: nil, language: nil, metadata: nil, learning_opt_out: nil, system_settings: nil, intents: nil, entities: nil, dialog_nodes: nil, counterexamples: nil, webhooks: nil, append: nil, include_audit: nil)
|
322
334
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
323
335
|
|
324
336
|
headers = {
|
@@ -328,7 +340,8 @@ module IBMWatson
|
|
328
340
|
|
329
341
|
params = {
|
330
342
|
"version" => @version,
|
331
|
-
"append" => append
|
343
|
+
"append" => append,
|
344
|
+
"include_audit" => include_audit
|
332
345
|
}
|
333
346
|
|
334
347
|
data = {
|
@@ -443,7 +456,7 @@ module IBMWatson
|
|
443
456
|
end
|
444
457
|
|
445
458
|
##
|
446
|
-
# @!method create_intent(workspace_id:, intent:, description: nil, examples: nil)
|
459
|
+
# @!method create_intent(workspace_id:, intent:, description: nil, examples: nil, include_audit: nil)
|
447
460
|
# Create intent.
|
448
461
|
# Create a new intent.
|
449
462
|
#
|
@@ -460,8 +473,10 @@ module IBMWatson
|
|
460
473
|
# @param description [String] The description of the intent. This string cannot contain carriage return,
|
461
474
|
# newline, or tab characters.
|
462
475
|
# @param examples [Array[Example]] An array of user input examples for the intent.
|
476
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
477
|
+
# the response.
|
463
478
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
464
|
-
def create_intent(workspace_id:, intent:, description: nil, examples: nil)
|
479
|
+
def create_intent(workspace_id:, intent:, description: nil, examples: nil, include_audit: nil)
|
465
480
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
466
481
|
|
467
482
|
raise ArgumentError.new("intent must be provided") if intent.nil?
|
@@ -472,7 +487,8 @@ module IBMWatson
|
|
472
487
|
headers.merge!(sdk_headers)
|
473
488
|
|
474
489
|
params = {
|
475
|
-
"version" => @version
|
490
|
+
"version" => @version,
|
491
|
+
"include_audit" => include_audit
|
476
492
|
}
|
477
493
|
|
478
494
|
data = {
|
@@ -539,7 +555,7 @@ module IBMWatson
|
|
539
555
|
end
|
540
556
|
|
541
557
|
##
|
542
|
-
# @!method update_intent(workspace_id:, intent:, new_intent: nil, new_description: nil, new_examples: nil)
|
558
|
+
# @!method update_intent(workspace_id:, intent:, new_intent: nil, new_description: nil, new_examples: nil, append: nil, include_audit: nil)
|
543
559
|
# Update intent.
|
544
560
|
# Update an existing intent with new or modified data. You must provide component
|
545
561
|
# objects defining the content of the updated intent.
|
@@ -558,8 +574,19 @@ module IBMWatson
|
|
558
574
|
# @param new_description [String] The description of the intent. This string cannot contain carriage return,
|
559
575
|
# newline, or tab characters.
|
560
576
|
# @param new_examples [Array[Example]] An array of user input examples for the intent.
|
577
|
+
# @param append [Boolean] Whether the new data is to be appended to the existing data in the object. If
|
578
|
+
# **append**=`false`, elements included in the new data completely replace the
|
579
|
+
# corresponding existing elements, including all subelements. For example, if the
|
580
|
+
# new data for the intent includes **examples** and **append**=`false`, all existing
|
581
|
+
# examples for the intent are discarded and replaced with the new examples.
|
582
|
+
#
|
583
|
+
# If **append**=`true`, existing elements are preserved, and the new elements are
|
584
|
+
# added. If any elements in the new data collide with existing elements, the update
|
585
|
+
# request fails.
|
586
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
587
|
+
# the response.
|
561
588
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
562
|
-
def update_intent(workspace_id:, intent:, new_intent: nil, new_description: nil, new_examples: nil)
|
589
|
+
def update_intent(workspace_id:, intent:, new_intent: nil, new_description: nil, new_examples: nil, append: nil, include_audit: nil)
|
563
590
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
564
591
|
|
565
592
|
raise ArgumentError.new("intent must be provided") if intent.nil?
|
@@ -570,7 +597,9 @@ module IBMWatson
|
|
570
597
|
headers.merge!(sdk_headers)
|
571
598
|
|
572
599
|
params = {
|
573
|
-
"version" => @version
|
600
|
+
"version" => @version,
|
601
|
+
"append" => append,
|
602
|
+
"include_audit" => include_audit
|
574
603
|
}
|
575
604
|
|
576
605
|
data = {
|
@@ -679,11 +708,11 @@ module IBMWatson
|
|
679
708
|
end
|
680
709
|
|
681
710
|
##
|
682
|
-
# @!method create_example(workspace_id:, intent:, text:, mentions: nil)
|
711
|
+
# @!method create_example(workspace_id:, intent:, text:, mentions: nil, include_audit: nil)
|
683
712
|
# Create user input example.
|
684
713
|
# Add a new user input example to an intent.
|
685
714
|
#
|
686
|
-
# If you want to add multiple
|
715
|
+
# If you want to add multiple examples with a single API call, consider using the
|
687
716
|
# **[Update intent](#update-intent)** method instead.
|
688
717
|
#
|
689
718
|
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
@@ -695,8 +724,10 @@ module IBMWatson
|
|
695
724
|
# - It cannot contain carriage return, newline, or tab characters.
|
696
725
|
# - It cannot consist of only whitespace characters.
|
697
726
|
# @param mentions [Array[Mention]] An array of contextual entity mentions.
|
727
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
728
|
+
# the response.
|
698
729
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
699
|
-
def create_example(workspace_id:, intent:, text:, mentions: nil)
|
730
|
+
def create_example(workspace_id:, intent:, text:, mentions: nil, include_audit: nil)
|
700
731
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
701
732
|
|
702
733
|
raise ArgumentError.new("intent must be provided") if intent.nil?
|
@@ -709,7 +740,8 @@ module IBMWatson
|
|
709
740
|
headers.merge!(sdk_headers)
|
710
741
|
|
711
742
|
params = {
|
712
|
-
"version" => @version
|
743
|
+
"version" => @version,
|
744
|
+
"include_audit" => include_audit
|
713
745
|
}
|
714
746
|
|
715
747
|
data = {
|
@@ -773,7 +805,7 @@ module IBMWatson
|
|
773
805
|
end
|
774
806
|
|
775
807
|
##
|
776
|
-
# @!method update_example(workspace_id:, intent:, text:, new_text: nil, new_mentions: nil)
|
808
|
+
# @!method update_example(workspace_id:, intent:, text:, new_text: nil, new_mentions: nil, include_audit: nil)
|
777
809
|
# Update user input example.
|
778
810
|
# Update the text of a user input example.
|
779
811
|
#
|
@@ -790,8 +822,10 @@ module IBMWatson
|
|
790
822
|
# - It cannot contain carriage return, newline, or tab characters.
|
791
823
|
# - It cannot consist of only whitespace characters.
|
792
824
|
# @param new_mentions [Array[Mention]] An array of contextual entity mentions.
|
825
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
826
|
+
# the response.
|
793
827
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
794
|
-
def update_example(workspace_id:, intent:, text:, new_text: nil, new_mentions: nil)
|
828
|
+
def update_example(workspace_id:, intent:, text:, new_text: nil, new_mentions: nil, include_audit: nil)
|
795
829
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
796
830
|
|
797
831
|
raise ArgumentError.new("intent must be provided") if intent.nil?
|
@@ -804,7 +838,8 @@ module IBMWatson
|
|
804
838
|
headers.merge!(sdk_headers)
|
805
839
|
|
806
840
|
params = {
|
807
|
-
"version" => @version
|
841
|
+
"version" => @version,
|
842
|
+
"include_audit" => include_audit
|
808
843
|
}
|
809
844
|
|
810
845
|
data = {
|
@@ -912,7 +947,7 @@ module IBMWatson
|
|
912
947
|
end
|
913
948
|
|
914
949
|
##
|
915
|
-
# @!method create_counterexample(workspace_id:, text:)
|
950
|
+
# @!method create_counterexample(workspace_id:, text:, include_audit: nil)
|
916
951
|
# Create counterexample.
|
917
952
|
# Add a new counterexample to a workspace. Counterexamples are examples that have
|
918
953
|
# been marked as irrelevant input.
|
@@ -927,8 +962,10 @@ module IBMWatson
|
|
927
962
|
# the following restrictions:
|
928
963
|
# - It cannot contain carriage return, newline, or tab characters.
|
929
964
|
# - It cannot consist of only whitespace characters.
|
965
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
966
|
+
# the response.
|
930
967
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
931
|
-
def create_counterexample(workspace_id:, text:)
|
968
|
+
def create_counterexample(workspace_id:, text:, include_audit: nil)
|
932
969
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
933
970
|
|
934
971
|
raise ArgumentError.new("text must be provided") if text.nil?
|
@@ -939,7 +976,8 @@ module IBMWatson
|
|
939
976
|
headers.merge!(sdk_headers)
|
940
977
|
|
941
978
|
params = {
|
942
|
-
"version" => @version
|
979
|
+
"version" => @version,
|
980
|
+
"include_audit" => include_audit
|
943
981
|
}
|
944
982
|
|
945
983
|
data = {
|
@@ -1000,7 +1038,7 @@ module IBMWatson
|
|
1000
1038
|
end
|
1001
1039
|
|
1002
1040
|
##
|
1003
|
-
# @!method update_counterexample(workspace_id:, text:, new_text: nil)
|
1041
|
+
# @!method update_counterexample(workspace_id:, text:, new_text: nil, include_audit: nil)
|
1004
1042
|
# Update counterexample.
|
1005
1043
|
# Update the text of a counterexample. Counterexamples are examples that have been
|
1006
1044
|
# marked as irrelevant input.
|
@@ -1016,8 +1054,10 @@ module IBMWatson
|
|
1016
1054
|
# the following restrictions:
|
1017
1055
|
# - It cannot contain carriage return, newline, or tab characters.
|
1018
1056
|
# - It cannot consist of only whitespace characters.
|
1057
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1058
|
+
# the response.
|
1019
1059
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1020
|
-
def update_counterexample(workspace_id:, text:, new_text: nil)
|
1060
|
+
def update_counterexample(workspace_id:, text:, new_text: nil, include_audit: nil)
|
1021
1061
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1022
1062
|
|
1023
1063
|
raise ArgumentError.new("text must be provided") if text.nil?
|
@@ -1028,7 +1068,8 @@ module IBMWatson
|
|
1028
1068
|
headers.merge!(sdk_headers)
|
1029
1069
|
|
1030
1070
|
params = {
|
1031
|
-
"version" => @version
|
1071
|
+
"version" => @version,
|
1072
|
+
"include_audit" => include_audit
|
1032
1073
|
}
|
1033
1074
|
|
1034
1075
|
data = {
|
@@ -1137,7 +1178,7 @@ module IBMWatson
|
|
1137
1178
|
end
|
1138
1179
|
|
1139
1180
|
##
|
1140
|
-
# @!method create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil)
|
1181
|
+
# @!method create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil, include_audit: nil)
|
1141
1182
|
# Create entity.
|
1142
1183
|
# Create a new entity, or enable a system entity.
|
1143
1184
|
#
|
@@ -1157,8 +1198,10 @@ module IBMWatson
|
|
1157
1198
|
# @param metadata [Hash] Any metadata related to the entity.
|
1158
1199
|
# @param fuzzy_match [Boolean] Whether to use fuzzy matching for the entity.
|
1159
1200
|
# @param values [Array[CreateValue]] An array of objects describing the entity values.
|
1201
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1202
|
+
# the response.
|
1160
1203
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1161
|
-
def create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil)
|
1204
|
+
def create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil, include_audit: nil)
|
1162
1205
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1163
1206
|
|
1164
1207
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1169,7 +1212,8 @@ module IBMWatson
|
|
1169
1212
|
headers.merge!(sdk_headers)
|
1170
1213
|
|
1171
1214
|
params = {
|
1172
|
-
"version" => @version
|
1215
|
+
"version" => @version,
|
1216
|
+
"include_audit" => include_audit
|
1173
1217
|
}
|
1174
1218
|
|
1175
1219
|
data = {
|
@@ -1238,7 +1282,7 @@ module IBMWatson
|
|
1238
1282
|
end
|
1239
1283
|
|
1240
1284
|
##
|
1241
|
-
# @!method update_entity(workspace_id:, entity:, new_entity: nil, new_description: nil, new_metadata: nil, new_fuzzy_match: nil, new_values: nil)
|
1285
|
+
# @!method update_entity(workspace_id:, entity:, new_entity: nil, new_description: nil, new_metadata: nil, new_fuzzy_match: nil, new_values: nil, append: nil, include_audit: nil)
|
1242
1286
|
# Update entity.
|
1243
1287
|
# Update an existing entity with new or modified data. You must provide component
|
1244
1288
|
# objects defining the content of the updated entity.
|
@@ -1258,8 +1302,19 @@ module IBMWatson
|
|
1258
1302
|
# @param new_metadata [Hash] Any metadata related to the entity.
|
1259
1303
|
# @param new_fuzzy_match [Boolean] Whether to use fuzzy matching for the entity.
|
1260
1304
|
# @param new_values [Array[CreateValue]] An array of objects describing the entity values.
|
1305
|
+
# @param append [Boolean] Whether the new data is to be appended to the existing data in the entity. If
|
1306
|
+
# **append**=`false`, elements included in the new data completely replace the
|
1307
|
+
# corresponding existing elements, including all subelements. For example, if the
|
1308
|
+
# new data for the entity includes **values** and **append**=`false`, all existing
|
1309
|
+
# values for the entity are discarded and replaced with the new values.
|
1310
|
+
#
|
1311
|
+
# If **append**=`true`, existing elements are preserved, and the new elements are
|
1312
|
+
# added. If any elements in the new data collide with existing elements, the update
|
1313
|
+
# request fails.
|
1314
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1315
|
+
# the response.
|
1261
1316
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1262
|
-
def update_entity(workspace_id:, entity:, new_entity: nil, new_description: nil, new_metadata: nil, new_fuzzy_match: nil, new_values: nil)
|
1317
|
+
def update_entity(workspace_id:, entity:, new_entity: nil, new_description: nil, new_metadata: nil, new_fuzzy_match: nil, new_values: nil, append: nil, include_audit: nil)
|
1263
1318
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1264
1319
|
|
1265
1320
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1270,7 +1325,9 @@ module IBMWatson
|
|
1270
1325
|
headers.merge!(sdk_headers)
|
1271
1326
|
|
1272
1327
|
params = {
|
1273
|
-
"version" => @version
|
1328
|
+
"version" => @version,
|
1329
|
+
"append" => append,
|
1330
|
+
"include_audit" => include_audit
|
1274
1331
|
}
|
1275
1332
|
|
1276
1333
|
data = {
|
@@ -1431,7 +1488,7 @@ module IBMWatson
|
|
1431
1488
|
end
|
1432
1489
|
|
1433
1490
|
##
|
1434
|
-
# @!method create_value(workspace_id:, entity:, value:, metadata: nil, type: nil, synonyms: nil, patterns: nil)
|
1491
|
+
# @!method create_value(workspace_id:, entity:, value:, metadata: nil, type: nil, synonyms: nil, patterns: nil, include_audit: nil)
|
1435
1492
|
# Create entity value.
|
1436
1493
|
# Create a new value for an entity.
|
1437
1494
|
#
|
@@ -1456,9 +1513,11 @@ module IBMWatson
|
|
1456
1513
|
# @param patterns [Array[String]] An array of patterns for the entity value. A value can specify either synonyms or
|
1457
1514
|
# patterns (depending on the value type), but not both. A pattern is a regular
|
1458
1515
|
# expression; for more information about how to specify a pattern, see the
|
1459
|
-
# [documentation](https://cloud.ibm.com/docs/
|
1516
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
|
1517
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1518
|
+
# the response.
|
1460
1519
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1461
|
-
def create_value(workspace_id:, entity:, value:, metadata: nil, type: nil, synonyms: nil, patterns: nil)
|
1520
|
+
def create_value(workspace_id:, entity:, value:, metadata: nil, type: nil, synonyms: nil, patterns: nil, include_audit: nil)
|
1462
1521
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1463
1522
|
|
1464
1523
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1471,7 +1530,8 @@ module IBMWatson
|
|
1471
1530
|
headers.merge!(sdk_headers)
|
1472
1531
|
|
1473
1532
|
params = {
|
1474
|
-
"version" => @version
|
1533
|
+
"version" => @version,
|
1534
|
+
"include_audit" => include_audit
|
1475
1535
|
}
|
1476
1536
|
|
1477
1537
|
data = {
|
@@ -1542,7 +1602,7 @@ module IBMWatson
|
|
1542
1602
|
end
|
1543
1603
|
|
1544
1604
|
##
|
1545
|
-
# @!method update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil)
|
1605
|
+
# @!method update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil, append: nil, include_audit: nil)
|
1546
1606
|
# Update entity value.
|
1547
1607
|
# Update an existing entity value with new or modified data. You must provide
|
1548
1608
|
# component objects defining the content of the updated entity value.
|
@@ -1569,9 +1629,21 @@ module IBMWatson
|
|
1569
1629
|
# @param new_patterns [Array[String]] An array of patterns for the entity value. A value can specify either synonyms or
|
1570
1630
|
# patterns (depending on the value type), but not both. A pattern is a regular
|
1571
1631
|
# expression; for more information about how to specify a pattern, see the
|
1572
|
-
# [documentation](https://cloud.ibm.com/docs/
|
1632
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
|
1633
|
+
# @param append [Boolean] Whether the new data is to be appended to the existing data in the entity value.
|
1634
|
+
# If **append**=`false`, elements included in the new data completely replace the
|
1635
|
+
# corresponding existing elements, including all subelements. For example, if the
|
1636
|
+
# new data for the entity value includes **synonyms** and **append**=`false`, all
|
1637
|
+
# existing synonyms for the entity value are discarded and replaced with the new
|
1638
|
+
# synonyms.
|
1639
|
+
#
|
1640
|
+
# If **append**=`true`, existing elements are preserved, and the new elements are
|
1641
|
+
# added. If any elements in the new data collide with existing elements, the update
|
1642
|
+
# request fails.
|
1643
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1644
|
+
# the response.
|
1573
1645
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1574
|
-
def update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil)
|
1646
|
+
def update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil, append: nil, include_audit: nil)
|
1575
1647
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1576
1648
|
|
1577
1649
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1584,7 +1656,9 @@ module IBMWatson
|
|
1584
1656
|
headers.merge!(sdk_headers)
|
1585
1657
|
|
1586
1658
|
params = {
|
1587
|
-
"version" => @version
|
1659
|
+
"version" => @version,
|
1660
|
+
"append" => append,
|
1661
|
+
"include_audit" => include_audit
|
1588
1662
|
}
|
1589
1663
|
|
1590
1664
|
data = {
|
@@ -1700,7 +1774,7 @@ module IBMWatson
|
|
1700
1774
|
end
|
1701
1775
|
|
1702
1776
|
##
|
1703
|
-
# @!method create_synonym(workspace_id:, entity:, value:, synonym:)
|
1777
|
+
# @!method create_synonym(workspace_id:, entity:, value:, synonym:, include_audit: nil)
|
1704
1778
|
# Create entity value synonym.
|
1705
1779
|
# Add a new synonym to an entity value.
|
1706
1780
|
#
|
@@ -1716,8 +1790,10 @@ module IBMWatson
|
|
1716
1790
|
# @param synonym [String] The text of the synonym. This string must conform to the following restrictions:
|
1717
1791
|
# - It cannot contain carriage return, newline, or tab characters.
|
1718
1792
|
# - It cannot consist of only whitespace characters.
|
1793
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1794
|
+
# the response.
|
1719
1795
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1720
|
-
def create_synonym(workspace_id:, entity:, value:, synonym:)
|
1796
|
+
def create_synonym(workspace_id:, entity:, value:, synonym:, include_audit: nil)
|
1721
1797
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1722
1798
|
|
1723
1799
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1732,7 +1808,8 @@ module IBMWatson
|
|
1732
1808
|
headers.merge!(sdk_headers)
|
1733
1809
|
|
1734
1810
|
params = {
|
1735
|
-
"version" => @version
|
1811
|
+
"version" => @version,
|
1812
|
+
"include_audit" => include_audit
|
1736
1813
|
}
|
1737
1814
|
|
1738
1815
|
data = {
|
@@ -1798,7 +1875,7 @@ module IBMWatson
|
|
1798
1875
|
end
|
1799
1876
|
|
1800
1877
|
##
|
1801
|
-
# @!method update_synonym(workspace_id:, entity:, value:, synonym:, new_synonym: nil)
|
1878
|
+
# @!method update_synonym(workspace_id:, entity:, value:, synonym:, new_synonym: nil, include_audit: nil)
|
1802
1879
|
# Update entity value synonym.
|
1803
1880
|
# Update an existing entity value synonym with new text.
|
1804
1881
|
#
|
@@ -1815,8 +1892,10 @@ module IBMWatson
|
|
1815
1892
|
# @param new_synonym [String] The text of the synonym. This string must conform to the following restrictions:
|
1816
1893
|
# - It cannot contain carriage return, newline, or tab characters.
|
1817
1894
|
# - It cannot consist of only whitespace characters.
|
1895
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
1896
|
+
# the response.
|
1818
1897
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1819
|
-
def update_synonym(workspace_id:, entity:, value:, synonym:, new_synonym: nil)
|
1898
|
+
def update_synonym(workspace_id:, entity:, value:, synonym:, new_synonym: nil, include_audit: nil)
|
1820
1899
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1821
1900
|
|
1822
1901
|
raise ArgumentError.new("entity must be provided") if entity.nil?
|
@@ -1831,7 +1910,8 @@ module IBMWatson
|
|
1831
1910
|
headers.merge!(sdk_headers)
|
1832
1911
|
|
1833
1912
|
params = {
|
1834
|
-
"version" => @version
|
1913
|
+
"version" => @version,
|
1914
|
+
"include_audit" => include_audit
|
1835
1915
|
}
|
1836
1916
|
|
1837
1917
|
data = {
|
@@ -1940,7 +2020,7 @@ module IBMWatson
|
|
1940
2020
|
end
|
1941
2021
|
|
1942
2022
|
##
|
1943
|
-
# @!method 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, title: nil, type: nil, event_name: nil, variable: nil, actions: nil, digress_in: nil, digress_out: nil, digress_out_slots: nil, user_label: nil, disambiguation_opt_out: nil)
|
2023
|
+
# @!method 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, title: nil, type: nil, event_name: nil, variable: nil, actions: nil, digress_in: nil, digress_out: nil, digress_out_slots: nil, user_label: nil, disambiguation_opt_out: nil, include_audit: nil)
|
1944
2024
|
# Create dialog node.
|
1945
2025
|
# Create a new dialog node.
|
1946
2026
|
#
|
@@ -1963,7 +2043,7 @@ module IBMWatson
|
|
1963
2043
|
# node has no previous sibling.
|
1964
2044
|
# @param output [DialogNodeOutput] The output of the dialog node. For more information about how to specify dialog
|
1965
2045
|
# node output, see the
|
1966
|
-
# [documentation](https://cloud.ibm.com/docs/
|
2046
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
|
1967
2047
|
# @param context [Hash] The context for the dialog node.
|
1968
2048
|
# @param metadata [Hash] The metadata for the dialog node.
|
1969
2049
|
# @param next_step [DialogNodeNextStep] The next step to execute following this dialog node.
|
@@ -1980,9 +2060,12 @@ module IBMWatson
|
|
1980
2060
|
# @param digress_out_slots [String] Whether the user can digress to top-level nodes while filling out slots.
|
1981
2061
|
# @param user_label [String] A label that can be displayed externally to describe the purpose of the node to
|
1982
2062
|
# users.
|
1983
|
-
# @param disambiguation_opt_out [Boolean] Whether the dialog node should be excluded from disambiguation suggestions.
|
2063
|
+
# @param disambiguation_opt_out [Boolean] Whether the dialog node should be excluded from disambiguation suggestions. Valid
|
2064
|
+
# only when **type**=`standard` or `frame`.
|
2065
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
2066
|
+
# the response.
|
1984
2067
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1985
|
-
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, title: nil, type: nil, event_name: nil, variable: nil, actions: nil, digress_in: nil, digress_out: nil, digress_out_slots: nil, user_label: nil, disambiguation_opt_out: nil)
|
2068
|
+
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, title: nil, type: nil, event_name: nil, variable: nil, actions: nil, digress_in: nil, digress_out: nil, digress_out_slots: nil, user_label: nil, disambiguation_opt_out: nil, include_audit: nil)
|
1986
2069
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
1987
2070
|
|
1988
2071
|
raise ArgumentError.new("dialog_node must be provided") if dialog_node.nil?
|
@@ -1993,7 +2076,8 @@ module IBMWatson
|
|
1993
2076
|
headers.merge!(sdk_headers)
|
1994
2077
|
|
1995
2078
|
params = {
|
1996
|
-
"version" => @version
|
2079
|
+
"version" => @version,
|
2080
|
+
"include_audit" => include_audit
|
1997
2081
|
}
|
1998
2082
|
|
1999
2083
|
data = {
|
@@ -2071,7 +2155,7 @@ module IBMWatson
|
|
2071
2155
|
end
|
2072
2156
|
|
2073
2157
|
##
|
2074
|
-
# @!method 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, new_disambiguation_opt_out: nil)
|
2158
|
+
# @!method 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, new_disambiguation_opt_out: nil, include_audit: nil)
|
2075
2159
|
# Update dialog node.
|
2076
2160
|
# Update an existing dialog node with new or modified data.
|
2077
2161
|
#
|
@@ -2095,7 +2179,7 @@ module IBMWatson
|
|
2095
2179
|
# node has no previous sibling.
|
2096
2180
|
# @param new_output [DialogNodeOutput] The output of the dialog node. For more information about how to specify dialog
|
2097
2181
|
# node output, see the
|
2098
|
-
# [documentation](https://cloud.ibm.com/docs/
|
2182
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
|
2099
2183
|
# @param new_context [Hash] The context for the dialog node.
|
2100
2184
|
# @param new_metadata [Hash] The metadata for the dialog node.
|
2101
2185
|
# @param new_next_step [DialogNodeNextStep] The next step to execute following this dialog node.
|
@@ -2112,9 +2196,12 @@ module IBMWatson
|
|
2112
2196
|
# @param new_digress_out_slots [String] Whether the user can digress to top-level nodes while filling out slots.
|
2113
2197
|
# @param new_user_label [String] A label that can be displayed externally to describe the purpose of the node to
|
2114
2198
|
# users.
|
2115
|
-
# @param new_disambiguation_opt_out [Boolean] Whether the dialog node should be excluded from disambiguation suggestions.
|
2199
|
+
# @param new_disambiguation_opt_out [Boolean] Whether the dialog node should be excluded from disambiguation suggestions. Valid
|
2200
|
+
# only when **type**=`standard` or `frame`.
|
2201
|
+
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
2202
|
+
# the response.
|
2116
2203
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2117
|
-
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, new_disambiguation_opt_out: nil)
|
2204
|
+
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, new_disambiguation_opt_out: nil, include_audit: nil)
|
2118
2205
|
raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
|
2119
2206
|
|
2120
2207
|
raise ArgumentError.new("dialog_node must be provided") if dialog_node.nil?
|
@@ -2125,7 +2212,8 @@ module IBMWatson
|
|
2125
2212
|
headers.merge!(sdk_headers)
|
2126
2213
|
|
2127
2214
|
params = {
|
2128
|
-
"version" => @version
|
2215
|
+
"version" => @version,
|
2216
|
+
"include_audit" => include_audit
|
2129
2217
|
}
|
2130
2218
|
|
2131
2219
|
data = {
|
@@ -2215,7 +2303,7 @@ module IBMWatson
|
|
2215
2303
|
# reverse the sort order, prefix the parameter value with a minus sign (`-`).
|
2216
2304
|
# @param filter [String] A cacheable parameter that limits the results to those matching the specified
|
2217
2305
|
# filter. For more information, see the
|
2218
|
-
# [documentation](https://cloud.ibm.com/docs/
|
2306
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).
|
2219
2307
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
2220
2308
|
# @param cursor [String] A token identifying the page of results to retrieve.
|
2221
2309
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
@@ -2259,7 +2347,7 @@ module IBMWatson
|
|
2259
2347
|
# filter. You must specify a filter query that includes a value for `language`, as
|
2260
2348
|
# well as a value for `request.context.system.assistant_id`, `workspace_id`, or
|
2261
2349
|
# `request.context.metadata.deployment`. For more information, see the
|
2262
|
-
# [documentation](https://cloud.ibm.com/docs/
|
2350
|
+
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).
|
2263
2351
|
# @param sort [String] How to sort the returned log events. You can sort by **request_timestamp**. To
|
2264
2352
|
# reverse the sort order, prefix the parameter value with a minus sign (`-`).
|
2265
2353
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
@@ -2305,7 +2393,10 @@ module IBMWatson
|
|
2305
2393
|
# You associate a customer ID with data by passing the `X-Watson-Metadata` header
|
2306
2394
|
# with a request that passes data. For more information about personal data and
|
2307
2395
|
# customer IDs, see [Information
|
2308
|
-
# security](https://cloud.ibm.com/docs/
|
2396
|
+
# security](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security).
|
2397
|
+
#
|
2398
|
+
# This operation is limited to 4 requests per minute. For more information, see
|
2399
|
+
# **Rate limiting**.
|
2309
2400
|
# @param customer_id [String] The customer ID for which all data is to be deleted.
|
2310
2401
|
# @return [nil]
|
2311
2402
|
def delete_user_data(customer_id:)
|