ibm_watson 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77be503c0c2580751176c1ffaae4f1bf60b44c7941580800f14d6a5313e40437
4
- data.tar.gz: 6ce107373c372c8ff4f275dd62f402878dc440bf624706d8177a4620f92698f3
3
+ metadata.gz: 0bd35c50ae41bcbfd37e8979725fa1c735802adaa9547a85f317bd8b06facfbb
4
+ data.tar.gz: 99f6e5162166498402863f91e4aa657df34dbced4b6ac785b55fcb1a7a61998a
5
5
  SHA512:
6
- metadata.gz: 9db32ad31b000f454618880bcc0237d75e9980dcfb7c394645fae954e12fdd3919a2e22c2623911c8f28d272b5791b35503fdc596627579698bbdef9591c6b08
7
- data.tar.gz: 76cf957d401eff267742da48026ed16ab592a5b37573cd8a487183f14a94f8e7e377bacd68e5e460f3e87c461cde4595b2f97fc35ec73e1df1d1a1e7629e0beb
6
+ metadata.gz: d43788276fa776b4ef6921243f02512d5a42ed82cf9925dab9ae5bae6941491aa27f2e15eddd531101d891dd74cd511a296383663b4f6aaab3dd6cf4bf19eaca
7
+ data.tar.gz: e5f3692a356b306135b394e61f614041cadfe42a81cfabd4aaf4ffc89e9940b9fa0658e4b22c46843300fbf5498dbeaf22d0ce6064a3236f6c40e316c15e76d6
data/README.md CHANGED
@@ -61,7 +61,7 @@ The [examples][examples] folder has basic and advanced examples. The examples wi
61
61
 
62
62
  ## Running in IBM Cloud
63
63
 
64
- If you run your app in IBM Cloud, the SDK gets credentials from the [`VCAP_SERVICES`][vcap_services] environment variable.
64
+ If you run your app in IBM Cloud, the SDK gets credentials from the [`VCAP_SERVICES`][vcap_services] environment variable.
65
65
 
66
66
  ## Authentication
67
67
 
