oci-aivision 2.79.1 → 2.81.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 +27 -26
- package/lib/client.js +133 -53
- package/lib/client.js.map +1 -1
- package/lib/model/dataset.js +4 -2
- package/lib/model/dataset.js.map +1 -1
- package/lib/model/document-details.js +4 -2
- package/lib/model/document-details.js.map +1 -1
- package/lib/model/document-feature.js +4 -2
- package/lib/model/document-feature.js.map +1 -1
- package/lib/model/field-value.js +4 -2
- package/lib/model/field-value.js.map +1 -1
- package/lib/model/image-details.js +4 -2
- package/lib/model/image-details.js.map +1 -1
- package/lib/model/image-feature.js +4 -2
- package/lib/model/image-feature.js.map +1 -1
- package/lib/model/input-location.js +4 -2
- package/lib/model/input-location.js.map +1 -1
- package/lib/request/analyze-document-request.d.ts +1 -1
- package/lib/request/analyze-image-request.d.ts +1 -1
- package/lib/request/cancel-document-job-request.d.ts +1 -1
- package/lib/request/cancel-image-job-request.d.ts +1 -1
- package/lib/request/cancel-work-request-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-document-job-request.d.ts +1 -1
- package/lib/request/create-image-job-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-model-request.d.ts +1 -1
- package/lib/request/delete-project-request.d.ts +1 -1
- package/lib/request/get-document-job-request.d.ts +1 -1
- package/lib/request/get-image-job-request.d.ts +1 -1
- package/lib/request/get-model-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-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-model-request.d.ts +1 -1
- package/lib/request/update-project-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -57,7 +57,7 @@ var AIServiceVisionApiKeys;
|
|
|
57
57
|
*/
|
|
58
58
|
class AIServiceVisionClient {
|
|
59
59
|
constructor(params, clientConfiguration) {
|
|
60
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
61
61
|
this["_endpoint"] = "";
|
|
62
62
|
this["_defaultHeaders"] = {};
|
|
63
63
|
this._circuitBreaker = null;
|
|
@@ -116,7 +116,11 @@ class AIServiceVisionClient {
|
|
|
116
116
|
set endpoint(endpoint) {
|
|
117
117
|
this._endpoint = endpoint;
|
|
118
118
|
this._endpoint = this._endpoint + "/20220125";
|
|
119
|
-
|
|
119
|
+
if (this.logger)
|
|
120
|
+
this.logger.info(`AIServiceVisionClient endpoint set to ${this._endpoint}`);
|
|
121
|
+
}
|
|
122
|
+
get logger() {
|
|
123
|
+
return common.LOG.logger;
|
|
120
124
|
}
|
|
121
125
|
/**
|
|
122
126
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -125,7 +129,8 @@ class AIServiceVisionClient {
|
|
|
125
129
|
*/
|
|
126
130
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
127
131
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
128
|
-
|
|
132
|
+
if (this.logger)
|
|
133
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
129
134
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
130
135
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AIServiceVisionClient.serviceEndpointTemplate, this._region, AIServiceVisionClient.endpointServiceName);
|
|
131
136
|
}
|
|
@@ -192,11 +197,12 @@ class AIServiceVisionClient {
|
|
|
192
197
|
* @param AnalyzeDocumentRequest
|
|
193
198
|
* @return AnalyzeDocumentResponse
|
|
194
199
|
* @throws OciError when an error occurs
|
|
195
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
200
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/AnalyzeDocument.ts.html |here} to see how to use AnalyzeDocument API.
|
|
196
201
|
*/
|
|
197
202
|
analyzeDocument(analyzeDocumentRequest) {
|
|
198
203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
-
|
|
204
|
+
if (this.logger)
|
|
205
|
+
this.logger.debug("Calling operation AIServiceVisionClient#analyzeDocument.");
|
|
200
206
|
const operationName = "analyzeDocument";
|
|
201
207
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/AnalyzeDocumentResult/AnalyzeDocument";
|
|
202
208
|
const pathParams = {};
|
|
@@ -207,6 +213,8 @@ class AIServiceVisionClient {
|
|
|
207
213
|
};
|
|
208
214
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
209
215
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, analyzeDocumentRequest.retryConfiguration, specRetryConfiguration);
|
|
216
|
+
if (this.logger)
|
|
217
|
+
retrier.logger = this.logger;
|
|
210
218
|
const request = yield oci_common_1.composeRequest({
|
|
211
219
|
baseEndpoint: this._endpoint,
|
|
212
220
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -252,11 +260,12 @@ class AIServiceVisionClient {
|
|
|
252
260
|
* @param AnalyzeImageRequest
|
|
253
261
|
* @return AnalyzeImageResponse
|
|
254
262
|
* @throws OciError when an error occurs
|
|
255
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
263
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/AnalyzeImage.ts.html |here} to see how to use AnalyzeImage API.
|
|
256
264
|
*/
|
|
257
265
|
analyzeImage(analyzeImageRequest) {
|
|
258
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
-
|
|
267
|
+
if (this.logger)
|
|
268
|
+
this.logger.debug("Calling operation AIServiceVisionClient#analyzeImage.");
|
|
260
269
|
const operationName = "analyzeImage";
|
|
261
270
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/AnalyzeImageResult/AnalyzeImage";
|
|
262
271
|
const pathParams = {};
|
|
@@ -267,6 +276,8 @@ class AIServiceVisionClient {
|
|
|
267
276
|
};
|
|
268
277
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
269
278
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, analyzeImageRequest.retryConfiguration, specRetryConfiguration);
|
|
279
|
+
if (this.logger)
|
|
280
|
+
retrier.logger = this.logger;
|
|
270
281
|
const request = yield oci_common_1.composeRequest({
|
|
271
282
|
baseEndpoint: this._endpoint,
|
|
272
283
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -312,11 +323,12 @@ class AIServiceVisionClient {
|
|
|
312
323
|
* @param CancelDocumentJobRequest
|
|
313
324
|
* @return CancelDocumentJobResponse
|
|
314
325
|
* @throws OciError when an error occurs
|
|
315
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
326
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CancelDocumentJob.ts.html |here} to see how to use CancelDocumentJob API.
|
|
316
327
|
*/
|
|
317
328
|
cancelDocumentJob(cancelDocumentJobRequest) {
|
|
318
329
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
-
|
|
330
|
+
if (this.logger)
|
|
331
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelDocumentJob.");
|
|
320
332
|
const operationName = "cancelDocumentJob";
|
|
321
333
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/DocumentJob/CancelDocumentJob";
|
|
322
334
|
const pathParams = {
|
|
@@ -330,6 +342,8 @@ class AIServiceVisionClient {
|
|
|
330
342
|
};
|
|
331
343
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
332
344
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
345
|
+
if (this.logger)
|
|
346
|
+
retrier.logger = this.logger;
|
|
333
347
|
const request = yield oci_common_1.composeRequest({
|
|
334
348
|
baseEndpoint: this._endpoint,
|
|
335
349
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -365,11 +379,12 @@ class AIServiceVisionClient {
|
|
|
365
379
|
* @param CancelImageJobRequest
|
|
366
380
|
* @return CancelImageJobResponse
|
|
367
381
|
* @throws OciError when an error occurs
|
|
368
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
382
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CancelImageJob.ts.html |here} to see how to use CancelImageJob API.
|
|
369
383
|
*/
|
|
370
384
|
cancelImageJob(cancelImageJobRequest) {
|
|
371
385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
-
|
|
386
|
+
if (this.logger)
|
|
387
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelImageJob.");
|
|
373
388
|
const operationName = "cancelImageJob";
|
|
374
389
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ImageJob/CancelImageJob";
|
|
375
390
|
const pathParams = {
|
|
@@ -383,6 +398,8 @@ class AIServiceVisionClient {
|
|
|
383
398
|
};
|
|
384
399
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
385
400
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
401
|
+
if (this.logger)
|
|
402
|
+
retrier.logger = this.logger;
|
|
386
403
|
const request = yield oci_common_1.composeRequest({
|
|
387
404
|
baseEndpoint: this._endpoint,
|
|
388
405
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -417,11 +434,12 @@ class AIServiceVisionClient {
|
|
|
417
434
|
* @param CancelWorkRequestRequest
|
|
418
435
|
* @return CancelWorkRequestResponse
|
|
419
436
|
* @throws OciError when an error occurs
|
|
420
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
437
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
421
438
|
*/
|
|
422
439
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
423
440
|
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
|
|
441
|
+
if (this.logger)
|
|
442
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelWorkRequest.");
|
|
425
443
|
const operationName = "cancelWorkRequest";
|
|
426
444
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/CancelWorkRequest";
|
|
427
445
|
const pathParams = {
|
|
@@ -435,6 +453,8 @@ class AIServiceVisionClient {
|
|
|
435
453
|
};
|
|
436
454
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
437
455
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
456
|
+
if (this.logger)
|
|
457
|
+
retrier.logger = this.logger;
|
|
438
458
|
const request = yield oci_common_1.composeRequest({
|
|
439
459
|
baseEndpoint: this._endpoint,
|
|
440
460
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -469,11 +489,12 @@ class AIServiceVisionClient {
|
|
|
469
489
|
* @param ChangeModelCompartmentRequest
|
|
470
490
|
* @return ChangeModelCompartmentResponse
|
|
471
491
|
* @throws OciError when an error occurs
|
|
472
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
492
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
473
493
|
*/
|
|
474
494
|
changeModelCompartment(changeModelCompartmentRequest) {
|
|
475
495
|
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
-
|
|
496
|
+
if (this.logger)
|
|
497
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeModelCompartment.");
|
|
477
498
|
const operationName = "changeModelCompartment";
|
|
478
499
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/ChangeModelCompartment";
|
|
479
500
|
const pathParams = {
|
|
@@ -487,6 +508,8 @@ class AIServiceVisionClient {
|
|
|
487
508
|
};
|
|
488
509
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
489
510
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
511
|
+
if (this.logger)
|
|
512
|
+
retrier.logger = this.logger;
|
|
490
513
|
const request = yield oci_common_1.composeRequest({
|
|
491
514
|
baseEndpoint: this._endpoint,
|
|
492
515
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -522,11 +545,12 @@ class AIServiceVisionClient {
|
|
|
522
545
|
* @param ChangeProjectCompartmentRequest
|
|
523
546
|
* @return ChangeProjectCompartmentResponse
|
|
524
547
|
* @throws OciError when an error occurs
|
|
525
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
548
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
526
549
|
*/
|
|
527
550
|
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
528
551
|
return __awaiter(this, void 0, void 0, function* () {
|
|
529
|
-
|
|
552
|
+
if (this.logger)
|
|
553
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeProjectCompartment.");
|
|
530
554
|
const operationName = "changeProjectCompartment";
|
|
531
555
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/ChangeProjectCompartment";
|
|
532
556
|
const pathParams = {
|
|
@@ -540,6 +564,8 @@ class AIServiceVisionClient {
|
|
|
540
564
|
};
|
|
541
565
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
542
566
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProjectCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
567
|
+
if (this.logger)
|
|
568
|
+
retrier.logger = this.logger;
|
|
543
569
|
const request = yield oci_common_1.composeRequest({
|
|
544
570
|
baseEndpoint: this._endpoint,
|
|
545
571
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -576,11 +602,12 @@ class AIServiceVisionClient {
|
|
|
576
602
|
* @param CreateDocumentJobRequest
|
|
577
603
|
* @return CreateDocumentJobResponse
|
|
578
604
|
* @throws OciError when an error occurs
|
|
579
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
605
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CreateDocumentJob.ts.html |here} to see how to use CreateDocumentJob API.
|
|
580
606
|
*/
|
|
581
607
|
createDocumentJob(createDocumentJobRequest) {
|
|
582
608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
-
|
|
609
|
+
if (this.logger)
|
|
610
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createDocumentJob.");
|
|
584
611
|
const operationName = "createDocumentJob";
|
|
585
612
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/DocumentJob/CreateDocumentJob";
|
|
586
613
|
const pathParams = {};
|
|
@@ -592,6 +619,8 @@ class AIServiceVisionClient {
|
|
|
592
619
|
};
|
|
593
620
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
594
621
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
622
|
+
if (this.logger)
|
|
623
|
+
retrier.logger = this.logger;
|
|
595
624
|
const request = yield oci_common_1.composeRequest({
|
|
596
625
|
baseEndpoint: this._endpoint,
|
|
597
626
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -637,11 +666,12 @@ class AIServiceVisionClient {
|
|
|
637
666
|
* @param CreateImageJobRequest
|
|
638
667
|
* @return CreateImageJobResponse
|
|
639
668
|
* @throws OciError when an error occurs
|
|
640
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
669
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CreateImageJob.ts.html |here} to see how to use CreateImageJob API.
|
|
641
670
|
*/
|
|
642
671
|
createImageJob(createImageJobRequest) {
|
|
643
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
644
|
-
|
|
673
|
+
if (this.logger)
|
|
674
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createImageJob.");
|
|
645
675
|
const operationName = "createImageJob";
|
|
646
676
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ImageJob/CreateImageJob";
|
|
647
677
|
const pathParams = {};
|
|
@@ -653,6 +683,8 @@ class AIServiceVisionClient {
|
|
|
653
683
|
};
|
|
654
684
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
655
685
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
686
|
+
if (this.logger)
|
|
687
|
+
retrier.logger = this.logger;
|
|
656
688
|
const request = yield oci_common_1.composeRequest({
|
|
657
689
|
baseEndpoint: this._endpoint,
|
|
658
690
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -698,11 +730,12 @@ class AIServiceVisionClient {
|
|
|
698
730
|
* @param CreateModelRequest
|
|
699
731
|
* @return CreateModelResponse
|
|
700
732
|
* @throws OciError when an error occurs
|
|
701
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
733
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
702
734
|
*/
|
|
703
735
|
createModel(createModelRequest) {
|
|
704
736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
|
|
737
|
+
if (this.logger)
|
|
738
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createModel.");
|
|
706
739
|
const operationName = "createModel";
|
|
707
740
|
const apiReferenceLink = "";
|
|
708
741
|
const pathParams = {};
|
|
@@ -714,6 +747,8 @@ class AIServiceVisionClient {
|
|
|
714
747
|
};
|
|
715
748
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
716
749
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelRequest.retryConfiguration, specRetryConfiguration);
|
|
750
|
+
if (this.logger)
|
|
751
|
+
retrier.logger = this.logger;
|
|
717
752
|
const request = yield oci_common_1.composeRequest({
|
|
718
753
|
baseEndpoint: this._endpoint,
|
|
719
754
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -764,11 +799,12 @@ class AIServiceVisionClient {
|
|
|
764
799
|
* @param CreateProjectRequest
|
|
765
800
|
* @return CreateProjectResponse
|
|
766
801
|
* @throws OciError when an error occurs
|
|
767
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
802
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
768
803
|
*/
|
|
769
804
|
createProject(createProjectRequest) {
|
|
770
805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
-
|
|
806
|
+
if (this.logger)
|
|
807
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createProject.");
|
|
772
808
|
const operationName = "createProject";
|
|
773
809
|
const apiReferenceLink = "";
|
|
774
810
|
const pathParams = {};
|
|
@@ -780,6 +816,8 @@ class AIServiceVisionClient {
|
|
|
780
816
|
};
|
|
781
817
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
782
818
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
819
|
+
if (this.logger)
|
|
820
|
+
retrier.logger = this.logger;
|
|
783
821
|
const request = yield oci_common_1.composeRequest({
|
|
784
822
|
baseEndpoint: this._endpoint,
|
|
785
823
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -829,11 +867,12 @@ class AIServiceVisionClient {
|
|
|
829
867
|
* @param DeleteModelRequest
|
|
830
868
|
* @return DeleteModelResponse
|
|
831
869
|
* @throws OciError when an error occurs
|
|
832
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
870
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
833
871
|
*/
|
|
834
872
|
deleteModel(deleteModelRequest) {
|
|
835
873
|
return __awaiter(this, void 0, void 0, function* () {
|
|
836
|
-
|
|
874
|
+
if (this.logger)
|
|
875
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteModel.");
|
|
837
876
|
const operationName = "deleteModel";
|
|
838
877
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/DeleteModel";
|
|
839
878
|
const pathParams = {
|
|
@@ -847,6 +886,8 @@ class AIServiceVisionClient {
|
|
|
847
886
|
};
|
|
848
887
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
849
888
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
|
|
889
|
+
if (this.logger)
|
|
890
|
+
retrier.logger = this.logger;
|
|
850
891
|
const request = yield oci_common_1.composeRequest({
|
|
851
892
|
baseEndpoint: this._endpoint,
|
|
852
893
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -886,11 +927,12 @@ class AIServiceVisionClient {
|
|
|
886
927
|
* @param DeleteProjectRequest
|
|
887
928
|
* @return DeleteProjectResponse
|
|
888
929
|
* @throws OciError when an error occurs
|
|
889
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
930
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
890
931
|
*/
|
|
891
932
|
deleteProject(deleteProjectRequest) {
|
|
892
933
|
return __awaiter(this, void 0, void 0, function* () {
|
|
893
|
-
|
|
934
|
+
if (this.logger)
|
|
935
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteProject.");
|
|
894
936
|
const operationName = "deleteProject";
|
|
895
937
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/DeleteProject";
|
|
896
938
|
const pathParams = {
|
|
@@ -904,6 +946,8 @@ class AIServiceVisionClient {
|
|
|
904
946
|
};
|
|
905
947
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
906
948
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
949
|
+
if (this.logger)
|
|
950
|
+
retrier.logger = this.logger;
|
|
907
951
|
const request = yield oci_common_1.composeRequest({
|
|
908
952
|
baseEndpoint: this._endpoint,
|
|
909
953
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -944,11 +988,12 @@ class AIServiceVisionClient {
|
|
|
944
988
|
* @param GetDocumentJobRequest
|
|
945
989
|
* @return GetDocumentJobResponse
|
|
946
990
|
* @throws OciError when an error occurs
|
|
947
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
991
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/GetDocumentJob.ts.html |here} to see how to use GetDocumentJob API.
|
|
948
992
|
*/
|
|
949
993
|
getDocumentJob(getDocumentJobRequest) {
|
|
950
994
|
return __awaiter(this, void 0, void 0, function* () {
|
|
951
|
-
|
|
995
|
+
if (this.logger)
|
|
996
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getDocumentJob.");
|
|
952
997
|
const operationName = "getDocumentJob";
|
|
953
998
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/DocumentJob/GetDocumentJob";
|
|
954
999
|
const pathParams = {
|
|
@@ -961,6 +1006,8 @@ class AIServiceVisionClient {
|
|
|
961
1006
|
};
|
|
962
1007
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
963
1008
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1009
|
+
if (this.logger)
|
|
1010
|
+
retrier.logger = this.logger;
|
|
964
1011
|
const request = yield oci_common_1.composeRequest({
|
|
965
1012
|
baseEndpoint: this._endpoint,
|
|
966
1013
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1005,11 +1052,12 @@ class AIServiceVisionClient {
|
|
|
1005
1052
|
* @param GetImageJobRequest
|
|
1006
1053
|
* @return GetImageJobResponse
|
|
1007
1054
|
* @throws OciError when an error occurs
|
|
1008
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1055
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/GetImageJob.ts.html |here} to see how to use GetImageJob API.
|
|
1009
1056
|
*/
|
|
1010
1057
|
getImageJob(getImageJobRequest) {
|
|
1011
1058
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
-
|
|
1059
|
+
if (this.logger)
|
|
1060
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getImageJob.");
|
|
1013
1061
|
const operationName = "getImageJob";
|
|
1014
1062
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ImageJob/GetImageJob";
|
|
1015
1063
|
const pathParams = {
|
|
@@ -1022,6 +1070,8 @@ class AIServiceVisionClient {
|
|
|
1022
1070
|
};
|
|
1023
1071
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1024
1072
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1073
|
+
if (this.logger)
|
|
1074
|
+
retrier.logger = this.logger;
|
|
1025
1075
|
const request = yield oci_common_1.composeRequest({
|
|
1026
1076
|
baseEndpoint: this._endpoint,
|
|
1027
1077
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1065,11 +1115,12 @@ class AIServiceVisionClient {
|
|
|
1065
1115
|
* @param GetModelRequest
|
|
1066
1116
|
* @return GetModelResponse
|
|
1067
1117
|
* @throws OciError when an error occurs
|
|
1068
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1118
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1069
1119
|
*/
|
|
1070
1120
|
getModel(getModelRequest) {
|
|
1071
1121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1072
|
-
|
|
1122
|
+
if (this.logger)
|
|
1123
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getModel.");
|
|
1073
1124
|
const operationName = "getModel";
|
|
1074
1125
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/GetModel";
|
|
1075
1126
|
const pathParams = {
|
|
@@ -1082,6 +1133,8 @@ class AIServiceVisionClient {
|
|
|
1082
1133
|
};
|
|
1083
1134
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1084
1135
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1136
|
+
if (this.logger)
|
|
1137
|
+
retrier.logger = this.logger;
|
|
1085
1138
|
const request = yield oci_common_1.composeRequest({
|
|
1086
1139
|
baseEndpoint: this._endpoint,
|
|
1087
1140
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1125,11 +1178,12 @@ class AIServiceVisionClient {
|
|
|
1125
1178
|
* @param GetProjectRequest
|
|
1126
1179
|
* @return GetProjectResponse
|
|
1127
1180
|
* @throws OciError when an error occurs
|
|
1128
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1181
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1129
1182
|
*/
|
|
1130
1183
|
getProject(getProjectRequest) {
|
|
1131
1184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
-
|
|
1185
|
+
if (this.logger)
|
|
1186
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getProject.");
|
|
1133
1187
|
const operationName = "getProject";
|
|
1134
1188
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/GetProject";
|
|
1135
1189
|
const pathParams = {
|
|
@@ -1142,6 +1196,8 @@ class AIServiceVisionClient {
|
|
|
1142
1196
|
};
|
|
1143
1197
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1144
1198
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1199
|
+
if (this.logger)
|
|
1200
|
+
retrier.logger = this.logger;
|
|
1145
1201
|
const request = yield oci_common_1.composeRequest({
|
|
1146
1202
|
baseEndpoint: this._endpoint,
|
|
1147
1203
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1185,11 +1241,12 @@ class AIServiceVisionClient {
|
|
|
1185
1241
|
* @param GetWorkRequestRequest
|
|
1186
1242
|
* @return GetWorkRequestResponse
|
|
1187
1243
|
* @throws OciError when an error occurs
|
|
1188
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1244
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1189
1245
|
*/
|
|
1190
1246
|
getWorkRequest(getWorkRequestRequest) {
|
|
1191
1247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
-
|
|
1248
|
+
if (this.logger)
|
|
1249
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getWorkRequest.");
|
|
1193
1250
|
const operationName = "getWorkRequest";
|
|
1194
1251
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/GetWorkRequest";
|
|
1195
1252
|
const pathParams = {
|
|
@@ -1202,6 +1259,8 @@ class AIServiceVisionClient {
|
|
|
1202
1259
|
};
|
|
1203
1260
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1204
1261
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1262
|
+
if (this.logger)
|
|
1263
|
+
retrier.logger = this.logger;
|
|
1205
1264
|
const request = yield oci_common_1.composeRequest({
|
|
1206
1265
|
baseEndpoint: this._endpoint,
|
|
1207
1266
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1251,11 +1310,12 @@ class AIServiceVisionClient {
|
|
|
1251
1310
|
* @param ListModelsRequest
|
|
1252
1311
|
* @return ListModelsResponse
|
|
1253
1312
|
* @throws OciError when an error occurs
|
|
1254
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1313
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1255
1314
|
*/
|
|
1256
1315
|
listModels(listModelsRequest) {
|
|
1257
1316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1258
|
-
|
|
1317
|
+
if (this.logger)
|
|
1318
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listModels.");
|
|
1259
1319
|
const operationName = "listModels";
|
|
1260
1320
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ModelCollection/ListModels";
|
|
1261
1321
|
const pathParams = {};
|
|
@@ -1276,6 +1336,8 @@ class AIServiceVisionClient {
|
|
|
1276
1336
|
};
|
|
1277
1337
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1278
1338
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
|
|
1339
|
+
if (this.logger)
|
|
1340
|
+
retrier.logger = this.logger;
|
|
1279
1341
|
const request = yield oci_common_1.composeRequest({
|
|
1280
1342
|
baseEndpoint: this._endpoint,
|
|
1281
1343
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1320,11 +1382,12 @@ class AIServiceVisionClient {
|
|
|
1320
1382
|
* @param ListProjectsRequest
|
|
1321
1383
|
* @return ListProjectsResponse
|
|
1322
1384
|
* @throws OciError when an error occurs
|
|
1323
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1385
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
1324
1386
|
*/
|
|
1325
1387
|
listProjects(listProjectsRequest) {
|
|
1326
1388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
-
|
|
1389
|
+
if (this.logger)
|
|
1390
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listProjects.");
|
|
1328
1391
|
const operationName = "listProjects";
|
|
1329
1392
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ProjectCollection/ListProjects";
|
|
1330
1393
|
const pathParams = {};
|
|
@@ -1344,6 +1407,8 @@ class AIServiceVisionClient {
|
|
|
1344
1407
|
};
|
|
1345
1408
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1346
1409
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
1410
|
+
if (this.logger)
|
|
1411
|
+
retrier.logger = this.logger;
|
|
1347
1412
|
const request = yield oci_common_1.composeRequest({
|
|
1348
1413
|
baseEndpoint: this._endpoint,
|
|
1349
1414
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1388,11 +1453,12 @@ class AIServiceVisionClient {
|
|
|
1388
1453
|
* @param ListWorkRequestErrorsRequest
|
|
1389
1454
|
* @return ListWorkRequestErrorsResponse
|
|
1390
1455
|
* @throws OciError when an error occurs
|
|
1391
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1456
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1392
1457
|
*/
|
|
1393
1458
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1394
1459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1395
|
-
|
|
1460
|
+
if (this.logger)
|
|
1461
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestErrors.");
|
|
1396
1462
|
const operationName = "listWorkRequestErrors";
|
|
1397
1463
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestError/ListWorkRequestErrors";
|
|
1398
1464
|
const pathParams = {
|
|
@@ -1410,6 +1476,8 @@ class AIServiceVisionClient {
|
|
|
1410
1476
|
};
|
|
1411
1477
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1412
1478
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1479
|
+
if (this.logger)
|
|
1480
|
+
retrier.logger = this.logger;
|
|
1413
1481
|
const request = yield oci_common_1.composeRequest({
|
|
1414
1482
|
baseEndpoint: this._endpoint,
|
|
1415
1483
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1454,11 +1522,12 @@ class AIServiceVisionClient {
|
|
|
1454
1522
|
* @param ListWorkRequestLogsRequest
|
|
1455
1523
|
* @return ListWorkRequestLogsResponse
|
|
1456
1524
|
* @throws OciError when an error occurs
|
|
1457
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1525
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1458
1526
|
*/
|
|
1459
1527
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1460
1528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
-
|
|
1529
|
+
if (this.logger)
|
|
1530
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestLogs.");
|
|
1462
1531
|
const operationName = "listWorkRequestLogs";
|
|
1463
1532
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestLogEntry/ListWorkRequestLogs";
|
|
1464
1533
|
const pathParams = {
|
|
@@ -1476,6 +1545,8 @@ class AIServiceVisionClient {
|
|
|
1476
1545
|
};
|
|
1477
1546
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1478
1547
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1548
|
+
if (this.logger)
|
|
1549
|
+
retrier.logger = this.logger;
|
|
1479
1550
|
const request = yield oci_common_1.composeRequest({
|
|
1480
1551
|
baseEndpoint: this._endpoint,
|
|
1481
1552
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1520,11 +1591,12 @@ class AIServiceVisionClient {
|
|
|
1520
1591
|
* @param ListWorkRequestsRequest
|
|
1521
1592
|
* @return ListWorkRequestsResponse
|
|
1522
1593
|
* @throws OciError when an error occurs
|
|
1523
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1594
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1524
1595
|
*/
|
|
1525
1596
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1526
1597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
|
-
|
|
1598
|
+
if (this.logger)
|
|
1599
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequests.");
|
|
1528
1600
|
const operationName = "listWorkRequests";
|
|
1529
1601
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/ListWorkRequests";
|
|
1530
1602
|
const pathParams = {};
|
|
@@ -1544,6 +1616,8 @@ class AIServiceVisionClient {
|
|
|
1544
1616
|
};
|
|
1545
1617
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1546
1618
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1619
|
+
if (this.logger)
|
|
1620
|
+
retrier.logger = this.logger;
|
|
1547
1621
|
const request = yield oci_common_1.composeRequest({
|
|
1548
1622
|
baseEndpoint: this._endpoint,
|
|
1549
1623
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1587,11 +1661,12 @@ class AIServiceVisionClient {
|
|
|
1587
1661
|
* @param UpdateModelRequest
|
|
1588
1662
|
* @return UpdateModelResponse
|
|
1589
1663
|
* @throws OciError when an error occurs
|
|
1590
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1664
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
1591
1665
|
*/
|
|
1592
1666
|
updateModel(updateModelRequest) {
|
|
1593
1667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1594
|
-
|
|
1668
|
+
if (this.logger)
|
|
1669
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateModel.");
|
|
1595
1670
|
const operationName = "updateModel";
|
|
1596
1671
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/UpdateModel";
|
|
1597
1672
|
const pathParams = {
|
|
@@ -1605,6 +1680,8 @@ class AIServiceVisionClient {
|
|
|
1605
1680
|
};
|
|
1606
1681
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1607
1682
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1683
|
+
if (this.logger)
|
|
1684
|
+
retrier.logger = this.logger;
|
|
1608
1685
|
const request = yield oci_common_1.composeRequest({
|
|
1609
1686
|
baseEndpoint: this._endpoint,
|
|
1610
1687
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1645,11 +1722,12 @@ class AIServiceVisionClient {
|
|
|
1645
1722
|
* @param UpdateProjectRequest
|
|
1646
1723
|
* @return UpdateProjectResponse
|
|
1647
1724
|
* @throws OciError when an error occurs
|
|
1648
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1725
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/aivision/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
1649
1726
|
*/
|
|
1650
1727
|
updateProject(updateProjectRequest) {
|
|
1651
1728
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1652
|
-
|
|
1729
|
+
if (this.logger)
|
|
1730
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateProject.");
|
|
1653
1731
|
const operationName = "updateProject";
|
|
1654
1732
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/UpdateProject";
|
|
1655
1733
|
const pathParams = {
|
|
@@ -1663,6 +1741,8 @@ class AIServiceVisionClient {
|
|
|
1663
1741
|
};
|
|
1664
1742
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1665
1743
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1744
|
+
if (this.logger)
|
|
1745
|
+
retrier.logger = this.logger;
|
|
1666
1746
|
const request = yield oci_common_1.composeRequest({
|
|
1667
1747
|
baseEndpoint: this._endpoint,
|
|
1668
1748
|
defaultHeaders: this._defaultHeaders,
|