Skip to content

Commit 965c86e

Browse files
authored
Merge pull request #788 from watson-developer-cloud/regenerate-sdk-release-9
Regenerate sdk release 9
2 parents a8c2206 + 1c4fee6 commit 965c86e

File tree

10 files changed

+458
-239
lines changed

10 files changed

+458
-239
lines changed

conversation/v1.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class ConversationV1 extends GeneratedConversationV1 {
3838
const _options = extend({}, options);
3939
_options.version = _options.version_date || _options.version;
4040
super(_options);
41+
if (!options['silent']) {
42+
// eslint-disable-next-line no-console
43+
console.warn(
44+
'WARNING: Conversation V1 is deprecated and will be removed in the next major release of the SDK. Use Assistant V1 or Assistant V2.' +
45+
' Set {silent: true} to disable this message.'
46+
);
47+
}
4148
}
4249

4350
workspaceStatus(params, callback) {

discovery/v1-generated.ts

Lines changed: 233 additions & 163 deletions
Large diffs are not rendered by default.

language-translator/v2.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ import GeneratedLanguageTranslatorV2 = require('./v2-generated');
2121
class LanguageTranslatorV2 extends GeneratedLanguageTranslatorV2 {
2222
constructor(options) {
2323
super(options);
24+
if (!options['silent']) {
25+
// eslint-disable-next-line no-console
26+
console.warn(
27+
'WARNING: Language Translator V2 is deprecated and will be removed in the next major release of the SDK. Use Language Translator V3.' +
28+
' Set {silent: true} to disable this message.'
29+
);
30+
}
2431
}
2532

2633
getModels(params, callback) {

personality-insights/v3-generated.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ class PersonalityInsightsV3 extends BaseService {
7777
* set). When specifying a content type of plain text or HTML, include the `charset` parameter to indicate the
7878
* character encoding of the input text; for example: `Content-Type: text/plain;charset=utf-8`.
7979
*
80-
* For detailed information about calling the service and the responses it can generate, see [Requesting a
81-
* profile](https://console.bluemix.net/docs/services/personality-insights/input.html), [Understanding a JSON
82-
* profile](https://console.bluemix.net/docs/services/personality-insights/output.html), and [Understanding a CSV
83-
* profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
80+
* **See also:**
81+
* * [Requesting a profile](https://console.bluemix.net/docs/services/personality-insights/input.html)
82+
* * [Understanding a JSON profile](https://console.bluemix.net/docs/services/personality-insights/output.html)
83+
* * [Understanding a CSV profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
8484
*
8585
* @param {Object} params - The parameters to send to the service.
8686
* @param {Content|string} params.content - A maximum of 20 MB of content to analyze, though the service requires much
@@ -163,10 +163,10 @@ class PersonalityInsightsV3 extends BaseService {
163163
* set). When specifying a content type of plain text or HTML, include the `charset` parameter to indicate the
164164
* character encoding of the input text; for example: `Content-Type: text/plain;charset=utf-8`.
165165
*
166-
* For detailed information about calling the service and the responses it can generate, see [Requesting a
167-
* profile](https://console.bluemix.net/docs/services/personality-insights/input.html), [Understanding a JSON
168-
* profile](https://console.bluemix.net/docs/services/personality-insights/output.html), and [Understanding a CSV
169-
* profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
166+
* **See also:**
167+
* * [Requesting a profile](https://console.bluemix.net/docs/services/personality-insights/input.html)
168+
* * [Understanding a JSON profile](https://console.bluemix.net/docs/services/personality-insights/output.html)
169+
* * [Understanding a CSV profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
170170
*
171171
* @param {Object} params - The parameters to send to the service.
172172
* @param {Content|string} params.content - A maximum of 20 MB of content to analyze, though the service requires much

speech-to-text/v1-generated.ts

Lines changed: 137 additions & 43 deletions
Large diffs are not rendered by default.

test/unit/test.discovery.v1.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -503,15 +503,8 @@ describe('discovery-v1', function() {
503503
},
504504
noop
505505
);
506-
assert.equal(
507-
req.uri.href,
508-
service.url +
509-
paths.query +
510-
'?version=' +
511-
service.version + // query string params order changed, shouldn't be a problem for the service...
512-
'&filter=yesplease&natural_language_query=a%20question%20about%20stuff%20and%20things&passages=true&count=10&sort=%2Bfield_1%2C-field_2'
513-
);
514-
assert.equal(req.method, 'GET');
506+
assert.equal(req.uri.href, service.url + paths.query + '?version=' + service.version);
507+
assert.equal(req.method, 'POST');
515508
});
516509

517510
it('should perform a query for notices', function() {
@@ -552,13 +545,9 @@ describe('discovery-v1', function() {
552545
);
553546
assert.equal(
554547
req.uri.href,
555-
service.url +
556-
paths.federatedquery +
557-
'?version=' +
558-
service.version + // query string params order changed, shouldn't be a problem for the service...
559-
'&collection_ids=col1-guid%2Ccol2-guid&filter=yesplease&natural_language_query=a%20question%20about%20stuff%20and%20things&count=10&sort=%2Bfield_1%2C-field_2'
548+
service.url + paths.federatedquery + '?version=' + service.version
560549
);
561-
assert.equal(req.method, 'GET');
550+
assert.equal(req.method, 'POST');
562551
});
563552

564553
it('should perform a federated query for notices', function() {

0 commit comments

Comments
 (0)