@@ -73,9 +73,45 @@ Watson services are migrating to token-based Identity and Access Management (IAM
73
73
  ### Getting credentials
74
74
  To find out which authentication to use, view the service credentials. You find the service credentials for authentication the same way for all Watson services:
75
75
 
76
- 1. Go to the IBM Cloud [Dashboard][watson-dashboard] page.
77
- 1. Either click an existing Watson service instance or click [**Create resource > AI**](https://console.bluemix.net/catalog/?category=ai) and create a service instance.
78
- 1. Copy the `url` and either `apikey` or `username` and `password`. Click **Show** if the credentials are masked.
76
+ 1. Go to the IBM Cloud [Dashboard](https://cloud.ibm.com/) page.
77
+ 1. Either click an existing Watson service instance in your [resource list](https://cloud.ibm.com/resources) or click [**Create resource > AI**](https://cloud.ibm.com/catalog?category=ai) and create a service instance.
78
+ 1. Click on the **Manage** item in the left nav bar of your service instance.
79
+
80
+ On this page, you should be able to see your credentials for accessing your service instance.
81
+
82
+ ### Supplying credentials
83
+
84
+ There are two ways to supply the credentials you found above to the SDK for authentication.
85
+
86
+ #### Credential file (easier!)
87
+
88
+ With a credential file, you just need to put the file in the right place and the SDK will do the work of parsing and authenticating. You can get this file by clicking the **Download** button for the credentials in the **Manage** tab of your service instance.
89
+
90
+ The file downloaded will be called `ibm-credentials.env`. This is the name the SDK will search for and **must** be preserved unless you want to configure the file path (more on that later). The SDK will look for your `ibm-credentials.env` file in the following places (in order):
91
+
92
+ - Your system's home directory
93
+ - The top-level directory of the project you're using the SDK in
94
+
95
+ As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:
96
+
97
+ ```ruby
98
+ discovery = DiscoveryV1(version: "2018-08-01")
99
+ ```
100
+
101
+ And that's it!
102
+
103
+ If you're using more than one service at a time in your code and get two different `ibm-credentials.env` files, just put the contents together in one `ibm-credentials.env` file and the SDK will handle assigning credentials to their appropriate services.
104
+
105
+ If you would like to configure the location/name of your credential file, you can set an environment variable called `IBM_CREDENTIALS_FILE`. **This will take precedence over the locations specified above.** Here's how you can do that:
106
+
107
+ ```bash
108
+ export IBM_CREDENTIALS_FILE="<path>"
109
+ ```
110
+
111
+ where `<path>` is something like `/home/user/Downloads/<file_name>.env`.
112
+
113
+ #### Manually
114
+ If you'd prefer to set authentication values manually in your code, the SDK supports that as well. The way you'll do this depends on what type of credentials your service instance gives you.
79
115
 
80
116
  ### IAM
81
117
 
@@ -82,6 +82,7 @@ module IBMWatson
82
82
  args[:vcap_services_name] = "conversation"
83
83
  super
84
84
  @version = args[:version]
85
+ args[:display_name] = "Assistant"
85
86
  end
86
87
 
87
88
  #########################
@@ -95,7 +96,7 @@ module IBMWatson
95
96
  #
96
97
  # There is no rate limit for this operation.
97
98
  # @param workspace_id [String] Unique identifier of the workspace.
98
- # @param input [InputData] The user input.
99
+ # @param input [InputData] An input object that includes the input text.
99
100
  # @param alternate_intents [Boolean] Whether to return more than one intent. Set to `true` to return all matching
100
101
  # intents.
101
102
  # @param context [Context] State information for the conversation. To maintain state, include the context
@@ -116,6 +117,7 @@ module IBMWatson
116
117
 
117
118
  headers = {
118
119
  }
120
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=message"
119
121
 
120
122
  params = {
121
123
  "version" => @version,
@@ -165,6 +167,7 @@ module IBMWatson
165
167
  def list_workspaces(page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
166
168
  headers = {
167
169
  }
170
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_workspaces"
168
171
 
169
172
  params = {
170
173
  "version" => @version,
@@ -213,6 +216,7 @@ module IBMWatson
213
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)
214
217
  headers = {
215
218
  }
219
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_workspace"
216
220
 
217
221
  params = {
218
222
  "version" => @version
@@ -267,6 +271,7 @@ module IBMWatson
267
271
 
268
272
  headers = {
269
273
  }
274
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_workspace"
270
275
 
271
276
  params = {
272
277
  "version" => @version,
@@ -325,6 +330,7 @@ module IBMWatson
325
330
 
326
331
  headers = {
327
332
  }
333
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_workspace"
328
334
 
329
335
  params = {
330
336
  "version" => @version,
@@ -371,6 +377,7 @@ module IBMWatson
371
377
 
372
378
  headers = {
373
379
  }
380
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_workspace"
374
381
 
375
382
  params = {
376
383
  "version" => @version
@@ -416,6 +423,7 @@ module IBMWatson
416
423
 
417
424
  headers = {
418
425
  }
426
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_intents"
419
427
 
420
428
  params = {
421
429
  "version" => @version,
@@ -463,6 +471,7 @@ module IBMWatson
463
471
 
464
472
  headers = {
465
473
  }
474
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_intent"
466
475
 
467
476
  params = {
468
477
  "version" => @version
@@ -510,6 +519,7 @@ module IBMWatson
510
519
 
511
520
  headers = {
512
521
  }
522
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_intent"
513
523
 
514
524
  params = {
515
525
  "version" => @version,
@@ -554,6 +564,7 @@ module IBMWatson
554
564
 
555
565
  headers = {
556
566
  }
567
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_intent"
557
568
 
558
569
  params = {
559
570
  "version" => @version
@@ -595,6 +606,7 @@ module IBMWatson
595
606
 
596
607
  headers = {
597
608
  }
609
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_intent"
598
610
 
599
611
  params = {
600
612
  "version" => @version
@@ -640,6 +652,7 @@ module IBMWatson
640
652
 
641
653
  headers = {
642
654
  }
655
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_examples"
643
656
 
644
657
  params = {
645
658
  "version" => @version,
@@ -687,6 +700,7 @@ module IBMWatson
687
700
 
688
701
  headers = {
689
702
  }
703
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_example"
690
704
 
691
705
  params = {
692
706
  "version" => @version
@@ -732,6 +746,7 @@ module IBMWatson
732
746
 
733
747
  headers = {
734
748
  }
749
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_example"
735
750
 
736
751
  params = {
737
752
  "version" => @version,
@@ -776,6 +791,7 @@ module IBMWatson
776
791
 
777
792
  headers = {
778
793
  }
794
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_example"
779
795
 
780
796
  params = {
781
797
  "version" => @version
@@ -819,6 +835,7 @@ module IBMWatson
819
835
 
820
836
  headers = {
821
837
  }
838
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_example"
822
839
 
823
840
  params = {
824
841
  "version" => @version
@@ -861,6 +878,7 @@ module IBMWatson
861
878
 
862
879
  headers = {
863
880
  }
881
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_counterexamples"
864
882
 
865
883
  params = {
866
884
  "version" => @version,
@@ -905,6 +923,7 @@ module IBMWatson
905
923
 
906
924
  headers = {
907
925
  }
926
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_counterexample"
908
927
 
909
928
  params = {
910
929
  "version" => @version
@@ -947,6 +966,7 @@ module IBMWatson
947
966
 
948
967
  headers = {
949
968
  }
969
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_counterexample"
950
970
 
951
971
  params = {
952
972
  "version" => @version,
@@ -984,6 +1004,7 @@ module IBMWatson
984
1004
 
985
1005
  headers = {
986
1006
  }
1007
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_counterexample"
987
1008
 
988
1009
  params = {
989
1010
  "version" => @version
@@ -1024,6 +1045,7 @@ module IBMWatson
1024
1045
 
1025
1046
  headers = {
1026
1047
  }
1048
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_counterexample"
1027
1049
 
1028
1050
  params = {
1029
1051
  "version" => @version
@@ -1069,6 +1091,7 @@ module IBMWatson
1069
1091
 
1070
1092
  headers = {
1071
1093
  }
1094
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_entities"
1072
1095
 
1073
1096
  params = {
1074
1097
  "version" => @version,
@@ -1120,6 +1143,7 @@ module IBMWatson
1120
1143
 
1121
1144
  headers = {
1122
1145
  }
1146
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_entity"
1123
1147
 
1124
1148
  params = {
1125
1149
  "version" => @version
@@ -1169,6 +1193,7 @@ module IBMWatson
1169
1193
 
1170
1194
  headers = {
1171
1195
  }
1196
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_entity"
1172
1197
 
1173
1198
  params = {
1174
1199
  "version" => @version,
@@ -1215,6 +1240,7 @@ module IBMWatson
1215
1240
 
1216
1241
  headers = {
1217
1242
  }
1243
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_entity"
1218
1244
 
1219
1245
  params = {
1220
1246
  "version" => @version
@@ -1258,6 +1284,7 @@ module IBMWatson
1258
1284
 
1259
1285
  headers = {
1260
1286
  }
1287
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_entity"
1261
1288
 
1262
1289
  params = {
1263
1290
  "version" => @version
@@ -1301,6 +1328,7 @@ module IBMWatson
1301
1328
 
1302
1329
  headers = {
1303
1330
  }
1331
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_mentions"
1304
1332
 
1305
1333
  params = {
1306
1334
  "version" => @version,
@@ -1350,6 +1378,7 @@ module IBMWatson
1350
1378
 
1351
1379
  headers = {
1352
1380
  }
1381
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_values"
1353
1382
 
1354
1383
  params = {
1355
1384
  "version" => @version,
@@ -1398,7 +1427,7 @@ module IBMWatson
1398
1427
  # patterns (as indicated by **type**), but not both. A pattern is a regular
1399
1428
  # expression no longer than 512 characters. For more information about how to
1400
1429
  # specify a pattern, see the
1401
- # [documentation](https://console.bluemix.net/docs/services/assistant/entities.html#creating-entities).
1430
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#creating-entities).
1402
1431
  # @param value_type [String] Specifies the type of value.
1403
1432
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
1404
1433
  def create_value(workspace_id:, entity:, value:, metadata: nil, synonyms: nil, patterns: nil, value_type: nil)
@@ -1410,6 +1439,7 @@ module IBMWatson
1410
1439
 
1411
1440
  headers = {
1412
1441
  }
1442
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_value"
1413
1443
 
1414
1444
  params = {
1415
1445
  "version" => @version
@@ -1461,6 +1491,7 @@ module IBMWatson
1461
1491
 
1462
1492
  headers = {
1463
1493
  }
1494
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_value"
1464
1495
 
1465
1496
  params = {
1466
1497
  "version" => @version,
@@ -1508,7 +1539,7 @@ module IBMWatson
1508
1539
  # patterns (as indicated by **type**), but not both. A pattern is a regular
1509
1540
  # expression no longer than 512 characters. For more information about how to
1510
1541
  # specify a pattern, see the
1511
- # [documentation](https://console.bluemix.net/docs/services/assistant/entities.html#creating-entities).
1542
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#creating-entities).
1512
1543
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
1513
1544
  def update_value(workspace_id:, entity:, value:, new_value: nil, new_metadata: nil, new_type: nil, new_synonyms: nil, new_patterns: nil)
1514
1545
  raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?
@@ -1519,6 +1550,7 @@ module IBMWatson
1519
1550
 
1520
1551
  headers = {
1521
1552
  }
1553
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_value"
1522
1554
 
1523
1555
  params = {
1524
1556
  "version" => @version
@@ -1565,6 +1597,7 @@ module IBMWatson
1565
1597
 
1566
1598
  headers = {
1567
1599
  }
1600
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_value"
1568
1601
 
1569
1602
  params = {
1570
1603
  "version" => @version
@@ -1612,6 +1645,7 @@ module IBMWatson
1612
1645
 
1613
1646
  headers = {
1614
1647
  }
1648
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_synonyms"
1615
1649
 
1616
1650
  params = {
1617
1651
  "version" => @version,
@@ -1660,6 +1694,7 @@ module IBMWatson
1660
1694
 
1661
1695
  headers = {
1662
1696
  }
1697
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_synonym"
1663
1698
 
1664
1699
  params = {
1665
1700
  "version" => @version
@@ -1707,6 +1742,7 @@ module IBMWatson
1707
1742
 
1708
1743
  headers = {
1709
1744
  }
1745
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_synonym"
1710
1746
 
1711
1747
  params = {
1712
1748
  "version" => @version,
@@ -1752,6 +1788,7 @@ module IBMWatson
1752
1788
 
1753
1789
  headers = {
1754
1790
  }
1791
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_synonym"
1755
1792
 
1756
1793
  params = {
1757
1794
  "version" => @version
@@ -1797,6 +1834,7 @@ module IBMWatson
1797
1834
 
1798
1835
  headers = {
1799
1836
  }
1837
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_synonym"
1800
1838
 
1801
1839
  params = {
1802
1840
  "version" => @version
@@ -1838,6 +1876,7 @@ module IBMWatson
1838
1876
 
1839
1877
  headers = {
1840
1878
  }
1879
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_dialog_nodes"
1841
1880
 
1842
1881
  params = {
1843
1882
  "version" => @version,
@@ -1881,7 +1920,7 @@ module IBMWatson
1881
1920
  # @param previous_sibling [String] The ID of the previous dialog node.
1882
1921
  # @param output [DialogNodeOutput] The output of the dialog node. For more information about how to specify dialog
1883
1922
  # node output, see the
1884
- # [documentation](https://console.bluemix.net/docs/services/assistant/dialog-overview.html#complex).
1923
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/dialog-overview.html#complex).
1885
1924
  # @param context [Object] The context for the dialog node.
1886
1925
  # @param metadata [Object] The metadata for the dialog node.
1887
1926
  # @param next_step [DialogNodeNextStep] The next step to execute following this dialog node.
@@ -1907,6 +1946,7 @@ module IBMWatson
1907
1946
 
1908
1947
  headers = {
1909
1948
  }
1949
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=create_dialog_node"
1910
1950
 
1911
1951
  params = {
1912
1952
  "version" => @version
@@ -1965,6 +2005,7 @@ module IBMWatson
1965
2005
 
1966
2006
  headers = {
1967
2007
  }
2008
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=get_dialog_node"
1968
2009
 
1969
2010
  params = {
1970
2011
  "version" => @version,
@@ -2005,7 +2046,7 @@ module IBMWatson
2005
2046
  # @param new_previous_sibling [String] The ID of the previous sibling dialog node.
2006
2047
  # @param new_output [DialogNodeOutput] The output of the dialog node. For more information about how to specify dialog
2007
2048
  # node output, see the
2008
- # [documentation](https://console.bluemix.net/docs/services/assistant/dialog-overview.html#complex).
2049
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/dialog-overview.html#complex).
2009
2050
  # @param new_context [Object] The context for the dialog node.
2010
2051
  # @param new_metadata [Object] The metadata for the dialog node.
2011
2052
  # @param new_next_step [DialogNodeNextStep] The next step to execute following this dialog node.
@@ -2031,6 +2072,7 @@ module IBMWatson
2031
2072
 
2032
2073
  headers = {
2033
2074
  }
2075
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=update_dialog_node"
2034
2076
 
2035
2077
  params = {
2036
2078
  "version" => @version
@@ -2087,6 +2129,7 @@ module IBMWatson
2087
2129
 
2088
2130
  headers = {
2089
2131
  }
2132
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_dialog_node"
2090
2133
 
2091
2134
  params = {
2092
2135
  "version" => @version
@@ -2120,7 +2163,7 @@ module IBMWatson
2120
2163
  # reverse the sort order, prefix the parameter value with a minus sign (`-`).
2121
2164
  # @param filter [String] A cacheable parameter that limits the results to those matching the specified
2122
2165
  # filter. For more information, see the
2123
- # [documentation](https://console.bluemix.net/docs/services/assistant/filter-reference.html#filter-query-syntax).
2166
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/filter-reference.html#filter-query-syntax).
2124
2167
  # @param page_limit [Fixnum] The number of records to return in each page of results.
2125
2168
  # @param cursor [String] A token identifying the page of results to retrieve.
2126
2169
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
@@ -2129,6 +2172,7 @@ module IBMWatson
2129
2172
 
2130
2173
  headers = {
2131
2174
  }
2175
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_logs"
2132
2176
 
2133
2177
  params = {
2134
2178
  "version" => @version,
@@ -2162,7 +2206,7 @@ module IBMWatson
2162
2206
  # filter. You must specify a filter query that includes a value for `language`, as
2163
2207
  # well as a value for `workspace_id` or `request.context.metadata.deployment`. For
2164
2208
  # more information, see the
2165
- # [documentation](https://console.bluemix.net/docs/services/assistant/filter-reference.html#filter-query-syntax).
2209
+ # [documentation](https://cloud.ibm.com/docs/services/assistant/filter-reference.html#filter-query-syntax).
2166
2210
  # @param sort [String] How to sort the returned log events. You can sort by **request_timestamp**. To
2167
2211
  # reverse the sort order, prefix the parameter value with a minus sign (`-`).
2168
2212
  # @param page_limit [Fixnum] The number of records to return in each page of results.
@@ -2173,6 +2217,7 @@ module IBMWatson
2173
2217
 
2174
2218
  headers = {
2175
2219
  }
2220
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=list_all_logs"
2176
2221
 
2177
2222
  params = {
2178
2223
  "version" => @version,
@@ -2206,7 +2251,7 @@ module IBMWatson
2206
2251
  # You associate a customer ID with data by passing the `X-Watson-Metadata` header
2207
2252
  # with a request that passes data. For more information about personal data and
2208
2253
  # customer IDs, see [Information
2209
- # security](https://console.bluemix.net/docs/services/assistant/information-security.html).
2254
+ # security](https://cloud.ibm.com/docs/services/assistant/information-security.html).
2210
2255
  # @param customer_id [String] The customer ID for which all data is to be deleted.
2211
2256
  # @return [nil]
2212
2257
  def delete_user_data(customer_id:)
@@ -2214,6 +2259,7 @@ module IBMWatson
2214
2259
 
2215
2260
  headers = {
2216
2261
  }
2262
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=delete_user_data"
2217
2263
 
2218
2264
  params = {
2219
2265
  "version" => @version,
@@ -82,6 +82,7 @@ module IBMWatson
82
82
  args[:vcap_services_name] = "conversation"
83
83
  super
84
84
  @version = args[:version]
85
+ args[:display_name] = "Assistant"
85
86
  end
86
87
 
87
88
  #########################
@@ -105,6 +106,7 @@ module IBMWatson
105
106
 
106
107
  headers = {
107
108
  }
109
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V2;operation_id=create_session"
108
110
 
109
111
  params = {
110
112
  "version" => @version
@@ -141,6 +143,7 @@ module IBMWatson
141
143
 
142
144
  headers = {
143
145
  }
146
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V2;operation_id=delete_session"
144
147
 
145
148
  params = {
146
149
  "version" => @version
@@ -174,7 +177,7 @@ module IBMWatson
174
177
  #
175
178
  # **Note:** Currently, the v2 API does not support creating assistants.
176
179
  # @param session_id [String] Unique identifier of the session.
177
- # @param input [MessageInput] The user input.
180
+ # @param input [MessageInput] An input object that includes the input text.
178
181
  # @param context [MessageContext] State information for the conversation.
179
182
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
180
183
  def message(assistant_id:, session_id:, input: nil, context: nil)
@@ -184,6 +187,7 @@ module IBMWatson
184
187
 
185
188
  headers = {
186
189
  }
190
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V2;operation_id=message"
187
191
 
188
192
  params = {
189
193
  "version" => @version