oci-ailanguage 2.81.0 → 2.82.2

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 (136) hide show
  1. package/lib/aiservicelanguage-waiter.d.ts +8 -0
  2. package/lib/aiservicelanguage-waiter.js +12 -0
  3. package/lib/aiservicelanguage-waiter.js.map +1 -1
  4. package/lib/client.d.ts +101 -36
  5. package/lib/client.js +477 -36
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/change-job-compartment-details.d.ts +30 -0
  8. package/lib/model/change-job-compartment-details.js +32 -0
  9. package/lib/model/change-job-compartment-details.js.map +1 -0
  10. package/lib/model/configuration-details.d.ts +62 -0
  11. package/lib/model/configuration-details.js +32 -0
  12. package/lib/model/configuration-details.js.map +1 -0
  13. package/lib/model/create-job-details.d.ts +47 -0
  14. package/lib/model/create-job-details.js +82 -0
  15. package/lib/model/create-job-details.js.map +1 -0
  16. package/lib/model/documents-configuration.d.ts +34 -0
  17. package/lib/model/documents-configuration.js +32 -0
  18. package/lib/model/documents-configuration.js.map +1 -0
  19. package/lib/model/index.d.ts +28 -0
  20. package/lib/model/index.js +31 -3
  21. package/lib/model/index.js.map +1 -1
  22. package/lib/model/input-configuration.d.ts +43 -0
  23. package/lib/model/input-configuration.js +61 -0
  24. package/lib/model/input-configuration.js.map +1 -0
  25. package/lib/model/input-location.d.ts +28 -0
  26. package/lib/model/input-location.js +75 -0
  27. package/lib/model/input-location.js.map +1 -0
  28. package/lib/model/job-collection.d.ts +29 -0
  29. package/lib/model/job-collection.js +64 -0
  30. package/lib/model/job-collection.js.map +1 -0
  31. package/lib/model/job-summary.d.ts +88 -0
  32. package/lib/model/job-summary.js +32 -0
  33. package/lib/model/job-summary.js.map +1 -0
  34. package/lib/model/job.d.ts +118 -0
  35. package/lib/model/job.js +98 -0
  36. package/lib/model/job.js.map +1 -0
  37. package/lib/model/model-metadata-details.d.ts +87 -0
  38. package/lib/model/model-metadata-details.js +61 -0
  39. package/lib/model/model-metadata-details.js.map +1 -0
  40. package/lib/model/object-prefix-output-location.d.ts +36 -0
  41. package/lib/model/object-prefix-output-location.js +32 -0
  42. package/lib/model/object-prefix-output-location.js.map +1 -0
  43. package/lib/model/object-storage-file-name-location.d.ts +39 -0
  44. package/lib/model/object-storage-file-name-location.js +57 -0
  45. package/lib/model/object-storage-file-name-location.js.map +1 -0
  46. package/lib/model/object-storage-prefix-location.d.ts +39 -0
  47. package/lib/model/object-storage-prefix-location.js +57 -0
  48. package/lib/model/object-storage-prefix-location.js.map +1 -0
  49. package/lib/model/translation-document-result.d.ts +67 -2
  50. package/lib/model/translation-document-result.js.map +1 -1
  51. package/lib/model/update-job-details.d.ts +32 -0
  52. package/lib/model/update-job-details.js +32 -0
  53. package/lib/model/update-job-details.js.map +1 -0
  54. package/lib/request/batch-detect-dominant-language-request.d.ts +1 -1
  55. package/lib/request/batch-detect-language-entities-request.d.ts +1 -1
  56. package/lib/request/batch-detect-language-key-phrases-request.d.ts +1 -1
  57. package/lib/request/batch-detect-language-pii-entities-request.d.ts +1 -1
  58. package/lib/request/batch-detect-language-sentiments-request.d.ts +1 -1
  59. package/lib/request/batch-detect-language-text-classification-request.d.ts +1 -1
  60. package/lib/request/batch-language-translation-request.d.ts +1 -1
  61. package/lib/request/cancel-job-request.d.ts +44 -0
  62. package/lib/request/cancel-job-request.js +15 -0
  63. package/lib/request/cancel-job-request.js.map +1 -0
  64. package/lib/request/change-endpoint-compartment-request.d.ts +1 -1
  65. package/lib/request/change-job-compartment-request.d.ts +49 -0
  66. package/lib/request/change-job-compartment-request.js +15 -0
  67. package/lib/request/change-job-compartment-request.js.map +1 -0
  68. package/lib/request/change-model-compartment-request.d.ts +1 -1
  69. package/lib/request/change-project-compartment-request.d.ts +1 -1
  70. package/lib/request/create-endpoint-request.d.ts +1 -1
  71. package/lib/request/create-job-request.d.ts +36 -0
  72. package/lib/request/create-job-request.js +15 -0
  73. package/lib/request/create-job-request.js.map +1 -0
  74. package/lib/request/create-model-request.d.ts +1 -1
  75. package/lib/request/create-project-request.d.ts +1 -1
  76. package/lib/request/delete-endpoint-request.d.ts +1 -1
  77. package/lib/request/delete-job-request.d.ts +35 -0
  78. package/lib/request/delete-job-request.js +15 -0
  79. package/lib/request/delete-job-request.js.map +1 -0
  80. package/lib/request/delete-model-request.d.ts +1 -1
  81. package/lib/request/delete-project-request.d.ts +1 -1
  82. package/lib/request/detect-dominant-language-request.d.ts +1 -1
  83. package/lib/request/detect-language-entities-request.d.ts +1 -1
  84. package/lib/request/detect-language-key-phrases-request.d.ts +1 -1
  85. package/lib/request/detect-language-sentiments-request.d.ts +1 -1
  86. package/lib/request/detect-language-text-classification-request.d.ts +1 -1
  87. package/lib/request/get-endpoint-request.d.ts +1 -1
  88. package/lib/request/get-job-request.d.ts +26 -0
  89. package/lib/request/get-job-request.js +15 -0
  90. package/lib/request/get-job-request.js.map +1 -0
  91. package/lib/request/get-model-request.d.ts +1 -1
  92. package/lib/request/get-model-type-request.d.ts +1 -1
  93. package/lib/request/get-project-request.d.ts +1 -1
  94. package/lib/request/get-work-request-request.d.ts +1 -1
  95. package/lib/request/index.d.ts +14 -0
  96. package/lib/request/index.js +3 -1
  97. package/lib/request/index.js.map +1 -1
  98. package/lib/request/list-endpoints-request.d.ts +1 -1
  99. package/lib/request/list-evaluation-results-request.d.ts +1 -1
  100. package/lib/request/list-jobs-request.d.ts +62 -0
  101. package/lib/request/list-jobs-request.js +24 -0
  102. package/lib/request/list-jobs-request.js.map +1 -0
  103. package/lib/request/list-models-request.d.ts +1 -1
  104. package/lib/request/list-projects-request.d.ts +1 -1
  105. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  106. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  107. package/lib/request/list-work-requests-request.d.ts +1 -1
  108. package/lib/request/update-endpoint-request.d.ts +1 -1
  109. package/lib/request/update-job-request.d.ts +40 -0
  110. package/lib/request/update-job-request.js +15 -0
  111. package/lib/request/update-job-request.js.map +1 -0
  112. package/lib/request/update-model-request.d.ts +1 -1
  113. package/lib/request/update-project-request.d.ts +1 -1
  114. package/lib/response/cancel-job-response.d.ts +20 -0
  115. package/lib/response/cancel-job-response.js +15 -0
  116. package/lib/response/cancel-job-response.js.map +1 -0
  117. package/lib/response/change-job-compartment-response.d.ts +20 -0
  118. package/lib/response/change-job-compartment-response.js +15 -0
  119. package/lib/response/change-job-compartment-response.js.map +1 -0
  120. package/lib/response/create-job-response.d.ts +35 -0
  121. package/lib/response/create-job-response.js +15 -0
  122. package/lib/response/create-job-response.js.map +1 -0
  123. package/lib/response/delete-job-response.d.ts +25 -0
  124. package/lib/response/delete-job-response.js +15 -0
  125. package/lib/response/delete-job-response.js.map +1 -0
  126. package/lib/response/get-job-response.d.ts +30 -0
  127. package/lib/response/get-job-response.js +15 -0
  128. package/lib/response/get-job-response.js.map +1 -0
  129. package/lib/response/index.d.ts +14 -0
  130. package/lib/response/list-jobs-response.d.ts +32 -0
  131. package/lib/response/list-jobs-response.js +15 -0
  132. package/lib/response/list-jobs-response.js.map +1 -0
  133. package/lib/response/update-job-response.d.ts +30 -0
  134. package/lib/response/update-job-response.js +15 -0
  135. package/lib/response/update-job-response.js.map +1 -0
  136. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -207,7 +207,7 @@ class AIServiceLanguageClient {
207
207
  * @param BatchDetectDominantLanguageRequest
208
208
  * @return BatchDetectDominantLanguageResponse
209
209
  * @throws OciError when an error occurs
210
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
210
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
211
211
  */
212
212
  batchDetectDominantLanguage(batchDetectDominantLanguageRequest) {
213
213
  return __awaiter(this, void 0, void 0, function* () {
@@ -272,7 +272,7 @@ class AIServiceLanguageClient {
272
272
  * @param BatchDetectLanguageEntitiesRequest
273
273
  * @return BatchDetectLanguageEntitiesResponse
274
274
  * @throws OciError when an error occurs
275
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
275
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
276
276
  */
277
277
  batchDetectLanguageEntities(batchDetectLanguageEntitiesRequest) {
278
278
  return __awaiter(this, void 0, void 0, function* () {
@@ -335,7 +335,7 @@ class AIServiceLanguageClient {
335
335
  * @param BatchDetectLanguageKeyPhrasesRequest
336
336
  * @return BatchDetectLanguageKeyPhrasesResponse
337
337
  * @throws OciError when an error occurs
338
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
338
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
339
339
  */
340
340
  batchDetectLanguageKeyPhrases(batchDetectLanguageKeyPhrasesRequest) {
341
341
  return __awaiter(this, void 0, void 0, function* () {
@@ -398,7 +398,7 @@ class AIServiceLanguageClient {
398
398
  * @param BatchDetectLanguagePiiEntitiesRequest
399
399
  * @return BatchDetectLanguagePiiEntitiesResponse
400
400
  * @throws OciError when an error occurs
401
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
401
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
402
402
  */
403
403
  batchDetectLanguagePiiEntities(batchDetectLanguagePiiEntitiesRequest) {
404
404
  return __awaiter(this, void 0, void 0, function* () {
@@ -467,7 +467,7 @@ class AIServiceLanguageClient {
467
467
  * @param BatchDetectLanguageSentimentsRequest
468
468
  * @return BatchDetectLanguageSentimentsResponse
469
469
  * @throws OciError when an error occurs
470
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
470
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
471
471
  */
472
472
  batchDetectLanguageSentiments(batchDetectLanguageSentimentsRequest) {
473
473
  return __awaiter(this, void 0, void 0, function* () {
@@ -536,7 +536,7 @@ class AIServiceLanguageClient {
536
536
  * @param BatchDetectLanguageTextClassificationRequest
537
537
  * @return BatchDetectLanguageTextClassificationResponse
538
538
  * @throws OciError when an error occurs
539
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
539
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
540
540
  */
541
541
  batchDetectLanguageTextClassification(batchDetectLanguageTextClassificationRequest) {
542
542
  return __awaiter(this, void 0, void 0, function* () {
@@ -598,7 +598,7 @@ class AIServiceLanguageClient {
598
598
  * @param BatchLanguageTranslationRequest
599
599
  * @return BatchLanguageTranslationResponse
600
600
  * @throws OciError when an error occurs
601
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
601
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
602
602
  */
603
603
  batchLanguageTranslation(batchLanguageTranslationRequest) {
604
604
  return __awaiter(this, void 0, void 0, function* () {
@@ -649,13 +649,69 @@ class AIServiceLanguageClient {
649
649
  }
650
650
  });
651
651
  }
652
+ /**
653
+ * Canceling the job cancels all the tasks under it.
654
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
655
+ * @param CancelJobRequest
656
+ * @return CancelJobResponse
657
+ * @throws OciError when an error occurs
658
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/CancelJob.ts.html |here} to see how to use CancelJob API.
659
+ */
660
+ cancelJob(cancelJobRequest) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ if (this.logger)
663
+ this.logger.debug("Calling operation AIServiceLanguageClient#cancelJob.");
664
+ const operationName = "cancelJob";
665
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/CancelJob";
666
+ const pathParams = {
667
+ "{jobId}": cancelJobRequest.jobId
668
+ };
669
+ const queryParams = {};
670
+ let headerParams = {
671
+ "Content-Type": common.Constants.APPLICATION_JSON,
672
+ "if-match": cancelJobRequest.ifMatch,
673
+ "opc-request-id": cancelJobRequest.opcRequestId,
674
+ "opc-retry-token": cancelJobRequest.opcRetryToken
675
+ };
676
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
677
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelJobRequest.retryConfiguration, specRetryConfiguration);
678
+ if (this.logger)
679
+ retrier.logger = this.logger;
680
+ const request = yield oci_common_1.composeRequest({
681
+ baseEndpoint: this._endpoint,
682
+ defaultHeaders: this._defaultHeaders,
683
+ path: "/jobs/{jobId}/actions/cancel",
684
+ method: "POST",
685
+ pathParams: pathParams,
686
+ headerParams: headerParams,
687
+ queryParams: queryParams
688
+ });
689
+ try {
690
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
691
+ const sdkResponse = oci_common_1.composeResponse({
692
+ responseObject: {},
693
+ responseHeaders: [
694
+ {
695
+ value: response.headers.get("opc-request-id"),
696
+ key: "opcRequestId",
697
+ dataType: "string"
698
+ }
699
+ ]
700
+ });
701
+ return sdkResponse;
702
+ }
703
+ catch (err) {
704
+ throw err;
705
+ }
706
+ });
707
+ }
652
708
  /**
653
709
  * Moves a Endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource.
654
710
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
655
711
  * @param ChangeEndpointCompartmentRequest
656
712
  * @return ChangeEndpointCompartmentResponse
657
713
  * @throws OciError when an error occurs
658
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
714
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
659
715
  */
660
716
  changeEndpointCompartment(changeEndpointCompartmentRequest) {
661
717
  return __awaiter(this, void 0, void 0, function* () {
@@ -706,13 +762,70 @@ class AIServiceLanguageClient {
706
762
  }
707
763
  });
708
764
  }
765
+ /**
766
+ * Moves a Job into a different compartment. When provided, If-Match is checked against ETag values of the resource.
767
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
768
+ * @param ChangeJobCompartmentRequest
769
+ * @return ChangeJobCompartmentResponse
770
+ * @throws OciError when an error occurs
771
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ChangeJobCompartment.ts.html |here} to see how to use ChangeJobCompartment API.
772
+ */
773
+ changeJobCompartment(changeJobCompartmentRequest) {
774
+ return __awaiter(this, void 0, void 0, function* () {
775
+ if (this.logger)
776
+ this.logger.debug("Calling operation AIServiceLanguageClient#changeJobCompartment.");
777
+ const operationName = "changeJobCompartment";
778
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/ChangeJobCompartment";
779
+ const pathParams = {
780
+ "{jobId}": changeJobCompartmentRequest.jobId
781
+ };
782
+ const queryParams = {};
783
+ let headerParams = {
784
+ "Content-Type": common.Constants.APPLICATION_JSON,
785
+ "opc-request-id": changeJobCompartmentRequest.opcRequestId,
786
+ "if-match": changeJobCompartmentRequest.ifMatch,
787
+ "opc-retry-token": changeJobCompartmentRequest.opcRetryToken
788
+ };
789
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
790
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeJobCompartmentRequest.retryConfiguration, specRetryConfiguration);
791
+ if (this.logger)
792
+ retrier.logger = this.logger;
793
+ const request = yield oci_common_1.composeRequest({
794
+ baseEndpoint: this._endpoint,
795
+ defaultHeaders: this._defaultHeaders,
796
+ path: "/jobs/{jobId}/actions/changeCompartment",
797
+ method: "POST",
798
+ bodyContent: common.ObjectSerializer.serialize(changeJobCompartmentRequest.changeJobCompartmentDetails, "ChangeJobCompartmentDetails", model.ChangeJobCompartmentDetails.getJsonObj),
799
+ pathParams: pathParams,
800
+ headerParams: headerParams,
801
+ queryParams: queryParams
802
+ });
803
+ try {
804
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
805
+ const sdkResponse = oci_common_1.composeResponse({
806
+ responseObject: {},
807
+ responseHeaders: [
808
+ {
809
+ value: response.headers.get("opc-request-id"),
810
+ key: "opcRequestId",
811
+ dataType: "string"
812
+ }
813
+ ]
814
+ });
815
+ return sdkResponse;
816
+ }
817
+ catch (err) {
818
+ throw err;
819
+ }
820
+ });
821
+ }
709
822
  /**
710
823
  * Moves a Model into a different compartment. When provided, If-Match is checked against ETag values of the resource.
711
824
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
712
825
  * @param ChangeModelCompartmentRequest
713
826
  * @return ChangeModelCompartmentResponse
714
827
  * @throws OciError when an error occurs
715
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
828
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
716
829
  */
717
830
  changeModelCompartment(changeModelCompartmentRequest) {
718
831
  return __awaiter(this, void 0, void 0, function* () {
@@ -769,7 +882,7 @@ class AIServiceLanguageClient {
769
882
  * @param ChangeProjectCompartmentRequest
770
883
  * @return ChangeProjectCompartmentResponse
771
884
  * @throws OciError when an error occurs
772
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
885
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
773
886
  */
774
887
  changeProjectCompartment(changeProjectCompartmentRequest) {
775
888
  return __awaiter(this, void 0, void 0, function* () {
@@ -827,7 +940,7 @@ class AIServiceLanguageClient {
827
940
  * @param CreateEndpointRequest
828
941
  * @return CreateEndpointResponse
829
942
  * @throws OciError when an error occurs
830
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
943
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
831
944
  */
832
945
  createEndpoint(createEndpointRequest) {
833
946
  return __awaiter(this, void 0, void 0, function* () {
@@ -894,6 +1007,75 @@ class AIServiceLanguageClient {
894
1007
  }
895
1008
  });
896
1009
  }
1010
+ /**
1011
+ * Creates a new language service async job.
1012
+ *
1013
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1014
+ * @param CreateJobRequest
1015
+ * @return CreateJobResponse
1016
+ * @throws OciError when an error occurs
1017
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/CreateJob.ts.html |here} to see how to use CreateJob API.
1018
+ */
1019
+ createJob(createJobRequest) {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ if (this.logger)
1022
+ this.logger.debug("Calling operation AIServiceLanguageClient#createJob.");
1023
+ const operationName = "createJob";
1024
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/CreateJob";
1025
+ const pathParams = {};
1026
+ const queryParams = {};
1027
+ let headerParams = {
1028
+ "Content-Type": common.Constants.APPLICATION_JSON,
1029
+ "opc-retry-token": createJobRequest.opcRetryToken,
1030
+ "opc-request-id": createJobRequest.opcRequestId
1031
+ };
1032
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1033
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createJobRequest.retryConfiguration, specRetryConfiguration);
1034
+ if (this.logger)
1035
+ retrier.logger = this.logger;
1036
+ const request = yield oci_common_1.composeRequest({
1037
+ baseEndpoint: this._endpoint,
1038
+ defaultHeaders: this._defaultHeaders,
1039
+ path: "/jobs",
1040
+ method: "POST",
1041
+ bodyContent: common.ObjectSerializer.serialize(createJobRequest.createJobDetails, "CreateJobDetails", model.CreateJobDetails.getJsonObj),
1042
+ pathParams: pathParams,
1043
+ headerParams: headerParams,
1044
+ queryParams: queryParams
1045
+ });
1046
+ try {
1047
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1048
+ const sdkResponse = oci_common_1.composeResponse({
1049
+ responseObject: {},
1050
+ body: yield response.json(),
1051
+ bodyKey: "job",
1052
+ bodyModel: model.Job,
1053
+ type: "model.Job",
1054
+ responseHeaders: [
1055
+ {
1056
+ value: response.headers.get("opc-request-id"),
1057
+ key: "opcRequestId",
1058
+ dataType: "string"
1059
+ },
1060
+ {
1061
+ value: response.headers.get("etag"),
1062
+ key: "etag",
1063
+ dataType: "string"
1064
+ },
1065
+ {
1066
+ value: response.headers.get("opc-work-request-id"),
1067
+ key: "opcWorkRequestId",
1068
+ dataType: "string"
1069
+ }
1070
+ ]
1071
+ });
1072
+ return sdkResponse;
1073
+ }
1074
+ catch (err) {
1075
+ throw err;
1076
+ }
1077
+ });
1078
+ }
897
1079
  /**
898
1080
  * Creates a new model for training and train the model with date provided.
899
1081
  *
@@ -901,7 +1083,7 @@ class AIServiceLanguageClient {
901
1083
  * @param CreateModelRequest
902
1084
  * @return CreateModelResponse
903
1085
  * @throws OciError when an error occurs
904
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
1086
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
905
1087
  */
906
1088
  createModel(createModelRequest) {
907
1089
  return __awaiter(this, void 0, void 0, function* () {
@@ -975,7 +1157,7 @@ class AIServiceLanguageClient {
975
1157
  * @param CreateProjectRequest
976
1158
  * @return CreateProjectResponse
977
1159
  * @throws OciError when an error occurs
978
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
1160
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
979
1161
  */
980
1162
  createProject(createProjectRequest) {
981
1163
  return __awaiter(this, void 0, void 0, function* () {
@@ -1043,7 +1225,7 @@ class AIServiceLanguageClient {
1043
1225
  * @param DeleteEndpointRequest
1044
1226
  * @return DeleteEndpointResponse
1045
1227
  * @throws OciError when an error occurs
1046
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
1228
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
1047
1229
  */
1048
1230
  deleteEndpoint(deleteEndpointRequest) {
1049
1231
  return __awaiter(this, void 0, void 0, function* () {
@@ -1097,13 +1279,73 @@ class AIServiceLanguageClient {
1097
1279
  }
1098
1280
  });
1099
1281
  }
1282
+ /**
1283
+ * Deletes the language service async Job
1284
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1285
+ * @param DeleteJobRequest
1286
+ * @return DeleteJobResponse
1287
+ * @throws OciError when an error occurs
1288
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DeleteJob.ts.html |here} to see how to use DeleteJob API.
1289
+ */
1290
+ deleteJob(deleteJobRequest) {
1291
+ return __awaiter(this, void 0, void 0, function* () {
1292
+ if (this.logger)
1293
+ this.logger.debug("Calling operation AIServiceLanguageClient#deleteJob.");
1294
+ const operationName = "deleteJob";
1295
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/DeleteJob";
1296
+ const pathParams = {
1297
+ "{jobId}": deleteJobRequest.jobId
1298
+ };
1299
+ const queryParams = {};
1300
+ let headerParams = {
1301
+ "Content-Type": common.Constants.APPLICATION_JSON,
1302
+ "if-match": deleteJobRequest.ifMatch,
1303
+ "opc-request-id": deleteJobRequest.opcRequestId
1304
+ };
1305
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1306
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteJobRequest.retryConfiguration, specRetryConfiguration);
1307
+ if (this.logger)
1308
+ retrier.logger = this.logger;
1309
+ const request = yield oci_common_1.composeRequest({
1310
+ baseEndpoint: this._endpoint,
1311
+ defaultHeaders: this._defaultHeaders,
1312
+ path: "/jobs/{jobId}",
1313
+ method: "DELETE",
1314
+ pathParams: pathParams,
1315
+ headerParams: headerParams,
1316
+ queryParams: queryParams
1317
+ });
1318
+ try {
1319
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1320
+ const sdkResponse = oci_common_1.composeResponse({
1321
+ responseObject: {},
1322
+ responseHeaders: [
1323
+ {
1324
+ value: response.headers.get("opc-work-request-id"),
1325
+ key: "opcWorkRequestId",
1326
+ dataType: "string"
1327
+ },
1328
+ {
1329
+ value: response.headers.get("opc-request-id"),
1330
+ key: "opcRequestId",
1331
+ dataType: "string"
1332
+ }
1333
+ ]
1334
+ });
1335
+ return sdkResponse;
1336
+ }
1337
+ catch (err) {
1338
+ throw err;
1339
+ }
1340
+ });
1341
+ }
1100
1342
  /**
1101
1343
  * Deletes a provisioned model resource by identifier. This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a model.
1102
1344
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1103
1345
  * @param DeleteModelRequest
1104
1346
  * @return DeleteModelResponse
1105
1347
  * @throws OciError when an error occurs
1106
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
1348
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
1107
1349
  */
1108
1350
  deleteModel(deleteModelRequest) {
1109
1351
  return __awaiter(this, void 0, void 0, function* () {
@@ -1163,7 +1405,7 @@ class AIServiceLanguageClient {
1163
1405
  * @param DeleteProjectRequest
1164
1406
  * @return DeleteProjectResponse
1165
1407
  * @throws OciError when an error occurs
1166
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
1408
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
1167
1409
  */
1168
1410
  deleteProject(deleteProjectRequest) {
1169
1411
  return __awaiter(this, void 0, void 0, function* () {
@@ -1232,7 +1474,7 @@ class AIServiceLanguageClient {
1232
1474
  * @param DetectDominantLanguageRequest
1233
1475
  * @return DetectDominantLanguageResponse
1234
1476
  * @throws OciError when an error occurs
1235
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
1477
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
1236
1478
  */
1237
1479
  detectDominantLanguage(detectDominantLanguageRequest) {
1238
1480
  return __awaiter(this, void 0, void 0, function* () {
@@ -1301,7 +1543,7 @@ class AIServiceLanguageClient {
1301
1543
  * @param DetectLanguageEntitiesRequest
1302
1544
  * @return DetectLanguageEntitiesResponse
1303
1545
  * @throws OciError when an error occurs
1304
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
1546
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
1305
1547
  */
1306
1548
  detectLanguageEntities(detectLanguageEntitiesRequest) {
1307
1549
  return __awaiter(this, void 0, void 0, function* () {
@@ -1372,7 +1614,7 @@ class AIServiceLanguageClient {
1372
1614
  * @param DetectLanguageKeyPhrasesRequest
1373
1615
  * @return DetectLanguageKeyPhrasesResponse
1374
1616
  * @throws OciError when an error occurs
1375
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
1617
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
1376
1618
  */
1377
1619
  detectLanguageKeyPhrases(detectLanguageKeyPhrasesRequest) {
1378
1620
  return __awaiter(this, void 0, void 0, function* () {
@@ -1447,7 +1689,7 @@ class AIServiceLanguageClient {
1447
1689
  * @param DetectLanguageSentimentsRequest
1448
1690
  * @return DetectLanguageSentimentsResponse
1449
1691
  * @throws OciError when an error occurs
1450
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
1692
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
1451
1693
  */
1452
1694
  detectLanguageSentiments(detectLanguageSentimentsRequest) {
1453
1695
  return __awaiter(this, void 0, void 0, function* () {
@@ -1518,7 +1760,7 @@ class AIServiceLanguageClient {
1518
1760
  * @param DetectLanguageTextClassificationRequest
1519
1761
  * @return DetectLanguageTextClassificationResponse
1520
1762
  * @throws OciError when an error occurs
1521
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
1763
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
1522
1764
  */
1523
1765
  detectLanguageTextClassification(detectLanguageTextClassificationRequest) {
1524
1766
  return __awaiter(this, void 0, void 0, function* () {
@@ -1580,7 +1822,7 @@ class AIServiceLanguageClient {
1580
1822
  * @param GetEndpointRequest
1581
1823
  * @return GetEndpointResponse
1582
1824
  * @throws OciError when an error occurs
1583
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
1825
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
1584
1826
  */
1585
1827
  getEndpoint(getEndpointRequest) {
1586
1828
  return __awaiter(this, void 0, void 0, function* () {
@@ -1637,13 +1879,76 @@ class AIServiceLanguageClient {
1637
1879
  }
1638
1880
  });
1639
1881
  }
1882
+ /**
1883
+ * Gets a language service async job
1884
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1885
+ * @param GetJobRequest
1886
+ * @return GetJobResponse
1887
+ * @throws OciError when an error occurs
1888
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetJob.ts.html |here} to see how to use GetJob API.
1889
+ */
1890
+ getJob(getJobRequest) {
1891
+ return __awaiter(this, void 0, void 0, function* () {
1892
+ if (this.logger)
1893
+ this.logger.debug("Calling operation AIServiceLanguageClient#getJob.");
1894
+ const operationName = "getJob";
1895
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/GetJob";
1896
+ const pathParams = {
1897
+ "{jobId}": getJobRequest.jobId
1898
+ };
1899
+ const queryParams = {};
1900
+ let headerParams = {
1901
+ "Content-Type": common.Constants.APPLICATION_JSON,
1902
+ "opc-request-id": getJobRequest.opcRequestId
1903
+ };
1904
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1905
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getJobRequest.retryConfiguration, specRetryConfiguration);
1906
+ if (this.logger)
1907
+ retrier.logger = this.logger;
1908
+ const request = yield oci_common_1.composeRequest({
1909
+ baseEndpoint: this._endpoint,
1910
+ defaultHeaders: this._defaultHeaders,
1911
+ path: "/jobs/{jobId}",
1912
+ method: "GET",
1913
+ pathParams: pathParams,
1914
+ headerParams: headerParams,
1915
+ queryParams: queryParams
1916
+ });
1917
+ try {
1918
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1919
+ const sdkResponse = oci_common_1.composeResponse({
1920
+ responseObject: {},
1921
+ body: yield response.json(),
1922
+ bodyKey: "job",
1923
+ bodyModel: model.Job,
1924
+ type: "model.Job",
1925
+ responseHeaders: [
1926
+ {
1927
+ value: response.headers.get("etag"),
1928
+ key: "etag",
1929
+ dataType: "string"
1930
+ },
1931
+ {
1932
+ value: response.headers.get("opc-request-id"),
1933
+ key: "opcRequestId",
1934
+ dataType: "string"
1935
+ }
1936
+ ]
1937
+ });
1938
+ return sdkResponse;
1939
+ }
1940
+ catch (err) {
1941
+ throw err;
1942
+ }
1943
+ });
1944
+ }
1640
1945
  /**
1641
1946
  * Gets a model by identifier
1642
1947
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1643
1948
  * @param GetModelRequest
1644
1949
  * @return GetModelResponse
1645
1950
  * @throws OciError when an error occurs
1646
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
1951
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
1647
1952
  */
1648
1953
  getModel(getModelRequest) {
1649
1954
  return __awaiter(this, void 0, void 0, function* () {
@@ -1706,7 +2011,7 @@ class AIServiceLanguageClient {
1706
2011
  * @param GetModelTypeRequest
1707
2012
  * @return GetModelTypeResponse
1708
2013
  * @throws OciError when an error occurs
1709
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/GetModelType.ts.html |here} to see how to use GetModelType API.
2014
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetModelType.ts.html |here} to see how to use GetModelType API.
1710
2015
  */
1711
2016
  getModelType(getModelTypeRequest) {
1712
2017
  return __awaiter(this, void 0, void 0, function* () {
@@ -1764,7 +2069,7 @@ class AIServiceLanguageClient {
1764
2069
  * @param GetProjectRequest
1765
2070
  * @return GetProjectResponse
1766
2071
  * @throws OciError when an error occurs
1767
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
2072
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
1768
2073
  */
1769
2074
  getProject(getProjectRequest) {
1770
2075
  return __awaiter(this, void 0, void 0, function* () {
@@ -1827,7 +2132,7 @@ class AIServiceLanguageClient {
1827
2132
  * @param GetWorkRequestRequest
1828
2133
  * @return GetWorkRequestResponse
1829
2134
  * @throws OciError when an error occurs
1830
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2135
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1831
2136
  */
1832
2137
  getWorkRequest(getWorkRequestRequest) {
1833
2138
  return __awaiter(this, void 0, void 0, function* () {
@@ -1891,7 +2196,7 @@ class AIServiceLanguageClient {
1891
2196
  * @param ListEndpointsRequest
1892
2197
  * @return ListEndpointsResponse
1893
2198
  * @throws OciError when an error occurs
1894
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
2199
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
1895
2200
  */
1896
2201
  listEndpoints(listEndpointsRequest) {
1897
2202
  return __awaiter(this, void 0, void 0, function* () {
@@ -1963,7 +2268,7 @@ class AIServiceLanguageClient {
1963
2268
  * @param ListEvaluationResultsRequest
1964
2269
  * @return ListEvaluationResultsResponse
1965
2270
  * @throws OciError when an error occurs
1966
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
2271
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
1967
2272
  */
1968
2273
  listEvaluationResults(listEvaluationResultsRequest) {
1969
2274
  return __awaiter(this, void 0, void 0, function* () {
@@ -2023,6 +2328,77 @@ class AIServiceLanguageClient {
2023
2328
  }
2024
2329
  });
2025
2330
  }
2331
+ /**
2332
+ * Returns a list of language service async Jobs.
2333
+ *
2334
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2335
+ * @param ListJobsRequest
2336
+ * @return ListJobsResponse
2337
+ * @throws OciError when an error occurs
2338
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListJobs.ts.html |here} to see how to use ListJobs API.
2339
+ */
2340
+ listJobs(listJobsRequest) {
2341
+ return __awaiter(this, void 0, void 0, function* () {
2342
+ if (this.logger)
2343
+ this.logger.debug("Calling operation AIServiceLanguageClient#listJobs.");
2344
+ const operationName = "listJobs";
2345
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/ListJobs";
2346
+ const pathParams = {};
2347
+ const queryParams = {
2348
+ "compartmentId": listJobsRequest.compartmentId,
2349
+ "lifecycleState": listJobsRequest.lifecycleState,
2350
+ "displayName": listJobsRequest.displayName,
2351
+ "id": listJobsRequest.id,
2352
+ "limit": listJobsRequest.limit,
2353
+ "page": listJobsRequest.page,
2354
+ "sortOrder": listJobsRequest.sortOrder,
2355
+ "sortBy": listJobsRequest.sortBy
2356
+ };
2357
+ let headerParams = {
2358
+ "Content-Type": common.Constants.APPLICATION_JSON,
2359
+ "opc-request-id": listJobsRequest.opcRequestId
2360
+ };
2361
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2362
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listJobsRequest.retryConfiguration, specRetryConfiguration);
2363
+ if (this.logger)
2364
+ retrier.logger = this.logger;
2365
+ const request = yield oci_common_1.composeRequest({
2366
+ baseEndpoint: this._endpoint,
2367
+ defaultHeaders: this._defaultHeaders,
2368
+ path: "/jobs",
2369
+ method: "GET",
2370
+ pathParams: pathParams,
2371
+ headerParams: headerParams,
2372
+ queryParams: queryParams
2373
+ });
2374
+ try {
2375
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2376
+ const sdkResponse = oci_common_1.composeResponse({
2377
+ responseObject: {},
2378
+ body: yield response.json(),
2379
+ bodyKey: "jobCollection",
2380
+ bodyModel: model.JobCollection,
2381
+ type: "model.JobCollection",
2382
+ responseHeaders: [
2383
+ {
2384
+ value: response.headers.get("opc-request-id"),
2385
+ key: "opcRequestId",
2386
+ dataType: "string"
2387
+ },
2388
+ {
2389
+ value: response.headers.get("opc-next-page"),
2390
+ key: "opcNextPage",
2391
+ dataType: "string"
2392
+ }
2393
+ ]
2394
+ });
2395
+ return sdkResponse;
2396
+ }
2397
+ catch (err) {
2398
+ throw err;
2399
+ }
2400
+ });
2401
+ }
2026
2402
  /**
2027
2403
  * Returns a list of models.
2028
2404
  *
@@ -2030,7 +2406,7 @@ class AIServiceLanguageClient {
2030
2406
  * @param ListModelsRequest
2031
2407
  * @return ListModelsResponse
2032
2408
  * @throws OciError when an error occurs
2033
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
2409
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
2034
2410
  */
2035
2411
  listModels(listModelsRequest) {
2036
2412
  return __awaiter(this, void 0, void 0, function* () {
@@ -2102,7 +2478,7 @@ class AIServiceLanguageClient {
2102
2478
  * @param ListProjectsRequest
2103
2479
  * @return ListProjectsResponse
2104
2480
  * @throws OciError when an error occurs
2105
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
2481
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
2106
2482
  */
2107
2483
  listProjects(listProjectsRequest) {
2108
2484
  return __awaiter(this, void 0, void 0, function* () {
@@ -2173,7 +2549,7 @@ class AIServiceLanguageClient {
2173
2549
  * @param ListWorkRequestErrorsRequest
2174
2550
  * @return ListWorkRequestErrorsResponse
2175
2551
  * @throws OciError when an error occurs
2176
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2552
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2177
2553
  */
2178
2554
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
2179
2555
  return __awaiter(this, void 0, void 0, function* () {
@@ -2242,7 +2618,7 @@ class AIServiceLanguageClient {
2242
2618
  * @param ListWorkRequestLogsRequest
2243
2619
  * @return ListWorkRequestLogsResponse
2244
2620
  * @throws OciError when an error occurs
2245
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2621
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2246
2622
  */
2247
2623
  listWorkRequestLogs(listWorkRequestLogsRequest) {
2248
2624
  return __awaiter(this, void 0, void 0, function* () {
@@ -2311,7 +2687,7 @@ class AIServiceLanguageClient {
2311
2687
  * @param ListWorkRequestsRequest
2312
2688
  * @return ListWorkRequestsResponse
2313
2689
  * @throws OciError when an error occurs
2314
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2690
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2315
2691
  */
2316
2692
  listWorkRequests(listWorkRequestsRequest) {
2317
2693
  return __awaiter(this, void 0, void 0, function* () {
@@ -2380,7 +2756,7 @@ class AIServiceLanguageClient {
2380
2756
  * @param UpdateEndpointRequest
2381
2757
  * @return UpdateEndpointResponse
2382
2758
  * @throws OciError when an error occurs
2383
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
2759
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
2384
2760
  */
2385
2761
  updateEndpoint(updateEndpointRequest) {
2386
2762
  return __awaiter(this, void 0, void 0, function* () {
@@ -2435,13 +2811,78 @@ class AIServiceLanguageClient {
2435
2811
  }
2436
2812
  });
2437
2813
  }
2814
+ /**
2815
+ * Updates the language service async Job
2816
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2817
+ * @param UpdateJobRequest
2818
+ * @return UpdateJobResponse
2819
+ * @throws OciError when an error occurs
2820
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/UpdateJob.ts.html |here} to see how to use UpdateJob API.
2821
+ */
2822
+ updateJob(updateJobRequest) {
2823
+ return __awaiter(this, void 0, void 0, function* () {
2824
+ if (this.logger)
2825
+ this.logger.debug("Calling operation AIServiceLanguageClient#updateJob.");
2826
+ const operationName = "updateJob";
2827
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/Job/UpdateJob";
2828
+ const pathParams = {
2829
+ "{jobId}": updateJobRequest.jobId
2830
+ };
2831
+ const queryParams = {};
2832
+ let headerParams = {
2833
+ "Content-Type": common.Constants.APPLICATION_JSON,
2834
+ "if-match": updateJobRequest.ifMatch,
2835
+ "opc-request-id": updateJobRequest.opcRequestId
2836
+ };
2837
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2838
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateJobRequest.retryConfiguration, specRetryConfiguration);
2839
+ if (this.logger)
2840
+ retrier.logger = this.logger;
2841
+ const request = yield oci_common_1.composeRequest({
2842
+ baseEndpoint: this._endpoint,
2843
+ defaultHeaders: this._defaultHeaders,
2844
+ path: "/jobs/{jobId}",
2845
+ method: "PUT",
2846
+ bodyContent: common.ObjectSerializer.serialize(updateJobRequest.updateJobDetails, "UpdateJobDetails", model.UpdateJobDetails.getJsonObj),
2847
+ pathParams: pathParams,
2848
+ headerParams: headerParams,
2849
+ queryParams: queryParams
2850
+ });
2851
+ try {
2852
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2853
+ const sdkResponse = oci_common_1.composeResponse({
2854
+ responseObject: {},
2855
+ body: yield response.json(),
2856
+ bodyKey: "job",
2857
+ bodyModel: model.Job,
2858
+ type: "model.Job",
2859
+ responseHeaders: [
2860
+ {
2861
+ value: response.headers.get("opc-request-id"),
2862
+ key: "opcRequestId",
2863
+ dataType: "string"
2864
+ },
2865
+ {
2866
+ value: response.headers.get("etag"),
2867
+ key: "etag",
2868
+ dataType: "string"
2869
+ }
2870
+ ]
2871
+ });
2872
+ return sdkResponse;
2873
+ }
2874
+ catch (err) {
2875
+ throw err;
2876
+ }
2877
+ });
2878
+ }
2438
2879
  /**
2439
2880
  * Updates the model
2440
2881
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2441
2882
  * @param UpdateModelRequest
2442
2883
  * @return UpdateModelResponse
2443
2884
  * @throws OciError when an error occurs
2444
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
2885
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
2445
2886
  */
2446
2887
  updateModel(updateModelRequest) {
2447
2888
  return __awaiter(this, void 0, void 0, function* () {
@@ -2502,7 +2943,7 @@ class AIServiceLanguageClient {
2502
2943
  * @param UpdateProjectRequest
2503
2944
  * @return UpdateProjectResponse
2504
2945
  * @throws OciError when an error occurs
2505
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
2946
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
2506
2947
  */
2507
2948
  updateProject(updateProjectRequest) {
2508
2949
  return __awaiter(this, void 0, void 0, function* () {