oci-aidocument 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.
Files changed (40) hide show
  1. package/lib/client.d.ts +24 -23
  2. package/lib/client.js +118 -47
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/dataset.js +4 -2
  5. package/lib/model/dataset.js.map +1 -1
  6. package/lib/model/document-details.js +4 -2
  7. package/lib/model/document-details.js.map +1 -1
  8. package/lib/model/document-feature.js +4 -2
  9. package/lib/model/document-feature.js.map +1 -1
  10. package/lib/model/field-value.js +4 -2
  11. package/lib/model/field-value.js.map +1 -1
  12. package/lib/model/input-location.js +4 -2
  13. package/lib/model/input-location.js.map +1 -1
  14. package/lib/model/model-metrics.js +4 -2
  15. package/lib/model/model-metrics.js.map +1 -1
  16. package/lib/model/processor-config.js +4 -2
  17. package/lib/model/processor-config.js.map +1 -1
  18. package/lib/request/analyze-document-request.d.ts +1 -1
  19. package/lib/request/cancel-processor-job-request.d.ts +1 -1
  20. package/lib/request/cancel-work-request-request.d.ts +1 -1
  21. package/lib/request/change-model-compartment-request.d.ts +1 -1
  22. package/lib/request/change-project-compartment-request.d.ts +1 -1
  23. package/lib/request/create-model-request.d.ts +1 -1
  24. package/lib/request/create-processor-job-request.d.ts +1 -1
  25. package/lib/request/create-project-request.d.ts +1 -1
  26. package/lib/request/delete-model-request.d.ts +1 -1
  27. package/lib/request/delete-project-request.d.ts +1 -1
  28. package/lib/request/get-model-request.d.ts +1 -1
  29. package/lib/request/get-processor-job-request.d.ts +1 -1
  30. package/lib/request/get-project-request.d.ts +1 -1
  31. package/lib/request/get-work-request-request.d.ts +1 -1
  32. package/lib/request/list-models-request.d.ts +1 -1
  33. package/lib/request/list-projects-request.d.ts +1 -1
  34. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  35. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  36. package/lib/request/list-work-requests-request.d.ts +1 -1
  37. package/lib/request/patch-model-request.d.ts +1 -1
  38. package/lib/request/update-model-request.d.ts +1 -1
  39. package/lib/request/update-project-request.d.ts +1 -1
  40. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -57,7 +57,7 @@ var AIServiceDocumentApiKeys;
57
57
  */
