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.
@@ -84,6 +84,7 @@ module IBMWatson
84
84
  args[:vcap_services_name] = "discovery"
85
85
  super
86
86
  @version = args[:version]
87
+ args[:display_name] = "Discovery"
87
88
  end
88
89
 
89
90
  #########################
@@ -108,6 +109,7 @@ module IBMWatson
108
109
 
109
110
  headers = {
110
111
  }
112
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_environment"
111
113
 
112
114
  params = {
113
115
  "version" => @version
@@ -141,6 +143,7 @@ module IBMWatson
141
143
  def list_environments(name: nil)
142
144
  headers = {
143
145
  }
146
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_environments"
144
147
 
145
148
  params = {
146
149
  "version" => @version,
@@ -169,6 +172,7 @@ module IBMWatson
169
172
 
170
173
  headers = {
171
174
  }
175
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_environment"
172
176
 
173
177
  params = {
174
178
  "version" => @version
@@ -203,6 +207,7 @@ module IBMWatson
203
207
 
204
208
  headers = {
205
209
  }
210
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_environment"
206
211
 
207
212
  params = {
208
213
  "version" => @version
@@ -237,6 +242,7 @@ module IBMWatson
237
242
 
238
243
  headers = {
239
244
  }
245
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_environment"
240
246
 
241
247
  params = {
242
248
  "version" => @version
@@ -269,6 +275,7 @@ module IBMWatson
269
275
 
270
276
  headers = {
271
277
  }
278
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_fields"
272
279
 
273
280
  params = {
274
281
  "version" => @version,
@@ -322,6 +329,7 @@ module IBMWatson
322
329
 
323
330
  headers = {
324
331
  }
332
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_configuration"
325
333
 
326
334
  params = {
327
335
  "version" => @version
@@ -361,6 +369,7 @@ module IBMWatson
361
369
 
362
370
  headers = {
363
371
  }
372
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_configurations"
364
373
 
365
374
  params = {
366
375
  "version" => @version,
@@ -392,6 +401,7 @@ module IBMWatson
392
401
 
393
402
  headers = {
394
403
  }
404
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_configuration"
395
405
 
396
406
  params = {
397
407
  "version" => @version
@@ -441,6 +451,7 @@ module IBMWatson
441
451
 
442
452
  headers = {
443
453
  }
454
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_configuration"
444
455
 
445
456
  params = {
446
457
  "version" => @version
@@ -487,6 +498,7 @@ module IBMWatson
487
498
 
488
499
  headers = {
489
500
  }
501
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_configuration"
490
502
 
491
503
  params = {
492
504
  "version" => @version
@@ -545,6 +557,7 @@ module IBMWatson
545
557
 
546
558
  headers = {
547
559
  }
560
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=test_configuration_in_environment"
548
561
 
549
562
  params = {
550
563
  "version" => @version,
@@ -599,6 +612,7 @@ module IBMWatson
599
612
 
600
613
  headers = {
601
614
  }
615
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_collection"
602
616
 
603
617
  params = {
604
618
  "version" => @version
@@ -636,6 +650,7 @@ module IBMWatson
636
650
 
637
651
  headers = {
638
652
  }
653
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_collections"
639
654
 
640
655
  params = {
641
656
  "version" => @version,
@@ -667,6 +682,7 @@ module IBMWatson
667
682
 
668
683
  headers = {
669
684
  }
685
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_collection"
670
686
 
671
687
  params = {
672
688
  "version" => @version
@@ -700,6 +716,7 @@ module IBMWatson
700
716
 
701
717
  headers = {
702
718
  }
719
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_collection"
703
720
 
704
721
  params = {
705
722
  "version" => @version
@@ -737,6 +754,7 @@ module IBMWatson
737
754
 
738
755
  headers = {
739
756
  }
757
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_collection"
740
758
 
741
759
  params = {
742
760
  "version" => @version
@@ -768,6 +786,7 @@ module IBMWatson
768
786
 
769
787
  headers = {
770
788
  }
789
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_collection_fields"
771
790
 
772
791
  params = {
773
792
  "version" => @version
@@ -803,6 +822,7 @@ module IBMWatson
803
822
 
804
823
  headers = {
805
824
  }
825
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_expansions"
806
826
 
807
827
  params = {
808
828
  "version" => @version
@@ -854,6 +874,7 @@ module IBMWatson
854
874
 
855
875
  headers = {
856
876
  }
877
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_expansions"
857
878
 
858
879
  params = {
859
880
  "version" => @version
@@ -891,6 +912,7 @@ module IBMWatson
891
912
 
892
913
  headers = {
893
914
  }
915
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_expansions"
894
916
 
895
917
  params = {
896
918
  "version" => @version
@@ -923,6 +945,7 @@ module IBMWatson
923
945
 
924
946
  headers = {
925
947
  }
948
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_tokenization_dictionary_status"
926
949
 
927
950
  params = {
928
951
  "version" => @version
@@ -957,6 +980,7 @@ module IBMWatson
957
980
 
958
981
  headers = {
959
982
  }
983
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_tokenization_dictionary"
960
984
 
961
985
  params = {
962
986
  "version" => @version
@@ -993,6 +1017,7 @@ module IBMWatson
993
1017
 
994
1018
  headers = {
995
1019
  }
1020
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_tokenization_dictionary"
996
1021
 
997
1022
  params = {
998
1023
  "version" => @version
@@ -1010,6 +1035,38 @@ module IBMWatson
1010
1035
  nil
1011
1036
  end
1012
1037
 
1038
+ ##
1039
+ # @!method get_stopword_list_status(environment_id:, collection_id:)
1040
+ # Get stopword list status.
1041
+ # Returns the current status of the stopword list for the specified collection.
1042
+ # @param environment_id [String] The ID of the environment.
1043
+ # @param collection_id [String] The ID of the collection.
1044
+ # @return [DetailedResponse] A `DetailedResponse` object representing the response.
1045
+ def get_stopword_list_status(environment_id:, collection_id:)
1046
+ raise ArgumentError.new("environment_id must be provided") if environment_id.nil?
1047
+
1048
+ raise ArgumentError.new("collection_id must be provided") if collection_id.nil?
1049
+
1050
+ headers = {
1051
+ }
1052
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_stopword_list_status"
1053
+
1054
+ params = {
1055
+ "version" => @version
1056
+ }
1057
+
1058
+ method_url = "/v1/environments/%s/collections/%s/word_lists/stopwords" % [ERB::Util.url_encode(environment_id), ERB::Util.url_encode(collection_id)]
1059
+
1060
+ response = request(
1061
+ method: "GET",
1062
+ url: method_url,
1063
+ headers: headers,
1064
+ params: params,
1065
+ accept_json: true
1066
+ )
1067
+ response
1068
+ end
1069
+
1013
1070
  ##
1014
1071
  # @!method create_stopword_list(environment_id:, collection_id:, stopword_file:, stopword_filename: nil)
1015
1072
  # Create stopword list.
@@ -1028,6 +1085,7 @@ module IBMWatson
1028
1085
 
1029
1086
  headers = {
1030
1087
  }
1088
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_stopword_list"
1031
1089
 
1032
1090
  params = {
1033
1091
  "version" => @version
@@ -1069,6 +1127,7 @@ module IBMWatson
1069
1127
 
1070
1128
  headers = {
1071
1129
  }
1130
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_stopword_list"
1072
1131
 
1073
1132
  params = {
1074
1133
  "version" => @version
@@ -1138,6 +1197,7 @@ module IBMWatson
1138
1197
 
1139
1198
  headers = {
1140
1199
  }
1200
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=add_document"
1141
1201
 
1142
1202
  params = {
1143
1203
  "version" => @version
@@ -1188,6 +1248,7 @@ module IBMWatson
1188
1248
 
1189
1249
  headers = {
1190
1250
  }
1251
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_document_status"
1191
1252
 
1192
1253
  params = {
1193
1254
  "version" => @version
@@ -1234,6 +1295,7 @@ module IBMWatson
1234
1295
 
1235
1296
  headers = {
1236
1297
  }
1298
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_document"
1237
1299
 
1238
1300
  params = {
1239
1301
  "version" => @version
@@ -1283,6 +1345,7 @@ module IBMWatson
1283
1345
 
1284
1346
  headers = {
1285
1347
  }
1348
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_document"
1286
1349
 
1287
1350
  params = {
1288
1351
  "version" => @version
@@ -1378,6 +1441,7 @@ module IBMWatson
1378
1441
  headers = {
1379
1442
  "X-Watson-Logging-Opt-Out" => logging_opt_out
1380
1443
  }
1444
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=query"
1381
1445
 
1382
1446
  params = {
1383
1447
  "version" => @version
@@ -1480,6 +1544,7 @@ module IBMWatson
1480
1544
 
1481
1545
  headers = {
1482
1546
  }
1547
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=query_notices"
1483
1548
 
1484
1549
  params = {
1485
1550
  "version" => @version,
@@ -1586,6 +1651,7 @@ module IBMWatson
1586
1651
  headers = {
1587
1652
  "X-Watson-Logging-Opt-Out" => logging_opt_out
1588
1653
  }
1654
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=federated_query"
1589
1655
 
1590
1656
  params = {
1591
1657
  "version" => @version
@@ -1682,6 +1748,7 @@ module IBMWatson
1682
1748
 
1683
1749
  headers = {
1684
1750
  }
1751
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=federated_query_notices"
1685
1752
 
1686
1753
  params = {
1687
1754
  "version" => @version,
@@ -1738,6 +1805,7 @@ module IBMWatson
1738
1805
 
1739
1806
  headers = {
1740
1807
  }
1808
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=query_entities"
1741
1809
 
1742
1810
  params = {
1743
1811
  "version" => @version
@@ -1792,6 +1860,7 @@ module IBMWatson
1792
1860
 
1793
1861
  headers = {
1794
1862
  }
1863
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=query_relations"
1795
1864
 
1796
1865
  params = {
1797
1866
  "version" => @version
@@ -1836,6 +1905,7 @@ module IBMWatson
1836
1905
 
1837
1906
  headers = {
1838
1907
  }
1908
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_training_data"
1839
1909
 
1840
1910
  params = {
1841
1911
  "version" => @version
@@ -1871,6 +1941,7 @@ module IBMWatson
1871
1941
 
1872
1942
  headers = {
1873
1943
  }
1944
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=add_training_data"
1874
1945
 
1875
1946
  params = {
1876
1947
  "version" => @version
@@ -1909,6 +1980,7 @@ module IBMWatson
1909
1980
 
1910
1981
  headers = {
1911
1982
  }
1983
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_all_training_data"
1912
1984
 
1913
1985
  params = {
1914
1986
  "version" => @version
@@ -1944,6 +2016,7 @@ module IBMWatson
1944
2016
 
1945
2017
  headers = {
1946
2018
  }
2019
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_training_data"
1947
2020
 
1948
2021
  params = {
1949
2022
  "version" => @version
@@ -1979,6 +2052,7 @@ module IBMWatson
1979
2052
 
1980
2053
  headers = {
1981
2054
  }
2055
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_training_data"
1982
2056
 
1983
2057
  params = {
1984
2058
  "version" => @version
@@ -2013,6 +2087,7 @@ module IBMWatson
2013
2087
 
2014
2088
  headers = {
2015
2089
  }
2090
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_training_examples"
2016
2091
 
2017
2092
  params = {
2018
2093
  "version" => @version
@@ -2050,6 +2125,7 @@ module IBMWatson
2050
2125
 
2051
2126
  headers = {
2052
2127
  }
2128
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_training_example"
2053
2129
 
2054
2130
  params = {
2055
2131
  "version" => @version
@@ -2094,6 +2170,7 @@ module IBMWatson
2094
2170
 
2095
2171
  headers = {
2096
2172
  }
2173
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_training_example"
2097
2174
 
2098
2175
  params = {
2099
2176
  "version" => @version
@@ -2133,6 +2210,7 @@ module IBMWatson
2133
2210
 
2134
2211
  headers = {
2135
2212
  }
2213
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_training_example"
2136
2214
 
2137
2215
  params = {
2138
2216
  "version" => @version
@@ -2176,6 +2254,7 @@ module IBMWatson
2176
2254
 
2177
2255
  headers = {
2178
2256
  }
2257
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_training_example"
2179
2258
 
2180
2259
  params = {
2181
2260
  "version" => @version
@@ -2213,6 +2292,7 @@ module IBMWatson
2213
2292
 
2214
2293
  headers = {
2215
2294
  }
2295
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_user_data"
2216
2296
 
2217
2297
  params = {
2218
2298
  "version" => @version,
@@ -2250,6 +2330,7 @@ module IBMWatson
2250
2330
 
2251
2331
  headers = {
2252
2332
  }
2333
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_event"
2253
2334
 
2254
2335
  params = {
2255
2336
  "version" => @version
@@ -2297,6 +2378,7 @@ module IBMWatson
2297
2378
  def query_log(filter: nil, query: nil, count: nil, offset: nil, sort: nil)
2298
2379
  headers = {
2299
2380
  }
2381
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=query_log"
2300
2382
 
2301
2383
  params = {
2302
2384
  "version" => @version,
@@ -2333,6 +2415,7 @@ module IBMWatson
2333
2415
  def get_metrics_query(start_time: nil, end_time: nil, result_type: nil)
2334
2416
  headers = {
2335
2417
  }
2418
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_metrics_query"
2336
2419
 
2337
2420
  params = {
2338
2421
  "version" => @version,
@@ -2368,6 +2451,7 @@ module IBMWatson
2368
2451
  def get_metrics_query_event(start_time: nil, end_time: nil, result_type: nil)
2369
2452
  headers = {
2370
2453
  }
2454
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_metrics_query_event"
2371
2455
 
2372
2456
  params = {
2373
2457
  "version" => @version,
@@ -2402,6 +2486,7 @@ module IBMWatson
2402
2486
  def get_metrics_query_no_results(start_time: nil, end_time: nil, result_type: nil)
2403
2487
  headers = {
2404
2488
  }
2489
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_metrics_query_no_results"
2405
2490
 
2406
2491
  params = {
2407
2492
  "version" => @version,
@@ -2438,6 +2523,7 @@ module IBMWatson
2438
2523
  def get_metrics_event_rate(start_time: nil, end_time: nil, result_type: nil)
2439
2524
  headers = {
2440
2525
  }
2526
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_metrics_event_rate"
2441
2527
 
2442
2528
  params = {
2443
2529
  "version" => @version,
@@ -2470,6 +2556,7 @@ module IBMWatson
2470
2556
  def get_metrics_query_token_event(count: nil)
2471
2557
  headers = {
2472
2558
  }
2559
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_metrics_query_token_event"
2473
2560
 
2474
2561
  params = {
2475
2562
  "version" => @version,
@@ -2505,6 +2592,7 @@ module IBMWatson
2505
2592
 
2506
2593
  headers = {
2507
2594
  }
2595
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_credentials"
2508
2596
 
2509
2597
  params = {
2510
2598
  "version" => @version
@@ -2547,6 +2635,7 @@ module IBMWatson
2547
2635
 
2548
2636
  headers = {
2549
2637
  }
2638
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_credentials"
2550
2639
 
2551
2640
  params = {
2552
2641
  "version" => @version
@@ -2587,6 +2676,7 @@ module IBMWatson
2587
2676
 
2588
2677
  headers = {
2589
2678
  }
2679
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_credentials"
2590
2680
 
2591
2681
  params = {
2592
2682
  "version" => @version
@@ -2631,6 +2721,7 @@ module IBMWatson
2631
2721
 
2632
2722
  headers = {
2633
2723
  }
2724
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=update_credentials"
2634
2725
 
2635
2726
  params = {
2636
2727
  "version" => @version
@@ -2668,6 +2759,7 @@ module IBMWatson
2668
2759
 
2669
2760
  headers = {
2670
2761
  }
2762
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_credentials"
2671
2763
 
2672
2764
  params = {
2673
2765
  "version" => @version
@@ -2699,6 +2791,7 @@ module IBMWatson
2699
2791
 
2700
2792
  headers = {
2701
2793
  }
2794
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=list_gateways"
2702
2795
 
2703
2796
  params = {
2704
2797
  "version" => @version
@@ -2728,6 +2821,7 @@ module IBMWatson
2728
2821
 
2729
2822
  headers = {
2730
2823
  }
2824
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=create_gateway"
2731
2825
 
2732
2826
  params = {
2733
2827
  "version" => @version
@@ -2764,6 +2858,7 @@ module IBMWatson
2764
2858
 
2765
2859
  headers = {
2766
2860
  }
2861
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=get_gateway"
2767
2862
 
2768
2863
  params = {
2769
2864
  "version" => @version
@@ -2795,6 +2890,7 @@ module IBMWatson
2795
2890
 
2796
2891
  headers = {
2797
2892
  }
2893
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=discovery;service_version=V1;operation_id=delete_gateway"
2798
2894
 
2799
2895
  params = {
2800
2896
  "version" => @version
@@ -84,6 +84,7 @@ module IBMWatson
84
84
  args[:vcap_services_name] = "language_translator"
85
85
  super
86
86
  @version = args[:version]
87
+ args[:display_name] = "Language Translator"
87
88
  end
88
89
 
89
90
  #########################
@@ -106,6 +107,7 @@ module IBMWatson
106
107
 
107
108
  headers = {
108
109
  }
110
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=translate"
109
111
 
110
112
  params = {
111
113
  "version" => @version
@@ -143,6 +145,7 @@ module IBMWatson
143
145
  def list_identifiable_languages
144
146
  headers = {
145
147
  }
148
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=list_identifiable_languages"
146
149
 
147
150
  params = {
148
151
  "version" => @version
@@ -171,6 +174,7 @@ module IBMWatson
171
174
 
172
175
  headers = {
173
176
  }
177
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=identify"
174
178
 
175
179
  params = {
176
180
  "version" => @version
@@ -209,6 +213,7 @@ module IBMWatson
209
213
  def list_models(source: nil, target: nil, default_models: nil)
210
214
  headers = {
211
215
  }
216
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=list_models"
212
217
 
213
218
  params = {
214
219
  "version" => @version,
@@ -270,6 +275,7 @@ module IBMWatson
270
275
 
271
276
  headers = {
272
277
  }
278
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=create_model"
273
279
 
274
280
  params = {
275
281
  "version" => @version,
@@ -319,6 +325,7 @@ module IBMWatson
319
325
 
320
326
  headers = {
321
327
  }
328
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=delete_model"
322
329
 
323
330
  params = {
324
331
  "version" => @version
@@ -349,6 +356,7 @@ module IBMWatson
349
356
 
350
357
  headers = {
351
358
  }
359
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=language_translator;service_version=V3;operation_id=get_model"
352
360
 
353
361
  params = {
354
362
  "version" => @version
@@ -71,6 +71,7 @@ module IBMWatson
71
71
  args = defaults.merge(args)
72
72
  args[:vcap_services_name] = "natural_language_classifier"
73
73
  super
74
+ args[:display_name] = "Natural Language Classifier"
74
75
  end
75
76
 
76
77
  #########################
@@ -92,6 +93,7 @@ module IBMWatson
92
93
 
93
94
  headers = {
94
95
  }
96
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=classify"
95
97
 
96
98
  data = {
97
99
  "text" => text
@@ -126,6 +128,7 @@ module IBMWatson
126
128
 
127
129
  headers = {
128
130
  }
131
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=classify_collection"
129
132
 
130
133
  data = {
131
134
  "collection" => collection
@@ -160,7 +163,7 @@ module IBMWatson
160
163
  # (`pt`), and Spanish (`es`).
161
164
  # @param training_data [File] Training data in CSV format. Each text value must have at least one class. The
162
165
  # data can include up to 3,000 classes and 20,000 records. For details, see [Data
163
- # preparation](https://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html).
166
+ # preparation](https://cloud.ibm.com/docs/services/natural-language-classifier/using-your-data.html).
164
167
  # @param metadata_filename [String] The filename for training_metadata.
165
168
  # @param training_data_filename [String] The filename for training_data.
166
169
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
@@ -171,6 +174,7 @@ module IBMWatson
171
174
 
172
175
  headers = {
173
176
  }
177
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=create_classifier"
174
178
 
175
179
  form_data = {}
176
180
 
@@ -206,6 +210,7 @@ module IBMWatson
206
210
  def list_classifiers
207
211
  headers = {
208
212
  }
213
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=list_classifiers"
209
214
 
210
215
  method_url = "/v1/classifiers"
211
216
 
@@ -229,6 +234,7 @@ module IBMWatson
229
234
 
230
235
  headers = {
231
236
  }
237
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=get_classifier"
232
238
 
233
239
  method_url = "/v1/classifiers/%s" % [ERB::Util.url_encode(classifier_id)]
234
240
 
@@ -251,6 +257,7 @@ module IBMWatson
251
257
 
252
258
  headers = {
253
259
  }
260
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=natural_language_classifier;service_version=V1;operation_id=delete_classifier"
254
261
 
255
262
  method_url = "/v1/classifiers/%s" % [ERB::Util.url_encode(classifier_id)]
256
263