oci-aidocument 2.62.1 → 2.62.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aiservicedocument-waiter.d.ts +23 -0
- package/lib/aiservicedocument-waiter.js +55 -0
- package/lib/aiservicedocument-waiter.js.map +1 -1
- package/lib/client.d.ts +163 -3
- package/lib/client.js +1132 -19
- package/lib/client.js.map +1 -1
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/change-model-compartment-details.d.ts +25 -0
- package/lib/model/change-model-compartment-details.js +29 -0
- package/lib/model/change-model-compartment-details.js.map +1 -0
- package/lib/model/change-project-compartment-details.d.ts +25 -0
- package/lib/model/change-project-compartment-details.js +29 -0
- package/lib/model/change-project-compartment-details.js.map +1 -0
- package/lib/model/create-model-details.d.ts +75 -0
- package/lib/model/create-model-details.js +69 -0
- package/lib/model/create-model-details.js.map +1 -0
- package/lib/model/create-project-details.d.ts +51 -0
- package/lib/model/create-project-details.js +29 -0
- package/lib/model/create-project-details.js.map +1 -0
- package/lib/model/data-science-labeling-dataset.d.ts +28 -0
- package/lib/model/data-science-labeling-dataset.js +52 -0
- package/lib/model/data-science-labeling-dataset.js.map +1 -0
- package/lib/model/dataset-summary.d.ts +33 -0
- package/lib/model/dataset-summary.js +29 -0
- package/lib/model/dataset-summary.js.map +1 -0
- package/lib/model/dataset.d.ts +22 -0
- package/lib/model/dataset.js +72 -0
- package/lib/model/dataset.js.map +1 -0
- package/lib/model/document-classification-confidence-entry.d.ts +37 -0
- package/lib/model/document-classification-confidence-entry.js +29 -0
- package/lib/model/document-classification-confidence-entry.js.map +1 -0
- package/lib/model/document-classification-feature.d.ts +4 -0
- package/lib/model/document-classification-feature.js.map +1 -1
- package/lib/model/document-classification-label-metrics-report.d.ts +34 -0
- package/lib/model/document-classification-label-metrics-report.js +61 -0
- package/lib/model/document-classification-label-metrics-report.js.map +1 -0
- package/lib/model/document-classification-model-metrics.d.ts +29 -0
- package/lib/model/document-classification-model-metrics.js +72 -0
- package/lib/model/document-classification-model-metrics.js.map +1 -0
- package/lib/model/document-classification-overall-metrics-report.d.ts +30 -0
- package/lib/model/document-classification-overall-metrics-report.js +61 -0
- package/lib/model/document-classification-overall-metrics-report.js.map +1 -0
- package/lib/model/document-key-value-extraction-feature.d.ts +4 -0
- package/lib/model/document-key-value-extraction-feature.js.map +1 -1
- package/lib/model/index.d.ts +76 -0
- package/lib/model/index.js +78 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-value-detection-confidence-entry.d.ts +41 -0
- package/lib/model/key-value-detection-confidence-entry.js +29 -0
- package/lib/model/key-value-detection-confidence-entry.js.map +1 -0
- package/lib/model/key-value-detection-label-metrics-report.d.ts +38 -0
- package/lib/model/key-value-detection-label-metrics-report.js +61 -0
- package/lib/model/key-value-detection-label-metrics-report.js.map +1 -0
- package/lib/model/key-value-detection-model-metrics.d.ts +29 -0
- package/lib/model/key-value-detection-model-metrics.js +72 -0
- package/lib/model/key-value-detection-model-metrics.js.map +1 -0
- package/lib/model/key-value-detection-overall-metrics-report.d.ts +34 -0
- package/lib/model/key-value-detection-overall-metrics-report.js +61 -0
- package/lib/model/key-value-detection-overall-metrics-report.js.map +1 -0
- package/lib/model/model-collection.d.ts +26 -0
- package/lib/model/model-collection.js +61 -0
- package/lib/model/model-collection.js.map +1 -0
- package/lib/model/model-metrics.d.ts +24 -0
- package/lib/model/model-metrics.js +80 -0
- package/lib/model/model-metrics.js.map +1 -0
- package/lib/model/model-summary.d.ts +101 -0
- package/lib/model/model-summary.js +69 -0
- package/lib/model/model-summary.js.map +1 -0
- package/lib/model/model.d.ts +136 -0
- package/lib/model/model.js +95 -0
- package/lib/model/model.js.map +1 -0
- package/lib/model/object-storage-dataset.d.ts +36 -0
- package/lib/model/object-storage-dataset.js +52 -0
- package/lib/model/object-storage-dataset.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/project-collection.d.ts +26 -0
- package/lib/model/project-collection.js +61 -0
- package/lib/model/project-collection.js.map +1 -0
- package/lib/model/project-summary.d.ts +81 -0
- package/lib/model/project-summary.js +29 -0
- package/lib/model/project-summary.js.map +1 -0
- package/lib/model/project.d.ts +94 -0
- package/lib/model/project.js +43 -0
- package/lib/model/project.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-model-details.d.ts +47 -0
- package/lib/model/update-model-details.js +29 -0
- package/lib/model/update-model-details.js.map +1 -0
- package/lib/model/update-project-details.d.ts +47 -0
- package/lib/model/update-project-details.js +29 -0
- package/lib/model/update-project-details.js.map +1 -0
- package/lib/model/value-array.d.ts +3 -0
- package/lib/model/value-array.js.map +1 -1
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +28 -0
- package/lib/model/work-request-resource-metadata-key.js +39 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +63 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +63 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-processor-job-request.d.ts +1 -1
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-model-compartment-request.d.ts +40 -0
- package/lib/request/change-model-compartment-request.js +15 -0
- package/lib/request/change-model-compartment-request.js.map +1 -0
- package/lib/request/change-project-compartment-request.d.ts +40 -0
- package/lib/request/change-project-compartment-request.js +15 -0
- package/lib/request/change-project-compartment-request.js.map +1 -0
- package/lib/request/create-model-request.d.ts +36 -0
- package/lib/request/create-model-request.js +15 -0
- package/lib/request/create-model-request.js.map +1 -0
- package/lib/request/create-processor-job-request.d.ts +1 -1
- package/lib/request/create-project-request.d.ts +36 -0
- package/lib/request/create-project-request.js +15 -0
- package/lib/request/create-project-request.js.map +1 -0
- package/lib/request/delete-model-request.d.ts +35 -0
- package/lib/request/delete-model-request.js +15 -0
- package/lib/request/delete-model-request.js.map +1 -0
- package/lib/request/delete-project-request.d.ts +35 -0
- package/lib/request/delete-project-request.js +15 -0
- package/lib/request/delete-project-request.js.map +1 -0
- package/lib/request/get-model-request.d.ts +26 -0
- package/lib/request/get-model-request.js +15 -0
- package/lib/request/get-model-request.js.map +1 -0
- package/lib/request/get-processor-job-request.d.ts +1 -1
- package/lib/request/get-project-request.d.ts +26 -0
- package/lib/request/get-project-request.js +15 -0
- package/lib/request/get-project-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +34 -0
- package/lib/request/index.js +30 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-models-request.d.ts +66 -0
- package/lib/request/list-models-request.js +24 -0
- package/lib/request/list-models-request.js.map +1 -0
- package/lib/request/list-projects-request.d.ts +62 -0
- package/lib/request/list-projects-request.js +24 -0
- package/lib/request/list-projects-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-model-request.d.ts +40 -0
- package/lib/request/update-model-request.js +15 -0
- package/lib/request/update-model-request.js.map +1 -0
- package/lib/request/update-project-request.d.ts +40 -0
- package/lib/request/update-project-request.js +15 -0
- package/lib/request/update-project-request.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-model-compartment-response.d.ts +20 -0
- package/lib/response/change-model-compartment-response.js +15 -0
- package/lib/response/change-model-compartment-response.js.map +1 -0
- package/lib/response/change-project-compartment-response.d.ts +20 -0
- package/lib/response/change-project-compartment-response.js +15 -0
- package/lib/response/change-project-compartment-response.js.map +1 -0
- package/lib/response/create-model-response.d.ts +45 -0
- package/lib/response/create-model-response.js +15 -0
- package/lib/response/create-model-response.js.map +1 -0
- package/lib/response/create-project-response.d.ts +45 -0
- package/lib/response/create-project-response.js +15 -0
- package/lib/response/create-project-response.js.map +1 -0
- package/lib/response/delete-model-response.d.ts +25 -0
- package/lib/response/delete-model-response.js +15 -0
- package/lib/response/delete-model-response.js.map +1 -0
- package/lib/response/delete-project-response.d.ts +25 -0
- package/lib/response/delete-project-response.js +15 -0
- package/lib/response/delete-project-response.js.map +1 -0
- package/lib/response/get-model-response.d.ts +30 -0
- package/lib/response/get-model-response.js +15 -0
- package/lib/response/get-model-response.js.map +1 -0
- package/lib/response/get-project-response.d.ts +30 -0
- package/lib/response/get-project-response.js +15 -0
- package/lib/response/get-project-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +34 -0
- package/lib/response/list-models-response.d.ts +32 -0
- package/lib/response/list-models-response.js +15 -0
- package/lib/response/list-models-response.js.map +1 -0
- package/lib/response/list-projects-response.d.ts +32 -0
- package/lib/response/list-projects-response.js +15 -0
- package/lib/response/list-projects-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-model-response.d.ts +25 -0
- package/lib/response/update-model-response.js +15 -0
- package/lib/response/update-model-response.js.map +1 -0
- package/lib/response/update-project-response.d.ts +25 -0
- package/lib/response/update-project-response.js +15 -0
- package/lib/response/update-project-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -180,7 +180,7 @@ class AIServiceDocumentClient {
|
|
|
180
180
|
* @param CancelProcessorJobRequest
|
|
181
181
|
* @return CancelProcessorJobResponse
|
|
182
182
|
* @throws OciError when an error occurs
|
|
183
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
183
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/CancelProcessorJob.ts.html |here} to see how to use CancelProcessorJob API.
|
|
184
184
|
*/
|
|
185
185
|
cancelProcessorJob(cancelProcessorJobRequest) {
|
|
186
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -229,6 +229,252 @@ class AIServiceDocumentClient {
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Cancel the work request with the given ID.
|
|
234
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
235
|
+
* @param CancelWorkRequestRequest
|
|
236
|
+
* @return CancelWorkRequestResponse
|
|
237
|
+
* @throws OciError when an error occurs
|
|
238
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
239
|
+
*/
|
|
240
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
if (this.logger)
|
|
243
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#cancelWorkRequest.");
|
|
244
|
+
const operationName = "cancelWorkRequest";
|
|
245
|
+
const apiReferenceLink = "";
|
|
246
|
+
const pathParams = {
|
|
247
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
248
|
+
};
|
|
249
|
+
const queryParams = {};
|
|
250
|
+
let headerParams = {
|
|
251
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
252
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
253
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
254
|
+
};
|
|
255
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
256
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
257
|
+
if (this.logger)
|
|
258
|
+
retrier.logger = this.logger;
|
|
259
|
+
const request = yield oci_common_1.composeRequest({
|
|
260
|
+
baseEndpoint: this._endpoint,
|
|
261
|
+
defaultHeaders: this._defaultHeaders,
|
|
262
|
+
path: "/workRequests/{workRequestId}",
|
|
263
|
+
method: "DELETE",
|
|
264
|
+
pathParams: pathParams,
|
|
265
|
+
headerParams: headerParams,
|
|
266
|
+
queryParams: queryParams
|
|
267
|
+
});
|
|
268
|
+
try {
|
|
269
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
270
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
271
|
+
responseObject: {},
|
|
272
|
+
responseHeaders: [
|
|
273
|
+
{
|
|
274
|
+
value: response.headers.get("opc-request-id"),
|
|
275
|
+
key: "opcRequestId",
|
|
276
|
+
dataType: "string"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
});
|
|
280
|
+
return sdkResponse;
|
|
281
|
+
}
|
|
282
|
+
catch (err) {
|
|
283
|
+
throw err;
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Moves a model from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
289
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
290
|
+
* @param ChangeModelCompartmentRequest
|
|
291
|
+
* @return ChangeModelCompartmentResponse
|
|
292
|
+
* @throws OciError when an error occurs
|
|
293
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
294
|
+
*/
|
|
295
|
+
changeModelCompartment(changeModelCompartmentRequest) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
if (this.logger)
|
|
298
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#changeModelCompartment.");
|
|
299
|
+
const operationName = "changeModelCompartment";
|
|
300
|
+
const apiReferenceLink = "";
|
|
301
|
+
const pathParams = {
|
|
302
|
+
"{modelId}": changeModelCompartmentRequest.modelId
|
|
303
|
+
};
|
|
304
|
+
const queryParams = {};
|
|
305
|
+
let headerParams = {
|
|
306
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
307
|
+
"if-match": changeModelCompartmentRequest.ifMatch,
|
|
308
|
+
"opc-request-id": changeModelCompartmentRequest.opcRequestId
|
|
309
|
+
};
|
|
310
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
311
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
312
|
+
if (this.logger)
|
|
313
|
+
retrier.logger = this.logger;
|
|
314
|
+
const request = yield oci_common_1.composeRequest({
|
|
315
|
+
baseEndpoint: this._endpoint,
|
|
316
|
+
defaultHeaders: this._defaultHeaders,
|
|
317
|
+
path: "/models/{modelId}/actions/changeCompartment",
|
|
318
|
+
method: "POST",
|
|
319
|
+
bodyContent: common.ObjectSerializer.serialize(changeModelCompartmentRequest.changeModelCompartmentDetails, "ChangeModelCompartmentDetails", model.ChangeModelCompartmentDetails.getJsonObj),
|
|
320
|
+
pathParams: pathParams,
|
|
321
|
+
headerParams: headerParams,
|
|
322
|
+
queryParams: queryParams
|
|
323
|
+
});
|
|
324
|
+
try {
|
|
325
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
326
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
327
|
+
responseObject: {},
|
|
328
|
+
responseHeaders: [
|
|
329
|
+
{
|
|
330
|
+
value: response.headers.get("opc-request-id"),
|
|
331
|
+
key: "opcRequestId",
|
|
332
|
+
dataType: "string"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
});
|
|
336
|
+
return sdkResponse;
|
|
337
|
+
}
|
|
338
|
+
catch (err) {
|
|
339
|
+
throw err;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Move a project from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
345
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
346
|
+
* @param ChangeProjectCompartmentRequest
|
|
347
|
+
* @return ChangeProjectCompartmentResponse
|
|
348
|
+
* @throws OciError when an error occurs
|
|
349
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
350
|
+
*/
|
|
351
|
+
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
if (this.logger)
|
|
354
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#changeProjectCompartment.");
|
|
355
|
+
const operationName = "changeProjectCompartment";
|
|
356
|
+
const apiReferenceLink = "";
|
|
357
|
+
const pathParams = {
|
|
358
|
+
"{projectId}": changeProjectCompartmentRequest.projectId
|
|
359
|
+
};
|
|
360
|
+
const queryParams = {};
|
|
361
|
+
let headerParams = {
|
|
362
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
363
|
+
"if-match": changeProjectCompartmentRequest.ifMatch,
|
|
364
|
+
"opc-request-id": changeProjectCompartmentRequest.opcRequestId
|
|
365
|
+
};
|
|
366
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
367
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProjectCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
368
|
+
if (this.logger)
|
|
369
|
+
retrier.logger = this.logger;
|
|
370
|
+
const request = yield oci_common_1.composeRequest({
|
|
371
|
+
baseEndpoint: this._endpoint,
|
|
372
|
+
defaultHeaders: this._defaultHeaders,
|
|
373
|
+
path: "/projects/{projectId}/actions/changeCompartment",
|
|
374
|
+
method: "POST",
|
|
375
|
+
bodyContent: common.ObjectSerializer.serialize(changeProjectCompartmentRequest.changeProjectCompartmentDetails, "ChangeProjectCompartmentDetails", model.ChangeProjectCompartmentDetails.getJsonObj),
|
|
376
|
+
pathParams: pathParams,
|
|
377
|
+
headerParams: headerParams,
|
|
378
|
+
queryParams: queryParams
|
|
379
|
+
});
|
|
380
|
+
try {
|
|
381
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
382
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
383
|
+
responseObject: {},
|
|
384
|
+
responseHeaders: [
|
|
385
|
+
{
|
|
386
|
+
value: response.headers.get("opc-request-id"),
|
|
387
|
+
key: "opcRequestId",
|
|
388
|
+
dataType: "string"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
});
|
|
392
|
+
return sdkResponse;
|
|
393
|
+
}
|
|
394
|
+
catch (err) {
|
|
395
|
+
throw err;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Create a new model.
|
|
401
|
+
*
|
|
402
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
403
|
+
* @param CreateModelRequest
|
|
404
|
+
* @return CreateModelResponse
|
|
405
|
+
* @throws OciError when an error occurs
|
|
406
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
407
|
+
*/
|
|
408
|
+
createModel(createModelRequest) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
if (this.logger)
|
|
411
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#createModel.");
|
|
412
|
+
const operationName = "createModel";
|
|
413
|
+
const apiReferenceLink = "";
|
|
414
|
+
const pathParams = {};
|
|
415
|
+
const queryParams = {};
|
|
416
|
+
let headerParams = {
|
|
417
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
418
|
+
"opc-retry-token": createModelRequest.opcRetryToken,
|
|
419
|
+
"opc-request-id": createModelRequest.opcRequestId
|
|
420
|
+
};
|
|
421
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
422
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelRequest.retryConfiguration, specRetryConfiguration);
|
|
423
|
+
if (this.logger)
|
|
424
|
+
retrier.logger = this.logger;
|
|
425
|
+
const request = yield oci_common_1.composeRequest({
|
|
426
|
+
baseEndpoint: this._endpoint,
|
|
427
|
+
defaultHeaders: this._defaultHeaders,
|
|
428
|
+
path: "/models",
|
|
429
|
+
method: "POST",
|
|
430
|
+
bodyContent: common.ObjectSerializer.serialize(createModelRequest.createModelDetails, "CreateModelDetails", model.CreateModelDetails.getJsonObj),
|
|
431
|
+
pathParams: pathParams,
|
|
432
|
+
headerParams: headerParams,
|
|
433
|
+
queryParams: queryParams
|
|
434
|
+
});
|
|
435
|
+
try {
|
|
436
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
437
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
438
|
+
responseObject: {},
|
|
439
|
+
body: yield response.json(),
|
|
440
|
+
bodyKey: "model",
|
|
441
|
+
bodyModel: model.Model,
|
|
442
|
+
type: "model.Model",
|
|
443
|
+
responseHeaders: [
|
|
444
|
+
{
|
|
445
|
+
value: response.headers.get("Content-Location"),
|
|
446
|
+
key: "contentLocation",
|
|
447
|
+
dataType: "string"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: response.headers.get("location"),
|
|
451
|
+
key: "location",
|
|
452
|
+
dataType: "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: response.headers.get("opc-work-request-id"),
|
|
456
|
+
key: "opcWorkRequestId",
|
|
457
|
+
dataType: "string"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
value: response.headers.get("opc-request-id"),
|
|
461
|
+
key: "opcRequestId",
|
|
462
|
+
dataType: "string"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
value: response.headers.get("etag"),
|
|
466
|
+
key: "etag",
|
|
467
|
+
dataType: "string"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
});
|
|
471
|
+
return sdkResponse;
|
|
472
|
+
}
|
|
473
|
+
catch (err) {
|
|
474
|
+
throw err;
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
232
478
|
/**
|
|
233
479
|
* Create a processor job for document analysis.
|
|
234
480
|
*
|
|
@@ -236,7 +482,7 @@ class AIServiceDocumentClient {
|
|
|
236
482
|
* @param CreateProcessorJobRequest
|
|
237
483
|
* @return CreateProcessorJobResponse
|
|
238
484
|
* @throws OciError when an error occurs
|
|
239
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
485
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/CreateProcessorJob.ts.html |here} to see how to use CreateProcessorJob API.
|
|
240
486
|
*/
|
|
241
487
|
createProcessorJob(createProcessorJobRequest) {
|
|
242
488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -294,37 +540,37 @@ class AIServiceDocumentClient {
|
|
|
294
540
|
});
|
|
295
541
|
}
|
|
296
542
|
/**
|
|
297
|
-
*
|
|
543
|
+
* Create a new project.
|
|
298
544
|
*
|
|
299
545
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
300
|
-
* @param
|
|
301
|
-
* @return
|
|
546
|
+
* @param CreateProjectRequest
|
|
547
|
+
* @return CreateProjectResponse
|
|
302
548
|
* @throws OciError when an error occurs
|
|
303
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
549
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
304
550
|
*/
|
|
305
|
-
|
|
551
|
+
createProject(createProjectRequest) {
|
|
306
552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
553
|
if (this.logger)
|
|
308
|
-
this.logger.debug("Calling operation AIServiceDocumentClient#
|
|
309
|
-
const operationName = "
|
|
554
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#createProject.");
|
|
555
|
+
const operationName = "createProject";
|
|
310
556
|
const apiReferenceLink = "";
|
|
311
|
-
const pathParams = {
|
|
312
|
-
"{processorJobId}": getProcessorJobRequest.processorJobId
|
|
313
|
-
};
|
|
557
|
+
const pathParams = {};
|
|
314
558
|
const queryParams = {};
|
|
315
559
|
let headerParams = {
|
|
316
560
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
317
|
-
"opc-
|
|
561
|
+
"opc-retry-token": createProjectRequest.opcRetryToken,
|
|
562
|
+
"opc-request-id": createProjectRequest.opcRequestId
|
|
318
563
|
};
|
|
319
564
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
320
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
565
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
321
566
|
if (this.logger)
|
|
322
567
|
retrier.logger = this.logger;
|
|
323
568
|
const request = yield oci_common_1.composeRequest({
|
|
324
569
|
baseEndpoint: this._endpoint,
|
|
325
570
|
defaultHeaders: this._defaultHeaders,
|
|
326
|
-
path: "/
|
|
327
|
-
method: "
|
|
571
|
+
path: "/projects",
|
|
572
|
+
method: "POST",
|
|
573
|
+
bodyContent: common.ObjectSerializer.serialize(createProjectRequest.createProjectDetails, "CreateProjectDetails", model.CreateProjectDetails.getJsonObj),
|
|
328
574
|
pathParams: pathParams,
|
|
329
575
|
headerParams: headerParams,
|
|
330
576
|
queryParams: queryParams
|
|
@@ -334,15 +580,882 @@ class AIServiceDocumentClient {
|
|
|
334
580
|
const sdkResponse = oci_common_1.composeResponse({
|
|
335
581
|
responseObject: {},
|
|
336
582
|
body: yield response.json(),
|
|
337
|
-
bodyKey: "
|
|
338
|
-
bodyModel: model.
|
|
339
|
-
type: "model.
|
|
583
|
+
bodyKey: "project",
|
|
584
|
+
bodyModel: model.Project,
|
|
585
|
+
type: "model.Project",
|
|
340
586
|
responseHeaders: [
|
|
587
|
+
{
|
|
588
|
+
value: response.headers.get("Content-Location"),
|
|
589
|
+
key: "contentLocation",
|
|
590
|
+
dataType: "string"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
value: response.headers.get("location"),
|
|
594
|
+
key: "location",
|
|
595
|
+
dataType: "string"
|
|
596
|
+
},
|
|
341
597
|
{
|
|
342
598
|
value: response.headers.get("etag"),
|
|
343
599
|
key: "etag",
|
|
344
600
|
dataType: "string"
|
|
345
601
|
},
|
|
602
|
+
{
|
|
603
|
+
value: response.headers.get("opc-work-request-id"),
|
|
604
|
+
key: "opcWorkRequestId",
|
|
605
|
+
dataType: "string"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
value: response.headers.get("opc-request-id"),
|
|
609
|
+
key: "opcRequestId",
|
|
610
|
+
dataType: "string"
|
|
611
|
+
}
|
|
612
|
+
]
|
|
613
|
+
});
|
|
614
|
+
return sdkResponse;
|
|
615
|
+
}
|
|
616
|
+
catch (err) {
|
|
617
|
+
throw err;
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Delete a model by identifier.
|
|
623
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
624
|
+
* @param DeleteModelRequest
|
|
625
|
+
* @return DeleteModelResponse
|
|
626
|
+
* @throws OciError when an error occurs
|
|
627
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
628
|
+
*/
|
|
629
|
+
deleteModel(deleteModelRequest) {
|
|
630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
631
|
+
if (this.logger)
|
|
632
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#deleteModel.");
|
|
633
|
+
const operationName = "deleteModel";
|
|
634
|
+
const apiReferenceLink = "";
|
|
635
|
+
const pathParams = {
|
|
636
|
+
"{modelId}": deleteModelRequest.modelId
|
|
637
|
+
};
|
|
638
|
+
const queryParams = {};
|
|
639
|
+
let headerParams = {
|
|
640
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
641
|
+
"if-match": deleteModelRequest.ifMatch,
|
|
642
|
+
"opc-request-id": deleteModelRequest.opcRequestId
|
|
643
|
+
};
|
|
644
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
645
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
|
|
646
|
+
if (this.logger)
|
|
647
|
+
retrier.logger = this.logger;
|
|
648
|
+
const request = yield oci_common_1.composeRequest({
|
|
649
|
+
baseEndpoint: this._endpoint,
|
|
650
|
+
defaultHeaders: this._defaultHeaders,
|
|
651
|
+
path: "/models/{modelId}",
|
|
652
|
+
method: "DELETE",
|
|
653
|
+
pathParams: pathParams,
|
|
654
|
+
headerParams: headerParams,
|
|
655
|
+
queryParams: queryParams
|
|
656
|
+
});
|
|
657
|
+
try {
|
|
658
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
659
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
660
|
+
responseObject: {},
|
|
661
|
+
responseHeaders: [
|
|
662
|
+
{
|
|
663
|
+
value: response.headers.get("opc-work-request-id"),
|
|
664
|
+
key: "opcWorkRequestId",
|
|
665
|
+
dataType: "string"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
value: response.headers.get("opc-request-id"),
|
|
669
|
+
key: "opcRequestId",
|
|
670
|
+
dataType: "string"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
});
|
|
674
|
+
return sdkResponse;
|
|
675
|
+
}
|
|
676
|
+
catch (err) {
|
|
677
|
+
throw err;
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Delete a project by identifier.
|
|
683
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
684
|
+
* @param DeleteProjectRequest
|
|
685
|
+
* @return DeleteProjectResponse
|
|
686
|
+
* @throws OciError when an error occurs
|
|
687
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
688
|
+
*/
|
|
689
|
+
deleteProject(deleteProjectRequest) {
|
|
690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
691
|
+
if (this.logger)
|
|
692
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#deleteProject.");
|
|
693
|
+
const operationName = "deleteProject";
|
|
694
|
+
const apiReferenceLink = "";
|
|
695
|
+
const pathParams = {
|
|
696
|
+
"{projectId}": deleteProjectRequest.projectId
|
|
697
|
+
};
|
|
698
|
+
const queryParams = {};
|
|
699
|
+
let headerParams = {
|
|
700
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
701
|
+
"if-match": deleteProjectRequest.ifMatch,
|
|
702
|
+
"opc-request-id": deleteProjectRequest.opcRequestId
|
|
703
|
+
};
|
|
704
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
705
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
706
|
+
if (this.logger)
|
|
707
|
+
retrier.logger = this.logger;
|
|
708
|
+
const request = yield oci_common_1.composeRequest({
|
|
709
|
+
baseEndpoint: this._endpoint,
|
|
710
|
+
defaultHeaders: this._defaultHeaders,
|
|
711
|
+
path: "/projects/{projectId}",
|
|
712
|
+
method: "DELETE",
|
|
713
|
+
pathParams: pathParams,
|
|
714
|
+
headerParams: headerParams,
|
|
715
|
+
queryParams: queryParams
|
|
716
|
+
});
|
|
717
|
+
try {
|
|
718
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
719
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
720
|
+
responseObject: {},
|
|
721
|
+
responseHeaders: [
|
|
722
|
+
{
|
|
723
|
+
value: response.headers.get("opc-work-request-id"),
|
|
724
|
+
key: "opcWorkRequestId",
|
|
725
|
+
dataType: "string"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
value: response.headers.get("opc-request-id"),
|
|
729
|
+
key: "opcRequestId",
|
|
730
|
+
dataType: "string"
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
});
|
|
734
|
+
return sdkResponse;
|
|
735
|
+
}
|
|
736
|
+
catch (err) {
|
|
737
|
+
throw err;
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Get a model by identifier.
|
|
743
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
744
|
+
* @param GetModelRequest
|
|
745
|
+
* @return GetModelResponse
|
|
746
|
+
* @throws OciError when an error occurs
|
|
747
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/GetModel.ts.html |here} to see how to use GetModel API.
|
|
748
|
+
*/
|
|
749
|
+
getModel(getModelRequest) {
|
|
750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
+
if (this.logger)
|
|
752
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#getModel.");
|
|
753
|
+
const operationName = "getModel";
|
|
754
|
+
const apiReferenceLink = "";
|
|
755
|
+
const pathParams = {
|
|
756
|
+
"{modelId}": getModelRequest.modelId
|
|
757
|
+
};
|
|
758
|
+
const queryParams = {};
|
|
759
|
+
let headerParams = {
|
|
760
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
761
|
+
"opc-request-id": getModelRequest.opcRequestId
|
|
762
|
+
};
|
|
763
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
764
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
|
|
765
|
+
if (this.logger)
|
|
766
|
+
retrier.logger = this.logger;
|
|
767
|
+
const request = yield oci_common_1.composeRequest({
|
|
768
|
+
baseEndpoint: this._endpoint,
|
|
769
|
+
defaultHeaders: this._defaultHeaders,
|
|
770
|
+
path: "/models/{modelId}",
|
|
771
|
+
method: "GET",
|
|
772
|
+
pathParams: pathParams,
|
|
773
|
+
headerParams: headerParams,
|
|
774
|
+
queryParams: queryParams
|
|
775
|
+
});
|
|
776
|
+
try {
|
|
777
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
778
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
779
|
+
responseObject: {},
|
|
780
|
+
body: yield response.json(),
|
|
781
|
+
bodyKey: "model",
|
|
782
|
+
bodyModel: model.Model,
|
|
783
|
+
type: "model.Model",
|
|
784
|
+
responseHeaders: [
|
|
785
|
+
{
|
|
786
|
+
value: response.headers.get("etag"),
|
|
787
|
+
key: "etag",
|
|
788
|
+
dataType: "string"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
value: response.headers.get("opc-request-id"),
|
|
792
|
+
key: "opcRequestId",
|
|
793
|
+
dataType: "string"
|
|
794
|
+
}
|
|
795
|
+
]
|
|
796
|
+
});
|
|
797
|
+
return sdkResponse;
|
|
798
|
+
}
|
|
799
|
+
catch (err) {
|
|
800
|
+
throw err;
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Get the details of a processor job.
|
|
806
|
+
*
|
|
807
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
808
|
+
* @param GetProcessorJobRequest
|
|
809
|
+
* @return GetProcessorJobResponse
|
|
810
|
+
* @throws OciError when an error occurs
|
|
811
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/GetProcessorJob.ts.html |here} to see how to use GetProcessorJob API.
|
|
812
|
+
*/
|
|
813
|
+
getProcessorJob(getProcessorJobRequest) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
if (this.logger)
|
|
816
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#getProcessorJob.");
|
|
817
|
+
const operationName = "getProcessorJob";
|
|
818
|
+
const apiReferenceLink = "";
|
|
819
|
+
const pathParams = {
|
|
820
|
+
"{processorJobId}": getProcessorJobRequest.processorJobId
|
|
821
|
+
};
|
|
822
|
+
const queryParams = {};
|
|
823
|
+
let headerParams = {
|
|
824
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
825
|
+
"opc-request-id": getProcessorJobRequest.opcRequestId
|
|
826
|
+
};
|
|
827
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
828
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProcessorJobRequest.retryConfiguration, specRetryConfiguration);
|
|
829
|
+
if (this.logger)
|
|
830
|
+
retrier.logger = this.logger;
|
|
831
|
+
const request = yield oci_common_1.composeRequest({
|
|
832
|
+
baseEndpoint: this._endpoint,
|
|
833
|
+
defaultHeaders: this._defaultHeaders,
|
|
834
|
+
path: "/processorJobs/{processorJobId}",
|
|
835
|
+
method: "GET",
|
|
836
|
+
pathParams: pathParams,
|
|
837
|
+
headerParams: headerParams,
|
|
838
|
+
queryParams: queryParams
|
|
839
|
+
});
|
|
840
|
+
try {
|
|
841
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
842
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
843
|
+
responseObject: {},
|
|
844
|
+
body: yield response.json(),
|
|
845
|
+
bodyKey: "processorJob",
|
|
846
|
+
bodyModel: model.ProcessorJob,
|
|
847
|
+
type: "model.ProcessorJob",
|
|
848
|
+
responseHeaders: [
|
|
849
|
+
{
|
|
850
|
+
value: response.headers.get("etag"),
|
|
851
|
+
key: "etag",
|
|
852
|
+
dataType: "string"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
value: response.headers.get("opc-request-id"),
|
|
856
|
+
key: "opcRequestId",
|
|
857
|
+
dataType: "string"
|
|
858
|
+
}
|
|
859
|
+
]
|
|
860
|
+
});
|
|
861
|
+
return sdkResponse;
|
|
862
|
+
}
|
|
863
|
+
catch (err) {
|
|
864
|
+
throw err;
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Get a project by identifier.
|
|
870
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
871
|
+
* @param GetProjectRequest
|
|
872
|
+
* @return GetProjectResponse
|
|
873
|
+
* @throws OciError when an error occurs
|
|
874
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/GetProject.ts.html |here} to see how to use GetProject API.
|
|
875
|
+
*/
|
|
876
|
+
getProject(getProjectRequest) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
878
|
+
if (this.logger)
|
|
879
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#getProject.");
|
|
880
|
+
const operationName = "getProject";
|
|
881
|
+
const apiReferenceLink = "";
|
|
882
|
+
const pathParams = {
|
|
883
|
+
"{projectId}": getProjectRequest.projectId
|
|
884
|
+
};
|
|
885
|
+
const queryParams = {};
|
|
886
|
+
let headerParams = {
|
|
887
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
888
|
+
"opc-request-id": getProjectRequest.opcRequestId
|
|
889
|
+
};
|
|
890
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
891
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
892
|
+
if (this.logger)
|
|
893
|
+
retrier.logger = this.logger;
|
|
894
|
+
const request = yield oci_common_1.composeRequest({
|
|
895
|
+
baseEndpoint: this._endpoint,
|
|
896
|
+
defaultHeaders: this._defaultHeaders,
|
|
897
|
+
path: "/projects/{projectId}",
|
|
898
|
+
method: "GET",
|
|
899
|
+
pathParams: pathParams,
|
|
900
|
+
headerParams: headerParams,
|
|
901
|
+
queryParams: queryParams
|
|
902
|
+
});
|
|
903
|
+
try {
|
|
904
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
905
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
906
|
+
responseObject: {},
|
|
907
|
+
body: yield response.json(),
|
|
908
|
+
bodyKey: "project",
|
|
909
|
+
bodyModel: model.Project,
|
|
910
|
+
type: "model.Project",
|
|
911
|
+
responseHeaders: [
|
|
912
|
+
{
|
|
913
|
+
value: response.headers.get("etag"),
|
|
914
|
+
key: "etag",
|
|
915
|
+
dataType: "string"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
value: response.headers.get("opc-request-id"),
|
|
919
|
+
key: "opcRequestId",
|
|
920
|
+
dataType: "string"
|
|
921
|
+
}
|
|
922
|
+
]
|
|
923
|
+
});
|
|
924
|
+
return sdkResponse;
|
|
925
|
+
}
|
|
926
|
+
catch (err) {
|
|
927
|
+
throw err;
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Gets the status of the work request with the given ID.
|
|
933
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
934
|
+
* @param GetWorkRequestRequest
|
|
935
|
+
* @return GetWorkRequestResponse
|
|
936
|
+
* @throws OciError when an error occurs
|
|
937
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
938
|
+
*/
|
|
939
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
941
|
+
if (this.logger)
|
|
942
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#getWorkRequest.");
|
|
943
|
+
const operationName = "getWorkRequest";
|
|
944
|
+
const apiReferenceLink = "";
|
|
945
|
+
const pathParams = {
|
|
946
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
947
|
+
};
|
|
948
|
+
const queryParams = {};
|
|
949
|
+
let headerParams = {
|
|
950
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
951
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
952
|
+
};
|
|
953
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
954
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
955
|
+
if (this.logger)
|
|
956
|
+
retrier.logger = this.logger;
|
|
957
|
+
const request = yield oci_common_1.composeRequest({
|
|
958
|
+
baseEndpoint: this._endpoint,
|
|
959
|
+
defaultHeaders: this._defaultHeaders,
|
|
960
|
+
path: "/workRequests/{workRequestId}",
|
|
961
|
+
method: "GET",
|
|
962
|
+
pathParams: pathParams,
|
|
963
|
+
headerParams: headerParams,
|
|
964
|
+
queryParams: queryParams
|
|
965
|
+
});
|
|
966
|
+
try {
|
|
967
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
968
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
969
|
+
responseObject: {},
|
|
970
|
+
body: yield response.json(),
|
|
971
|
+
bodyKey: "workRequest",
|
|
972
|
+
bodyModel: model.WorkRequest,
|
|
973
|
+
type: "model.WorkRequest",
|
|
974
|
+
responseHeaders: [
|
|
975
|
+
{
|
|
976
|
+
value: response.headers.get("etag"),
|
|
977
|
+
key: "etag",
|
|
978
|
+
dataType: "string"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
value: response.headers.get("opc-request-id"),
|
|
982
|
+
key: "opcRequestId",
|
|
983
|
+
dataType: "string"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
value: response.headers.get("retry-after"),
|
|
987
|
+
key: "retryAfter",
|
|
988
|
+
dataType: "number"
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
});
|
|
992
|
+
return sdkResponse;
|
|
993
|
+
}
|
|
994
|
+
catch (err) {
|
|
995
|
+
throw err;
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Returns a list of models in a compartment.
|
|
1001
|
+
*
|
|
1002
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1003
|
+
* @param ListModelsRequest
|
|
1004
|
+
* @return ListModelsResponse
|
|
1005
|
+
* @throws OciError when an error occurs
|
|
1006
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1007
|
+
*/
|
|
1008
|
+
listModels(listModelsRequest) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
|
+
if (this.logger)
|
|
1011
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#listModels.");
|
|
1012
|
+
const operationName = "listModels";
|
|
1013
|
+
const apiReferenceLink = "";
|
|
1014
|
+
const pathParams = {};
|
|
1015
|
+
const queryParams = {
|
|
1016
|
+
"compartmentId": listModelsRequest.compartmentId,
|
|
1017
|
+
"projectId": listModelsRequest.projectId,
|
|
1018
|
+
"lifecycleState": listModelsRequest.lifecycleState,
|
|
1019
|
+
"displayName": listModelsRequest.displayName,
|
|
1020
|
+
"id": listModelsRequest.id,
|
|
1021
|
+
"limit": listModelsRequest.limit,
|
|
1022
|
+
"page": listModelsRequest.page,
|
|
1023
|
+
"sortOrder": listModelsRequest.sortOrder,
|
|
1024
|
+
"sortBy": listModelsRequest.sortBy
|
|
1025
|
+
};
|
|
1026
|
+
let headerParams = {
|
|
1027
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1028
|
+
"opc-request-id": listModelsRequest.opcRequestId
|
|
1029
|
+
};
|
|
1030
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1031
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
|
|
1032
|
+
if (this.logger)
|
|
1033
|
+
retrier.logger = this.logger;
|
|
1034
|
+
const request = yield oci_common_1.composeRequest({
|
|
1035
|
+
baseEndpoint: this._endpoint,
|
|
1036
|
+
defaultHeaders: this._defaultHeaders,
|
|
1037
|
+
path: "/models",
|
|
1038
|
+
method: "GET",
|
|
1039
|
+
pathParams: pathParams,
|
|
1040
|
+
headerParams: headerParams,
|
|
1041
|
+
queryParams: queryParams
|
|
1042
|
+
});
|
|
1043
|
+
try {
|
|
1044
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1045
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1046
|
+
responseObject: {},
|
|
1047
|
+
body: yield response.json(),
|
|
1048
|
+
bodyKey: "modelCollection",
|
|
1049
|
+
bodyModel: model.ModelCollection,
|
|
1050
|
+
type: "model.ModelCollection",
|
|
1051
|
+
responseHeaders: [
|
|
1052
|
+
{
|
|
1053
|
+
value: response.headers.get("opc-request-id"),
|
|
1054
|
+
key: "opcRequestId",
|
|
1055
|
+
dataType: "string"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
value: response.headers.get("opc-next-page"),
|
|
1059
|
+
key: "opcNextPage",
|
|
1060
|
+
dataType: "string"
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
});
|
|
1064
|
+
return sdkResponse;
|
|
1065
|
+
}
|
|
1066
|
+
catch (err) {
|
|
1067
|
+
throw err;
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Returns a list of projects.
|
|
1073
|
+
*
|
|
1074
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1075
|
+
* @param ListProjectsRequest
|
|
1076
|
+
* @return ListProjectsResponse
|
|
1077
|
+
* @throws OciError when an error occurs
|
|
1078
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
1079
|
+
*/
|
|
1080
|
+
listProjects(listProjectsRequest) {
|
|
1081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1082
|
+
if (this.logger)
|
|
1083
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#listProjects.");
|
|
1084
|
+
const operationName = "listProjects";
|
|
1085
|
+
const apiReferenceLink = "";
|
|
1086
|
+
const pathParams = {};
|
|
1087
|
+
const queryParams = {
|
|
1088
|
+
"compartmentId": listProjectsRequest.compartmentId,
|
|
1089
|
+
"lifecycleState": listProjectsRequest.lifecycleState,
|
|
1090
|
+
"displayName": listProjectsRequest.displayName,
|
|
1091
|
+
"id": listProjectsRequest.id,
|
|
1092
|
+
"limit": listProjectsRequest.limit,
|
|
1093
|
+
"page": listProjectsRequest.page,
|
|
1094
|
+
"sortOrder": listProjectsRequest.sortOrder,
|
|
1095
|
+
"sortBy": listProjectsRequest.sortBy
|
|
1096
|
+
};
|
|
1097
|
+
let headerParams = {
|
|
1098
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1099
|
+
"opc-request-id": listProjectsRequest.opcRequestId
|
|
1100
|
+
};
|
|
1101
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1102
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
1103
|
+
if (this.logger)
|
|
1104
|
+
retrier.logger = this.logger;
|
|
1105
|
+
const request = yield oci_common_1.composeRequest({
|
|
1106
|
+
baseEndpoint: this._endpoint,
|
|
1107
|
+
defaultHeaders: this._defaultHeaders,
|
|
1108
|
+
path: "/projects",
|
|
1109
|
+
method: "GET",
|
|
1110
|
+
pathParams: pathParams,
|
|
1111
|
+
headerParams: headerParams,
|
|
1112
|
+
queryParams: queryParams
|
|
1113
|
+
});
|
|
1114
|
+
try {
|
|
1115
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1116
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1117
|
+
responseObject: {},
|
|
1118
|
+
body: yield response.json(),
|
|
1119
|
+
bodyKey: "projectCollection",
|
|
1120
|
+
bodyModel: model.ProjectCollection,
|
|
1121
|
+
type: "model.ProjectCollection",
|
|
1122
|
+
responseHeaders: [
|
|
1123
|
+
{
|
|
1124
|
+
value: response.headers.get("opc-request-id"),
|
|
1125
|
+
key: "opcRequestId",
|
|
1126
|
+
dataType: "string"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
value: response.headers.get("opc-next-page"),
|
|
1130
|
+
key: "opcNextPage",
|
|
1131
|
+
dataType: "string"
|
|
1132
|
+
}
|
|
1133
|
+
]
|
|
1134
|
+
});
|
|
1135
|
+
return sdkResponse;
|
|
1136
|
+
}
|
|
1137
|
+
catch (err) {
|
|
1138
|
+
throw err;
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Returns a (paginated) list of errors for a given work request.
|
|
1144
|
+
*
|
|
1145
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1146
|
+
* @param ListWorkRequestErrorsRequest
|
|
1147
|
+
* @return ListWorkRequestErrorsResponse
|
|
1148
|
+
* @throws OciError when an error occurs
|
|
1149
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1150
|
+
*/
|
|
1151
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1153
|
+
if (this.logger)
|
|
1154
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestErrors.");
|
|
1155
|
+
const operationName = "listWorkRequestErrors";
|
|
1156
|
+
const apiReferenceLink = "";
|
|
1157
|
+
const pathParams = {
|
|
1158
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1159
|
+
};
|
|
1160
|
+
const queryParams = {
|
|
1161
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1162
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1163
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1164
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1165
|
+
};
|
|
1166
|
+
let headerParams = {
|
|
1167
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1168
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1169
|
+
};
|
|
1170
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1171
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1172
|
+
if (this.logger)
|
|
1173
|
+
retrier.logger = this.logger;
|
|
1174
|
+
const request = yield oci_common_1.composeRequest({
|
|
1175
|
+
baseEndpoint: this._endpoint,
|
|
1176
|
+
defaultHeaders: this._defaultHeaders,
|
|
1177
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1178
|
+
method: "GET",
|
|
1179
|
+
pathParams: pathParams,
|
|
1180
|
+
headerParams: headerParams,
|
|
1181
|
+
queryParams: queryParams
|
|
1182
|
+
});
|
|
1183
|
+
try {
|
|
1184
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1185
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1186
|
+
responseObject: {},
|
|
1187
|
+
body: yield response.json(),
|
|
1188
|
+
bodyKey: "workRequestErrorCollection",
|
|
1189
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1190
|
+
type: "model.WorkRequestErrorCollection",
|
|
1191
|
+
responseHeaders: [
|
|
1192
|
+
{
|
|
1193
|
+
value: response.headers.get("opc-next-page"),
|
|
1194
|
+
key: "opcNextPage",
|
|
1195
|
+
dataType: "string"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
value: response.headers.get("opc-request-id"),
|
|
1199
|
+
key: "opcRequestId",
|
|
1200
|
+
dataType: "string"
|
|
1201
|
+
}
|
|
1202
|
+
]
|
|
1203
|
+
});
|
|
1204
|
+
return sdkResponse;
|
|
1205
|
+
}
|
|
1206
|
+
catch (err) {
|
|
1207
|
+
throw err;
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Return a (paginated) list of logs for a given work request.
|
|
1213
|
+
*
|
|
1214
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1215
|
+
* @param ListWorkRequestLogsRequest
|
|
1216
|
+
* @return ListWorkRequestLogsResponse
|
|
1217
|
+
* @throws OciError when an error occurs
|
|
1218
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1219
|
+
*/
|
|
1220
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1222
|
+
if (this.logger)
|
|
1223
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequestLogs.");
|
|
1224
|
+
const operationName = "listWorkRequestLogs";
|
|
1225
|
+
const apiReferenceLink = "";
|
|
1226
|
+
const pathParams = {
|
|
1227
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1228
|
+
};
|
|
1229
|
+
const queryParams = {
|
|
1230
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1231
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1232
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1233
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1234
|
+
};
|
|
1235
|
+
let headerParams = {
|
|
1236
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1237
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1238
|
+
};
|
|
1239
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1240
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1241
|
+
if (this.logger)
|
|
1242
|
+
retrier.logger = this.logger;
|
|
1243
|
+
const request = yield oci_common_1.composeRequest({
|
|
1244
|
+
baseEndpoint: this._endpoint,
|
|
1245
|
+
defaultHeaders: this._defaultHeaders,
|
|
1246
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1247
|
+
method: "GET",
|
|
1248
|
+
pathParams: pathParams,
|
|
1249
|
+
headerParams: headerParams,
|
|
1250
|
+
queryParams: queryParams
|
|
1251
|
+
});
|
|
1252
|
+
try {
|
|
1253
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1254
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1255
|
+
responseObject: {},
|
|
1256
|
+
body: yield response.json(),
|
|
1257
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1258
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1259
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1260
|
+
responseHeaders: [
|
|
1261
|
+
{
|
|
1262
|
+
value: response.headers.get("opc-next-page"),
|
|
1263
|
+
key: "opcNextPage",
|
|
1264
|
+
dataType: "string"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
value: response.headers.get("opc-request-id"),
|
|
1268
|
+
key: "opcRequestId",
|
|
1269
|
+
dataType: "string"
|
|
1270
|
+
}
|
|
1271
|
+
]
|
|
1272
|
+
});
|
|
1273
|
+
return sdkResponse;
|
|
1274
|
+
}
|
|
1275
|
+
catch (err) {
|
|
1276
|
+
throw err;
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Lists the work requests in a compartment.
|
|
1282
|
+
*
|
|
1283
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1284
|
+
* @param ListWorkRequestsRequest
|
|
1285
|
+
* @return ListWorkRequestsResponse
|
|
1286
|
+
* @throws OciError when an error occurs
|
|
1287
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1288
|
+
*/
|
|
1289
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1291
|
+
if (this.logger)
|
|
1292
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#listWorkRequests.");
|
|
1293
|
+
const operationName = "listWorkRequests";
|
|
1294
|
+
const apiReferenceLink = "";
|
|
1295
|
+
const pathParams = {};
|
|
1296
|
+
const queryParams = {
|
|
1297
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1298
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1299
|
+
"status": listWorkRequestsRequest.status,
|
|
1300
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1301
|
+
"page": listWorkRequestsRequest.page,
|
|
1302
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1303
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1304
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1305
|
+
};
|
|
1306
|
+
let headerParams = {
|
|
1307
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1308
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1309
|
+
};
|
|
1310
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1311
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1312
|
+
if (this.logger)
|
|
1313
|
+
retrier.logger = this.logger;
|
|
1314
|
+
const request = yield oci_common_1.composeRequest({
|
|
1315
|
+
baseEndpoint: this._endpoint,
|
|
1316
|
+
defaultHeaders: this._defaultHeaders,
|
|
1317
|
+
path: "/workRequests",
|
|
1318
|
+
method: "GET",
|
|
1319
|
+
pathParams: pathParams,
|
|
1320
|
+
headerParams: headerParams,
|
|
1321
|
+
queryParams: queryParams
|
|
1322
|
+
});
|
|
1323
|
+
try {
|
|
1324
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1325
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1326
|
+
responseObject: {},
|
|
1327
|
+
body: yield response.json(),
|
|
1328
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1329
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1330
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1331
|
+
responseHeaders: [
|
|
1332
|
+
{
|
|
1333
|
+
value: response.headers.get("opc-request-id"),
|
|
1334
|
+
key: "opcRequestId",
|
|
1335
|
+
dataType: "string"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
value: response.headers.get("opc-next-page"),
|
|
1339
|
+
key: "opcNextPage",
|
|
1340
|
+
dataType: "string"
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1343
|
+
});
|
|
1344
|
+
return sdkResponse;
|
|
1345
|
+
}
|
|
1346
|
+
catch (err) {
|
|
1347
|
+
throw err;
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Updates the model metadata.
|
|
1353
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1354
|
+
* @param UpdateModelRequest
|
|
1355
|
+
* @return UpdateModelResponse
|
|
1356
|
+
* @throws OciError when an error occurs
|
|
1357
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
1358
|
+
*/
|
|
1359
|
+
updateModel(updateModelRequest) {
|
|
1360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1361
|
+
if (this.logger)
|
|
1362
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#updateModel.");
|
|
1363
|
+
const operationName = "updateModel";
|
|
1364
|
+
const apiReferenceLink = "";
|
|
1365
|
+
const pathParams = {
|
|
1366
|
+
"{modelId}": updateModelRequest.modelId
|
|
1367
|
+
};
|
|
1368
|
+
const queryParams = {};
|
|
1369
|
+
let headerParams = {
|
|
1370
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1371
|
+
"if-match": updateModelRequest.ifMatch,
|
|
1372
|
+
"opc-request-id": updateModelRequest.opcRequestId
|
|
1373
|
+
};
|
|
1374
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1375
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1376
|
+
if (this.logger)
|
|
1377
|
+
retrier.logger = this.logger;
|
|
1378
|
+
const request = yield oci_common_1.composeRequest({
|
|
1379
|
+
baseEndpoint: this._endpoint,
|
|
1380
|
+
defaultHeaders: this._defaultHeaders,
|
|
1381
|
+
path: "/models/{modelId}",
|
|
1382
|
+
method: "PUT",
|
|
1383
|
+
bodyContent: common.ObjectSerializer.serialize(updateModelRequest.updateModelDetails, "UpdateModelDetails", model.UpdateModelDetails.getJsonObj),
|
|
1384
|
+
pathParams: pathParams,
|
|
1385
|
+
headerParams: headerParams,
|
|
1386
|
+
queryParams: queryParams
|
|
1387
|
+
});
|
|
1388
|
+
try {
|
|
1389
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1390
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1391
|
+
responseObject: {},
|
|
1392
|
+
responseHeaders: [
|
|
1393
|
+
{
|
|
1394
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1395
|
+
key: "opcWorkRequestId",
|
|
1396
|
+
dataType: "string"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
value: response.headers.get("opc-request-id"),
|
|
1400
|
+
key: "opcRequestId",
|
|
1401
|
+
dataType: "string"
|
|
1402
|
+
}
|
|
1403
|
+
]
|
|
1404
|
+
});
|
|
1405
|
+
return sdkResponse;
|
|
1406
|
+
}
|
|
1407
|
+
catch (err) {
|
|
1408
|
+
throw err;
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Update the project metadata.
|
|
1414
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1415
|
+
* @param UpdateProjectRequest
|
|
1416
|
+
* @return UpdateProjectResponse
|
|
1417
|
+
* @throws OciError when an error occurs
|
|
1418
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/aidocument/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
1419
|
+
*/
|
|
1420
|
+
updateProject(updateProjectRequest) {
|
|
1421
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1422
|
+
if (this.logger)
|
|
1423
|
+
this.logger.debug("Calling operation AIServiceDocumentClient#updateProject.");
|
|
1424
|
+
const operationName = "updateProject";
|
|
1425
|
+
const apiReferenceLink = "";
|
|
1426
|
+
const pathParams = {
|
|
1427
|
+
"{projectId}": updateProjectRequest.projectId
|
|
1428
|
+
};
|
|
1429
|
+
const queryParams = {};
|
|
1430
|
+
let headerParams = {
|
|
1431
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1432
|
+
"if-match": updateProjectRequest.ifMatch,
|
|
1433
|
+
"opc-request-id": updateProjectRequest.opcRequestId
|
|
1434
|
+
};
|
|
1435
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1436
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1437
|
+
if (this.logger)
|
|
1438
|
+
retrier.logger = this.logger;
|
|
1439
|
+
const request = yield oci_common_1.composeRequest({
|
|
1440
|
+
baseEndpoint: this._endpoint,
|
|
1441
|
+
defaultHeaders: this._defaultHeaders,
|
|
1442
|
+
path: "/projects/{projectId}",
|
|
1443
|
+
method: "PUT",
|
|
1444
|
+
bodyContent: common.ObjectSerializer.serialize(updateProjectRequest.updateProjectDetails, "UpdateProjectDetails", model.UpdateProjectDetails.getJsonObj),
|
|
1445
|
+
pathParams: pathParams,
|
|
1446
|
+
headerParams: headerParams,
|
|
1447
|
+
queryParams: queryParams
|
|
1448
|
+
});
|
|
1449
|
+
try {
|
|
1450
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1451
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1452
|
+
responseObject: {},
|
|
1453
|
+
responseHeaders: [
|
|
1454
|
+
{
|
|
1455
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1456
|
+
key: "opcWorkRequestId",
|
|
1457
|
+
dataType: "string"
|
|
1458
|
+
},
|
|
346
1459
|
{
|
|
347
1460
|
value: response.headers.get("opc-request-id"),
|
|
348
1461
|
key: "opcRequestId",
|