ibm_watson 1.5.0 → 1.6.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 +1 -145
- data/lib/ibm_watson/assistant_v2.rb +95 -5
- data/lib/ibm_watson/compare_comply_v1.rb +1 -1
- data/lib/ibm_watson/discovery_v1.rb +1 -1
- data/lib/ibm_watson/discovery_v2.rb +590 -9
- data/lib/ibm_watson/language_translator_v3.rb +153 -48
- data/lib/ibm_watson/natural_language_classifier_v1.rb +1 -1
- data/lib/ibm_watson/natural_language_understanding_v1.rb +7 -9
- data/lib/ibm_watson/personality_insights_v3.rb +1 -1
- data/lib/ibm_watson/speech_to_text_v1.rb +40 -34
- data/lib/ibm_watson/text_to_speech_v1.rb +18 -11
- data/lib/ibm_watson/tone_analyzer_v3.rb +1 -1
- data/lib/ibm_watson/version.rb +1 -1
- data/lib/ibm_watson/visual_recognition_v3.rb +1 -1
- data/lib/ibm_watson/visual_recognition_v4.rb +1 -1
- data/test/integration/test_assistant_v2.rb +18 -0
- data/test/integration/test_discovery_v2.rb +118 -6
- data/test/integration/test_language_translator_v3.rb +5 -0
- data/test/unit/test_assistant_v1.rb +98 -98
- data/test/unit/test_assistant_v2.rb +40 -12
- data/test/unit/test_compare_comply_v1.rb +20 -20
- data/test/unit/test_discovery_v1.rb +125 -125
- data/test/unit/test_discovery_v2.rb +262 -29
- data/test/unit/test_language_translator_v3.rb +85 -24
- data/test/unit/test_natural_language_classifier_v1.rb +17 -17
- data/test/unit/test_natural_language_understanding_v1.rb +10 -10
- data/test/unit/test_personality_insights_v3.rb +14 -14
- data/test/unit/test_speech_to_text_v1.rb +97 -97
- data/test/unit/test_text_to_speech_v1.rb +41 -41
- data/test/unit/test_tone_analyzer_v3.rb +12 -12
- data/test/unit/test_visual_recognition_v3.rb +16 -16
- data/test/unit/test_visual_recognition_v4.rb +40 -40
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 409d6967d2bafb4da4062a2f5f5e6db07a110094af4ebb021782349907066d80
|
4
|
+
data.tar.gz: a4ec07dda5cf80e87b24f13c430d042cdced5805b40001aa8cd94052fd5b2c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c27789e4c9a650579efe3547833dbb329394ca3b3db339bb5b36c4203e973915f6be60142e55ea35a034be47627200a9d4e5387edd0fcbb75491e7a5122b3c78
|
7
|
+
data.tar.gz: 7c5b71128abfaff86e6f648bf07932357f01f6574d5ca3f27553ff17a851ed6e0abc037af56a9be4e64d4aa8a1d7ef645d534a852fd2653b54f5e0d9c343723c
|
@@ -34,7 +34,7 @@ module IBMWatson
|
|
34
34
|
class AssistantV1 < IBMCloudSdkCore::BaseService
|
35
35
|
include Concurrent::Async
|
36
36
|
DEFAULT_SERVICE_NAME = "assistant"
|
37
|
-
DEFAULT_SERVICE_URL = "https://
|
37
|
+
DEFAULT_SERVICE_URL = "https://api.us-south.assistant.watson.cloud.ibm.com"
|
38
38
|
##
|
39
39
|
# @!method initialize(args)
|
40
40
|
# Construct a new client for the Assistant service.
|
@@ -85,8 +85,6 @@ module IBMWatson
|
|
85
85
|
# API offers significant advantages, including ease of deployment, automatic state
|
86
86
|
# management, versioning, and search capabilities. For more information, see the
|
87
87
|
# [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-api-overview).
|
88
|
-
#
|
89
|
-
# There is no rate limit for this operation.
|
90
88
|
# @param workspace_id [String] Unique identifier of the workspace.
|
91
89
|
# @param input [MessageInput] An input object that includes the input text.
|
92
90
|
# @param intents [Array[RuntimeIntent]] Intents to use when evaluating the user input. Include intents from the previous
|
@@ -146,9 +144,6 @@ module IBMWatson
|
|
146
144
|
# @!method list_workspaces(page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
147
145
|
# List workspaces.
|
148
146
|
# List the workspaces associated with a Watson Assistant service instance.
|
149
|
-
#
|
150
|
-
# This operation is limited to 500 requests per 30 minutes. For more information,
|
151
|
-
# see **Rate limiting**.
|
152
147
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
153
148
|
# @param sort [String] The attribute by which returned workspaces will be sorted. To reverse the sort
|
154
149
|
# order, prefix the value with a minus sign (`-`).
|
@@ -187,9 +182,6 @@ module IBMWatson
|
|
187
182
|
# Create workspace.
|
188
183
|
# Create a workspace based on component objects. You must provide workspace
|
189
184
|
# components defining the content of the new workspace.
|
190
|
-
#
|
191
|
-
# This operation is limited to 30 requests per 30 minutes. For more information, see
|
192
|
-
# **Rate limiting**.
|
193
185
|
# @param name [String] The name of the workspace. This string cannot contain carriage return, newline, or
|
194
186
|
# tab characters.
|
195
187
|
# @param description [String] The description of the workspace. This string cannot contain carriage return,
|
@@ -251,10 +243,6 @@ module IBMWatson
|
|
251
243
|
# @!method get_workspace(workspace_id:, export: nil, include_audit: nil, sort: nil)
|
252
244
|
# Get information about a workspace.
|
253
245
|
# Get information about a workspace, optionally including all workspace content.
|
254
|
-
#
|
255
|
-
# With **export**=`false`, this operation is limited to 6000 requests per 5 minutes.
|
256
|
-
# With **export**=`true`, the limit is 20 requests per 30 minutes. For more
|
257
|
-
# information, see **Rate limiting**.
|
258
246
|
# @param workspace_id [String] Unique identifier of the workspace.
|
259
247
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
260
248
|
# **export**=`false`, the returned data includes only information about the element
|
@@ -297,9 +285,6 @@ module IBMWatson
|
|
297
285
|
# Update workspace.
|
298
286
|
# Update an existing workspace with new or modified data. You must provide component
|
299
287
|
# objects defining the content of the updated workspace.
|
300
|
-
#
|
301
|
-
# This operation is limited to 30 request per 30 minutes. For more information, see
|
302
|
-
# **Rate limiting**.
|
303
288
|
# @param workspace_id [String] Unique identifier of the workspace.
|
304
289
|
# @param name [String] The name of the workspace. This string cannot contain carriage return, newline, or
|
305
290
|
# tab characters.
|
@@ -375,9 +360,6 @@ module IBMWatson
|
|
375
360
|
# @!method delete_workspace(workspace_id:)
|
376
361
|
# Delete workspace.
|
377
362
|
# Delete a workspace from the service instance.
|
378
|
-
#
|
379
|
-
# This operation is limited to 30 requests per 30 minutes. For more information, see
|
380
|
-
# **Rate limiting**.
|
381
363
|
# @param workspace_id [String] Unique identifier of the workspace.
|
382
364
|
# @return [nil]
|
383
365
|
def delete_workspace(workspace_id:)
|
@@ -411,10 +393,6 @@ module IBMWatson
|
|
411
393
|
# @!method list_intents(workspace_id:, export: nil, page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
412
394
|
# List intents.
|
413
395
|
# List the intents for a workspace.
|
414
|
-
#
|
415
|
-
# With **export**=`false`, this operation is limited to 2000 requests per 30
|
416
|
-
# minutes. With **export**=`true`, the limit is 400 requests per 30 minutes. For
|
417
|
-
# more information, see **Rate limiting**.
|
418
396
|
# @param workspace_id [String] Unique identifier of the workspace.
|
419
397
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
420
398
|
# **export**=`false`, the returned data includes only information about the element
|
@@ -462,9 +440,6 @@ module IBMWatson
|
|
462
440
|
#
|
463
441
|
# If you want to create multiple intents with a single API call, consider using the
|
464
442
|
# **[Update workspace](#update-workspace)** method instead.
|
465
|
-
#
|
466
|
-
# This operation is limited to 2000 requests per 30 minutes. For more information,
|
467
|
-
# see **Rate limiting**.
|
468
443
|
# @param workspace_id [String] Unique identifier of the workspace.
|
469
444
|
# @param intent [String] The name of the intent. This string must conform to the following restrictions:
|
470
445
|
# - It can contain only Unicode alphanumeric, underscore, hyphen, and dot
|
@@ -514,10 +489,6 @@ module IBMWatson
|
|
514
489
|
# @!method get_intent(workspace_id:, intent:, export: nil, include_audit: nil)
|
515
490
|
# Get intent.
|
516
491
|
# Get information about an intent, optionally including all intent content.
|
517
|
-
#
|
518
|
-
# With **export**=`false`, this operation is limited to 6000 requests per 5 minutes.
|
519
|
-
# With **export**=`true`, the limit is 400 requests per 30 minutes. For more
|
520
|
-
# information, see **Rate limiting**.
|
521
492
|
# @param workspace_id [String] Unique identifier of the workspace.
|
522
493
|
# @param intent [String] The intent name.
|
523
494
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
@@ -562,9 +533,6 @@ module IBMWatson
|
|
562
533
|
#
|
563
534
|
# If you want to update multiple intents with a single API call, consider using the
|
564
535
|
# **[Update workspace](#update-workspace)** method instead.
|
565
|
-
#
|
566
|
-
# This operation is limited to 2000 requests per 30 minutes. For more information,
|
567
|
-
# see **Rate limiting**.
|
568
536
|
# @param workspace_id [String] Unique identifier of the workspace.
|
569
537
|
# @param intent [String] The intent name.
|
570
538
|
# @param new_intent [String] The name of the intent. This string must conform to the following restrictions:
|
@@ -625,9 +593,6 @@ module IBMWatson
|
|
625
593
|
# @!method delete_intent(workspace_id:, intent:)
|
626
594
|
# Delete intent.
|
627
595
|
# Delete an intent from a workspace.
|
628
|
-
#
|
629
|
-
# This operation is limited to 2000 requests per 30 minutes. For more information,
|
630
|
-
# see **Rate limiting**.
|
631
596
|
# @param workspace_id [String] Unique identifier of the workspace.
|
632
597
|
# @param intent [String] The intent name.
|
633
598
|
# @return [nil]
|
@@ -665,9 +630,6 @@ module IBMWatson
|
|
665
630
|
# List user input examples.
|
666
631
|
# List the user input examples for an intent, optionally including contextual entity
|
667
632
|
# mentions.
|
668
|
-
#
|
669
|
-
# This operation is limited to 2500 requests per 30 minutes. For more information,
|
670
|
-
# see **Rate limiting**.
|
671
633
|
# @param workspace_id [String] Unique identifier of the workspace.
|
672
634
|
# @param intent [String] The intent name.
|
673
635
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
@@ -714,9 +676,6 @@ module IBMWatson
|
|
714
676
|
#
|
715
677
|
# If you want to add multiple examples with a single API call, consider using the
|
716
678
|
# **[Update intent](#update-intent)** method instead.
|
717
|
-
#
|
718
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
719
|
-
# see **Rate limiting**.
|
720
679
|
# @param workspace_id [String] Unique identifier of the workspace.
|
721
680
|
# @param intent [String] The intent name.
|
722
681
|
# @param text [String] The text of a user input example. This string must conform to the following
|
@@ -766,9 +725,6 @@ module IBMWatson
|
|
766
725
|
# @!method get_example(workspace_id:, intent:, text:, include_audit: nil)
|
767
726
|
# Get user input example.
|
768
727
|
# Get information about a user input example.
|
769
|
-
#
|
770
|
-
# This operation is limited to 6000 requests per 5 minutes. For more information,
|
771
|
-
# see **Rate limiting**.
|
772
728
|
# @param workspace_id [String] Unique identifier of the workspace.
|
773
729
|
# @param intent [String] The intent name.
|
774
730
|
# @param text [String] The text of the user input example.
|
@@ -811,9 +767,6 @@ module IBMWatson
|
|
811
767
|
#
|
812
768
|
# If you want to update multiple examples with a single API call, consider using the
|
813
769
|
# **[Update intent](#update-intent)** method instead.
|
814
|
-
#
|
815
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
816
|
-
# see **Rate limiting**.
|
817
770
|
# @param workspace_id [String] Unique identifier of the workspace.
|
818
771
|
# @param intent [String] The intent name.
|
819
772
|
# @param text [String] The text of the user input example.
|
@@ -864,9 +817,6 @@ module IBMWatson
|
|
864
817
|
# @!method delete_example(workspace_id:, intent:, text:)
|
865
818
|
# Delete user input example.
|
866
819
|
# Delete a user input example from an intent.
|
867
|
-
#
|
868
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
869
|
-
# see **Rate limiting**.
|
870
820
|
# @param workspace_id [String] Unique identifier of the workspace.
|
871
821
|
# @param intent [String] The intent name.
|
872
822
|
# @param text [String] The text of the user input example.
|
@@ -907,9 +857,6 @@ module IBMWatson
|
|
907
857
|
# List counterexamples.
|
908
858
|
# List the counterexamples for a workspace. Counterexamples are examples that have
|
909
859
|
# been marked as irrelevant input.
|
910
|
-
#
|
911
|
-
# This operation is limited to 2500 requests per 30 minutes. For more information,
|
912
|
-
# see **Rate limiting**.
|
913
860
|
# @param workspace_id [String] Unique identifier of the workspace.
|
914
861
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
915
862
|
# @param sort [String] The attribute by which returned counterexamples will be sorted. To reverse the
|
@@ -954,9 +901,6 @@ module IBMWatson
|
|
954
901
|
#
|
955
902
|
# If you want to add multiple counterexamples with a single API call, consider using
|
956
903
|
# the **[Update workspace](#update-workspace)** method instead.
|
957
|
-
#
|
958
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
959
|
-
# see **Rate limiting**.
|
960
904
|
# @param workspace_id [String] Unique identifier of the workspace.
|
961
905
|
# @param text [String] The text of a user input marked as irrelevant input. This string must conform to
|
962
906
|
# the following restrictions:
|
@@ -1002,9 +946,6 @@ module IBMWatson
|
|
1002
946
|
# Get counterexample.
|
1003
947
|
# Get information about a counterexample. Counterexamples are examples that have
|
1004
948
|
# been marked as irrelevant input.
|
1005
|
-
#
|
1006
|
-
# This operation is limited to 6000 requests per 5 minutes. For more information,
|
1007
|
-
# see **Rate limiting**.
|
1008
949
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1009
950
|
# @param text [String] The text of a user input counterexample (for example, `What are you wearing?`).
|
1010
951
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
@@ -1042,12 +983,6 @@ module IBMWatson
|
|
1042
983
|
# Update counterexample.
|
1043
984
|
# Update the text of a counterexample. Counterexamples are examples that have been
|
1044
985
|
# marked as irrelevant input.
|
1045
|
-
#
|
1046
|
-
# If you want to update multiple counterexamples with a single API call, consider
|
1047
|
-
# using the **[Update workspace](#update-workspace)** method instead.
|
1048
|
-
#
|
1049
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1050
|
-
# see **Rate limiting**.
|
1051
986
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1052
987
|
# @param text [String] The text of a user input counterexample (for example, `What are you wearing?`).
|
1053
988
|
# @param new_text [String] The text of a user input marked as irrelevant input. This string must conform to
|
@@ -1094,9 +1029,6 @@ module IBMWatson
|
|
1094
1029
|
# Delete counterexample.
|
1095
1030
|
# Delete a counterexample from a workspace. Counterexamples are examples that have
|
1096
1031
|
# been marked as irrelevant input.
|
1097
|
-
#
|
1098
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1099
|
-
# see **Rate limiting**.
|
1100
1032
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1101
1033
|
# @param text [String] The text of a user input counterexample (for example, `What are you wearing?`).
|
1102
1034
|
# @return [nil]
|
@@ -1133,10 +1065,6 @@ module IBMWatson
|
|
1133
1065
|
# @!method list_entities(workspace_id:, export: nil, page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
1134
1066
|
# List entities.
|
1135
1067
|
# List the entities for a workspace.
|
1136
|
-
#
|
1137
|
-
# With **export**=`false`, this operation is limited to 1000 requests per 30
|
1138
|
-
# minutes. With **export**=`true`, the limit is 200 requests per 30 minutes. For
|
1139
|
-
# more information, see **Rate limiting**.
|
1140
1068
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1141
1069
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
1142
1070
|
# **export**=`false`, the returned data includes only information about the element
|
@@ -1184,9 +1112,6 @@ module IBMWatson
|
|
1184
1112
|
#
|
1185
1113
|
# If you want to create multiple entities with a single API call, consider using the
|
1186
1114
|
# **[Update workspace](#update-workspace)** method instead.
|
1187
|
-
#
|
1188
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1189
|
-
# see **Rate limiting**.
|
1190
1115
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1191
1116
|
# @param entity [String] The name of the entity. This string must conform to the following restrictions:
|
1192
1117
|
# - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
|
@@ -1241,10 +1166,6 @@ module IBMWatson
|
|
1241
1166
|
# @!method get_entity(workspace_id:, entity:, export: nil, include_audit: nil)
|
1242
1167
|
# Get entity.
|
1243
1168
|
# Get information about an entity, optionally including all entity content.
|
1244
|
-
#
|
1245
|
-
# With **export**=`false`, this operation is limited to 6000 requests per 5 minutes.
|
1246
|
-
# With **export**=`true`, the limit is 200 requests per 30 minutes. For more
|
1247
|
-
# information, see **Rate limiting**.
|
1248
1169
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1249
1170
|
# @param entity [String] The name of the entity.
|
1250
1171
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
@@ -1289,9 +1210,6 @@ module IBMWatson
|
|
1289
1210
|
#
|
1290
1211
|
# If you want to update multiple entities with a single API call, consider using the
|
1291
1212
|
# **[Update workspace](#update-workspace)** method instead.
|
1292
|
-
#
|
1293
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1294
|
-
# see **Rate limiting**.
|
1295
1213
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1296
1214
|
# @param entity [String] The name of the entity.
|
1297
1215
|
# @param new_entity [String] The name of the entity. This string must conform to the following restrictions:
|
@@ -1355,9 +1273,6 @@ module IBMWatson
|
|
1355
1273
|
# @!method delete_entity(workspace_id:, entity:)
|
1356
1274
|
# Delete entity.
|
1357
1275
|
# Delete an entity from a workspace, or disable a system entity.
|
1358
|
-
#
|
1359
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1360
|
-
# see **Rate limiting**.
|
1361
1276
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1362
1277
|
# @param entity [String] The name of the entity.
|
1363
1278
|
# @return [nil]
|
@@ -1395,9 +1310,6 @@ module IBMWatson
|
|
1395
1310
|
# List entity mentions.
|
1396
1311
|
# List mentions for a contextual entity. An entity mention is an occurrence of a
|
1397
1312
|
# contextual entity in the context of an intent user input example.
|
1398
|
-
#
|
1399
|
-
# This operation is limited to 200 requests per 30 minutes. For more information,
|
1400
|
-
# see **Rate limiting**.
|
1401
1313
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1402
1314
|
# @param entity [String] The name of the entity.
|
1403
1315
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
@@ -1441,9 +1353,6 @@ module IBMWatson
|
|
1441
1353
|
# @!method list_values(workspace_id:, entity:, export: nil, page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
1442
1354
|
# List entity values.
|
1443
1355
|
# List the values for an entity.
|
1444
|
-
#
|
1445
|
-
# This operation is limited to 2500 requests per 30 minutes. For more information,
|
1446
|
-
# see **Rate limiting**.
|
1447
1356
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1448
1357
|
# @param entity [String] The name of the entity.
|
1449
1358
|
# @param export [Boolean] Whether to include all element content in the returned data. If
|
@@ -1494,9 +1403,6 @@ module IBMWatson
|
|
1494
1403
|
#
|
1495
1404
|
# If you want to create multiple entity values with a single API call, consider
|
1496
1405
|
# using the **[Update entity](#update-entity)** method instead.
|
1497
|
-
#
|
1498
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1499
|
-
# see **Rate limiting**.
|
1500
1406
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1501
1407
|
# @param entity [String] The name of the entity.
|
1502
1408
|
# @param value [String] The text of the entity value. This string must conform to the following
|
@@ -1559,9 +1465,6 @@ module IBMWatson
|
|
1559
1465
|
# @!method get_value(workspace_id:, entity:, value:, export: nil, include_audit: nil)
|
1560
1466
|
# Get entity value.
|
1561
1467
|
# Get information about an entity value.
|
1562
|
-
#
|
1563
|
-
# This operation is limited to 6000 requests per 5 minutes. For more information,
|
1564
|
-
# see **Rate limiting**.
|
1565
1468
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1566
1469
|
# @param entity [String] The name of the entity.
|
1567
1470
|
# @param value [String] The text of the entity value.
|
@@ -1609,9 +1512,6 @@ module IBMWatson
|
|
1609
1512
|
#
|
1610
1513
|
# If you want to update multiple entity values with a single API call, consider
|
1611
1514
|
# using the **[Update entity](#update-entity)** method instead.
|
1612
|
-
#
|
1613
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1614
|
-
# see **Rate limiting**.
|
1615
1515
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1616
1516
|
# @param entity [String] The name of the entity.
|
1617
1517
|
# @param value [String] The text of the entity value.
|
@@ -1686,9 +1586,6 @@ module IBMWatson
|
|
1686
1586
|
# @!method delete_value(workspace_id:, entity:, value:)
|
1687
1587
|
# Delete entity value.
|
1688
1588
|
# Delete a value from an entity.
|
1689
|
-
#
|
1690
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1691
|
-
# see **Rate limiting**.
|
1692
1589
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1693
1590
|
# @param entity [String] The name of the entity.
|
1694
1591
|
# @param value [String] The text of the entity value.
|
@@ -1728,9 +1625,6 @@ module IBMWatson
|
|
1728
1625
|
# @!method list_synonyms(workspace_id:, entity:, value:, page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
1729
1626
|
# List entity value synonyms.
|
1730
1627
|
# List the synonyms for an entity value.
|
1731
|
-
#
|
1732
|
-
# This operation is limited to 2500 requests per 30 minutes. For more information,
|
1733
|
-
# see **Rate limiting**.
|
1734
1628
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1735
1629
|
# @param entity [String] The name of the entity.
|
1736
1630
|
# @param value [String] The text of the entity value.
|
@@ -1781,9 +1675,6 @@ module IBMWatson
|
|
1781
1675
|
# If you want to create multiple synonyms with a single API call, consider using the
|
1782
1676
|
# **[Update entity](#update-entity)** or **[Update entity
|
1783
1677
|
# value](#update-entity-value)** method instead.
|
1784
|
-
#
|
1785
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1786
|
-
# see **Rate limiting**.
|
1787
1678
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1788
1679
|
# @param entity [String] The name of the entity.
|
1789
1680
|
# @param value [String] The text of the entity value.
|
@@ -1833,9 +1724,6 @@ module IBMWatson
|
|
1833
1724
|
# @!method get_synonym(workspace_id:, entity:, value:, synonym:, include_audit: nil)
|
1834
1725
|
# Get entity value synonym.
|
1835
1726
|
# Get information about a synonym of an entity value.
|
1836
|
-
#
|
1837
|
-
# This operation is limited to 6000 requests per 5 minutes. For more information,
|
1838
|
-
# see **Rate limiting**.
|
1839
1727
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1840
1728
|
# @param entity [String] The name of the entity.
|
1841
1729
|
# @param value [String] The text of the entity value.
|
@@ -1882,9 +1770,6 @@ module IBMWatson
|
|
1882
1770
|
# If you want to update multiple synonyms with a single API call, consider using the
|
1883
1771
|
# **[Update entity](#update-entity)** or **[Update entity
|
1884
1772
|
# value](#update-entity-value)** method instead.
|
1885
|
-
#
|
1886
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1887
|
-
# see **Rate limiting**.
|
1888
1773
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1889
1774
|
# @param entity [String] The name of the entity.
|
1890
1775
|
# @param value [String] The text of the entity value.
|
@@ -1935,9 +1820,6 @@ module IBMWatson
|
|
1935
1820
|
# @!method delete_synonym(workspace_id:, entity:, value:, synonym:)
|
1936
1821
|
# Delete entity value synonym.
|
1937
1822
|
# Delete a synonym from an entity value.
|
1938
|
-
#
|
1939
|
-
# This operation is limited to 1000 requests per 30 minutes. For more information,
|
1940
|
-
# see **Rate limiting**.
|
1941
1823
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1942
1824
|
# @param entity [String] The name of the entity.
|
1943
1825
|
# @param value [String] The text of the entity value.
|
@@ -1980,9 +1862,6 @@ module IBMWatson
|
|
1980
1862
|
# @!method list_dialog_nodes(workspace_id:, page_limit: nil, sort: nil, cursor: nil, include_audit: nil)
|
1981
1863
|
# List dialog nodes.
|
1982
1864
|
# List the dialog nodes for a workspace.
|
1983
|
-
#
|
1984
|
-
# This operation is limited to 2500 requests per 30 minutes. For more information,
|
1985
|
-
# see **Rate limiting**.
|
1986
1865
|
# @param workspace_id [String] Unique identifier of the workspace.
|
1987
1866
|
# @param page_limit [Fixnum] The number of records to return in each page of results.
|
1988
1867
|
# @param sort [String] The attribute by which returned dialog nodes will be sorted. To reverse the sort
|
@@ -2026,9 +1905,6 @@ module IBMWatson
|
|
2026
1905
|
#
|
2027
1906
|
# If you want to create multiple dialog nodes with a single API call, consider using
|
2028
1907
|
# the **[Update workspace](#update-workspace)** method instead.
|
2029
|
-
#
|
2030
|
-
# This operation is limited to 500 requests per 30 minutes. For more information,
|
2031
|
-
# see **Rate limiting**.
|
2032
1908
|
# @param workspace_id [String] Unique identifier of the workspace.
|
2033
1909
|
# @param dialog_node [String] The dialog node ID. This string must conform to the following restrictions:
|
2034
1910
|
# - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot
|
@@ -2119,9 +1995,6 @@ module IBMWatson
|
|
2119
1995
|
# @!method get_dialog_node(workspace_id:, dialog_node:, include_audit: nil)
|
2120
1996
|
# Get dialog node.
|
2121
1997
|
# Get information about a dialog node.
|
2122
|
-
#
|
2123
|
-
# This operation is limited to 6000 requests per 5 minutes. For more information,
|
2124
|
-
# see **Rate limiting**.
|
2125
1998
|
# @param workspace_id [String] Unique identifier of the workspace.
|
2126
1999
|
# @param dialog_node [String] The dialog node ID (for example, `get_order`).
|
2127
2000
|
# @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
|
@@ -2161,9 +2034,6 @@ module IBMWatson
|
|
2161
2034
|
#
|
2162
2035
|
# If you want to update multiple dialog nodes with a single API call, consider using
|
2163
2036
|
# the **[Update workspace](#update-workspace)** method instead.
|
2164
|
-
#
|
2165
|
-
# This operation is limited to 500 requests per 30 minutes. For more information,
|
2166
|
-
# see **Rate limiting**.
|
2167
2037
|
# @param workspace_id [String] Unique identifier of the workspace.
|
2168
2038
|
# @param dialog_node [String] The dialog node ID (for example, `get_order`).
|
2169
2039
|
# @param new_dialog_node [String] The dialog node ID. This string must conform to the following restrictions:
|
@@ -2255,9 +2125,6 @@ module IBMWatson
|
|
2255
2125
|
# @!method delete_dialog_node(workspace_id:, dialog_node:)
|
2256
2126
|
# Delete dialog node.
|
2257
2127
|
# Delete a dialog node from a workspace.
|
2258
|
-
#
|
2259
|
-
# This operation is limited to 500 requests per 30 minutes. For more information,
|
2260
|
-
# see **Rate limiting**.
|
2261
2128
|
# @param workspace_id [String] Unique identifier of the workspace.
|
2262
2129
|
# @param dialog_node [String] The dialog node ID (for example, `get_order`).
|
2263
2130
|
# @return [nil]
|
@@ -2294,10 +2161,6 @@ module IBMWatson
|
|
2294
2161
|
# @!method list_logs(workspace_id:, sort: nil, filter: nil, page_limit: nil, cursor: nil)
|
2295
2162
|
# List log events in a workspace.
|
2296
2163
|
# List the events from the log of a specific workspace.
|
2297
|
-
#
|
2298
|
-
# If **cursor** is not specified, this operation is limited to 40 requests per 30
|
2299
|
-
# minutes. If **cursor** is specified, the limit is 120 requests per minute. For
|
2300
|
-
# more information, see **Rate limiting**.
|
2301
2164
|
# @param workspace_id [String] Unique identifier of the workspace.
|
2302
2165
|
# @param sort [String] How to sort the returned log events. You can sort by **request_timestamp**. To
|
2303
2166
|
# reverse the sort order, prefix the parameter value with a minus sign (`-`).
|
@@ -2339,10 +2202,6 @@ module IBMWatson
|
|
2339
2202
|
# @!method list_all_logs(filter:, sort: nil, page_limit: nil, cursor: nil)
|
2340
2203
|
# List log events in all workspaces.
|
2341
2204
|
# List the events from the logs of all workspaces in the service instance.
|
2342
|
-
#
|
2343
|
-
# If **cursor** is not specified, this operation is limited to 40 requests per 30
|
2344
|
-
# minutes. If **cursor** is specified, the limit is 120 requests per minute. For
|
2345
|
-
# more information, see **Rate limiting**.
|
2346
2205
|
# @param filter [String] A cacheable parameter that limits the results to those matching the specified
|
2347
2206
|
# filter. You must specify a filter query that includes a value for `language`, as
|
2348
2207
|
# well as a value for `request.context.system.assistant_id`, `workspace_id`, or
|
@@ -2394,9 +2253,6 @@ module IBMWatson
|
|
2394
2253
|
# with a request that passes data. For more information about personal data and
|
2395
2254
|
# customer IDs, see [Information
|
2396
2255
|
# 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**.
|
2400
2256
|
# @param customer_id [String] The customer ID for which all data is to be deleted.
|
2401
2257
|
# @return [nil]
|
2402
2258
|
def delete_user_data(customer_id:)
|