oci-ailanguage 2.79.1 → 2.80.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.
- package/lib/client.d.ts +64 -55
- package/lib/client.js +214 -93
- package/lib/client.js.map +1 -1
- package/lib/model/batch-detect-dominant-language-details.d.ts +17 -0
- package/lib/model/batch-detect-dominant-language-details.js.map +1 -1
- package/lib/model/batch-detect-language-key-phrases-details.d.ts +4 -0
- package/lib/model/batch-detect-language-key-phrases-details.js.map +1 -1
- package/lib/model/batch-detect-language-pii-entities-details.d.ts +4 -0
- package/lib/model/batch-detect-language-pii-entities-details.js.map +1 -1
- package/lib/model/batch-detect-language-sentiments-details.d.ts +4 -0
- package/lib/model/batch-detect-language-sentiments-details.js.map +1 -1
- package/lib/model/batch-language-translation-details.d.ts +31 -24
- package/lib/model/batch-language-translation-details.js.map +1 -1
- package/lib/model/classification-type.js +4 -2
- package/lib/model/classification-type.js.map +1 -1
- package/lib/model/create-model-details.d.ts +1 -1
- package/lib/model/create-model-details.js.map +1 -1
- package/lib/model/dataset-details.js +4 -2
- package/lib/model/dataset-details.js.map +1 -1
- package/lib/model/endpoint-summary.d.ts +3 -1
- package/lib/model/endpoint.d.ts +3 -1
- package/lib/model/evaluation-result-summary.js +4 -2
- package/lib/model/evaluation-result-summary.js.map +1 -1
- package/lib/model/evaluation-results.js +4 -2
- package/lib/model/evaluation-results.js.map +1 -1
- package/lib/model/index.d.ts +0 -2
- package/lib/model/index.js +1 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/location-details.js +4 -2
- package/lib/model/location-details.js.map +1 -1
- package/lib/model/model-details.js +4 -6
- package/lib/model/model-details.js.map +1 -1
- package/lib/model/model-summary.d.ts +6 -4
- package/lib/model/model-summary.js.map +1 -1
- package/lib/model/model.d.ts +5 -3
- package/lib/model/model.js.map +1 -1
- package/lib/model/pii-entity-masking.js +4 -2
- package/lib/model/pii-entity-masking.js.map +1 -1
- package/lib/model/project-summary.d.ts +3 -1
- package/lib/model/project.d.ts +3 -1
- package/lib/model/test-strategy.js +4 -2
- package/lib/model/test-strategy.js.map +1 -1
- package/lib/model/translation-document-result.d.ts +2 -52
- package/lib/model/translation-document-result.js.map +1 -1
- package/lib/request/batch-detect-dominant-language-request.d.ts +1 -1
- package/lib/request/batch-detect-language-entities-request.d.ts +1 -1
- package/lib/request/batch-detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/batch-detect-language-pii-entities-request.d.ts +1 -1
- package/lib/request/batch-detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/batch-detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/batch-language-translation-request.d.ts +1 -1
- package/lib/request/change-endpoint-compartment-request.d.ts +1 -1
- package/lib/request/change-model-compartment-request.d.ts +1 -1
- package/lib/request/change-project-compartment-request.d.ts +1 -1
- package/lib/request/create-endpoint-request.d.ts +1 -1
- package/lib/request/create-model-request.d.ts +1 -1
- package/lib/request/create-project-request.d.ts +1 -1
- package/lib/request/delete-endpoint-request.d.ts +1 -1
- package/lib/request/delete-model-request.d.ts +1 -1
- package/lib/request/delete-project-request.d.ts +1 -1
- package/lib/request/detect-dominant-language-request.d.ts +1 -1
- package/lib/request/detect-language-entities-request.d.ts +1 -1
- package/lib/request/detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/get-endpoint-request.d.ts +1 -1
- package/lib/request/get-model-request.d.ts +1 -1
- package/lib/request/get-model-type-request.d.ts +1 -1
- package/lib/request/get-project-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-endpoints-request.d.ts +1 -1
- package/lib/request/list-evaluation-results-request.d.ts +1 -1
- package/lib/request/list-models-request.d.ts +1 -1
- package/lib/request/list-projects-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-endpoint-request.d.ts +1 -1
- package/lib/request/update-model-request.d.ts +1 -1
- package/lib/request/update-project-request.d.ts +1 -1
- package/package.json +3 -3
- package/lib/model/pre-trained-phi-model-details.d.ts +0 -33
- package/lib/model/pre-trained-phi-model-details.js +0 -57
- package/lib/model/pre-trained-phi-model-details.js.map +0 -1
package/lib/client.js
CHANGED
|
@@ -60,7 +60,7 @@ var AIServiceLanguageApiKeys;
|
|
|
60
60
|
*/
|
|
61
61
|
class AIServiceLanguageClient {
|
|
62
62
|
constructor(params, clientConfiguration) {
|
|
63
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
63
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
64
64
|
this["_endpoint"] = "";
|
|
65
65
|
this["_defaultHeaders"] = {};
|
|
66
66
|
this._circuitBreaker = null;
|
|
@@ -119,7 +119,11 @@ class AIServiceLanguageClient {
|
|
|
119
119
|
set endpoint(endpoint) {
|
|
120
120
|
this._endpoint = endpoint;
|
|
121
121
|
this._endpoint = this._endpoint + "/20221001";
|
|
122
|
-
|
|
122
|
+
if (this.logger)
|
|
123
|
+
this.logger.info(`AIServiceLanguageClient endpoint set to ${this._endpoint}`);
|
|
124
|
+
}
|
|
125
|
+
get logger() {
|
|
126
|
+
return common.LOG.logger;
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
125
129
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -128,7 +132,8 @@ class AIServiceLanguageClient {
|
|
|
128
132
|
*/
|
|
129
133
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
130
134
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
131
|
-
|
|
135
|
+
if (this.logger)
|
|
136
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
132
137
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
133
138
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AIServiceLanguageClient.serviceEndpointTemplate, this._region, AIServiceLanguageClient.endpointServiceName);
|
|
134
139
|
}
|
|
@@ -202,11 +207,12 @@ class AIServiceLanguageClient {
|
|
|
202
207
|
* @param BatchDetectDominantLanguageRequest
|
|
203
208
|
* @return BatchDetectDominantLanguageResponse
|
|
204
209
|
* @throws OciError when an error occurs
|
|
205
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
210
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
|
|
206
211
|
*/
|
|
207
212
|
batchDetectDominantLanguage(batchDetectDominantLanguageRequest) {
|
|
208
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
-
|
|
214
|
+
if (this.logger)
|
|
215
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectDominantLanguage.");
|
|
210
216
|
const operationName = "batchDetectDominantLanguage";
|
|
211
217
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage";
|
|
212
218
|
const pathParams = {};
|
|
@@ -217,6 +223,8 @@ class AIServiceLanguageClient {
|
|
|
217
223
|
};
|
|
218
224
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
219
225
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectDominantLanguageRequest.retryConfiguration, specRetryConfiguration);
|
|
226
|
+
if (this.logger)
|
|
227
|
+
retrier.logger = this.logger;
|
|
220
228
|
const request = yield oci_common_1.composeRequest({
|
|
221
229
|
baseEndpoint: this._endpoint,
|
|
222
230
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -264,11 +272,12 @@ class AIServiceLanguageClient {
|
|
|
264
272
|
* @param BatchDetectLanguageEntitiesRequest
|
|
265
273
|
* @return BatchDetectLanguageEntitiesResponse
|
|
266
274
|
* @throws OciError when an error occurs
|
|
267
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
|
|
268
276
|
*/
|
|
269
277
|
batchDetectLanguageEntities(batchDetectLanguageEntitiesRequest) {
|
|
270
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
-
|
|
279
|
+
if (this.logger)
|
|
280
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguageEntities.");
|
|
272
281
|
const operationName = "batchDetectLanguageEntities";
|
|
273
282
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities";
|
|
274
283
|
const pathParams = {};
|
|
@@ -279,6 +288,8 @@ class AIServiceLanguageClient {
|
|
|
279
288
|
};
|
|
280
289
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
281
290
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguageEntitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
291
|
+
if (this.logger)
|
|
292
|
+
retrier.logger = this.logger;
|
|
282
293
|
const request = yield oci_common_1.composeRequest({
|
|
283
294
|
baseEndpoint: this._endpoint,
|
|
284
295
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -324,11 +335,12 @@ class AIServiceLanguageClient {
|
|
|
324
335
|
* @param BatchDetectLanguageKeyPhrasesRequest
|
|
325
336
|
* @return BatchDetectLanguageKeyPhrasesResponse
|
|
326
337
|
* @throws OciError when an error occurs
|
|
327
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
338
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
|
|
328
339
|
*/
|
|
329
340
|
batchDetectLanguageKeyPhrases(batchDetectLanguageKeyPhrasesRequest) {
|
|
330
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
-
|
|
342
|
+
if (this.logger)
|
|
343
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguageKeyPhrases.");
|
|
332
344
|
const operationName = "batchDetectLanguageKeyPhrases";
|
|
333
345
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases";
|
|
334
346
|
const pathParams = {};
|
|
@@ -339,6 +351,8 @@ class AIServiceLanguageClient {
|
|
|
339
351
|
};
|
|
340
352
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
341
353
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguageKeyPhrasesRequest.retryConfiguration, specRetryConfiguration);
|
|
354
|
+
if (this.logger)
|
|
355
|
+
retrier.logger = this.logger;
|
|
342
356
|
const request = yield oci_common_1.composeRequest({
|
|
343
357
|
baseEndpoint: this._endpoint,
|
|
344
358
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -384,11 +398,12 @@ class AIServiceLanguageClient {
|
|
|
384
398
|
* @param BatchDetectLanguagePiiEntitiesRequest
|
|
385
399
|
* @return BatchDetectLanguagePiiEntitiesResponse
|
|
386
400
|
* @throws OciError when an error occurs
|
|
387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
401
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
|
|
388
402
|
*/
|
|
389
403
|
batchDetectLanguagePiiEntities(batchDetectLanguagePiiEntitiesRequest) {
|
|
390
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
-
|
|
405
|
+
if (this.logger)
|
|
406
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguagePiiEntities.");
|
|
392
407
|
const operationName = "batchDetectLanguagePiiEntities";
|
|
393
408
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguagePiiEntities/BatchDetectLanguagePiiEntities";
|
|
394
409
|
const pathParams = {};
|
|
@@ -399,6 +414,8 @@ class AIServiceLanguageClient {
|
|
|
399
414
|
};
|
|
400
415
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
401
416
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguagePiiEntitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
417
|
+
if (this.logger)
|
|
418
|
+
retrier.logger = this.logger;
|
|
402
419
|
const request = yield oci_common_1.composeRequest({
|
|
403
420
|
baseEndpoint: this._endpoint,
|
|
404
421
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -450,11 +467,12 @@ class AIServiceLanguageClient {
|
|
|
450
467
|
* @param BatchDetectLanguageSentimentsRequest
|
|
451
468
|
* @return BatchDetectLanguageSentimentsResponse
|
|
452
469
|
* @throws OciError when an error occurs
|
|
453
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
470
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
|
|
454
471
|
*/
|
|
455
472
|
batchDetectLanguageSentiments(batchDetectLanguageSentimentsRequest) {
|
|
456
473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
-
|
|
474
|
+
if (this.logger)
|
|
475
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguageSentiments.");
|
|
458
476
|
const operationName = "batchDetectLanguageSentiments";
|
|
459
477
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments";
|
|
460
478
|
const pathParams = {};
|
|
@@ -467,6 +485,8 @@ class AIServiceLanguageClient {
|
|
|
467
485
|
};
|
|
468
486
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
469
487
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguageSentimentsRequest.retryConfiguration, specRetryConfiguration);
|
|
488
|
+
if (this.logger)
|
|
489
|
+
retrier.logger = this.logger;
|
|
470
490
|
const request = yield oci_common_1.composeRequest({
|
|
471
491
|
baseEndpoint: this._endpoint,
|
|
472
492
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -516,11 +536,12 @@ class AIServiceLanguageClient {
|
|
|
516
536
|
* @param BatchDetectLanguageTextClassificationRequest
|
|
517
537
|
* @return BatchDetectLanguageTextClassificationResponse
|
|
518
538
|
* @throws OciError when an error occurs
|
|
519
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
539
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
|
|
520
540
|
*/
|
|
521
541
|
batchDetectLanguageTextClassification(batchDetectLanguageTextClassificationRequest) {
|
|
522
542
|
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
-
|
|
543
|
+
if (this.logger)
|
|
544
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguageTextClassification.");
|
|
524
545
|
const operationName = "batchDetectLanguageTextClassification";
|
|
525
546
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification";
|
|
526
547
|
const pathParams = {};
|
|
@@ -531,6 +552,8 @@ class AIServiceLanguageClient {
|
|
|
531
552
|
};
|
|
532
553
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
533
554
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguageTextClassificationRequest.retryConfiguration, specRetryConfiguration);
|
|
555
|
+
if (this.logger)
|
|
556
|
+
retrier.logger = this.logger;
|
|
534
557
|
const request = yield oci_common_1.composeRequest({
|
|
535
558
|
baseEndpoint: this._endpoint,
|
|
536
559
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -565,22 +588,22 @@ class AIServiceLanguageClient {
|
|
|
565
588
|
});
|
|
566
589
|
}
|
|
567
590
|
/**
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
* -
|
|
572
|
-
* -
|
|
573
|
-
* - The total of characters to process in a request can be up to 20,000 characters.
|
|
591
|
+
* Translates a batch of text documents from source to target language.
|
|
592
|
+
* A batch can contain:
|
|
593
|
+
* - up to 100 records.
|
|
594
|
+
* - documents length less than 5000 characters.
|
|
595
|
+
* - 20,000 characters in total as a sum of all documents length.
|
|
574
596
|
*
|
|
575
597
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
576
598
|
* @param BatchLanguageTranslationRequest
|
|
577
599
|
* @return BatchLanguageTranslationResponse
|
|
578
600
|
* @throws OciError when an error occurs
|
|
579
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
601
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
|
|
580
602
|
*/
|
|
581
603
|
batchLanguageTranslation(batchLanguageTranslationRequest) {
|
|
582
604
|
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
-
|
|
605
|
+
if (this.logger)
|
|
606
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchLanguageTranslation.");
|
|
584
607
|
const operationName = "batchLanguageTranslation";
|
|
585
608
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchLanguageTranslation/BatchLanguageTranslation";
|
|
586
609
|
const pathParams = {};
|
|
@@ -591,6 +614,8 @@ class AIServiceLanguageClient {
|
|
|
591
614
|
};
|
|
592
615
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
593
616
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchLanguageTranslationRequest.retryConfiguration, specRetryConfiguration);
|
|
617
|
+
if (this.logger)
|
|
618
|
+
retrier.logger = this.logger;
|
|
594
619
|
const request = yield oci_common_1.composeRequest({
|
|
595
620
|
baseEndpoint: this._endpoint,
|
|
596
621
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -630,11 +655,12 @@ class AIServiceLanguageClient {
|
|
|
630
655
|
* @param ChangeEndpointCompartmentRequest
|
|
631
656
|
* @return ChangeEndpointCompartmentResponse
|
|
632
657
|
* @throws OciError when an error occurs
|
|
633
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
658
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
|
|
634
659
|
*/
|
|
635
660
|
changeEndpointCompartment(changeEndpointCompartmentRequest) {
|
|
636
661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
637
|
-
|
|
662
|
+
if (this.logger)
|
|
663
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#changeEndpointCompartment.");
|
|
638
664
|
const operationName = "changeEndpointCompartment";
|
|
639
665
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/ChangeEndpointCompartment";
|
|
640
666
|
const pathParams = {
|
|
@@ -649,6 +675,8 @@ class AIServiceLanguageClient {
|
|
|
649
675
|
};
|
|
650
676
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
651
677
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeEndpointCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
678
|
+
if (this.logger)
|
|
679
|
+
retrier.logger = this.logger;
|
|
652
680
|
const request = yield oci_common_1.composeRequest({
|
|
653
681
|
baseEndpoint: this._endpoint,
|
|
654
682
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -684,11 +712,12 @@ class AIServiceLanguageClient {
|
|
|
684
712
|
* @param ChangeModelCompartmentRequest
|
|
685
713
|
* @return ChangeModelCompartmentResponse
|
|
686
714
|
* @throws OciError when an error occurs
|
|
687
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
715
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
688
716
|
*/
|
|
689
717
|
changeModelCompartment(changeModelCompartmentRequest) {
|
|
690
718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
691
|
-
|
|
719
|
+
if (this.logger)
|
|
720
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#changeModelCompartment.");
|
|
692
721
|
const operationName = "changeModelCompartment";
|
|
693
722
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/ChangeModelCompartment";
|
|
694
723
|
const pathParams = {
|
|
@@ -703,6 +732,8 @@ class AIServiceLanguageClient {
|
|
|
703
732
|
};
|
|
704
733
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
705
734
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
735
|
+
if (this.logger)
|
|
736
|
+
retrier.logger = this.logger;
|
|
706
737
|
const request = yield oci_common_1.composeRequest({
|
|
707
738
|
baseEndpoint: this._endpoint,
|
|
708
739
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -738,11 +769,12 @@ class AIServiceLanguageClient {
|
|
|
738
769
|
* @param ChangeProjectCompartmentRequest
|
|
739
770
|
* @return ChangeProjectCompartmentResponse
|
|
740
771
|
* @throws OciError when an error occurs
|
|
741
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
772
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
742
773
|
*/
|
|
743
774
|
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
744
775
|
return __awaiter(this, void 0, void 0, function* () {
|
|
745
|
-
|
|
776
|
+
if (this.logger)
|
|
777
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#changeProjectCompartment.");
|
|
746
778
|
const operationName = "changeProjectCompartment";
|
|
747
779
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/ChangeProjectCompartment";
|
|
748
780
|
const pathParams = {
|
|
@@ -757,6 +789,8 @@ class AIServiceLanguageClient {
|
|
|
757
789
|
};
|
|
758
790
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
759
791
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProjectCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
792
|
+
if (this.logger)
|
|
793
|
+
retrier.logger = this.logger;
|
|
760
794
|
const request = yield oci_common_1.composeRequest({
|
|
761
795
|
baseEndpoint: this._endpoint,
|
|
762
796
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -793,11 +827,12 @@ class AIServiceLanguageClient {
|
|
|
793
827
|
* @param CreateEndpointRequest
|
|
794
828
|
* @return CreateEndpointResponse
|
|
795
829
|
* @throws OciError when an error occurs
|
|
796
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
|
|
797
831
|
*/
|
|
798
832
|
createEndpoint(createEndpointRequest) {
|
|
799
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
-
|
|
834
|
+
if (this.logger)
|
|
835
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#createEndpoint.");
|
|
801
836
|
const operationName = "createEndpoint";
|
|
802
837
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/CreateEndpoint";
|
|
803
838
|
const pathParams = {};
|
|
@@ -809,6 +844,8 @@ class AIServiceLanguageClient {
|
|
|
809
844
|
};
|
|
810
845
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
811
846
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
847
|
+
if (this.logger)
|
|
848
|
+
retrier.logger = this.logger;
|
|
812
849
|
const request = yield oci_common_1.composeRequest({
|
|
813
850
|
baseEndpoint: this._endpoint,
|
|
814
851
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -864,11 +901,12 @@ class AIServiceLanguageClient {
|
|
|
864
901
|
* @param CreateModelRequest
|
|
865
902
|
* @return CreateModelResponse
|
|
866
903
|
* @throws OciError when an error occurs
|
|
867
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
904
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
868
905
|
*/
|
|
869
906
|
createModel(createModelRequest) {
|
|
870
907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
871
|
-
|
|
908
|
+
if (this.logger)
|
|
909
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#createModel.");
|
|
872
910
|
const operationName = "createModel";
|
|
873
911
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/CreateModel";
|
|
874
912
|
const pathParams = {};
|
|
@@ -880,6 +918,8 @@ class AIServiceLanguageClient {
|
|
|
880
918
|
};
|
|
881
919
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
882
920
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelRequest.retryConfiguration, specRetryConfiguration);
|
|
921
|
+
if (this.logger)
|
|
922
|
+
retrier.logger = this.logger;
|
|
883
923
|
const request = yield oci_common_1.composeRequest({
|
|
884
924
|
baseEndpoint: this._endpoint,
|
|
885
925
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -935,11 +975,12 @@ class AIServiceLanguageClient {
|
|
|
935
975
|
* @param CreateProjectRequest
|
|
936
976
|
* @return CreateProjectResponse
|
|
937
977
|
* @throws OciError when an error occurs
|
|
938
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
978
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
939
979
|
*/
|
|
940
980
|
createProject(createProjectRequest) {
|
|
941
981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
942
|
-
|
|
982
|
+
if (this.logger)
|
|
983
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#createProject.");
|
|
943
984
|
const operationName = "createProject";
|
|
944
985
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/CreateProject";
|
|
945
986
|
const pathParams = {};
|
|
@@ -951,6 +992,8 @@ class AIServiceLanguageClient {
|
|
|
951
992
|
};
|
|
952
993
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
953
994
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
995
|
+
if (this.logger)
|
|
996
|
+
retrier.logger = this.logger;
|
|
954
997
|
const request = yield oci_common_1.composeRequest({
|
|
955
998
|
baseEndpoint: this._endpoint,
|
|
956
999
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1000,11 +1043,12 @@ class AIServiceLanguageClient {
|
|
|
1000
1043
|
* @param DeleteEndpointRequest
|
|
1001
1044
|
* @return DeleteEndpointResponse
|
|
1002
1045
|
* @throws OciError when an error occurs
|
|
1003
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1046
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
|
|
1004
1047
|
*/
|
|
1005
1048
|
deleteEndpoint(deleteEndpointRequest) {
|
|
1006
1049
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1007
|
-
|
|
1050
|
+
if (this.logger)
|
|
1051
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#deleteEndpoint.");
|
|
1008
1052
|
const operationName = "deleteEndpoint";
|
|
1009
1053
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/DeleteEndpoint";
|
|
1010
1054
|
const pathParams = {
|
|
@@ -1018,6 +1062,8 @@ class AIServiceLanguageClient {
|
|
|
1018
1062
|
};
|
|
1019
1063
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1020
1064
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1065
|
+
if (this.logger)
|
|
1066
|
+
retrier.logger = this.logger;
|
|
1021
1067
|
const request = yield oci_common_1.composeRequest({
|
|
1022
1068
|
baseEndpoint: this._endpoint,
|
|
1023
1069
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1057,11 +1103,12 @@ class AIServiceLanguageClient {
|
|
|
1057
1103
|
* @param DeleteModelRequest
|
|
1058
1104
|
* @return DeleteModelResponse
|
|
1059
1105
|
* @throws OciError when an error occurs
|
|
1060
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1106
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
1061
1107
|
*/
|
|
1062
1108
|
deleteModel(deleteModelRequest) {
|
|
1063
1109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
-
|
|
1110
|
+
if (this.logger)
|
|
1111
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#deleteModel.");
|
|
1065
1112
|
const operationName = "deleteModel";
|
|
1066
1113
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/DeleteModel";
|
|
1067
1114
|
const pathParams = {
|
|
@@ -1075,6 +1122,8 @@ class AIServiceLanguageClient {
|
|
|
1075
1122
|
};
|
|
1076
1123
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1077
1124
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1125
|
+
if (this.logger)
|
|
1126
|
+
retrier.logger = this.logger;
|
|
1078
1127
|
const request = yield oci_common_1.composeRequest({
|
|
1079
1128
|
baseEndpoint: this._endpoint,
|
|
1080
1129
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1114,11 +1163,12 @@ class AIServiceLanguageClient {
|
|
|
1114
1163
|
* @param DeleteProjectRequest
|
|
1115
1164
|
* @return DeleteProjectResponse
|
|
1116
1165
|
* @throws OciError when an error occurs
|
|
1117
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1166
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
1118
1167
|
*/
|
|
1119
1168
|
deleteProject(deleteProjectRequest) {
|
|
1120
1169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1121
|
-
|
|
1170
|
+
if (this.logger)
|
|
1171
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#deleteProject.");
|
|
1122
1172
|
const operationName = "deleteProject";
|
|
1123
1173
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/DeleteProject";
|
|
1124
1174
|
const pathParams = {
|
|
@@ -1132,6 +1182,8 @@ class AIServiceLanguageClient {
|
|
|
1132
1182
|
};
|
|
1133
1183
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1134
1184
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1185
|
+
if (this.logger)
|
|
1186
|
+
retrier.logger = this.logger;
|
|
1135
1187
|
const request = yield oci_common_1.composeRequest({
|
|
1136
1188
|
baseEndpoint: this._endpoint,
|
|
1137
1189
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1166,10 +1218,12 @@ class AIServiceLanguageClient {
|
|
|
1166
1218
|
});
|
|
1167
1219
|
}
|
|
1168
1220
|
/**
|
|
1169
|
-
* This API will be retired
|
|
1170
|
-
*
|
|
1221
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1222
|
+
* We recommend you replace this API with the batch API, [BatchDetectDominantLanguage](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage).
|
|
1171
1223
|
* <p>
|
|
1172
|
-
|
|
1224
|
+
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
|
|
1225
|
+
* <p>
|
|
1226
|
+
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
|
|
1173
1227
|
* <p>
|
|
1174
1228
|
Limitations:
|
|
1175
1229
|
* - A record may be up to 1000 characters long.
|
|
@@ -1178,11 +1232,12 @@ class AIServiceLanguageClient {
|
|
|
1178
1232
|
* @param DetectDominantLanguageRequest
|
|
1179
1233
|
* @return DetectDominantLanguageResponse
|
|
1180
1234
|
* @throws OciError when an error occurs
|
|
1181
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1235
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
|
|
1182
1236
|
*/
|
|
1183
1237
|
detectDominantLanguage(detectDominantLanguageRequest) {
|
|
1184
1238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1185
|
-
|
|
1239
|
+
if (this.logger)
|
|
1240
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#detectDominantLanguage.");
|
|
1186
1241
|
const operationName = "detectDominantLanguage";
|
|
1187
1242
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/DetectDominantLanguage/DetectDominantLanguage";
|
|
1188
1243
|
const pathParams = {};
|
|
@@ -1193,6 +1248,8 @@ class AIServiceLanguageClient {
|
|
|
1193
1248
|
};
|
|
1194
1249
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1195
1250
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, detectDominantLanguageRequest.retryConfiguration, specRetryConfiguration);
|
|
1251
|
+
if (this.logger)
|
|
1252
|
+
retrier.logger = this.logger;
|
|
1196
1253
|
const request = yield oci_common_1.composeRequest({
|
|
1197
1254
|
baseEndpoint: this._endpoint,
|
|
1198
1255
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1232,8 +1289,10 @@ class AIServiceLanguageClient {
|
|
|
1232
1289
|
});
|
|
1233
1290
|
}
|
|
1234
1291
|
/**
|
|
1235
|
-
* This API will be retired
|
|
1236
|
-
*
|
|
1292
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1293
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageEntities](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities).
|
|
1294
|
+
* <p>
|
|
1295
|
+
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
|
|
1237
1296
|
* <p>
|
|
1238
1297
|
Limitations:
|
|
1239
1298
|
* - A text may be up to 1000 characters long.
|
|
@@ -1242,11 +1301,12 @@ class AIServiceLanguageClient {
|
|
|
1242
1301
|
* @param DetectLanguageEntitiesRequest
|
|
1243
1302
|
* @return DetectLanguageEntitiesResponse
|
|
1244
1303
|
* @throws OciError when an error occurs
|
|
1245
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1304
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
|
|
1246
1305
|
*/
|
|
1247
1306
|
detectLanguageEntities(detectLanguageEntitiesRequest) {
|
|
1248
1307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1249
|
-
|
|
1308
|
+
if (this.logger)
|
|
1309
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#detectLanguageEntities.");
|
|
1250
1310
|
const operationName = "detectLanguageEntities";
|
|
1251
1311
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/DetectLanguageEntities/DetectLanguageEntities";
|
|
1252
1312
|
const pathParams = {};
|
|
@@ -1260,6 +1320,8 @@ class AIServiceLanguageClient {
|
|
|
1260
1320
|
};
|
|
1261
1321
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1262
1322
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, detectLanguageEntitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
1323
|
+
if (this.logger)
|
|
1324
|
+
retrier.logger = this.logger;
|
|
1263
1325
|
const request = yield oci_common_1.composeRequest({
|
|
1264
1326
|
baseEndpoint: this._endpoint,
|
|
1265
1327
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1299,21 +1361,23 @@ class AIServiceLanguageClient {
|
|
|
1299
1361
|
});
|
|
1300
1362
|
}
|
|
1301
1363
|
/**
|
|
1302
|
-
* This API will be retired
|
|
1303
|
-
*
|
|
1364
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1365
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageKeyPhrases](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases).
|
|
1304
1366
|
* <p>
|
|
1305
|
-
|
|
1367
|
+
The DetectLanguageKeyPhrases API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text.
|
|
1368
|
+
* Limitations:
|
|
1306
1369
|
* - A record may be up to 1000 characters long.
|
|
1307
1370
|
*
|
|
1308
1371
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1309
1372
|
* @param DetectLanguageKeyPhrasesRequest
|
|
1310
1373
|
* @return DetectLanguageKeyPhrasesResponse
|
|
1311
1374
|
* @throws OciError when an error occurs
|
|
1312
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1375
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
|
|
1313
1376
|
*/
|
|
1314
1377
|
detectLanguageKeyPhrases(detectLanguageKeyPhrasesRequest) {
|
|
1315
1378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1316
|
-
|
|
1379
|
+
if (this.logger)
|
|
1380
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#detectLanguageKeyPhrases.");
|
|
1317
1381
|
const operationName = "detectLanguageKeyPhrases";
|
|
1318
1382
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/DetectLanguageKeyPhrases/DetectLanguageKeyPhrases";
|
|
1319
1383
|
const pathParams = {};
|
|
@@ -1324,6 +1388,8 @@ class AIServiceLanguageClient {
|
|
|
1324
1388
|
};
|
|
1325
1389
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1326
1390
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, detectLanguageKeyPhrasesRequest.retryConfiguration, specRetryConfiguration);
|
|
1391
|
+
if (this.logger)
|
|
1392
|
+
retrier.logger = this.logger;
|
|
1327
1393
|
const request = yield oci_common_1.composeRequest({
|
|
1328
1394
|
baseEndpoint: this._endpoint,
|
|
1329
1395
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1363,8 +1429,10 @@ class AIServiceLanguageClient {
|
|
|
1363
1429
|
});
|
|
1364
1430
|
}
|
|
1365
1431
|
/**
|
|
1366
|
-
* This API will be retired
|
|
1367
|
-
*
|
|
1432
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1433
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageSentiments](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments).
|
|
1434
|
+
* <p>
|
|
1435
|
+
The DetectLanguageSentiments API extracts aspect-based in text records.
|
|
1368
1436
|
* <p>
|
|
1369
1437
|
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
|
|
1370
1438
|
* <p>
|
|
@@ -1379,11 +1447,12 @@ class AIServiceLanguageClient {
|
|
|
1379
1447
|
* @param DetectLanguageSentimentsRequest
|
|
1380
1448
|
* @return DetectLanguageSentimentsResponse
|
|
1381
1449
|
* @throws OciError when an error occurs
|
|
1382
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
|
|
1383
1451
|
*/
|
|
1384
1452
|
detectLanguageSentiments(detectLanguageSentimentsRequest) {
|
|
1385
1453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1386
|
-
|
|
1454
|
+
if (this.logger)
|
|
1455
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#detectLanguageSentiments.");
|
|
1387
1456
|
const operationName = "detectLanguageSentiments";
|
|
1388
1457
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/DetectLanguageSentiments/DetectLanguageSentiments";
|
|
1389
1458
|
const pathParams = {};
|
|
@@ -1394,6 +1463,8 @@ class AIServiceLanguageClient {
|
|
|
1394
1463
|
};
|
|
1395
1464
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1396
1465
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, detectLanguageSentimentsRequest.retryConfiguration, specRetryConfiguration);
|
|
1466
|
+
if (this.logger)
|
|
1467
|
+
retrier.logger = this.logger;
|
|
1397
1468
|
const request = yield oci_common_1.composeRequest({
|
|
1398
1469
|
baseEndpoint: this._endpoint,
|
|
1399
1470
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1433,8 +1504,10 @@ class AIServiceLanguageClient {
|
|
|
1433
1504
|
});
|
|
1434
1505
|
}
|
|
1435
1506
|
/**
|
|
1436
|
-
* This API will be retired
|
|
1437
|
-
*
|
|
1507
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1508
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageTextClassification](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification).
|
|
1509
|
+
* <p>
|
|
1510
|
+
The DetectLanguageTextClassification API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
|
|
1438
1511
|
* <p>
|
|
1439
1512
|
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
|
|
1440
1513
|
* <p>
|
|
@@ -1445,11 +1518,12 @@ class AIServiceLanguageClient {
|
|
|
1445
1518
|
* @param DetectLanguageTextClassificationRequest
|
|
1446
1519
|
* @return DetectLanguageTextClassificationResponse
|
|
1447
1520
|
* @throws OciError when an error occurs
|
|
1448
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1521
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
|
|
1449
1522
|
*/
|
|
1450
1523
|
detectLanguageTextClassification(detectLanguageTextClassificationRequest) {
|
|
1451
1524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
-
|
|
1525
|
+
if (this.logger)
|
|
1526
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#detectLanguageTextClassification.");
|
|
1453
1527
|
const operationName = "detectLanguageTextClassification";
|
|
1454
1528
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/DetectLanguageTextClassification/DetectLanguageTextClassification";
|
|
1455
1529
|
const pathParams = {};
|
|
@@ -1460,6 +1534,8 @@ class AIServiceLanguageClient {
|
|
|
1460
1534
|
};
|
|
1461
1535
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1462
1536
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, detectLanguageTextClassificationRequest.retryConfiguration, specRetryConfiguration);
|
|
1537
|
+
if (this.logger)
|
|
1538
|
+
retrier.logger = this.logger;
|
|
1463
1539
|
const request = yield oci_common_1.composeRequest({
|
|
1464
1540
|
baseEndpoint: this._endpoint,
|
|
1465
1541
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1504,11 +1580,12 @@ class AIServiceLanguageClient {
|
|
|
1504
1580
|
* @param GetEndpointRequest
|
|
1505
1581
|
* @return GetEndpointResponse
|
|
1506
1582
|
* @throws OciError when an error occurs
|
|
1507
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1583
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
|
|
1508
1584
|
*/
|
|
1509
1585
|
getEndpoint(getEndpointRequest) {
|
|
1510
1586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1511
|
-
|
|
1587
|
+
if (this.logger)
|
|
1588
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getEndpoint.");
|
|
1512
1589
|
const operationName = "getEndpoint";
|
|
1513
1590
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/GetEndpoint";
|
|
1514
1591
|
const pathParams = {
|
|
@@ -1521,6 +1598,8 @@ class AIServiceLanguageClient {
|
|
|
1521
1598
|
};
|
|
1522
1599
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1523
1600
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1601
|
+
if (this.logger)
|
|
1602
|
+
retrier.logger = this.logger;
|
|
1524
1603
|
const request = yield oci_common_1.composeRequest({
|
|
1525
1604
|
baseEndpoint: this._endpoint,
|
|
1526
1605
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1564,11 +1643,12 @@ class AIServiceLanguageClient {
|
|
|
1564
1643
|
* @param GetModelRequest
|
|
1565
1644
|
* @return GetModelResponse
|
|
1566
1645
|
* @throws OciError when an error occurs
|
|
1567
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1646
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1568
1647
|
*/
|
|
1569
1648
|
getModel(getModelRequest) {
|
|
1570
1649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1571
|
-
|
|
1650
|
+
if (this.logger)
|
|
1651
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getModel.");
|
|
1572
1652
|
const operationName = "getModel";
|
|
1573
1653
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/GetModel";
|
|
1574
1654
|
const pathParams = {
|
|
@@ -1581,6 +1661,8 @@ class AIServiceLanguageClient {
|
|
|
1581
1661
|
};
|
|
1582
1662
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1583
1663
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1664
|
+
if (this.logger)
|
|
1665
|
+
retrier.logger = this.logger;
|
|
1584
1666
|
const request = yield oci_common_1.composeRequest({
|
|
1585
1667
|
baseEndpoint: this._endpoint,
|
|
1586
1668
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1624,11 +1706,12 @@ class AIServiceLanguageClient {
|
|
|
1624
1706
|
* @param GetModelTypeRequest
|
|
1625
1707
|
* @return GetModelTypeResponse
|
|
1626
1708
|
* @throws OciError when an error occurs
|
|
1627
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1709
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetModelType.ts.html |here} to see how to use GetModelType API.
|
|
1628
1710
|
*/
|
|
1629
1711
|
getModelType(getModelTypeRequest) {
|
|
1630
1712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1631
|
-
|
|
1713
|
+
if (this.logger)
|
|
1714
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getModelType.");
|
|
1632
1715
|
const operationName = "getModelType";
|
|
1633
1716
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType";
|
|
1634
1717
|
const pathParams = {
|
|
@@ -1641,6 +1724,8 @@ class AIServiceLanguageClient {
|
|
|
1641
1724
|
};
|
|
1642
1725
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1643
1726
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelTypeRequest.retryConfiguration, specRetryConfiguration);
|
|
1727
|
+
if (this.logger)
|
|
1728
|
+
retrier.logger = this.logger;
|
|
1644
1729
|
const request = yield oci_common_1.composeRequest({
|
|
1645
1730
|
baseEndpoint: this._endpoint,
|
|
1646
1731
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1679,11 +1764,12 @@ class AIServiceLanguageClient {
|
|
|
1679
1764
|
* @param GetProjectRequest
|
|
1680
1765
|
* @return GetProjectResponse
|
|
1681
1766
|
* @throws OciError when an error occurs
|
|
1682
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1767
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1683
1768
|
*/
|
|
1684
1769
|
getProject(getProjectRequest) {
|
|
1685
1770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1686
|
-
|
|
1771
|
+
if (this.logger)
|
|
1772
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getProject.");
|
|
1687
1773
|
const operationName = "getProject";
|
|
1688
1774
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/GetProject";
|
|
1689
1775
|
const pathParams = {
|
|
@@ -1696,6 +1782,8 @@ class AIServiceLanguageClient {
|
|
|
1696
1782
|
};
|
|
1697
1783
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1698
1784
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1785
|
+
if (this.logger)
|
|
1786
|
+
retrier.logger = this.logger;
|
|
1699
1787
|
const request = yield oci_common_1.composeRequest({
|
|
1700
1788
|
baseEndpoint: this._endpoint,
|
|
1701
1789
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1739,11 +1827,12 @@ class AIServiceLanguageClient {
|
|
|
1739
1827
|
* @param GetWorkRequestRequest
|
|
1740
1828
|
* @return GetWorkRequestResponse
|
|
1741
1829
|
* @throws OciError when an error occurs
|
|
1742
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1743
1831
|
*/
|
|
1744
1832
|
getWorkRequest(getWorkRequestRequest) {
|
|
1745
1833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1746
|
-
|
|
1834
|
+
if (this.logger)
|
|
1835
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getWorkRequest.");
|
|
1747
1836
|
const operationName = "getWorkRequest";
|
|
1748
1837
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/WorkRequest/GetWorkRequest";
|
|
1749
1838
|
const pathParams = {
|
|
@@ -1756,6 +1845,8 @@ class AIServiceLanguageClient {
|
|
|
1756
1845
|
};
|
|
1757
1846
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1758
1847
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1848
|
+
if (this.logger)
|
|
1849
|
+
retrier.logger = this.logger;
|
|
1759
1850
|
const request = yield oci_common_1.composeRequest({
|
|
1760
1851
|
baseEndpoint: this._endpoint,
|
|
1761
1852
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1800,11 +1891,12 @@ class AIServiceLanguageClient {
|
|
|
1800
1891
|
* @param ListEndpointsRequest
|
|
1801
1892
|
* @return ListEndpointsResponse
|
|
1802
1893
|
* @throws OciError when an error occurs
|
|
1803
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1894
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
|
|
1804
1895
|
*/
|
|
1805
1896
|
listEndpoints(listEndpointsRequest) {
|
|
1806
1897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1807
|
-
|
|
1898
|
+
if (this.logger)
|
|
1899
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listEndpoints.");
|
|
1808
1900
|
const operationName = "listEndpoints";
|
|
1809
1901
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/ListEndpoints";
|
|
1810
1902
|
const pathParams = {};
|
|
@@ -1826,6 +1918,8 @@ class AIServiceLanguageClient {
|
|
|
1826
1918
|
};
|
|
1827
1919
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1828
1920
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
1921
|
+
if (this.logger)
|
|
1922
|
+
retrier.logger = this.logger;
|
|
1829
1923
|
const request = yield oci_common_1.composeRequest({
|
|
1830
1924
|
baseEndpoint: this._endpoint,
|
|
1831
1925
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1869,11 +1963,12 @@ class AIServiceLanguageClient {
|
|
|
1869
1963
|
* @param ListEvaluationResultsRequest
|
|
1870
1964
|
* @return ListEvaluationResultsResponse
|
|
1871
1965
|
* @throws OciError when an error occurs
|
|
1872
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1966
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
|
|
1873
1967
|
*/
|
|
1874
1968
|
listEvaluationResults(listEvaluationResultsRequest) {
|
|
1875
1969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1876
|
-
|
|
1970
|
+
if (this.logger)
|
|
1971
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listEvaluationResults.");
|
|
1877
1972
|
const operationName = "listEvaluationResults";
|
|
1878
1973
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/EvaluationResultCollection/ListEvaluationResults";
|
|
1879
1974
|
const pathParams = {
|
|
@@ -1889,6 +1984,8 @@ class AIServiceLanguageClient {
|
|
|
1889
1984
|
};
|
|
1890
1985
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1891
1986
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEvaluationResultsRequest.retryConfiguration, specRetryConfiguration);
|
|
1987
|
+
if (this.logger)
|
|
1988
|
+
retrier.logger = this.logger;
|
|
1892
1989
|
const request = yield oci_common_1.composeRequest({
|
|
1893
1990
|
baseEndpoint: this._endpoint,
|
|
1894
1991
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1933,11 +2030,12 @@ class AIServiceLanguageClient {
|
|
|
1933
2030
|
* @param ListModelsRequest
|
|
1934
2031
|
* @return ListModelsResponse
|
|
1935
2032
|
* @throws OciError when an error occurs
|
|
1936
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2033
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1937
2034
|
*/
|
|
1938
2035
|
listModels(listModelsRequest) {
|
|
1939
2036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1940
|
-
|
|
2037
|
+
if (this.logger)
|
|
2038
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listModels.");
|
|
1941
2039
|
const operationName = "listModels";
|
|
1942
2040
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/ListModels";
|
|
1943
2041
|
const pathParams = {};
|
|
@@ -1958,6 +2056,8 @@ class AIServiceLanguageClient {
|
|
|
1958
2056
|
};
|
|
1959
2057
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1960
2058
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
|
|
2059
|
+
if (this.logger)
|
|
2060
|
+
retrier.logger = this.logger;
|
|
1961
2061
|
const request = yield oci_common_1.composeRequest({
|
|
1962
2062
|
baseEndpoint: this._endpoint,
|
|
1963
2063
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2002,11 +2102,12 @@ class AIServiceLanguageClient {
|
|
|
2002
2102
|
* @param ListProjectsRequest
|
|
2003
2103
|
* @return ListProjectsResponse
|
|
2004
2104
|
* @throws OciError when an error occurs
|
|
2005
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2105
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
2006
2106
|
*/
|
|
2007
2107
|
listProjects(listProjectsRequest) {
|
|
2008
2108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
-
|
|
2109
|
+
if (this.logger)
|
|
2110
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listProjects.");
|
|
2010
2111
|
const operationName = "listProjects";
|
|
2011
2112
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/ListProjects";
|
|
2012
2113
|
const pathParams = {};
|
|
@@ -2026,6 +2127,8 @@ class AIServiceLanguageClient {
|
|
|
2026
2127
|
};
|
|
2027
2128
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2028
2129
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
2130
|
+
if (this.logger)
|
|
2131
|
+
retrier.logger = this.logger;
|
|
2029
2132
|
const request = yield oci_common_1.composeRequest({
|
|
2030
2133
|
baseEndpoint: this._endpoint,
|
|
2031
2134
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2070,11 +2173,12 @@ class AIServiceLanguageClient {
|
|
|
2070
2173
|
* @param ListWorkRequestErrorsRequest
|
|
2071
2174
|
* @return ListWorkRequestErrorsResponse
|
|
2072
2175
|
* @throws OciError when an error occurs
|
|
2073
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2176
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2074
2177
|
*/
|
|
2075
2178
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2076
2179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2077
|
-
|
|
2180
|
+
if (this.logger)
|
|
2181
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listWorkRequestErrors.");
|
|
2078
2182
|
const operationName = "listWorkRequestErrors";
|
|
2079
2183
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/WorkRequestError/ListWorkRequestErrors";
|
|
2080
2184
|
const pathParams = {
|
|
@@ -2092,6 +2196,8 @@ class AIServiceLanguageClient {
|
|
|
2092
2196
|
};
|
|
2093
2197
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2094
2198
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2199
|
+
if (this.logger)
|
|
2200
|
+
retrier.logger = this.logger;
|
|
2095
2201
|
const request = yield oci_common_1.composeRequest({
|
|
2096
2202
|
baseEndpoint: this._endpoint,
|
|
2097
2203
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2136,11 +2242,12 @@ class AIServiceLanguageClient {
|
|
|
2136
2242
|
* @param ListWorkRequestLogsRequest
|
|
2137
2243
|
* @return ListWorkRequestLogsResponse
|
|
2138
2244
|
* @throws OciError when an error occurs
|
|
2139
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2245
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2140
2246
|
*/
|
|
2141
2247
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2142
2248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2143
|
-
|
|
2249
|
+
if (this.logger)
|
|
2250
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listWorkRequestLogs.");
|
|
2144
2251
|
const operationName = "listWorkRequestLogs";
|
|
2145
2252
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/WorkRequestLog/ListWorkRequestLogs";
|
|
2146
2253
|
const pathParams = {
|
|
@@ -2158,6 +2265,8 @@ class AIServiceLanguageClient {
|
|
|
2158
2265
|
};
|
|
2159
2266
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2160
2267
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2268
|
+
if (this.logger)
|
|
2269
|
+
retrier.logger = this.logger;
|
|
2161
2270
|
const request = yield oci_common_1.composeRequest({
|
|
2162
2271
|
baseEndpoint: this._endpoint,
|
|
2163
2272
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2202,11 +2311,12 @@ class AIServiceLanguageClient {
|
|
|
2202
2311
|
* @param ListWorkRequestsRequest
|
|
2203
2312
|
* @return ListWorkRequestsResponse
|
|
2204
2313
|
* @throws OciError when an error occurs
|
|
2205
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2314
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2206
2315
|
*/
|
|
2207
2316
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2208
2317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2209
|
-
|
|
2318
|
+
if (this.logger)
|
|
2319
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#listWorkRequests.");
|
|
2210
2320
|
const operationName = "listWorkRequests";
|
|
2211
2321
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/WorkRequest/ListWorkRequests";
|
|
2212
2322
|
const pathParams = {};
|
|
@@ -2225,6 +2335,8 @@ class AIServiceLanguageClient {
|
|
|
2225
2335
|
};
|
|
2226
2336
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2227
2337
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2338
|
+
if (this.logger)
|
|
2339
|
+
retrier.logger = this.logger;
|
|
2228
2340
|
const request = yield oci_common_1.composeRequest({
|
|
2229
2341
|
baseEndpoint: this._endpoint,
|
|
2230
2342
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2268,11 +2380,12 @@ class AIServiceLanguageClient {
|
|
|
2268
2380
|
* @param UpdateEndpointRequest
|
|
2269
2381
|
* @return UpdateEndpointResponse
|
|
2270
2382
|
* @throws OciError when an error occurs
|
|
2271
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2383
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
|
|
2272
2384
|
*/
|
|
2273
2385
|
updateEndpoint(updateEndpointRequest) {
|
|
2274
2386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2275
|
-
|
|
2387
|
+
if (this.logger)
|
|
2388
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#updateEndpoint.");
|
|
2276
2389
|
const operationName = "updateEndpoint";
|
|
2277
2390
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Endpoint/UpdateEndpoint";
|
|
2278
2391
|
const pathParams = {
|
|
@@ -2286,6 +2399,8 @@ class AIServiceLanguageClient {
|
|
|
2286
2399
|
};
|
|
2287
2400
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2288
2401
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
2402
|
+
if (this.logger)
|
|
2403
|
+
retrier.logger = this.logger;
|
|
2289
2404
|
const request = yield oci_common_1.composeRequest({
|
|
2290
2405
|
baseEndpoint: this._endpoint,
|
|
2291
2406
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2326,11 +2441,12 @@ class AIServiceLanguageClient {
|
|
|
2326
2441
|
* @param UpdateModelRequest
|
|
2327
2442
|
* @return UpdateModelResponse
|
|
2328
2443
|
* @throws OciError when an error occurs
|
|
2329
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2444
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
2330
2445
|
*/
|
|
2331
2446
|
updateModel(updateModelRequest) {
|
|
2332
2447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2333
|
-
|
|
2448
|
+
if (this.logger)
|
|
2449
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#updateModel.");
|
|
2334
2450
|
const operationName = "updateModel";
|
|
2335
2451
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Model/UpdateModel";
|
|
2336
2452
|
const pathParams = {
|
|
@@ -2344,6 +2460,8 @@ class AIServiceLanguageClient {
|
|
|
2344
2460
|
};
|
|
2345
2461
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2346
2462
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
|
|
2463
|
+
if (this.logger)
|
|
2464
|
+
retrier.logger = this.logger;
|
|
2347
2465
|
const request = yield oci_common_1.composeRequest({
|
|
2348
2466
|
baseEndpoint: this._endpoint,
|
|
2349
2467
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2384,11 +2502,12 @@ class AIServiceLanguageClient {
|
|
|
2384
2502
|
* @param UpdateProjectRequest
|
|
2385
2503
|
* @return UpdateProjectResponse
|
|
2386
2504
|
* @throws OciError when an error occurs
|
|
2387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2505
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
2388
2506
|
*/
|
|
2389
2507
|
updateProject(updateProjectRequest) {
|
|
2390
2508
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2391
|
-
|
|
2509
|
+
if (this.logger)
|
|
2510
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#updateProject.");
|
|
2392
2511
|
const operationName = "updateProject";
|
|
2393
2512
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Project/UpdateProject";
|
|
2394
2513
|
const pathParams = {
|
|
@@ -2402,6 +2521,8 @@ class AIServiceLanguageClient {
|
|
|
2402
2521
|
};
|
|
2403
2522
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2404
2523
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
2524
|
+
if (this.logger)
|
|
2525
|
+
retrier.logger = this.logger;
|
|
2405
2526
|
const request = yield oci_common_1.composeRequest({
|
|
2406
2527
|
baseEndpoint: this._endpoint,
|
|
2407
2528
|
defaultHeaders: this._defaultHeaders,
|