You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discovery/v1-generated.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -532,7 +532,7 @@ class DiscoveryV1 extends BaseService {
532
532
* @param {string} [params.configuration] - The configuration to use to process the document. If this part is provided, then the provided configuration is used to process the document. If the `configuration_id` is also provided (both are present at the same time), then request is rejected. The maximum supported configuration size is 1 MB. Configuration parts larger than 1 MB are rejected. See the `GET /configurations/{configuration_id}` operation for an example configuration.
533
533
* @param {string} [params.step] - Specify to only run the input document through the given step instead of running the input document through the entire ingestion workflow. Valid values are `convert`, `enrich`, and `normalize`.
534
534
* @param {string} [params.configuration_id] - The ID of the configuration to use to process the document. If the `configuration` form part is also provided (both are present at the same time), then request will be rejected.
535
-
* @param {ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
535
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
536
536
* @param {string} [params.metadata] - If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
537
537
* @param {string} [params.file_content_type] - The content type of file.
538
538
* @param {Function} [callback] - The callback that handles the response.
@@ -967,7 +967,7 @@ class DiscoveryV1 extends BaseService {
967
967
* @param {Object} params - The parameters to send to the service.
968
968
* @param {string} params.environment_id - The ID of the environment.
969
969
* @param {string} params.collection_id - The ID of the collection.
970
-
* @param {ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
970
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
971
971
* @param {string} [params.metadata] - If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
972
972
* @param {string} [params.file_content_type] - The content type of file.
973
973
* @param {Function} [callback] - The callback that handles the response.
@@ -1100,7 +1100,7 @@ class DiscoveryV1 extends BaseService {
1100
1100
* @param {string} params.environment_id - The ID of the environment.
1101
1101
* @param {string} params.collection_id - The ID of the collection.
1102
1102
* @param {string} params.document_id - The ID of the document.
1103
-
* @param {ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
1103
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.file] - The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected.
1104
1104
* @param {string} [params.metadata] - If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
1105
1105
* @param {string} [params.file_content_type] - The content type of file.
1106
1106
* @param {Function} [callback] - The callback that handles the response.
@@ -2131,7 +2131,7 @@ namespace DiscoveryV1 {
2131
2131
/** The ID of the configuration to use to process the document. If the `configuration` form part is also provided (both are present at the same time), then request will be rejected. */
2132
2132
configuration_id?: string;
2133
2133
/** The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected. */
2134
-
file?: ReadableStream|FileObject|Buffer;
2134
+
file?: NodeJS.ReadableStream|FileObject|Buffer;
2135
2135
/** If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```. */
2136
2136
metadata?: string;
2137
2137
/** The content type of file. */
@@ -2269,7 +2269,7 @@ namespace DiscoveryV1 {
2269
2269
/** The ID of the collection. */
2270
2270
collection_id: string;
2271
2271
/** The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected. */
2272
-
file?: ReadableStream|FileObject|Buffer;
2272
+
file?: NodeJS.ReadableStream|FileObject|Buffer;
2273
2273
/** If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```. */
2274
2274
metadata?: string;
2275
2275
/** The content type of file. */
@@ -2318,7 +2318,7 @@ namespace DiscoveryV1 {
2318
2318
/** The ID of the document. */
2319
2319
document_id: string;
2320
2320
/** The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50 megabytes is rejected. */
2321
-
file?: ReadableStream|FileObject|Buffer;
2321
+
file?: NodeJS.ReadableStream|FileObject|Buffer;
2322
2322
/** If you're using the Data Crawler to upload your documents, you can test a document against the type of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```. */
Copy file name to clipboardExpand all lines: language-translator/v2-generated.ts
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ import { createRequest } from '../lib/requestwrapper';
25
25
* Language Translator translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
@@ -136,6 +138,7 @@ class LanguageTranslatorV2 extends BaseService {
136
138
returncreateRequest(parameters,_callback);
137
139
};
138
140
141
+
139
142
/**
140
143
* List identifiable languages.
141
144
*
@@ -174,9 +177,9 @@ class LanguageTranslatorV2 extends BaseService {
174
177
* @param {Object} params - The parameters to send to the service.
175
178
* @param {string} params.base_model_id - The model ID of the model to use as the base for customization. To see available models, use the `List models` method.
176
179
* @param {string} [params.name] - An optional model name that you can use to identify the model. Valid characters are letters, numbers, dashes, underscores, spaces and apostrophes. The maximum length is 32 characters.
177
-
* @param {ReadableStream|FileObject|Buffer} [params.forced_glossary] - A TMX file with your customizations. The customizations in the file completely overwrite the domain translaton data, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call.
178
-
* @param {ReadableStream|FileObject|Buffer} [params.parallel_corpus] - A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
179
-
* @param {ReadableStream|FileObject|Buffer} [params.monolingual_corpus] - A UTF-8 encoded plain text file that is used to customize the target language model.
180
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.forced_glossary] - A TMX file with your customizations. The customizations in the file completely overwrite the domain translaton data, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call.
181
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.parallel_corpus] - A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
182
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.monolingual_corpus] - A UTF-8 encoded plain text file that is used to customize the target language model.
180
183
* @param {Function} [callback] - The callback that handles the response.
/** An optional model name that you can use to identify the model. Valid characters are letters, numbers, dashes, underscores, spaces and apostrophes. The maximum length is 32 characters. */
390
399
name?: string;
391
400
/** A TMX file with your customizations. The customizations in the file completely overwrite the domain translaton data, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call. */
Copy file name to clipboardExpand all lines: natural-language-classifier/v1-generated.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -107,8 +107,8 @@ class NaturalLanguageClassifierV1 extends BaseService {
107
107
* Sends data to create and train a classifier and returns information about the new classifier.
108
108
*
109
109
* @param {Object} params - The parameters to send to the service.
110
-
* @param {ReadableStream|FileObject|Buffer} params.metadata - Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier.
111
-
* @param {ReadableStream|FileObject|Buffer} params.training_data - Training data in CSV format. Each text value must have at least one class. The data can include up to 15,000 records. For details, see [Using your own data](https://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html).
110
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} params.metadata - Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier.
111
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} params.training_data - Training data in CSV format. Each text value must have at least one class. The data can include up to 15,000 records. For details, see [Using your own data](https://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html).
112
112
* @param {Function} [callback] - The callback that handles the response.
/** Training data in CSV format. Each text value must have at least one class. The data can include up to 15,000 records. For details, see [Using your own data](https://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html). */
0 commit comments