58
58
  class AIServiceDocumentClient {
59
59
  constructor(params, clientConfiguration) {
60
- this["_realmSpecificEndpointTemplateEnabled"] = false;
60
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
61
61
  this["_endpoint"] = "";
62
62
  this["_defaultHeaders"] = {};
63
63
  this._circuitBreaker = null;
@@ -116,7 +116,11 @@ class AIServiceDocumentClient {
116
116
  set endpoint(endpoint) {
117
117
  this._endpoint = endpoint;
118
118
  this._endpoint = this._endpoint + "/20221109";
119
- oci_common_1.logger.info(`AIServiceDocumentClient endpoint set to ${this._endpoint}`);
119
+ if (this.logger)
120
+ this.logger.info(`AIServiceDocumentClient 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 AIServiceDocumentClient {
125
129
  */
126
130
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
127
131
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
128
- oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
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(AIServiceDocumentClient.serviceEndpointTemplate, this._region, AIServiceDocumentClient.endpointServiceName);
131
136
  }
@@ -192,11 +197,12 @@ class AIServiceDocumentClient {
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.79.1/aidocument/AnalyzeDocument.ts.html |here} to see how to use AnalyzeDocument API.
200
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/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
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#analyzeDocument.");
204
+ if (this.logger)
205
+ this.logger.debug("Calling operation AIServiceDocumentClient#analyzeDocument.");
200
206
  const operationName = "analyzeDocument";
201
207
  const apiReferenceLink = "";
202
208
  const pathParams = {};
@@ -208,6 +214,8 @@ class AIServiceDocumentClient {
208
214
  };
209
215
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
210
216
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, analyzeDocumentRequest.retryConfiguration, specRetryConfiguration);
217
+ if (this.logger)
218
+ retrier.logger = this.logger;
211
219
  const request = yield oci_common_1.composeRequest({
212
220
  baseEndpoint: this._endpoint,
213
221
  defaultHeaders: this._defaultHeaders,
@@ -263,11 +271,12 @@ class AIServiceDocumentClient {
263
271
  * @param CancelProcessorJobRequest
264
272
  * @return CancelProcessorJobResponse
265
273
  * @throws OciError when an error occurs
266
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/CancelProcessorJob.ts.html |here} to see how to use CancelProcessorJob API.
274
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/CancelProcessorJob.ts.html |here} to see how to use CancelProcessorJob API.
267
275
  */
268
276
  cancelProcessorJob(cancelProcessorJobRequest) {
269
277
  return __awaiter(this, void 0, void 0, function* () {
270
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#cancelProcessorJob.");
278
+ if (this.logger)
279
+ this.logger.debug("Calling operation AIServiceDocumentClient#cancelProcessorJob.");
271
280
  const operationName = "cancelProcessorJob";
272
281
  const apiReferenceLink = "";
273
282
  const pathParams = {
@@ -281,6 +290,8 @@ class AIServiceDocumentClient {
281
290
  };
282
291
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
283
292
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelProcessorJobRequest.retryConfiguration, specRetryConfiguration);
293
+ if (this.logger)
294
+ retrier.logger = this.logger;
284
295
  const request = yield oci_common_1.composeRequest({
285
296
  baseEndpoint: this._endpoint,
286
297
  defaultHeaders: this._defaultHeaders,
@@ -315,11 +326,12 @@ class AIServiceDocumentClient {
315
326
  * @param CancelWorkRequestRequest
316
327
  * @return CancelWorkRequestResponse
317
328
  * @throws OciError when an error occurs
318
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
329
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
319
330
  */
320
331
  cancelWorkRequest(cancelWorkRequestRequest) {
321
332
  return __awaiter(this, void 0, void 0, function* () {
322
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#cancelWorkRequest.");
333
+ if (this.logger)
334
+ this.logger.debug("Calling operation AIServiceDocumentClient#cancelWorkRequest.");
323
335
  const operationName = "cancelWorkRequest";
324
336
  const apiReferenceLink = "";
325
337
  const pathParams = {
@@ -333,6 +345,8 @@ class AIServiceDocumentClient {
333
345
  };
334
346
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
335
347
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
348
+ if (this.logger)
349
+ retrier.logger = this.logger;
336
350
  const request = yield oci_common_1.composeRequest({
337
351
  baseEndpoint: this._endpoint,
338
352
  defaultHeaders: this._defaultHeaders,
@@ -367,11 +381,12 @@ class AIServiceDocumentClient {
367
381
  * @param ChangeModelCompartmentRequest
368
382
  * @return ChangeModelCompartmentResponse
369
383
  * @throws OciError when an error occurs
370
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
384
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
371
385
  */
372
386
  changeModelCompartment(changeModelCompartmentRequest) {
373
387
  return __awaiter(this, void 0, void 0, function* () {
374
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#changeModelCompartment.");
388
+ if (this.logger)
389
+ this.logger.debug("Calling operation AIServiceDocumentClient#changeModelCompartment.");
375
390
  const operationName = "changeModelCompartment";
376
391
  const apiReferenceLink = "";
377
392
  const pathParams = {
@@ -385,6 +400,8 @@ class AIServiceDocumentClient {
385
400
  };
386
401
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
387
402
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelCompartmentRequest.retryConfiguration, specRetryConfiguration);
403
+ if (this.logger)
404
+ retrier.logger = this.logger;
388
405
  const request = yield oci_common_1.composeRequest({
389
406
  baseEndpoint: this._endpoint,
390
407
  defaultHeaders: this._defaultHeaders,
@@ -420,11 +437,12 @@ class AIServiceDocumentClient {
420
437
  * @param ChangeProjectCompartmentRequest
421
438
  * @return ChangeProjectCompartmentResponse
422
439
  * @throws OciError when an error occurs
423
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
440
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
424
441
  */
425
442
  changeProjectCompartment(changeProjectCompartmentRequest) {
426
443
  return __awaiter(this, void 0, void 0, function* () {
427
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#changeProjectCompartment.");
444
+ if (this.logger)
445
+ this.logger.debug("Calling operation AIServiceDocumentClient#changeProjectCompartment.");
428
446
  const operationName = "changeProjectCompartment";
429
447
  const apiReferenceLink = "";
430
448
  const pathParams = {
@@ -438,6 +456,8 @@ class AIServiceDocumentClient {
438
456
  };
439
457
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
440
458
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProjectCompartmentRequest.retryConfiguration, specRetryConfiguration);
459
+ if (this.logger)
460
+ retrier.logger = this.logger;
441
461
  const request = yield oci_common_1.composeRequest({
442
462
  baseEndpoint: this._endpoint,
443
463
  defaultHeaders: this._defaultHeaders,
@@ -474,11 +494,12 @@ class AIServiceDocumentClient {
474
494
  * @param CreateModelRequest
475
495
  * @return CreateModelResponse
476
496
  * @throws OciError when an error occurs
477
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/CreateModel.ts.html |here} to see how to use CreateModel API.
497
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/CreateModel.ts.html |here} to see how to use CreateModel API.
478
498
  */
479
499
  createModel(createModelRequest) {
480
500
  return __awaiter(this, void 0, void 0, function* () {
481
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#createModel.");
501
+ if (this.logger)
502
+ this.logger.debug("Calling operation AIServiceDocumentClient#createModel.");
482
503
  const operationName = "createModel";
483
504
  const apiReferenceLink = "";
484
505
  const pathParams = {};
@@ -490,6 +511,8 @@ class AIServiceDocumentClient {
490
511
  };
491
512
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
492
513
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelRequest.retryConfiguration, specRetryConfiguration);
514
+ if (this.logger)
515
+ retrier.logger = this.logger;
493
516
  const request = yield oci_common_1.composeRequest({
494
517
  baseEndpoint: this._endpoint,
495
518
  defaultHeaders: this._defaultHeaders,
@@ -550,11 +573,12 @@ class AIServiceDocumentClient {
550
573
  * @param CreateProcessorJobRequest
551
574
  * @return CreateProcessorJobResponse
552
575
  * @throws OciError when an error occurs
553
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/CreateProcessorJob.ts.html |here} to see how to use CreateProcessorJob API.
576
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/CreateProcessorJob.ts.html |here} to see how to use CreateProcessorJob API.
554
577
  */
555
578
  createProcessorJob(createProcessorJobRequest) {
556
579
  return __awaiter(this, void 0, void 0, function* () {
557
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#createProcessorJob.");
580
+ if (this.logger)
581
+ this.logger.debug("Calling operation AIServiceDocumentClient#createProcessorJob.");
558
582
  const operationName = "createProcessorJob";
559
583
  const apiReferenceLink = "";
560
584
  const pathParams = {};
@@ -566,6 +590,8 @@ class AIServiceDocumentClient {
566
590
  };
567
591
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
568
592
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProcessorJobRequest.retryConfiguration, specRetryConfiguration);
593
+ if (this.logger)
594
+ retrier.logger = this.logger;
569
595
  const request = yield oci_common_1.composeRequest({
570
596
  baseEndpoint: this._endpoint,
571
597
  defaultHeaders: this._defaultHeaders,
@@ -611,11 +637,12 @@ class AIServiceDocumentClient {
611
637
  * @param CreateProjectRequest
612
638
  * @return CreateProjectResponse
613
639
  * @throws OciError when an error occurs
614
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/CreateProject.ts.html |here} to see how to use CreateProject API.
640
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/CreateProject.ts.html |here} to see how to use CreateProject API.
615
641
  */
616
642
  createProject(createProjectRequest) {
617
643
  return __awaiter(this, void 0, void 0, function* () {
618
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#createProject.");
644
+ if (this.logger)
645
+ this.logger.debug("Calling operation AIServiceDocumentClient#createProject.");
619
646
  const operationName = "createProject";
620
647
  const apiReferenceLink = "";
621
648
  const pathParams = {};
@@ -627,6 +654,8 @@ class AIServiceDocumentClient {
627
654
  };
628
655
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
629
656
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProjectRequest.retryConfiguration, specRetryConfiguration);
657
+ if (this.logger)
658
+ retrier.logger = this.logger;
630
659
  const request = yield oci_common_1.composeRequest({
631
660
  baseEndpoint: this._endpoint,
632
661
  defaultHeaders: this._defaultHeaders,
@@ -686,11 +715,12 @@ class AIServiceDocumentClient {
686
715
  * @param DeleteModelRequest
687
716
  * @return DeleteModelResponse
688
717
  * @throws OciError when an error occurs
689
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/DeleteModel.ts.html |here} to see how to use DeleteModel API.
718
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/DeleteModel.ts.html |here} to see how to use DeleteModel API.
690
719
  */
691
720
  deleteModel(deleteModelRequest) {
692
721
  return __awaiter(this, void 0, void 0, function* () {
693
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#deleteModel.");
722
+ if (this.logger)
723
+ this.logger.debug("Calling operation AIServiceDocumentClient#deleteModel.");
694
724
  const operationName = "deleteModel";
695
725
  const apiReferenceLink = "";
696
726
  const pathParams = {
@@ -704,6 +734,8 @@ class AIServiceDocumentClient {
704
734
  };
705
735
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
706
736
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
737
+ if (this.logger)
738
+ retrier.logger = this.logger;
707
739
  const request = yield oci_common_1.composeRequest({
708
740
  baseEndpoint: this._endpoint,
709
741
  defaultHeaders: this._defaultHeaders,
@@ -743,11 +775,12 @@ class AIServiceDocumentClient {
743
775
  * @param DeleteProjectRequest
744
776
  * @return DeleteProjectResponse
745
777
  * @throws OciError when an error occurs
746
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/DeleteProject.ts.html |here} to see how to use DeleteProject API.
778
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/DeleteProject.ts.html |here} to see how to use DeleteProject API.
747
779
  */
748
780
  deleteProject(deleteProjectRequest) {
749
781
  return __awaiter(this, void 0, void 0, function* () {
750
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#deleteProject.");
782
+ if (this.logger)
783
+ this.logger.debug("Calling operation AIServiceDocumentClient#deleteProject.");
751
784
  const operationName = "deleteProject";
752
785
  const apiReferenceLink = "";
753
786
  const pathParams = {
@@ -761,6 +794,8 @@ class AIServiceDocumentClient {
761
794
  };
762
795
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
763
796
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
797
+ if (this.logger)
798
+ retrier.logger = this.logger;
764
799
  const request = yield oci_common_1.composeRequest({
765
800
  baseEndpoint: this._endpoint,
766
801
  defaultHeaders: this._defaultHeaders,
@@ -800,11 +835,12 @@ class AIServiceDocumentClient {
800
835
  * @param GetModelRequest
801
836
  * @return GetModelResponse
802
837
  * @throws OciError when an error occurs
803
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/GetModel.ts.html |here} to see how to use GetModel API.
838
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/GetModel.ts.html |here} to see how to use GetModel API.
804
839
  */
805
840
  getModel(getModelRequest) {
806
841
  return __awaiter(this, void 0, void 0, function* () {
807
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#getModel.");
842
+ if (this.logger)
843
+ this.logger.debug("Calling operation AIServiceDocumentClient#getModel.");
808
844
  const operationName = "getModel";
809
845
  const apiReferenceLink = "";
810
846
  const pathParams = {
@@ -817,6 +853,8 @@ class AIServiceDocumentClient {
817
853
  };
818
854
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
819
855
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
856
+ if (this.logger)
857
+ retrier.logger = this.logger;
820
858
  const request = yield oci_common_1.composeRequest({
821
859
  baseEndpoint: this._endpoint,
822
860
  defaultHeaders: this._defaultHeaders,
@@ -861,11 +899,12 @@ class AIServiceDocumentClient {
861
899
  * @param GetProcessorJobRequest
862
900
  * @return GetProcessorJobResponse
863
901
  * @throws OciError when an error occurs
864
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/GetProcessorJob.ts.html |here} to see how to use GetProcessorJob API.
902
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/GetProcessorJob.ts.html |here} to see how to use GetProcessorJob API.
865
903
  */
866
904
  getProcessorJob(getProcessorJobRequest) {
867
905
  return __awaiter(this, void 0, void 0, function* () {
868
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#getProcessorJob.");
906
+ if (this.logger)
907
+ this.logger.debug("Calling operation AIServiceDocumentClient#getProcessorJob.");
869
908
  const operationName = "getProcessorJob";
870
909
  const apiReferenceLink = "";
871
910
  const pathParams = {
@@ -878,6 +917,8 @@ class AIServiceDocumentClient {
878
917
  };
879
918
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
880
919
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProcessorJobRequest.retryConfiguration, specRetryConfiguration);
920
+ if (this.logger)
921
+ retrier.logger = this.logger;
881
922
  const request = yield oci_common_1.composeRequest({
882
923
  baseEndpoint: this._endpoint,
883
924
  defaultHeaders: this._defaultHeaders,
@@ -921,11 +962,12 @@ class AIServiceDocumentClient {
921
962
  * @param GetProjectRequest
922
963
  * @return GetProjectResponse
923
964
  * @throws OciError when an error occurs
924
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/GetProject.ts.html |here} to see how to use GetProject API.
965
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/GetProject.ts.html |here} to see how to use GetProject API.
925
966
  */
926
967
  getProject(getProjectRequest) {
927
968
  return __awaiter(this, void 0, void 0, function* () {
928
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#getProject.");
969
+ if (this.logger)
970
+ this.logger.debug("Calling operation AIServiceDocumentClient#getProject.");
929
971
  const operationName = "getProject";
930
972
  const apiReferenceLink = "";
931
973
  const pathParams = {
@@ -938,6 +980,8 @@ class AIServiceDocumentClient {
938
980
  };
939
981
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
940
982
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
983
+ if (this.logger)
984
+ retrier.logger = this.logger;
941
985
  const request = yield oci_common_1.composeRequest({
942
986
  baseEndpoint: this._endpoint,
943
987
  defaultHeaders: this._defaultHeaders,
@@ -981,11 +1025,12 @@ class AIServiceDocumentClient {
981
1025
  * @param GetWorkRequestRequest
982
1026
  * @return GetWorkRequestResponse
983
1027
  * @throws OciError when an error occurs
984
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1028
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
985
1029
  */
986
1030
  getWorkRequest(getWorkRequestRequest) {
987
1031
  return __awaiter(this, void 0, void 0, function* () {
988
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#getWorkRequest.");
1032
+ if (this.logger)
1033
+ this.logger.debug("Calling operation AIServiceDocumentClient#getWorkRequest.");
989
1034
  const operationName = "getWorkRequest";
990
1035
  const apiReferenceLink = "";
991
1036
  const pathParams = {
@@ -998,6 +1043,8 @@ class AIServiceDocumentClient {
998
1043
  };
999
1044
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1000
1045
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1046
+ if (this.logger)
1047
+ retrier.logger = this.logger;
1001
1048
  const request = yield oci_common_1.composeRequest({
1002
1049
  baseEndpoint: this._endpoint,
1003
1050
  defaultHeaders: this._defaultHeaders,
@@ -1047,11 +1094,12 @@ class AIServiceDocumentClient {
1047
1094
  * @param ListModelsRequest
1048
1095
  * @return ListModelsResponse
1049
1096
  * @throws OciError when an error occurs
1050
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ListModels.ts.html |here} to see how to use ListModels API.
1097
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ListModels.ts.html |here} to see how to use ListModels API.
1051
1098
  */
1052
1099
  listModels(listModelsRequest) {
1053
1100
  return __awaiter(this, void 0, void 0, function* () {
1054
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#listModels.");
1101
+ if (this.logger)
1102
+ this.logger.debug("Calling operation AIServiceDocumentClient#listModels.");
1055
1103
  const operationName = "listModels";
1056
1104
  const apiReferenceLink = "";
1057
1105
  const pathParams = {};
@@ -1072,6 +1120,8 @@ class AIServiceDocumentClient {
1072
1120
  };
1073
1121
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1074
1122
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
1123
+ if (this.logger)
1124
+ retrier.logger = this.logger;
1075
1125
  const request = yield oci_common_1.composeRequest({
1076
1126
  baseEndpoint: this._endpoint,
1077
1127
  defaultHeaders: this._defaultHeaders,
@@ -1116,11 +1166,12 @@ class AIServiceDocumentClient {
1116
1166
  * @param ListProjectsRequest
1117
1167
  * @return ListProjectsResponse
1118
1168
  * @throws OciError when an error occurs
1119
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ListProjects.ts.html |here} to see how to use ListProjects API.
1169
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ListProjects.ts.html |here} to see how to use ListProjects API.
1120
1170
  */
1121
1171
  listProjects(listProjectsRequest) {
1122
1172
  return __awaiter(this, void 0, void 0, function* () {
1123
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#listProjects.");
1173
+ if (this.logger)
1174
+ this.logger.debug("Calling operation AIServiceDocumentClient#listProjects.");
1124
1175
  const operationName = "listProjects";
1125
1176
  const apiReferenceLink = "";
1126
1177
  const pathParams = {};
@@ -1140,6 +1191,8 @@ class AIServiceDocumentClient {
1140
1191
  };
1141
1192
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1142
1193
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
1194
+ if (this.logger)
1195
+ retrier.logger = this.logger;
1143
1196
  const request = yield oci_common_1.composeRequest({
1144
1197
  baseEndpoint: this._endpoint,
1145
1198
  defaultHeaders: this._defaultHeaders,
@@ -1184,11 +1237,12 @@ class AIServiceDocumentClient {
1184
1237
  * @param ListWorkRequestErrorsRequest
1185
1238
  * @return ListWorkRequestErrorsResponse
1186
1239
  * @throws OciError when an error occurs
1187
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1240
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1188
1241
  */
1189
1242
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1190
1243
  return __awaiter(this, void 0, void 0, function* () {
1191
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestErrors.");
1244
+ if (this.logger)
1245
+ this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestErrors.");
1192
1246
  const operationName = "listWorkRequestErrors";
1193
1247
  const apiReferenceLink = "";
1194
1248
  const pathParams = {
@@ -1206,6 +1260,8 @@ class AIServiceDocumentClient {
1206
1260
  };
1207
1261
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1208
1262
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
1263
+ if (this.logger)
1264
+ retrier.logger = this.logger;
1209
1265
  const request = yield oci_common_1.composeRequest({
1210
1266
  baseEndpoint: this._endpoint,
1211
1267
  defaultHeaders: this._defaultHeaders,
@@ -1250,11 +1306,12 @@ class AIServiceDocumentClient {
1250
1306
  * @param ListWorkRequestLogsRequest
1251
1307
  * @return ListWorkRequestLogsResponse
1252
1308
  * @throws OciError when an error occurs
1253
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1309
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1254
1310
  */
1255
1311
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1256
1312
  return __awaiter(this, void 0, void 0, function* () {
1257
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestLogs.");
1313
+ if (this.logger)
1314
+ this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestLogs.");
1258
1315
  const operationName = "listWorkRequestLogs";
1259
1316
  const apiReferenceLink = "";
1260
1317
  const pathParams = {
@@ -1272,6 +1329,8 @@ class AIServiceDocumentClient {
1272
1329
  };
1273
1330
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1274
1331
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1332
+ if (this.logger)
1333
+ retrier.logger = this.logger;
1275
1334
  const request = yield oci_common_1.composeRequest({
1276
1335
  baseEndpoint: this._endpoint,
1277
1336
  defaultHeaders: this._defaultHeaders,
@@ -1316,11 +1375,12 @@ class AIServiceDocumentClient {
1316
1375
  * @param ListWorkRequestsRequest
1317
1376
  * @return ListWorkRequestsResponse
1318
1377
  * @throws OciError when an error occurs
1319
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1378
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1320
1379
  */
1321
1380
  listWorkRequests(listWorkRequestsRequest) {
1322
1381
  return __awaiter(this, void 0, void 0, function* () {
1323
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequests.");
1382
+ if (this.logger)
1383
+ this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequests.");
1324
1384
  const operationName = "listWorkRequests";
1325
1385
  const apiReferenceLink = "";
1326
1386
  const pathParams = {};
@@ -1340,6 +1400,8 @@ class AIServiceDocumentClient {
1340
1400
  };
1341
1401
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1342
1402
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1403
+ if (this.logger)
1404
+ retrier.logger = this.logger;
1343
1405
  const request = yield oci_common_1.composeRequest({
1344
1406
  baseEndpoint: this._endpoint,
1345
1407
  defaultHeaders: this._defaultHeaders,
@@ -1383,11 +1445,12 @@ class AIServiceDocumentClient {
1383
1445
  * @param PatchModelRequest
1384
1446
  * @return PatchModelResponse
1385
1447
  * @throws OciError when an error occurs
1386
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/PatchModel.ts.html |here} to see how to use PatchModel API.
1448
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/PatchModel.ts.html |here} to see how to use PatchModel API.
1387
1449
  */
1388
1450
  patchModel(patchModelRequest) {
1389
1451
  return __awaiter(this, void 0, void 0, function* () {
1390
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#patchModel.");
1452
+ if (this.logger)
1453
+ this.logger.debug("Calling operation AIServiceDocumentClient#patchModel.");
1391
1454
  const operationName = "patchModel";
1392
1455
  const apiReferenceLink = "";
1393
1456
  const pathParams = {
@@ -1401,6 +1464,8 @@ class AIServiceDocumentClient {
1401
1464
  };
1402
1465
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1403
1466
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchModelRequest.retryConfiguration, specRetryConfiguration);
1467
+ if (this.logger)
1468
+ retrier.logger = this.logger;
1404
1469
  const request = yield oci_common_1.composeRequest({
1405
1470
  baseEndpoint: this._endpoint,
1406
1471
  defaultHeaders: this._defaultHeaders,
@@ -1450,11 +1515,12 @@ class AIServiceDocumentClient {
1450
1515
  * @param UpdateModelRequest
1451
1516
  * @return UpdateModelResponse
1452
1517
  * @throws OciError when an error occurs
1453
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/UpdateModel.ts.html |here} to see how to use UpdateModel API.
1518
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/UpdateModel.ts.html |here} to see how to use UpdateModel API.
1454
1519
  */
1455
1520
  updateModel(updateModelRequest) {
1456
1521
  return __awaiter(this, void 0, void 0, function* () {
1457
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#updateModel.");
1522
+ if (this.logger)
1523
+ this.logger.debug("Calling operation AIServiceDocumentClient#updateModel.");
1458
1524
  const operationName = "updateModel";
1459
1525
  const apiReferenceLink = "";
1460
1526
  const pathParams = {
@@ -1468,6 +1534,8 @@ class AIServiceDocumentClient {
1468
1534
  };
1469
1535
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1470
1536
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
1537
+ if (this.logger)
1538
+ retrier.logger = this.logger;
1471
1539
  const request = yield oci_common_1.composeRequest({
1472
1540
  baseEndpoint: this._endpoint,
1473
1541
  defaultHeaders: this._defaultHeaders,
@@ -1508,11 +1576,12 @@ class AIServiceDocumentClient {
1508
1576
  * @param UpdateProjectRequest
1509
1577
  * @return UpdateProjectResponse
1510
1578
  * @throws OciError when an error occurs
1511
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/aidocument/UpdateProject.ts.html |here} to see how to use UpdateProject API.
1579
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/aidocument/UpdateProject.ts.html |here} to see how to use UpdateProject API.
1512
1580
  */
1513
1581
  updateProject(updateProjectRequest) {
1514
1582
  return __awaiter(this, void 0, void 0, function* () {
1515
- oci_common_1.logger.debug("Calling operation AIServiceDocumentClient#updateProject.");
1583
+ if (this.logger)
1584
+ this.logger.debug("Calling operation AIServiceDocumentClient#updateProject.");
1516
1585
  const operationName = "updateProject";
1517
1586
  const apiReferenceLink = "";
1518
1587
  const pathParams = {
@@ -1526,6 +1595,8 @@ class AIServiceDocumentClient {
1526
1595
  };
1527
1596
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1528
1597
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
1598
+ if (this.logger)
1599
+ retrier.logger = this.logger;
1529
1600
  const request = yield oci_common_1.composeRequest({
1530
1601
  baseEndpoint: this._endpoint,
1531
1602
  defaultHeaders: this._defaultHeaders,