oci-aivision 2.114.1 → 2.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aiservicevision-waiter.d.ts +32 -0
- package/lib/aiservicevision-waiter.js +48 -0
- package/lib/aiservicevision-waiter.js.map +1 -1
- package/lib/client.d.ts +253 -0
- package/lib/client.js +2009 -338
- package/lib/client.js.map +1 -1
- package/lib/model/analyze-video-stream-result.d.ts +58 -0
- package/lib/model/analyze-video-stream-result.js +103 -0
- package/lib/model/analyze-video-stream-result.js.map +1 -0
- package/lib/model/change-stream-group-compartment-details.d.ts +27 -0
- package/lib/model/change-stream-group-compartment-details.js +29 -0
- package/lib/model/change-stream-group-compartment-details.js.map +1 -0
- package/lib/model/change-stream-job-compartment-details.d.ts +27 -0
- package/lib/model/change-stream-job-compartment-details.js +29 -0
- package/lib/model/change-stream-job-compartment-details.js.map +1 -0
- package/lib/model/change-stream-source-compartment-details.d.ts +27 -0
- package/lib/model/change-stream-source-compartment-details.js +29 -0
- package/lib/model/change-stream-source-compartment-details.js.map +1 -0
- package/lib/model/change-vision-private-endpoint-compartment-details.d.ts +27 -0
- package/lib/model/change-vision-private-endpoint-compartment-details.js +29 -0
- package/lib/model/change-vision-private-endpoint-compartment-details.js.map +1 -0
- package/lib/model/create-stream-group-details.d.ts +61 -0
- package/lib/model/create-stream-group-details.js +61 -0
- package/lib/model/create-stream-group-details.js.map +1 -0
- package/lib/model/create-stream-job-details.d.ts +59 -0
- package/lib/model/create-stream-job-details.js +67 -0
- package/lib/model/create-stream-job-details.js.map +1 -0
- package/lib/model/create-stream-source-details.d.ts +50 -0
- package/lib/model/create-stream-source-details.js +57 -0
- package/lib/model/create-stream-source-details.js.map +1 -0
- package/lib/model/create-vision-private-endpoint-details.d.ts +56 -0
- package/lib/model/create-vision-private-endpoint-details.js +29 -0
- package/lib/model/create-vision-private-endpoint-details.js.map +1 -0
- package/lib/model/face-embedding-feature.d.ts +32 -0
- package/lib/model/face-embedding-feature.js +52 -0
- package/lib/model/face-embedding-feature.js.map +1 -0
- package/lib/model/face.d.ts +4 -0
- package/lib/model/face.js.map +1 -1
- package/lib/model/image-feature.js +4 -0
- package/lib/model/image-feature.js.map +1 -1
- package/lib/model/index.d.ts +84 -0
- package/lib/model/index.js +88 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/model-version-details.d.ts +29 -0
- package/lib/model/model-version-details.js +29 -0
- package/lib/model/model-version-details.js.map +1 -0
- package/lib/model/object-properties.d.ts +34 -0
- package/lib/model/object-properties.js +61 -0
- package/lib/model/object-properties.js.map +1 -0
- package/lib/model/object-storage-output-location.d.ts +36 -0
- package/lib/model/object-storage-output-location.js +54 -0
- package/lib/model/object-storage-output-location.js.map +1 -0
- package/lib/model/operation-type.d.ts +17 -0
- package/lib/model/operation-type.js +17 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/private-stream-network-access-details.d.ts +29 -0
- package/lib/model/private-stream-network-access-details.js +54 -0
- package/lib/model/private-stream-network-access-details.js.map +1 -0
- package/lib/model/rtsp-source-details.d.ts +33 -0
- package/lib/model/rtsp-source-details.js +52 -0
- package/lib/model/rtsp-source-details.js.map +1 -0
- package/lib/model/stream-group-collection.d.ts +26 -0
- package/lib/model/stream-group-collection.js +61 -0
- package/lib/model/stream-group-collection.js.map +1 -0
- package/lib/model/stream-group-overlap.d.ts +25 -0
- package/lib/model/stream-group-overlap.js +29 -0
- package/lib/model/stream-group-overlap.js.map +1 -0
- package/lib/model/stream-group-summary.d.ts +88 -0
- package/lib/model/stream-group-summary.js +61 -0
- package/lib/model/stream-group-summary.js.map +1 -0
- package/lib/model/stream-group.d.ts +101 -0
- package/lib/model/stream-group.js +75 -0
- package/lib/model/stream-group.js.map +1 -0
- package/lib/model/stream-job-collection.d.ts +26 -0
- package/lib/model/stream-job-collection.js +61 -0
- package/lib/model/stream-job-collection.js.map +1 -0
- package/lib/model/stream-job-summary.d.ts +90 -0
- package/lib/model/stream-job-summary.js +67 -0
- package/lib/model/stream-job-summary.js.map +1 -0
- package/lib/model/stream-job.d.ts +109 -0
- package/lib/model/stream-job.js +83 -0
- package/lib/model/stream-job.js.map +1 -0
- package/lib/model/stream-network-access-details.d.ts +22 -0
- package/lib/model/stream-network-access-details.js +68 -0
- package/lib/model/stream-network-access-details.js.map +1 -0
- package/lib/model/stream-output-location.d.ts +22 -0
- package/lib/model/stream-output-location.js +68 -0
- package/lib/model/stream-output-location.js.map +1 -0
- package/lib/model/stream-source-collection.d.ts +26 -0
- package/lib/model/stream-source-collection.js +61 -0
- package/lib/model/stream-source-collection.js.map +1 -0
- package/lib/model/stream-source-details.d.ts +24 -0
- package/lib/model/stream-source-details.js +76 -0
- package/lib/model/stream-source-details.js.map +1 -0
- package/lib/model/stream-source-summary.d.ts +77 -0
- package/lib/model/stream-source-summary.js +57 -0
- package/lib/model/stream-source-summary.js.map +1 -0
- package/lib/model/stream-source.d.ts +90 -0
- package/lib/model/stream-source.js +71 -0
- package/lib/model/stream-source.js.map +1 -0
- package/lib/model/tracking-type.d.ts +41 -0
- package/lib/model/tracking-type.js +29 -0
- package/lib/model/tracking-type.js.map +1 -0
- package/lib/model/update-stream-group-details.d.ts +56 -0
- package/lib/model/update-stream-group-details.js +61 -0
- package/lib/model/update-stream-group-details.js.map +1 -0
- package/lib/model/update-stream-job-details.d.ts +54 -0
- package/lib/model/update-stream-job-details.js +67 -0
- package/lib/model/update-stream-job-details.js.map +1 -0
- package/lib/model/update-stream-source-details.d.ts +45 -0
- package/lib/model/update-stream-source-details.js +57 -0
- package/lib/model/update-stream-source-details.js.map +1 -0
- package/lib/model/update-vision-private-endpoint-details.d.ts +47 -0
- package/lib/model/update-vision-private-endpoint-details.js +29 -0
- package/lib/model/update-vision-private-endpoint-details.js.map +1 -0
- package/lib/model/video-job.d.ts +1 -1
- package/lib/model/video-stream-face-detection-feature.d.ts +38 -0
- package/lib/model/video-stream-face-detection-feature.js +54 -0
- package/lib/model/video-stream-face-detection-feature.js.map +1 -0
- package/lib/model/video-stream-feature.d.ts +22 -0
- package/lib/model/video-stream-feature.js +76 -0
- package/lib/model/video-stream-feature.js.map +1 -0
- package/lib/model/video-stream-metadata.d.ts +33 -0
- package/lib/model/video-stream-metadata.js +29 -0
- package/lib/model/video-stream-metadata.js.map +1 -0
- package/lib/model/video-stream-object-detection-feature.d.ts +34 -0
- package/lib/model/video-stream-object-detection-feature.js +54 -0
- package/lib/model/video-stream-object-detection-feature.js.map +1 -0
- package/lib/model/video-stream-object-tracking-feature.d.ts +28 -0
- package/lib/model/video-stream-object-tracking-feature.js +66 -0
- package/lib/model/video-stream-object-tracking-feature.js.map +1 -0
- package/lib/model/video-stream-object.d.ts +36 -0
- package/lib/model/video-stream-object.js +61 -0
- package/lib/model/video-stream-object.js.map +1 -0
- package/lib/model/video-tracked-object-properties.d.ts +4 -0
- package/lib/model/video-tracked-object-properties.js.map +1 -1
- package/lib/model/vision-private-endpoint-collection.d.ts +26 -0
- package/lib/model/vision-private-endpoint-collection.js +61 -0
- package/lib/model/vision-private-endpoint-collection.js.map +1 -0
- package/lib/model/vision-private-endpoint-summary.d.ts +82 -0
- package/lib/model/vision-private-endpoint-summary.js +29 -0
- package/lib/model/vision-private-endpoint-summary.js.map +1 -0
- package/lib/model/vision-private-endpoint.d.ts +100 -0
- package/lib/model/vision-private-endpoint.js +43 -0
- package/lib/model/vision-private-endpoint.js.map +1 -0
- package/lib/request/change-stream-group-compartment-request.d.ts +49 -0
- package/lib/request/change-stream-group-compartment-request.js +15 -0
- package/lib/request/change-stream-group-compartment-request.js.map +1 -0
- package/lib/request/change-stream-job-compartment-request.d.ts +49 -0
- package/lib/request/change-stream-job-compartment-request.js +15 -0
- package/lib/request/change-stream-job-compartment-request.js.map +1 -0
- package/lib/request/change-stream-source-compartment-request.d.ts +49 -0
- package/lib/request/change-stream-source-compartment-request.js +15 -0
- package/lib/request/change-stream-source-compartment-request.js.map +1 -0
- package/lib/request/change-vision-private-endpoint-compartment-request.d.ts +49 -0
- package/lib/request/change-vision-private-endpoint-compartment-request.js +15 -0
- package/lib/request/change-vision-private-endpoint-compartment-request.js.map +1 -0
- package/lib/request/create-stream-group-request.d.ts +36 -0
- package/lib/request/create-stream-group-request.js +15 -0
- package/lib/request/create-stream-group-request.js.map +1 -0
- package/lib/request/create-stream-job-request.d.ts +36 -0
- package/lib/request/create-stream-job-request.js +15 -0
- package/lib/request/create-stream-job-request.js.map +1 -0
- package/lib/request/create-stream-source-request.d.ts +36 -0
- package/lib/request/create-stream-source-request.js +15 -0
- package/lib/request/create-stream-source-request.js.map +1 -0
- package/lib/request/create-vision-private-endpoint-request.d.ts +36 -0
- package/lib/request/create-vision-private-endpoint-request.js +15 -0
- package/lib/request/create-vision-private-endpoint-request.js.map +1 -0
- package/lib/request/delete-stream-group-request.d.ts +35 -0
- package/lib/request/delete-stream-group-request.js +15 -0
- package/lib/request/delete-stream-group-request.js.map +1 -0
- package/lib/request/delete-stream-job-request.d.ts +35 -0
- package/lib/request/delete-stream-job-request.js +15 -0
- package/lib/request/delete-stream-job-request.js.map +1 -0
- package/lib/request/delete-stream-source-request.d.ts +35 -0
- package/lib/request/delete-stream-source-request.js +15 -0
- package/lib/request/delete-stream-source-request.js.map +1 -0
- package/lib/request/delete-vision-private-endpoint-request.d.ts +35 -0
- package/lib/request/delete-vision-private-endpoint-request.js +15 -0
- package/lib/request/delete-vision-private-endpoint-request.js.map +1 -0
- package/lib/request/get-stream-group-request.d.ts +26 -0
- package/lib/request/get-stream-group-request.js +15 -0
- package/lib/request/get-stream-group-request.js.map +1 -0
- package/lib/request/get-stream-job-request.d.ts +26 -0
- package/lib/request/get-stream-job-request.js +15 -0
- package/lib/request/get-stream-job-request.js.map +1 -0
- package/lib/request/get-stream-source-request.d.ts +26 -0
- package/lib/request/get-stream-source-request.js +15 -0
- package/lib/request/get-stream-source-request.js.map +1 -0
- package/lib/request/get-vision-private-endpoint-request.d.ts +26 -0
- package/lib/request/get-vision-private-endpoint-request.js +15 -0
- package/lib/request/get-vision-private-endpoint-request.js.map +1 -0
- package/lib/request/index.d.ts +52 -0
- package/lib/request/index.js +9 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-stream-groups-request.d.ts +58 -0
- package/lib/request/list-stream-groups-request.js +24 -0
- package/lib/request/list-stream-groups-request.js.map +1 -0
- package/lib/request/list-stream-jobs-request.d.ts +62 -0
- package/lib/request/list-stream-jobs-request.js +24 -0
- package/lib/request/list-stream-jobs-request.js.map +1 -0
- package/lib/request/list-stream-sources-request.d.ts +62 -0
- package/lib/request/list-stream-sources-request.js +24 -0
- package/lib/request/list-stream-sources-request.js.map +1 -0
- package/lib/request/list-vision-private-endpoints-request.d.ts +62 -0
- package/lib/request/list-vision-private-endpoints-request.js +24 -0
- package/lib/request/list-vision-private-endpoints-request.js.map +1 -0
- package/lib/request/start-stream-job-request.d.ts +44 -0
- package/lib/request/start-stream-job-request.js +15 -0
- package/lib/request/start-stream-job-request.js.map +1 -0
- package/lib/request/stop-stream-job-request.d.ts +44 -0
- package/lib/request/stop-stream-job-request.js +15 -0
- package/lib/request/stop-stream-job-request.js.map +1 -0
- package/lib/request/update-stream-group-request.d.ts +40 -0
- package/lib/request/update-stream-group-request.js +15 -0
- package/lib/request/update-stream-group-request.js.map +1 -0
- package/lib/request/update-stream-job-request.d.ts +40 -0
- package/lib/request/update-stream-job-request.js +15 -0
- package/lib/request/update-stream-job-request.js.map +1 -0
- package/lib/request/update-stream-source-request.d.ts +40 -0
- package/lib/request/update-stream-source-request.js +15 -0
- package/lib/request/update-stream-source-request.js.map +1 -0
- package/lib/request/update-vision-private-endpoint-request.d.ts +40 -0
- package/lib/request/update-vision-private-endpoint-request.js +15 -0
- package/lib/request/update-vision-private-endpoint-request.js.map +1 -0
- package/lib/response/change-stream-group-compartment-response.d.ts +25 -0
- package/lib/response/change-stream-group-compartment-response.js +15 -0
- package/lib/response/change-stream-group-compartment-response.js.map +1 -0
- package/lib/response/change-stream-job-compartment-response.d.ts +25 -0
- package/lib/response/change-stream-job-compartment-response.js +15 -0
- package/lib/response/change-stream-job-compartment-response.js.map +1 -0
- package/lib/response/change-stream-source-compartment-response.d.ts +25 -0
- package/lib/response/change-stream-source-compartment-response.js +15 -0
- package/lib/response/change-stream-source-compartment-response.js.map +1 -0
- package/lib/response/change-vision-private-endpoint-compartment-response.d.ts +20 -0
- package/lib/response/change-vision-private-endpoint-compartment-response.js +15 -0
- package/lib/response/change-vision-private-endpoint-compartment-response.js.map +1 -0
- package/lib/response/create-stream-group-response.d.ts +35 -0
- package/lib/response/create-stream-group-response.js +15 -0
- package/lib/response/create-stream-group-response.js.map +1 -0
- package/lib/response/create-stream-job-response.d.ts +35 -0
- package/lib/response/create-stream-job-response.js +15 -0
- package/lib/response/create-stream-job-response.js.map +1 -0
- package/lib/response/create-stream-source-response.d.ts +35 -0
- package/lib/response/create-stream-source-response.js +15 -0
- package/lib/response/create-stream-source-response.js.map +1 -0
- package/lib/response/create-vision-private-endpoint-response.d.ts +35 -0
- package/lib/response/create-vision-private-endpoint-response.js +15 -0
- package/lib/response/create-vision-private-endpoint-response.js.map +1 -0
- package/lib/response/delete-stream-group-response.d.ts +25 -0
- package/lib/response/delete-stream-group-response.js +15 -0
- package/lib/response/delete-stream-group-response.js.map +1 -0
- package/lib/response/delete-stream-job-response.d.ts +25 -0
- package/lib/response/delete-stream-job-response.js +15 -0
- package/lib/response/delete-stream-job-response.js.map +1 -0
- package/lib/response/delete-stream-source-response.d.ts +25 -0
- package/lib/response/delete-stream-source-response.js +15 -0
- package/lib/response/delete-stream-source-response.js.map +1 -0
- package/lib/response/delete-vision-private-endpoint-response.d.ts +25 -0
- package/lib/response/delete-vision-private-endpoint-response.js +15 -0
- package/lib/response/delete-vision-private-endpoint-response.js.map +1 -0
- package/lib/response/get-stream-group-response.d.ts +30 -0
- package/lib/response/get-stream-group-response.js +15 -0
- package/lib/response/get-stream-group-response.js.map +1 -0
- package/lib/response/get-stream-job-response.d.ts +30 -0
- package/lib/response/get-stream-job-response.js +15 -0
- package/lib/response/get-stream-job-response.js.map +1 -0
- package/lib/response/get-stream-source-response.d.ts +30 -0
- package/lib/response/get-stream-source-response.js +15 -0
- package/lib/response/get-stream-source-response.js.map +1 -0
- package/lib/response/get-vision-private-endpoint-response.d.ts +30 -0
- package/lib/response/get-vision-private-endpoint-response.js +15 -0
- package/lib/response/get-vision-private-endpoint-response.js.map +1 -0
- package/lib/response/index.d.ts +52 -0
- package/lib/response/list-stream-groups-response.d.ts +32 -0
- package/lib/response/list-stream-groups-response.js +15 -0
- package/lib/response/list-stream-groups-response.js.map +1 -0
- package/lib/response/list-stream-jobs-response.d.ts +32 -0
- package/lib/response/list-stream-jobs-response.js +15 -0
- package/lib/response/list-stream-jobs-response.js.map +1 -0
- package/lib/response/list-stream-sources-response.d.ts +32 -0
- package/lib/response/list-stream-sources-response.js +15 -0
- package/lib/response/list-stream-sources-response.js.map +1 -0
- package/lib/response/list-vision-private-endpoints-response.d.ts +32 -0
- package/lib/response/list-vision-private-endpoints-response.js +15 -0
- package/lib/response/list-vision-private-endpoints-response.js.map +1 -0
- package/lib/response/start-stream-job-response.d.ts +25 -0
- package/lib/response/start-stream-job-response.js +15 -0
- package/lib/response/start-stream-job-response.js.map +1 -0
- package/lib/response/stop-stream-job-response.d.ts +25 -0
- package/lib/response/stop-stream-job-response.js +15 -0
- package/lib/response/stop-stream-job-response.js.map +1 -0
- package/lib/response/update-stream-group-response.d.ts +25 -0
- package/lib/response/update-stream-group-response.js +15 -0
- package/lib/response/update-stream-group-response.js.map +1 -0
- package/lib/response/update-stream-job-response.d.ts +25 -0
- package/lib/response/update-stream-job-response.js +15 -0
- package/lib/response/update-stream-job-response.js.map +1 -0
- package/lib/response/update-stream-source-response.d.ts +25 -0
- package/lib/response/update-stream-source-response.js +15 -0
- package/lib/response/update-stream-source-response.js.map +1 -0
- package/lib/response/update-vision-private-endpoint-response.d.ts +25 -0
- package/lib/response/update-vision-private-endpoint-response.js +15 -0
- package/lib/response/update-vision-private-endpoint-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -668,6 +668,249 @@ class AIServiceVisionClient {
|
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* Move a streamGroup from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
673
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
674
|
+
* @param ChangeStreamGroupCompartmentRequest
|
|
675
|
+
* @return ChangeStreamGroupCompartmentResponse
|
|
676
|
+
* @throws OciError when an error occurs
|
|
677
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ChangeStreamGroupCompartment.ts.html |here} to see how to use ChangeStreamGroupCompartment API.
|
|
678
|
+
*/
|
|
679
|
+
changeStreamGroupCompartment(changeStreamGroupCompartmentRequest) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
681
|
+
if (this.logger)
|
|
682
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeStreamGroupCompartment.");
|
|
683
|
+
const operationName = "changeStreamGroupCompartment";
|
|
684
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/ChangeStreamGroupCompartment";
|
|
685
|
+
const pathParams = {
|
|
686
|
+
"{streamGroupId}": changeStreamGroupCompartmentRequest.streamGroupId
|
|
687
|
+
};
|
|
688
|
+
const queryParams = {};
|
|
689
|
+
let headerParams = {
|
|
690
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
691
|
+
"if-match": changeStreamGroupCompartmentRequest.ifMatch,
|
|
692
|
+
"opc-retry-token": changeStreamGroupCompartmentRequest.opcRetryToken,
|
|
693
|
+
"opc-request-id": changeStreamGroupCompartmentRequest.opcRequestId
|
|
694
|
+
};
|
|
695
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
696
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeStreamGroupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
697
|
+
if (this.logger)
|
|
698
|
+
retrier.logger = this.logger;
|
|
699
|
+
const request = yield oci_common_1.composeRequest({
|
|
700
|
+
baseEndpoint: this._endpoint,
|
|
701
|
+
defaultHeaders: this._defaultHeaders,
|
|
702
|
+
path: "/streamGroups/{streamGroupId}/actions/changeCompartment",
|
|
703
|
+
method: "POST",
|
|
704
|
+
bodyContent: common.ObjectSerializer.serialize(changeStreamGroupCompartmentRequest.changeStreamGroupCompartmentDetails, "ChangeStreamGroupCompartmentDetails", model.ChangeStreamGroupCompartmentDetails.getJsonObj),
|
|
705
|
+
pathParams: pathParams,
|
|
706
|
+
headerParams: headerParams,
|
|
707
|
+
queryParams: queryParams
|
|
708
|
+
});
|
|
709
|
+
try {
|
|
710
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
711
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
712
|
+
responseObject: {},
|
|
713
|
+
responseHeaders: [
|
|
714
|
+
{
|
|
715
|
+
value: response.headers.get("opc-work-request-id"),
|
|
716
|
+
key: "opcWorkRequestId",
|
|
717
|
+
dataType: "string"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
value: response.headers.get("opc-request-id"),
|
|
721
|
+
key: "opcRequestId",
|
|
722
|
+
dataType: "string"
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
});
|
|
726
|
+
return sdkResponse;
|
|
727
|
+
}
|
|
728
|
+
catch (err) {
|
|
729
|
+
throw err;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Move a streamJob from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
735
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
736
|
+
* @param ChangeStreamJobCompartmentRequest
|
|
737
|
+
* @return ChangeStreamJobCompartmentResponse
|
|
738
|
+
* @throws OciError when an error occurs
|
|
739
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ChangeStreamJobCompartment.ts.html |here} to see how to use ChangeStreamJobCompartment API.
|
|
740
|
+
*/
|
|
741
|
+
changeStreamJobCompartment(changeStreamJobCompartmentRequest) {
|
|
742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
743
|
+
if (this.logger)
|
|
744
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeStreamJobCompartment.");
|
|
745
|
+
const operationName = "changeStreamJobCompartment";
|
|
746
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/ChangeStreamJobCompartment";
|
|
747
|
+
const pathParams = {
|
|
748
|
+
"{streamJobId}": changeStreamJobCompartmentRequest.streamJobId
|
|
749
|
+
};
|
|
750
|
+
const queryParams = {};
|
|
751
|
+
let headerParams = {
|
|
752
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
753
|
+
"if-match": changeStreamJobCompartmentRequest.ifMatch,
|
|
754
|
+
"opc-retry-token": changeStreamJobCompartmentRequest.opcRetryToken,
|
|
755
|
+
"opc-request-id": changeStreamJobCompartmentRequest.opcRequestId
|
|
756
|
+
};
|
|
757
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
758
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeStreamJobCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
759
|
+
if (this.logger)
|
|
760
|
+
retrier.logger = this.logger;
|
|
761
|
+
const request = yield oci_common_1.composeRequest({
|
|
762
|
+
baseEndpoint: this._endpoint,
|
|
763
|
+
defaultHeaders: this._defaultHeaders,
|
|
764
|
+
path: "/streamJobs/{streamJobId}/actions/changeCompartment",
|
|
765
|
+
method: "POST",
|
|
766
|
+
bodyContent: common.ObjectSerializer.serialize(changeStreamJobCompartmentRequest.changeStreamJobCompartmentDetails, "ChangeStreamJobCompartmentDetails", model.ChangeStreamJobCompartmentDetails.getJsonObj),
|
|
767
|
+
pathParams: pathParams,
|
|
768
|
+
headerParams: headerParams,
|
|
769
|
+
queryParams: queryParams
|
|
770
|
+
});
|
|
771
|
+
try {
|
|
772
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
773
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
774
|
+
responseObject: {},
|
|
775
|
+
responseHeaders: [
|
|
776
|
+
{
|
|
777
|
+
value: response.headers.get("opc-work-request-id"),
|
|
778
|
+
key: "opcWorkRequestId",
|
|
779
|
+
dataType: "string"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
value: response.headers.get("opc-request-id"),
|
|
783
|
+
key: "opcRequestId",
|
|
784
|
+
dataType: "string"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
});
|
|
788
|
+
return sdkResponse;
|
|
789
|
+
}
|
|
790
|
+
catch (err) {
|
|
791
|
+
throw err;
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Move a streamSource from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
797
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
798
|
+
* @param ChangeStreamSourceCompartmentRequest
|
|
799
|
+
* @return ChangeStreamSourceCompartmentResponse
|
|
800
|
+
* @throws OciError when an error occurs
|
|
801
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ChangeStreamSourceCompartment.ts.html |here} to see how to use ChangeStreamSourceCompartment API.
|
|
802
|
+
*/
|
|
803
|
+
changeStreamSourceCompartment(changeStreamSourceCompartmentRequest) {
|
|
804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
805
|
+
if (this.logger)
|
|
806
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeStreamSourceCompartment.");
|
|
807
|
+
const operationName = "changeStreamSourceCompartment";
|
|
808
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/ChangeStreamSourceCompartment";
|
|
809
|
+
const pathParams = {
|
|
810
|
+
"{streamSourceId}": changeStreamSourceCompartmentRequest.streamSourceId
|
|
811
|
+
};
|
|
812
|
+
const queryParams = {};
|
|
813
|
+
let headerParams = {
|
|
814
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
815
|
+
"if-match": changeStreamSourceCompartmentRequest.ifMatch,
|
|
816
|
+
"opc-retry-token": changeStreamSourceCompartmentRequest.opcRetryToken,
|
|
817
|
+
"opc-request-id": changeStreamSourceCompartmentRequest.opcRequestId
|
|
818
|
+
};
|
|
819
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
820
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeStreamSourceCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
821
|
+
if (this.logger)
|
|
822
|
+
retrier.logger = this.logger;
|
|
823
|
+
const request = yield oci_common_1.composeRequest({
|
|
824
|
+
baseEndpoint: this._endpoint,
|
|
825
|
+
defaultHeaders: this._defaultHeaders,
|
|
826
|
+
path: "/streamSources/{streamSourceId}/actions/changeCompartment",
|
|
827
|
+
method: "POST",
|
|
828
|
+
bodyContent: common.ObjectSerializer.serialize(changeStreamSourceCompartmentRequest.changeStreamSourceCompartmentDetails, "ChangeStreamSourceCompartmentDetails", model.ChangeStreamSourceCompartmentDetails.getJsonObj),
|
|
829
|
+
pathParams: pathParams,
|
|
830
|
+
headerParams: headerParams,
|
|
831
|
+
queryParams: queryParams
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
835
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
836
|
+
responseObject: {},
|
|
837
|
+
responseHeaders: [
|
|
838
|
+
{
|
|
839
|
+
value: response.headers.get("opc-request-id"),
|
|
840
|
+
key: "opcRequestId",
|
|
841
|
+
dataType: "string"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
value: response.headers.get("opc-work-request-id"),
|
|
845
|
+
key: "opcWorkRequestId",
|
|
846
|
+
dataType: "string"
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
});
|
|
850
|
+
return sdkResponse;
|
|
851
|
+
}
|
|
852
|
+
catch (err) {
|
|
853
|
+
throw err;
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Move a visionPrivateEndpoint from one compartment to another. When provided, If-Match is checked against the ETag values of the resource.
|
|
859
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
860
|
+
* @param ChangeVisionPrivateEndpointCompartmentRequest
|
|
861
|
+
* @return ChangeVisionPrivateEndpointCompartmentResponse
|
|
862
|
+
* @throws OciError when an error occurs
|
|
863
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ChangeVisionPrivateEndpointCompartment.ts.html |here} to see how to use ChangeVisionPrivateEndpointCompartment API.
|
|
864
|
+
*/
|
|
865
|
+
changeVisionPrivateEndpointCompartment(changeVisionPrivateEndpointCompartmentRequest) {
|
|
866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
867
|
+
if (this.logger)
|
|
868
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeVisionPrivateEndpointCompartment.");
|
|
869
|
+
const operationName = "changeVisionPrivateEndpointCompartment";
|
|
870
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpoint/ChangeVisionPrivateEndpointCompartment";
|
|
871
|
+
const pathParams = {
|
|
872
|
+
"{visionPrivateEndpointId}": changeVisionPrivateEndpointCompartmentRequest.visionPrivateEndpointId
|
|
873
|
+
};
|
|
874
|
+
const queryParams = {};
|
|
875
|
+
let headerParams = {
|
|
876
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
877
|
+
"if-match": changeVisionPrivateEndpointCompartmentRequest.ifMatch,
|
|
878
|
+
"opc-retry-token": changeVisionPrivateEndpointCompartmentRequest.opcRetryToken,
|
|
879
|
+
"opc-request-id": changeVisionPrivateEndpointCompartmentRequest.opcRequestId
|
|
880
|
+
};
|
|
881
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
882
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVisionPrivateEndpointCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
883
|
+
if (this.logger)
|
|
884
|
+
retrier.logger = this.logger;
|
|
885
|
+
const request = yield oci_common_1.composeRequest({
|
|
886
|
+
baseEndpoint: this._endpoint,
|
|
887
|
+
defaultHeaders: this._defaultHeaders,
|
|
888
|
+
path: "/visionPrivateEndpoints/{visionPrivateEndpointId}/actions/changeCompartment",
|
|
889
|
+
method: "POST",
|
|
890
|
+
bodyContent: common.ObjectSerializer.serialize(changeVisionPrivateEndpointCompartmentRequest.changeVisionPrivateEndpointCompartmentDetails, "ChangeVisionPrivateEndpointCompartmentDetails", model.ChangeVisionPrivateEndpointCompartmentDetails.getJsonObj),
|
|
891
|
+
pathParams: pathParams,
|
|
892
|
+
headerParams: headerParams,
|
|
893
|
+
queryParams: queryParams
|
|
894
|
+
});
|
|
895
|
+
try {
|
|
896
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
897
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
898
|
+
responseObject: {},
|
|
899
|
+
responseHeaders: [
|
|
900
|
+
{
|
|
901
|
+
value: response.headers.get("opc-request-id"),
|
|
902
|
+
key: "opcRequestId",
|
|
903
|
+
dataType: "string"
|
|
904
|
+
}
|
|
905
|
+
]
|
|
906
|
+
});
|
|
907
|
+
return sdkResponse;
|
|
908
|
+
}
|
|
909
|
+
catch (err) {
|
|
910
|
+
throw err;
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
}
|
|
671
914
|
/**
|
|
672
915
|
* Create a document analysis batch job.
|
|
673
916
|
*
|
|
@@ -935,37 +1178,37 @@ class AIServiceVisionClient {
|
|
|
935
1178
|
});
|
|
936
1179
|
}
|
|
937
1180
|
/**
|
|
938
|
-
*
|
|
1181
|
+
* Registration of new streamGroup
|
|
939
1182
|
*
|
|
940
|
-
* This operation
|
|
941
|
-
* @param
|
|
942
|
-
* @return
|
|
1183
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1184
|
+
* @param CreateStreamGroupRequest
|
|
1185
|
+
* @return CreateStreamGroupResponse
|
|
943
1186
|
* @throws OciError when an error occurs
|
|
944
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1187
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateStreamGroup.ts.html |here} to see how to use CreateStreamGroup API.
|
|
945
1188
|
*/
|
|
946
|
-
|
|
1189
|
+
createStreamGroup(createStreamGroupRequest) {
|
|
947
1190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
948
1191
|
if (this.logger)
|
|
949
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
950
|
-
const operationName = "
|
|
951
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1192
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createStreamGroup.");
|
|
1193
|
+
const operationName = "createStreamGroup";
|
|
1194
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/CreateStreamGroup";
|
|
952
1195
|
const pathParams = {};
|
|
953
1196
|
const queryParams = {};
|
|
954
1197
|
let headerParams = {
|
|
955
1198
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
956
|
-
"opc-retry-token":
|
|
957
|
-
"opc-request-id":
|
|
1199
|
+
"opc-retry-token": createStreamGroupRequest.opcRetryToken,
|
|
1200
|
+
"opc-request-id": createStreamGroupRequest.opcRequestId
|
|
958
1201
|
};
|
|
959
|
-
const specRetryConfiguration = common.
|
|
960
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1202
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1203
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
961
1204
|
if (this.logger)
|
|
962
1205
|
retrier.logger = this.logger;
|
|
963
1206
|
const request = yield oci_common_1.composeRequest({
|
|
964
1207
|
baseEndpoint: this._endpoint,
|
|
965
1208
|
defaultHeaders: this._defaultHeaders,
|
|
966
|
-
path: "/
|
|
1209
|
+
path: "/streamGroups",
|
|
967
1210
|
method: "POST",
|
|
968
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
1211
|
+
bodyContent: common.ObjectSerializer.serialize(createStreamGroupRequest.createStreamGroupDetails, "CreateStreamGroupDetails", model.CreateStreamGroupDetails.getJsonObj),
|
|
969
1212
|
pathParams: pathParams,
|
|
970
1213
|
headerParams: headerParams,
|
|
971
1214
|
queryParams: queryParams
|
|
@@ -975,15 +1218,20 @@ class AIServiceVisionClient {
|
|
|
975
1218
|
const sdkResponse = oci_common_1.composeResponse({
|
|
976
1219
|
responseObject: {},
|
|
977
1220
|
body: yield response.json(),
|
|
978
|
-
bodyKey: "
|
|
979
|
-
bodyModel: model.
|
|
980
|
-
type: "model.
|
|
1221
|
+
bodyKey: "streamGroup",
|
|
1222
|
+
bodyModel: model.StreamGroup,
|
|
1223
|
+
type: "model.StreamGroup",
|
|
981
1224
|
responseHeaders: [
|
|
982
1225
|
{
|
|
983
1226
|
value: response.headers.get("etag"),
|
|
984
1227
|
key: "etag",
|
|
985
1228
|
dataType: "string"
|
|
986
1229
|
},
|
|
1230
|
+
{
|
|
1231
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1232
|
+
key: "opcWorkRequestId",
|
|
1233
|
+
dataType: "string"
|
|
1234
|
+
},
|
|
987
1235
|
{
|
|
988
1236
|
value: response.headers.get("opc-request-id"),
|
|
989
1237
|
key: "opcRequestId",
|
|
@@ -999,37 +1247,37 @@ class AIServiceVisionClient {
|
|
|
999
1247
|
});
|
|
1000
1248
|
}
|
|
1001
1249
|
/**
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
1004
|
-
* @
|
|
1005
|
-
* @
|
|
1250
|
+
* Create a stream analysis job with given inputs and features.
|
|
1251
|
+
*
|
|
1252
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1253
|
+
* @param CreateStreamJobRequest
|
|
1254
|
+
* @return CreateStreamJobResponse
|
|
1006
1255
|
* @throws OciError when an error occurs
|
|
1007
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1256
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateStreamJob.ts.html |here} to see how to use CreateStreamJob API.
|
|
1008
1257
|
*/
|
|
1009
|
-
|
|
1258
|
+
createStreamJob(createStreamJobRequest) {
|
|
1010
1259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1011
1260
|
if (this.logger)
|
|
1012
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1013
|
-
const operationName = "
|
|
1014
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1015
|
-
const pathParams = {
|
|
1016
|
-
"{modelId}": deleteModelRequest.modelId
|
|
1017
|
-
};
|
|
1261
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createStreamJob.");
|
|
1262
|
+
const operationName = "createStreamJob";
|
|
1263
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/CreateStreamJob";
|
|
1264
|
+
const pathParams = {};
|
|
1018
1265
|
const queryParams = {};
|
|
1019
1266
|
let headerParams = {
|
|
1020
1267
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1021
|
-
"
|
|
1022
|
-
"opc-request-id":
|
|
1268
|
+
"opc-retry-token": createStreamJobRequest.opcRetryToken,
|
|
1269
|
+
"opc-request-id": createStreamJobRequest.opcRequestId
|
|
1023
1270
|
};
|
|
1024
|
-
const specRetryConfiguration = common.
|
|
1025
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1271
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1272
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1026
1273
|
if (this.logger)
|
|
1027
1274
|
retrier.logger = this.logger;
|
|
1028
1275
|
const request = yield oci_common_1.composeRequest({
|
|
1029
1276
|
baseEndpoint: this._endpoint,
|
|
1030
1277
|
defaultHeaders: this._defaultHeaders,
|
|
1031
|
-
path: "/
|
|
1032
|
-
method: "
|
|
1278
|
+
path: "/streamJobs",
|
|
1279
|
+
method: "POST",
|
|
1280
|
+
bodyContent: common.ObjectSerializer.serialize(createStreamJobRequest.createStreamJobDetails, "CreateStreamJobDetails", model.CreateStreamJobDetails.getJsonObj),
|
|
1033
1281
|
pathParams: pathParams,
|
|
1034
1282
|
headerParams: headerParams,
|
|
1035
1283
|
queryParams: queryParams
|
|
@@ -1038,7 +1286,16 @@ class AIServiceVisionClient {
|
|
|
1038
1286
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1039
1287
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1040
1288
|
responseObject: {},
|
|
1289
|
+
body: yield response.json(),
|
|
1290
|
+
bodyKey: "streamJob",
|
|
1291
|
+
bodyModel: model.StreamJob,
|
|
1292
|
+
type: "model.StreamJob",
|
|
1041
1293
|
responseHeaders: [
|
|
1294
|
+
{
|
|
1295
|
+
value: response.headers.get("etag"),
|
|
1296
|
+
key: "etag",
|
|
1297
|
+
dataType: "string"
|
|
1298
|
+
},
|
|
1042
1299
|
{
|
|
1043
1300
|
value: response.headers.get("opc-work-request-id"),
|
|
1044
1301
|
key: "opcWorkRequestId",
|
|
@@ -1059,37 +1316,37 @@ class AIServiceVisionClient {
|
|
|
1059
1316
|
});
|
|
1060
1317
|
}
|
|
1061
1318
|
/**
|
|
1062
|
-
*
|
|
1063
|
-
*
|
|
1064
|
-
* @
|
|
1065
|
-
* @
|
|
1319
|
+
* Registration of new streamSource
|
|
1320
|
+
*
|
|
1321
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1322
|
+
* @param CreateStreamSourceRequest
|
|
1323
|
+
* @return CreateStreamSourceResponse
|
|
1066
1324
|
* @throws OciError when an error occurs
|
|
1067
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1325
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateStreamSource.ts.html |here} to see how to use CreateStreamSource API.
|
|
1068
1326
|
*/
|
|
1069
|
-
|
|
1327
|
+
createStreamSource(createStreamSourceRequest) {
|
|
1070
1328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
1329
|
if (this.logger)
|
|
1072
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1073
|
-
const operationName = "
|
|
1074
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1075
|
-
const pathParams = {
|
|
1076
|
-
"{projectId}": deleteProjectRequest.projectId
|
|
1077
|
-
};
|
|
1330
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createStreamSource.");
|
|
1331
|
+
const operationName = "createStreamSource";
|
|
1332
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/CreateStreamSource";
|
|
1333
|
+
const pathParams = {};
|
|
1078
1334
|
const queryParams = {};
|
|
1079
1335
|
let headerParams = {
|
|
1080
1336
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1081
|
-
"
|
|
1082
|
-
"opc-request-id":
|
|
1337
|
+
"opc-retry-token": createStreamSourceRequest.opcRetryToken,
|
|
1338
|
+
"opc-request-id": createStreamSourceRequest.opcRequestId
|
|
1083
1339
|
};
|
|
1084
|
-
const specRetryConfiguration = common.
|
|
1085
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1340
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1341
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamSourceRequest.retryConfiguration, specRetryConfiguration);
|
|
1086
1342
|
if (this.logger)
|
|
1087
1343
|
retrier.logger = this.logger;
|
|
1088
1344
|
const request = yield oci_common_1.composeRequest({
|
|
1089
1345
|
baseEndpoint: this._endpoint,
|
|
1090
1346
|
defaultHeaders: this._defaultHeaders,
|
|
1091
|
-
path: "/
|
|
1092
|
-
method: "
|
|
1347
|
+
path: "/streamSources",
|
|
1348
|
+
method: "POST",
|
|
1349
|
+
bodyContent: common.ObjectSerializer.serialize(createStreamSourceRequest.createStreamSourceDetails, "CreateStreamSourceDetails", model.CreateStreamSourceDetails.getJsonObj),
|
|
1093
1350
|
pathParams: pathParams,
|
|
1094
1351
|
headerParams: headerParams,
|
|
1095
1352
|
queryParams: queryParams
|
|
@@ -1098,7 +1355,16 @@ class AIServiceVisionClient {
|
|
|
1098
1355
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1099
1356
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1100
1357
|
responseObject: {},
|
|
1358
|
+
body: yield response.json(),
|
|
1359
|
+
bodyKey: "streamSource",
|
|
1360
|
+
bodyModel: model.StreamSource,
|
|
1361
|
+
type: "model.StreamSource",
|
|
1101
1362
|
responseHeaders: [
|
|
1363
|
+
{
|
|
1364
|
+
value: response.headers.get("etag"),
|
|
1365
|
+
key: "etag",
|
|
1366
|
+
dataType: "string"
|
|
1367
|
+
},
|
|
1102
1368
|
{
|
|
1103
1369
|
value: response.headers.get("opc-work-request-id"),
|
|
1104
1370
|
key: "opcWorkRequestId",
|
|
@@ -1119,37 +1385,37 @@ class AIServiceVisionClient {
|
|
|
1119
1385
|
});
|
|
1120
1386
|
}
|
|
1121
1387
|
/**
|
|
1122
|
-
*
|
|
1388
|
+
* Create a video analysis job with given inputs and features.
|
|
1123
1389
|
*
|
|
1124
1390
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1125
|
-
* @param
|
|
1126
|
-
* @return
|
|
1391
|
+
* @param CreateVideoJobRequest
|
|
1392
|
+
* @return CreateVideoJobResponse
|
|
1127
1393
|
* @throws OciError when an error occurs
|
|
1128
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1394
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateVideoJob.ts.html |here} to see how to use CreateVideoJob API.
|
|
1129
1395
|
*/
|
|
1130
|
-
|
|
1396
|
+
createVideoJob(createVideoJobRequest) {
|
|
1131
1397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
1398
|
if (this.logger)
|
|
1133
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1134
|
-
const operationName = "
|
|
1135
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1136
|
-
const pathParams = {
|
|
1137
|
-
"{documentJobId}": getDocumentJobRequest.documentJobId
|
|
1138
|
-
};
|
|
1399
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createVideoJob.");
|
|
1400
|
+
const operationName = "createVideoJob";
|
|
1401
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CreateVideoJob";
|
|
1402
|
+
const pathParams = {};
|
|
1139
1403
|
const queryParams = {};
|
|
1140
1404
|
let headerParams = {
|
|
1141
1405
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1142
|
-
"opc-
|
|
1406
|
+
"opc-retry-token": createVideoJobRequest.opcRetryToken,
|
|
1407
|
+
"opc-request-id": createVideoJobRequest.opcRequestId
|
|
1143
1408
|
};
|
|
1144
1409
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1145
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1410
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVideoJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1146
1411
|
if (this.logger)
|
|
1147
1412
|
retrier.logger = this.logger;
|
|
1148
1413
|
const request = yield oci_common_1.composeRequest({
|
|
1149
1414
|
baseEndpoint: this._endpoint,
|
|
1150
1415
|
defaultHeaders: this._defaultHeaders,
|
|
1151
|
-
path: "/
|
|
1152
|
-
method: "
|
|
1416
|
+
path: "/videoJobs",
|
|
1417
|
+
method: "POST",
|
|
1418
|
+
bodyContent: common.ObjectSerializer.serialize(createVideoJobRequest.createVideoJobDetails, "CreateVideoJobDetails", model.CreateVideoJobDetails.getJsonObj),
|
|
1153
1419
|
pathParams: pathParams,
|
|
1154
1420
|
headerParams: headerParams,
|
|
1155
1421
|
queryParams: queryParams
|
|
@@ -1159,9 +1425,9 @@ class AIServiceVisionClient {
|
|
|
1159
1425
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1160
1426
|
responseObject: {},
|
|
1161
1427
|
body: yield response.json(),
|
|
1162
|
-
bodyKey: "
|
|
1163
|
-
bodyModel: model.
|
|
1164
|
-
type: "model.
|
|
1428
|
+
bodyKey: "videoJob",
|
|
1429
|
+
bodyModel: model.VideoJob,
|
|
1430
|
+
type: "model.VideoJob",
|
|
1165
1431
|
responseHeaders: [
|
|
1166
1432
|
{
|
|
1167
1433
|
value: response.headers.get("etag"),
|
|
@@ -1183,37 +1449,37 @@ class AIServiceVisionClient {
|
|
|
1183
1449
|
});
|
|
1184
1450
|
}
|
|
1185
1451
|
/**
|
|
1186
|
-
*
|
|
1452
|
+
* Create a new visionPrivateEndpoint.
|
|
1187
1453
|
*
|
|
1188
|
-
* This operation
|
|
1189
|
-
* @param
|
|
1190
|
-
* @return
|
|
1454
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1455
|
+
* @param CreateVisionPrivateEndpointRequest
|
|
1456
|
+
* @return CreateVisionPrivateEndpointResponse
|
|
1191
1457
|
* @throws OciError when an error occurs
|
|
1192
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1458
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateVisionPrivateEndpoint.ts.html |here} to see how to use CreateVisionPrivateEndpoint API.
|
|
1193
1459
|
*/
|
|
1194
|
-
|
|
1460
|
+
createVisionPrivateEndpoint(createVisionPrivateEndpointRequest) {
|
|
1195
1461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1196
1462
|
if (this.logger)
|
|
1197
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1198
|
-
const operationName = "
|
|
1199
|
-
const apiReferenceLink = "
|
|
1200
|
-
const pathParams = {
|
|
1201
|
-
"{imageJobId}": getImageJobRequest.imageJobId
|
|
1202
|
-
};
|
|
1463
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createVisionPrivateEndpoint.");
|
|
1464
|
+
const operationName = "createVisionPrivateEndpoint";
|
|
1465
|
+
const apiReferenceLink = "";
|
|
1466
|
+
const pathParams = {};
|
|
1203
1467
|
const queryParams = {};
|
|
1204
1468
|
let headerParams = {
|
|
1205
1469
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1206
|
-
"opc-
|
|
1470
|
+
"opc-retry-token": createVisionPrivateEndpointRequest.opcRetryToken,
|
|
1471
|
+
"opc-request-id": createVisionPrivateEndpointRequest.opcRequestId
|
|
1207
1472
|
};
|
|
1208
|
-
const specRetryConfiguration = common.
|
|
1209
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1473
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1474
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVisionPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1210
1475
|
if (this.logger)
|
|
1211
1476
|
retrier.logger = this.logger;
|
|
1212
1477
|
const request = yield oci_common_1.composeRequest({
|
|
1213
1478
|
baseEndpoint: this._endpoint,
|
|
1214
1479
|
defaultHeaders: this._defaultHeaders,
|
|
1215
|
-
path: "/
|
|
1216
|
-
method: "
|
|
1480
|
+
path: "/visionPrivateEndpoints",
|
|
1481
|
+
method: "POST",
|
|
1482
|
+
bodyContent: common.ObjectSerializer.serialize(createVisionPrivateEndpointRequest.createVisionPrivateEndpointDetails, "CreateVisionPrivateEndpointDetails", model.CreateVisionPrivateEndpointDetails.getJsonObj),
|
|
1217
1483
|
pathParams: pathParams,
|
|
1218
1484
|
headerParams: headerParams,
|
|
1219
1485
|
queryParams: queryParams
|
|
@@ -1223,15 +1489,20 @@ class AIServiceVisionClient {
|
|
|
1223
1489
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1224
1490
|
responseObject: {},
|
|
1225
1491
|
body: yield response.json(),
|
|
1226
|
-
bodyKey: "
|
|
1227
|
-
bodyModel: model.
|
|
1228
|
-
type: "model.
|
|
1492
|
+
bodyKey: "visionPrivateEndpoint",
|
|
1493
|
+
bodyModel: model.VisionPrivateEndpoint,
|
|
1494
|
+
type: "model.VisionPrivateEndpoint",
|
|
1229
1495
|
responseHeaders: [
|
|
1230
1496
|
{
|
|
1231
1497
|
value: response.headers.get("etag"),
|
|
1232
1498
|
key: "etag",
|
|
1233
1499
|
dataType: "string"
|
|
1234
1500
|
},
|
|
1501
|
+
{
|
|
1502
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1503
|
+
key: "opcWorkRequestId",
|
|
1504
|
+
dataType: "string"
|
|
1505
|
+
},
|
|
1235
1506
|
{
|
|
1236
1507
|
value: response.headers.get("opc-request-id"),
|
|
1237
1508
|
key: "opcRequestId",
|
|
@@ -1247,36 +1518,37 @@ class AIServiceVisionClient {
|
|
|
1247
1518
|
});
|
|
1248
1519
|
}
|
|
1249
1520
|
/**
|
|
1250
|
-
*
|
|
1521
|
+
* Delete a model by identifier.
|
|
1251
1522
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1252
|
-
* @param
|
|
1253
|
-
* @return
|
|
1523
|
+
* @param DeleteModelRequest
|
|
1524
|
+
* @return DeleteModelResponse
|
|
1254
1525
|
* @throws OciError when an error occurs
|
|
1255
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1526
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
1256
1527
|
*/
|
|
1257
|
-
|
|
1528
|
+
deleteModel(deleteModelRequest) {
|
|
1258
1529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1259
1530
|
if (this.logger)
|
|
1260
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1261
|
-
const operationName = "
|
|
1262
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/
|
|
1531
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteModel.");
|
|
1532
|
+
const operationName = "deleteModel";
|
|
1533
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/DeleteModel";
|
|
1263
1534
|
const pathParams = {
|
|
1264
|
-
"{modelId}":
|
|
1535
|
+
"{modelId}": deleteModelRequest.modelId
|
|
1265
1536
|
};
|
|
1266
1537
|
const queryParams = {};
|
|
1267
1538
|
let headerParams = {
|
|
1268
1539
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1269
|
-
"
|
|
1540
|
+
"if-match": deleteModelRequest.ifMatch,
|
|
1541
|
+
"opc-request-id": deleteModelRequest.opcRequestId
|
|
1270
1542
|
};
|
|
1271
1543
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1272
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1544
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1273
1545
|
if (this.logger)
|
|
1274
1546
|
retrier.logger = this.logger;
|
|
1275
1547
|
const request = yield oci_common_1.composeRequest({
|
|
1276
1548
|
baseEndpoint: this._endpoint,
|
|
1277
1549
|
defaultHeaders: this._defaultHeaders,
|
|
1278
1550
|
path: "/models/{modelId}",
|
|
1279
|
-
method: "
|
|
1551
|
+
method: "DELETE",
|
|
1280
1552
|
pathParams: pathParams,
|
|
1281
1553
|
headerParams: headerParams,
|
|
1282
1554
|
queryParams: queryParams
|
|
@@ -1285,14 +1557,10 @@ class AIServiceVisionClient {
|
|
|
1285
1557
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1286
1558
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1287
1559
|
responseObject: {},
|
|
1288
|
-
body: yield response.json(),
|
|
1289
|
-
bodyKey: "model",
|
|
1290
|
-
bodyModel: model.Model,
|
|
1291
|
-
type: "model.Model",
|
|
1292
1560
|
responseHeaders: [
|
|
1293
1561
|
{
|
|
1294
|
-
value: response.headers.get("
|
|
1295
|
-
key: "
|
|
1562
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1563
|
+
key: "opcWorkRequestId",
|
|
1296
1564
|
dataType: "string"
|
|
1297
1565
|
},
|
|
1298
1566
|
{
|
|
@@ -1310,36 +1578,37 @@ class AIServiceVisionClient {
|
|
|
1310
1578
|
});
|
|
1311
1579
|
}
|
|
1312
1580
|
/**
|
|
1313
|
-
*
|
|
1581
|
+
* Delete a project by identifier.
|
|
1314
1582
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1315
|
-
* @param
|
|
1316
|
-
* @return
|
|
1583
|
+
* @param DeleteProjectRequest
|
|
1584
|
+
* @return DeleteProjectResponse
|
|
1317
1585
|
* @throws OciError when an error occurs
|
|
1318
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1586
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
1319
1587
|
*/
|
|
1320
|
-
|
|
1588
|
+
deleteProject(deleteProjectRequest) {
|
|
1321
1589
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1322
1590
|
if (this.logger)
|
|
1323
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1324
|
-
const operationName = "
|
|
1325
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/
|
|
1591
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteProject.");
|
|
1592
|
+
const operationName = "deleteProject";
|
|
1593
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/DeleteProject";
|
|
1326
1594
|
const pathParams = {
|
|
1327
|
-
"{projectId}":
|
|
1595
|
+
"{projectId}": deleteProjectRequest.projectId
|
|
1328
1596
|
};
|
|
1329
1597
|
const queryParams = {};
|
|
1330
1598
|
let headerParams = {
|
|
1331
1599
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1332
|
-
"
|
|
1600
|
+
"if-match": deleteProjectRequest.ifMatch,
|
|
1601
|
+
"opc-request-id": deleteProjectRequest.opcRequestId
|
|
1333
1602
|
};
|
|
1334
1603
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1335
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1604
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1336
1605
|
if (this.logger)
|
|
1337
1606
|
retrier.logger = this.logger;
|
|
1338
1607
|
const request = yield oci_common_1.composeRequest({
|
|
1339
1608
|
baseEndpoint: this._endpoint,
|
|
1340
1609
|
defaultHeaders: this._defaultHeaders,
|
|
1341
1610
|
path: "/projects/{projectId}",
|
|
1342
|
-
method: "
|
|
1611
|
+
method: "DELETE",
|
|
1343
1612
|
pathParams: pathParams,
|
|
1344
1613
|
headerParams: headerParams,
|
|
1345
1614
|
queryParams: queryParams
|
|
@@ -1348,14 +1617,10 @@ class AIServiceVisionClient {
|
|
|
1348
1617
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1349
1618
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1350
1619
|
responseObject: {},
|
|
1351
|
-
body: yield response.json(),
|
|
1352
|
-
bodyKey: "project",
|
|
1353
|
-
bodyModel: model.Project,
|
|
1354
|
-
type: "model.Project",
|
|
1355
1620
|
responseHeaders: [
|
|
1356
1621
|
{
|
|
1357
|
-
value: response.headers.get("
|
|
1358
|
-
key: "
|
|
1622
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1623
|
+
key: "opcWorkRequestId",
|
|
1359
1624
|
dataType: "string"
|
|
1360
1625
|
},
|
|
1361
1626
|
{
|
|
@@ -1373,37 +1638,38 @@ class AIServiceVisionClient {
|
|
|
1373
1638
|
});
|
|
1374
1639
|
}
|
|
1375
1640
|
/**
|
|
1376
|
-
*
|
|
1641
|
+
* Delete a streamGroup
|
|
1377
1642
|
*
|
|
1378
1643
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1379
|
-
* @param
|
|
1380
|
-
* @return
|
|
1644
|
+
* @param DeleteStreamGroupRequest
|
|
1645
|
+
* @return DeleteStreamGroupResponse
|
|
1381
1646
|
* @throws OciError when an error occurs
|
|
1382
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1647
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteStreamGroup.ts.html |here} to see how to use DeleteStreamGroup API.
|
|
1383
1648
|
*/
|
|
1384
|
-
|
|
1649
|
+
deleteStreamGroup(deleteStreamGroupRequest) {
|
|
1385
1650
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1386
1651
|
if (this.logger)
|
|
1387
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1388
|
-
const operationName = "
|
|
1389
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1652
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteStreamGroup.");
|
|
1653
|
+
const operationName = "deleteStreamGroup";
|
|
1654
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/DeleteStreamGroup";
|
|
1390
1655
|
const pathParams = {
|
|
1391
|
-
"{
|
|
1656
|
+
"{streamGroupId}": deleteStreamGroupRequest.streamGroupId
|
|
1392
1657
|
};
|
|
1393
1658
|
const queryParams = {};
|
|
1394
1659
|
let headerParams = {
|
|
1395
1660
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1396
|
-
"opc-request-id":
|
|
1661
|
+
"opc-request-id": deleteStreamGroupRequest.opcRequestId,
|
|
1662
|
+
"if-match": deleteStreamGroupRequest.ifMatch
|
|
1397
1663
|
};
|
|
1398
1664
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1399
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1665
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
1400
1666
|
if (this.logger)
|
|
1401
1667
|
retrier.logger = this.logger;
|
|
1402
1668
|
const request = yield oci_common_1.composeRequest({
|
|
1403
1669
|
baseEndpoint: this._endpoint,
|
|
1404
1670
|
defaultHeaders: this._defaultHeaders,
|
|
1405
|
-
path: "/
|
|
1406
|
-
method: "
|
|
1671
|
+
path: "/streamGroups/{streamGroupId}",
|
|
1672
|
+
method: "DELETE",
|
|
1407
1673
|
pathParams: pathParams,
|
|
1408
1674
|
headerParams: headerParams,
|
|
1409
1675
|
queryParams: queryParams
|
|
@@ -1412,14 +1678,10 @@ class AIServiceVisionClient {
|
|
|
1412
1678
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1413
1679
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1414
1680
|
responseObject: {},
|
|
1415
|
-
body: yield response.json(),
|
|
1416
|
-
bodyKey: "videoJob",
|
|
1417
|
-
bodyModel: model.VideoJob,
|
|
1418
|
-
type: "model.VideoJob",
|
|
1419
1681
|
responseHeaders: [
|
|
1420
1682
|
{
|
|
1421
|
-
value: response.headers.get("
|
|
1422
|
-
key: "
|
|
1683
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1684
|
+
key: "opcWorkRequestId",
|
|
1423
1685
|
dataType: "string"
|
|
1424
1686
|
},
|
|
1425
1687
|
{
|
|
@@ -1437,36 +1699,38 @@ class AIServiceVisionClient {
|
|
|
1437
1699
|
});
|
|
1438
1700
|
}
|
|
1439
1701
|
/**
|
|
1440
|
-
*
|
|
1702
|
+
* Get details of a stream analysis job.
|
|
1703
|
+
*
|
|
1441
1704
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1442
|
-
* @param
|
|
1443
|
-
* @return
|
|
1705
|
+
* @param DeleteStreamJobRequest
|
|
1706
|
+
* @return DeleteStreamJobResponse
|
|
1444
1707
|
* @throws OciError when an error occurs
|
|
1445
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1708
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteStreamJob.ts.html |here} to see how to use DeleteStreamJob API.
|
|
1446
1709
|
*/
|
|
1447
|
-
|
|
1710
|
+
deleteStreamJob(deleteStreamJobRequest) {
|
|
1448
1711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1449
1712
|
if (this.logger)
|
|
1450
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1451
|
-
const operationName = "
|
|
1452
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1713
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteStreamJob.");
|
|
1714
|
+
const operationName = "deleteStreamJob";
|
|
1715
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/DeleteStreamJob";
|
|
1453
1716
|
const pathParams = {
|
|
1454
|
-
"{
|
|
1717
|
+
"{streamJobId}": deleteStreamJobRequest.streamJobId
|
|
1455
1718
|
};
|
|
1456
1719
|
const queryParams = {};
|
|
1457
1720
|
let headerParams = {
|
|
1458
1721
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1459
|
-
"opc-request-id":
|
|
1722
|
+
"opc-request-id": deleteStreamJobRequest.opcRequestId,
|
|
1723
|
+
"if-match": deleteStreamJobRequest.ifMatch
|
|
1460
1724
|
};
|
|
1461
1725
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1462
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1726
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1463
1727
|
if (this.logger)
|
|
1464
1728
|
retrier.logger = this.logger;
|
|
1465
1729
|
const request = yield oci_common_1.composeRequest({
|
|
1466
1730
|
baseEndpoint: this._endpoint,
|
|
1467
1731
|
defaultHeaders: this._defaultHeaders,
|
|
1468
|
-
path: "/
|
|
1469
|
-
method: "
|
|
1732
|
+
path: "/streamJobs/{streamJobId}",
|
|
1733
|
+
method: "DELETE",
|
|
1470
1734
|
pathParams: pathParams,
|
|
1471
1735
|
headerParams: headerParams,
|
|
1472
1736
|
queryParams: queryParams
|
|
@@ -1475,25 +1739,16 @@ class AIServiceVisionClient {
|
|
|
1475
1739
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1476
1740
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1477
1741
|
responseObject: {},
|
|
1478
|
-
body: yield response.json(),
|
|
1479
|
-
bodyKey: "workRequest",
|
|
1480
|
-
bodyModel: model.WorkRequest,
|
|
1481
|
-
type: "model.WorkRequest",
|
|
1482
1742
|
responseHeaders: [
|
|
1483
1743
|
{
|
|
1484
|
-
value: response.headers.get("
|
|
1485
|
-
key: "
|
|
1744
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1745
|
+
key: "opcWorkRequestId",
|
|
1486
1746
|
dataType: "string"
|
|
1487
1747
|
},
|
|
1488
1748
|
{
|
|
1489
1749
|
value: response.headers.get("opc-request-id"),
|
|
1490
1750
|
key: "opcRequestId",
|
|
1491
1751
|
dataType: "string"
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
value: response.headers.get("retry-after"),
|
|
1495
|
-
key: "retryAfter",
|
|
1496
|
-
dataType: "number"
|
|
1497
1752
|
}
|
|
1498
1753
|
]
|
|
1499
1754
|
});
|
|
@@ -1505,45 +1760,38 @@ class AIServiceVisionClient {
|
|
|
1505
1760
|
});
|
|
1506
1761
|
}
|
|
1507
1762
|
/**
|
|
1508
|
-
*
|
|
1763
|
+
* Delete a streamSource
|
|
1509
1764
|
*
|
|
1510
1765
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1511
|
-
* @param
|
|
1512
|
-
* @return
|
|
1766
|
+
* @param DeleteStreamSourceRequest
|
|
1767
|
+
* @return DeleteStreamSourceResponse
|
|
1513
1768
|
* @throws OciError when an error occurs
|
|
1514
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1769
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteStreamSource.ts.html |here} to see how to use DeleteStreamSource API.
|
|
1515
1770
|
*/
|
|
1516
|
-
|
|
1771
|
+
deleteStreamSource(deleteStreamSourceRequest) {
|
|
1517
1772
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1518
1773
|
if (this.logger)
|
|
1519
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1520
|
-
const operationName = "
|
|
1521
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1522
|
-
const pathParams = {
|
|
1523
|
-
|
|
1524
|
-
"compartmentId": listModelsRequest.compartmentId,
|
|
1525
|
-
"projectId": listModelsRequest.projectId,
|
|
1526
|
-
"lifecycleState": listModelsRequest.lifecycleState,
|
|
1527
|
-
"displayName": listModelsRequest.displayName,
|
|
1528
|
-
"id": listModelsRequest.id,
|
|
1529
|
-
"limit": listModelsRequest.limit,
|
|
1530
|
-
"page": listModelsRequest.page,
|
|
1531
|
-
"sortOrder": listModelsRequest.sortOrder,
|
|
1532
|
-
"sortBy": listModelsRequest.sortBy
|
|
1774
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteStreamSource.");
|
|
1775
|
+
const operationName = "deleteStreamSource";
|
|
1776
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/DeleteStreamSource";
|
|
1777
|
+
const pathParams = {
|
|
1778
|
+
"{streamSourceId}": deleteStreamSourceRequest.streamSourceId
|
|
1533
1779
|
};
|
|
1780
|
+
const queryParams = {};
|
|
1534
1781
|
let headerParams = {
|
|
1535
1782
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1536
|
-
"opc-request-id":
|
|
1783
|
+
"opc-request-id": deleteStreamSourceRequest.opcRequestId,
|
|
1784
|
+
"if-match": deleteStreamSourceRequest.ifMatch
|
|
1537
1785
|
};
|
|
1538
1786
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1539
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1787
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamSourceRequest.retryConfiguration, specRetryConfiguration);
|
|
1540
1788
|
if (this.logger)
|
|
1541
1789
|
retrier.logger = this.logger;
|
|
1542
1790
|
const request = yield oci_common_1.composeRequest({
|
|
1543
1791
|
baseEndpoint: this._endpoint,
|
|
1544
1792
|
defaultHeaders: this._defaultHeaders,
|
|
1545
|
-
path: "/
|
|
1546
|
-
method: "
|
|
1793
|
+
path: "/streamSources/{streamSourceId}",
|
|
1794
|
+
method: "DELETE",
|
|
1547
1795
|
pathParams: pathParams,
|
|
1548
1796
|
headerParams: headerParams,
|
|
1549
1797
|
queryParams: queryParams
|
|
@@ -1552,19 +1800,15 @@ class AIServiceVisionClient {
|
|
|
1552
1800
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1553
1801
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1554
1802
|
responseObject: {},
|
|
1555
|
-
body: yield response.json(),
|
|
1556
|
-
bodyKey: "modelCollection",
|
|
1557
|
-
bodyModel: model.ModelCollection,
|
|
1558
|
-
type: "model.ModelCollection",
|
|
1559
1803
|
responseHeaders: [
|
|
1560
1804
|
{
|
|
1561
|
-
value: response.headers.get("opc-request-id"),
|
|
1562
|
-
key: "
|
|
1805
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1806
|
+
key: "opcWorkRequestId",
|
|
1563
1807
|
dataType: "string"
|
|
1564
1808
|
},
|
|
1565
1809
|
{
|
|
1566
|
-
value: response.headers.get("opc-
|
|
1567
|
-
key: "
|
|
1810
|
+
value: response.headers.get("opc-request-id"),
|
|
1811
|
+
key: "opcRequestId",
|
|
1568
1812
|
dataType: "string"
|
|
1569
1813
|
}
|
|
1570
1814
|
]
|
|
@@ -1577,44 +1821,1100 @@ class AIServiceVisionClient {
|
|
|
1577
1821
|
});
|
|
1578
1822
|
}
|
|
1579
1823
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
*
|
|
1824
|
+
* Delete a visionPrivateEndpoint by identifier.
|
|
1582
1825
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1583
|
-
* @param
|
|
1584
|
-
* @return
|
|
1826
|
+
* @param DeleteVisionPrivateEndpointRequest
|
|
1827
|
+
* @return DeleteVisionPrivateEndpointResponse
|
|
1585
1828
|
* @throws OciError when an error occurs
|
|
1586
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
1829
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/DeleteVisionPrivateEndpoint.ts.html |here} to see how to use DeleteVisionPrivateEndpoint API.
|
|
1587
1830
|
*/
|
|
1588
|
-
|
|
1831
|
+
deleteVisionPrivateEndpoint(deleteVisionPrivateEndpointRequest) {
|
|
1589
1832
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1590
1833
|
if (this.logger)
|
|
1591
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1592
|
-
const operationName = "
|
|
1593
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1594
|
-
const pathParams = {
|
|
1595
|
-
|
|
1596
|
-
"compartmentId": listProjectsRequest.compartmentId,
|
|
1597
|
-
"lifecycleState": listProjectsRequest.lifecycleState,
|
|
1598
|
-
"displayName": listProjectsRequest.displayName,
|
|
1599
|
-
"id": listProjectsRequest.id,
|
|
1600
|
-
"limit": listProjectsRequest.limit,
|
|
1601
|
-
"page": listProjectsRequest.page,
|
|
1602
|
-
"sortOrder": listProjectsRequest.sortOrder,
|
|
1603
|
-
"sortBy": listProjectsRequest.sortBy
|
|
1834
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteVisionPrivateEndpoint.");
|
|
1835
|
+
const operationName = "deleteVisionPrivateEndpoint";
|
|
1836
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpoint/DeleteVisionPrivateEndpoint";
|
|
1837
|
+
const pathParams = {
|
|
1838
|
+
"{visionPrivateEndpointId}": deleteVisionPrivateEndpointRequest.visionPrivateEndpointId
|
|
1604
1839
|
};
|
|
1840
|
+
const queryParams = {};
|
|
1605
1841
|
let headerParams = {
|
|
1606
1842
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1607
|
-
"
|
|
1843
|
+
"if-match": deleteVisionPrivateEndpointRequest.ifMatch,
|
|
1844
|
+
"opc-request-id": deleteVisionPrivateEndpointRequest.opcRequestId
|
|
1608
1845
|
};
|
|
1609
1846
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1610
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1847
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVisionPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1611
1848
|
if (this.logger)
|
|
1612
1849
|
retrier.logger = this.logger;
|
|
1613
1850
|
const request = yield oci_common_1.composeRequest({
|
|
1614
1851
|
baseEndpoint: this._endpoint,
|
|
1615
1852
|
defaultHeaders: this._defaultHeaders,
|
|
1616
|
-
path: "/
|
|
1617
|
-
method: "
|
|
1853
|
+
path: "/visionPrivateEndpoints/{visionPrivateEndpointId}",
|
|
1854
|
+
method: "DELETE",
|
|
1855
|
+
pathParams: pathParams,
|
|
1856
|
+
headerParams: headerParams,
|
|
1857
|
+
queryParams: queryParams
|
|
1858
|
+
});
|
|
1859
|
+
try {
|
|
1860
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1861
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1862
|
+
responseObject: {},
|
|
1863
|
+
responseHeaders: [
|
|
1864
|
+
{
|
|
1865
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1866
|
+
key: "opcWorkRequestId",
|
|
1867
|
+
dataType: "string"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
value: response.headers.get("opc-request-id"),
|
|
1871
|
+
key: "opcRequestId",
|
|
1872
|
+
dataType: "string"
|
|
1873
|
+
}
|
|
1874
|
+
]
|
|
1875
|
+
});
|
|
1876
|
+
return sdkResponse;
|
|
1877
|
+
}
|
|
1878
|
+
catch (err) {
|
|
1879
|
+
throw err;
|
|
1880
|
+
}
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Get details of a document batch job.
|
|
1885
|
+
*
|
|
1886
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1887
|
+
* @param GetDocumentJobRequest
|
|
1888
|
+
* @return GetDocumentJobResponse
|
|
1889
|
+
* @throws OciError when an error occurs
|
|
1890
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetDocumentJob.ts.html |here} to see how to use GetDocumentJob API.
|
|
1891
|
+
*/
|
|
1892
|
+
getDocumentJob(getDocumentJobRequest) {
|
|
1893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1894
|
+
if (this.logger)
|
|
1895
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getDocumentJob.");
|
|
1896
|
+
const operationName = "getDocumentJob";
|
|
1897
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/DocumentJob/GetDocumentJob";
|
|
1898
|
+
const pathParams = {
|
|
1899
|
+
"{documentJobId}": getDocumentJobRequest.documentJobId
|
|
1900
|
+
};
|
|
1901
|
+
const queryParams = {};
|
|
1902
|
+
let headerParams = {
|
|
1903
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1904
|
+
"opc-request-id": getDocumentJobRequest.opcRequestId
|
|
1905
|
+
};
|
|
1906
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1907
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1908
|
+
if (this.logger)
|
|
1909
|
+
retrier.logger = this.logger;
|
|
1910
|
+
const request = yield oci_common_1.composeRequest({
|
|
1911
|
+
baseEndpoint: this._endpoint,
|
|
1912
|
+
defaultHeaders: this._defaultHeaders,
|
|
1913
|
+
path: "/documentJobs/{documentJobId}",
|
|
1914
|
+
method: "GET",
|
|
1915
|
+
pathParams: pathParams,
|
|
1916
|
+
headerParams: headerParams,
|
|
1917
|
+
queryParams: queryParams
|
|
1918
|
+
});
|
|
1919
|
+
try {
|
|
1920
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1921
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1922
|
+
responseObject: {},
|
|
1923
|
+
body: yield response.json(),
|
|
1924
|
+
bodyKey: "documentJob",
|
|
1925
|
+
bodyModel: model.DocumentJob,
|
|
1926
|
+
type: "model.DocumentJob",
|
|
1927
|
+
responseHeaders: [
|
|
1928
|
+
{
|
|
1929
|
+
value: response.headers.get("etag"),
|
|
1930
|
+
key: "etag",
|
|
1931
|
+
dataType: "string"
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
value: response.headers.get("opc-request-id"),
|
|
1935
|
+
key: "opcRequestId",
|
|
1936
|
+
dataType: "string"
|
|
1937
|
+
}
|
|
1938
|
+
]
|
|
1939
|
+
});
|
|
1940
|
+
return sdkResponse;
|
|
1941
|
+
}
|
|
1942
|
+
catch (err) {
|
|
1943
|
+
throw err;
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Get details of an image batch job.
|
|
1949
|
+
*
|
|
1950
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1951
|
+
* @param GetImageJobRequest
|
|
1952
|
+
* @return GetImageJobResponse
|
|
1953
|
+
* @throws OciError when an error occurs
|
|
1954
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetImageJob.ts.html |here} to see how to use GetImageJob API.
|
|
1955
|
+
*/
|
|
1956
|
+
getImageJob(getImageJobRequest) {
|
|
1957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1958
|
+
if (this.logger)
|
|
1959
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getImageJob.");
|
|
1960
|
+
const operationName = "getImageJob";
|
|
1961
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ImageJob/GetImageJob";
|
|
1962
|
+
const pathParams = {
|
|
1963
|
+
"{imageJobId}": getImageJobRequest.imageJobId
|
|
1964
|
+
};
|
|
1965
|
+
const queryParams = {};
|
|
1966
|
+
let headerParams = {
|
|
1967
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1968
|
+
"opc-request-id": getImageJobRequest.opcRequestId
|
|
1969
|
+
};
|
|
1970
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1971
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
1972
|
+
if (this.logger)
|
|
1973
|
+
retrier.logger = this.logger;
|
|
1974
|
+
const request = yield oci_common_1.composeRequest({
|
|
1975
|
+
baseEndpoint: this._endpoint,
|
|
1976
|
+
defaultHeaders: this._defaultHeaders,
|
|
1977
|
+
path: "/imageJobs/{imageJobId}",
|
|
1978
|
+
method: "GET",
|
|
1979
|
+
pathParams: pathParams,
|
|
1980
|
+
headerParams: headerParams,
|
|
1981
|
+
queryParams: queryParams
|
|
1982
|
+
});
|
|
1983
|
+
try {
|
|
1984
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1985
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1986
|
+
responseObject: {},
|
|
1987
|
+
body: yield response.json(),
|
|
1988
|
+
bodyKey: "imageJob",
|
|
1989
|
+
bodyModel: model.ImageJob,
|
|
1990
|
+
type: "model.ImageJob",
|
|
1991
|
+
responseHeaders: [
|
|
1992
|
+
{
|
|
1993
|
+
value: response.headers.get("etag"),
|
|
1994
|
+
key: "etag",
|
|
1995
|
+
dataType: "string"
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
value: response.headers.get("opc-request-id"),
|
|
1999
|
+
key: "opcRequestId",
|
|
2000
|
+
dataType: "string"
|
|
2001
|
+
}
|
|
2002
|
+
]
|
|
2003
|
+
});
|
|
2004
|
+
return sdkResponse;
|
|
2005
|
+
}
|
|
2006
|
+
catch (err) {
|
|
2007
|
+
throw err;
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* Get a model by identifier.
|
|
2013
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2014
|
+
* @param GetModelRequest
|
|
2015
|
+
* @return GetModelResponse
|
|
2016
|
+
* @throws OciError when an error occurs
|
|
2017
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetModel.ts.html |here} to see how to use GetModel API.
|
|
2018
|
+
*/
|
|
2019
|
+
getModel(getModelRequest) {
|
|
2020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2021
|
+
if (this.logger)
|
|
2022
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getModel.");
|
|
2023
|
+
const operationName = "getModel";
|
|
2024
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/GetModel";
|
|
2025
|
+
const pathParams = {
|
|
2026
|
+
"{modelId}": getModelRequest.modelId
|
|
2027
|
+
};
|
|
2028
|
+
const queryParams = {};
|
|
2029
|
+
let headerParams = {
|
|
2030
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2031
|
+
"opc-request-id": getModelRequest.opcRequestId
|
|
2032
|
+
};
|
|
2033
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2034
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
|
|
2035
|
+
if (this.logger)
|
|
2036
|
+
retrier.logger = this.logger;
|
|
2037
|
+
const request = yield oci_common_1.composeRequest({
|
|
2038
|
+
baseEndpoint: this._endpoint,
|
|
2039
|
+
defaultHeaders: this._defaultHeaders,
|
|
2040
|
+
path: "/models/{modelId}",
|
|
2041
|
+
method: "GET",
|
|
2042
|
+
pathParams: pathParams,
|
|
2043
|
+
headerParams: headerParams,
|
|
2044
|
+
queryParams: queryParams
|
|
2045
|
+
});
|
|
2046
|
+
try {
|
|
2047
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2048
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2049
|
+
responseObject: {},
|
|
2050
|
+
body: yield response.json(),
|
|
2051
|
+
bodyKey: "model",
|
|
2052
|
+
bodyModel: model.Model,
|
|
2053
|
+
type: "model.Model",
|
|
2054
|
+
responseHeaders: [
|
|
2055
|
+
{
|
|
2056
|
+
value: response.headers.get("etag"),
|
|
2057
|
+
key: "etag",
|
|
2058
|
+
dataType: "string"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
value: response.headers.get("opc-request-id"),
|
|
2062
|
+
key: "opcRequestId",
|
|
2063
|
+
dataType: "string"
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
});
|
|
2067
|
+
return sdkResponse;
|
|
2068
|
+
}
|
|
2069
|
+
catch (err) {
|
|
2070
|
+
throw err;
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* Get a project by identifier.
|
|
2076
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2077
|
+
* @param GetProjectRequest
|
|
2078
|
+
* @return GetProjectResponse
|
|
2079
|
+
* @throws OciError when an error occurs
|
|
2080
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetProject.ts.html |here} to see how to use GetProject API.
|
|
2081
|
+
*/
|
|
2082
|
+
getProject(getProjectRequest) {
|
|
2083
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2084
|
+
if (this.logger)
|
|
2085
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getProject.");
|
|
2086
|
+
const operationName = "getProject";
|
|
2087
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/GetProject";
|
|
2088
|
+
const pathParams = {
|
|
2089
|
+
"{projectId}": getProjectRequest.projectId
|
|
2090
|
+
};
|
|
2091
|
+
const queryParams = {};
|
|
2092
|
+
let headerParams = {
|
|
2093
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2094
|
+
"opc-request-id": getProjectRequest.opcRequestId
|
|
2095
|
+
};
|
|
2096
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2097
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
2098
|
+
if (this.logger)
|
|
2099
|
+
retrier.logger = this.logger;
|
|
2100
|
+
const request = yield oci_common_1.composeRequest({
|
|
2101
|
+
baseEndpoint: this._endpoint,
|
|
2102
|
+
defaultHeaders: this._defaultHeaders,
|
|
2103
|
+
path: "/projects/{projectId}",
|
|
2104
|
+
method: "GET",
|
|
2105
|
+
pathParams: pathParams,
|
|
2106
|
+
headerParams: headerParams,
|
|
2107
|
+
queryParams: queryParams
|
|
2108
|
+
});
|
|
2109
|
+
try {
|
|
2110
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2111
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2112
|
+
responseObject: {},
|
|
2113
|
+
body: yield response.json(),
|
|
2114
|
+
bodyKey: "project",
|
|
2115
|
+
bodyModel: model.Project,
|
|
2116
|
+
type: "model.Project",
|
|
2117
|
+
responseHeaders: [
|
|
2118
|
+
{
|
|
2119
|
+
value: response.headers.get("etag"),
|
|
2120
|
+
key: "etag",
|
|
2121
|
+
dataType: "string"
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
value: response.headers.get("opc-request-id"),
|
|
2125
|
+
key: "opcRequestId",
|
|
2126
|
+
dataType: "string"
|
|
2127
|
+
}
|
|
2128
|
+
]
|
|
2129
|
+
});
|
|
2130
|
+
return sdkResponse;
|
|
2131
|
+
}
|
|
2132
|
+
catch (err) {
|
|
2133
|
+
throw err;
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Get a streamGroup
|
|
2139
|
+
*
|
|
2140
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2141
|
+
* @param GetStreamGroupRequest
|
|
2142
|
+
* @return GetStreamGroupResponse
|
|
2143
|
+
* @throws OciError when an error occurs
|
|
2144
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetStreamGroup.ts.html |here} to see how to use GetStreamGroup API.
|
|
2145
|
+
*/
|
|
2146
|
+
getStreamGroup(getStreamGroupRequest) {
|
|
2147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2148
|
+
if (this.logger)
|
|
2149
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getStreamGroup.");
|
|
2150
|
+
const operationName = "getStreamGroup";
|
|
2151
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/GetStreamGroup";
|
|
2152
|
+
const pathParams = {
|
|
2153
|
+
"{streamGroupId}": getStreamGroupRequest.streamGroupId
|
|
2154
|
+
};
|
|
2155
|
+
const queryParams = {};
|
|
2156
|
+
let headerParams = {
|
|
2157
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2158
|
+
"opc-request-id": getStreamGroupRequest.opcRequestId
|
|
2159
|
+
};
|
|
2160
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2161
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
2162
|
+
if (this.logger)
|
|
2163
|
+
retrier.logger = this.logger;
|
|
2164
|
+
const request = yield oci_common_1.composeRequest({
|
|
2165
|
+
baseEndpoint: this._endpoint,
|
|
2166
|
+
defaultHeaders: this._defaultHeaders,
|
|
2167
|
+
path: "/streamGroups/{streamGroupId}",
|
|
2168
|
+
method: "GET",
|
|
2169
|
+
pathParams: pathParams,
|
|
2170
|
+
headerParams: headerParams,
|
|
2171
|
+
queryParams: queryParams
|
|
2172
|
+
});
|
|
2173
|
+
try {
|
|
2174
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2175
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2176
|
+
responseObject: {},
|
|
2177
|
+
body: yield response.json(),
|
|
2178
|
+
bodyKey: "streamGroup",
|
|
2179
|
+
bodyModel: model.StreamGroup,
|
|
2180
|
+
type: "model.StreamGroup",
|
|
2181
|
+
responseHeaders: [
|
|
2182
|
+
{
|
|
2183
|
+
value: response.headers.get("etag"),
|
|
2184
|
+
key: "etag",
|
|
2185
|
+
dataType: "string"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
value: response.headers.get("opc-request-id"),
|
|
2189
|
+
key: "opcRequestId",
|
|
2190
|
+
dataType: "string"
|
|
2191
|
+
}
|
|
2192
|
+
]
|
|
2193
|
+
});
|
|
2194
|
+
return sdkResponse;
|
|
2195
|
+
}
|
|
2196
|
+
catch (err) {
|
|
2197
|
+
throw err;
|
|
2198
|
+
}
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Get details of a stream analysis job.
|
|
2203
|
+
*
|
|
2204
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2205
|
+
* @param GetStreamJobRequest
|
|
2206
|
+
* @return GetStreamJobResponse
|
|
2207
|
+
* @throws OciError when an error occurs
|
|
2208
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetStreamJob.ts.html |here} to see how to use GetStreamJob API.
|
|
2209
|
+
*/
|
|
2210
|
+
getStreamJob(getStreamJobRequest) {
|
|
2211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2212
|
+
if (this.logger)
|
|
2213
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getStreamJob.");
|
|
2214
|
+
const operationName = "getStreamJob";
|
|
2215
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/GetStreamJob";
|
|
2216
|
+
const pathParams = {
|
|
2217
|
+
"{streamJobId}": getStreamJobRequest.streamJobId
|
|
2218
|
+
};
|
|
2219
|
+
const queryParams = {};
|
|
2220
|
+
let headerParams = {
|
|
2221
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2222
|
+
"opc-request-id": getStreamJobRequest.opcRequestId
|
|
2223
|
+
};
|
|
2224
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2225
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
2226
|
+
if (this.logger)
|
|
2227
|
+
retrier.logger = this.logger;
|
|
2228
|
+
const request = yield oci_common_1.composeRequest({
|
|
2229
|
+
baseEndpoint: this._endpoint,
|
|
2230
|
+
defaultHeaders: this._defaultHeaders,
|
|
2231
|
+
path: "/streamJobs/{streamJobId}",
|
|
2232
|
+
method: "GET",
|
|
2233
|
+
pathParams: pathParams,
|
|
2234
|
+
headerParams: headerParams,
|
|
2235
|
+
queryParams: queryParams
|
|
2236
|
+
});
|
|
2237
|
+
try {
|
|
2238
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2239
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2240
|
+
responseObject: {},
|
|
2241
|
+
body: yield response.json(),
|
|
2242
|
+
bodyKey: "streamJob",
|
|
2243
|
+
bodyModel: model.StreamJob,
|
|
2244
|
+
type: "model.StreamJob",
|
|
2245
|
+
responseHeaders: [
|
|
2246
|
+
{
|
|
2247
|
+
value: response.headers.get("etag"),
|
|
2248
|
+
key: "etag",
|
|
2249
|
+
dataType: "string"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
value: response.headers.get("opc-request-id"),
|
|
2253
|
+
key: "opcRequestId",
|
|
2254
|
+
dataType: "string"
|
|
2255
|
+
}
|
|
2256
|
+
]
|
|
2257
|
+
});
|
|
2258
|
+
return sdkResponse;
|
|
2259
|
+
}
|
|
2260
|
+
catch (err) {
|
|
2261
|
+
throw err;
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Get a streamSource
|
|
2267
|
+
*
|
|
2268
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2269
|
+
* @param GetStreamSourceRequest
|
|
2270
|
+
* @return GetStreamSourceResponse
|
|
2271
|
+
* @throws OciError when an error occurs
|
|
2272
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetStreamSource.ts.html |here} to see how to use GetStreamSource API.
|
|
2273
|
+
*/
|
|
2274
|
+
getStreamSource(getStreamSourceRequest) {
|
|
2275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2276
|
+
if (this.logger)
|
|
2277
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getStreamSource.");
|
|
2278
|
+
const operationName = "getStreamSource";
|
|
2279
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/GetStreamSource";
|
|
2280
|
+
const pathParams = {
|
|
2281
|
+
"{streamSourceId}": getStreamSourceRequest.streamSourceId
|
|
2282
|
+
};
|
|
2283
|
+
const queryParams = {};
|
|
2284
|
+
let headerParams = {
|
|
2285
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2286
|
+
"opc-request-id": getStreamSourceRequest.opcRequestId
|
|
2287
|
+
};
|
|
2288
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2289
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamSourceRequest.retryConfiguration, specRetryConfiguration);
|
|
2290
|
+
if (this.logger)
|
|
2291
|
+
retrier.logger = this.logger;
|
|
2292
|
+
const request = yield oci_common_1.composeRequest({
|
|
2293
|
+
baseEndpoint: this._endpoint,
|
|
2294
|
+
defaultHeaders: this._defaultHeaders,
|
|
2295
|
+
path: "/streamSources/{streamSourceId}",
|
|
2296
|
+
method: "GET",
|
|
2297
|
+
pathParams: pathParams,
|
|
2298
|
+
headerParams: headerParams,
|
|
2299
|
+
queryParams: queryParams
|
|
2300
|
+
});
|
|
2301
|
+
try {
|
|
2302
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2303
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2304
|
+
responseObject: {},
|
|
2305
|
+
body: yield response.json(),
|
|
2306
|
+
bodyKey: "streamSource",
|
|
2307
|
+
bodyModel: model.StreamSource,
|
|
2308
|
+
type: "model.StreamSource",
|
|
2309
|
+
responseHeaders: [
|
|
2310
|
+
{
|
|
2311
|
+
value: response.headers.get("etag"),
|
|
2312
|
+
key: "etag",
|
|
2313
|
+
dataType: "string"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
value: response.headers.get("opc-request-id"),
|
|
2317
|
+
key: "opcRequestId",
|
|
2318
|
+
dataType: "string"
|
|
2319
|
+
}
|
|
2320
|
+
]
|
|
2321
|
+
});
|
|
2322
|
+
return sdkResponse;
|
|
2323
|
+
}
|
|
2324
|
+
catch (err) {
|
|
2325
|
+
throw err;
|
|
2326
|
+
}
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
/**
|
|
2330
|
+
* Get details of a video analysis job.
|
|
2331
|
+
*
|
|
2332
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2333
|
+
* @param GetVideoJobRequest
|
|
2334
|
+
* @return GetVideoJobResponse
|
|
2335
|
+
* @throws OciError when an error occurs
|
|
2336
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetVideoJob.ts.html |here} to see how to use GetVideoJob API.
|
|
2337
|
+
*/
|
|
2338
|
+
getVideoJob(getVideoJobRequest) {
|
|
2339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2340
|
+
if (this.logger)
|
|
2341
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getVideoJob.");
|
|
2342
|
+
const operationName = "getVideoJob";
|
|
2343
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob";
|
|
2344
|
+
const pathParams = {
|
|
2345
|
+
"{videoJobId}": getVideoJobRequest.videoJobId
|
|
2346
|
+
};
|
|
2347
|
+
const queryParams = {};
|
|
2348
|
+
let headerParams = {
|
|
2349
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2350
|
+
"opc-request-id": getVideoJobRequest.opcRequestId
|
|
2351
|
+
};
|
|
2352
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2353
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVideoJobRequest.retryConfiguration, specRetryConfiguration);
|
|
2354
|
+
if (this.logger)
|
|
2355
|
+
retrier.logger = this.logger;
|
|
2356
|
+
const request = yield oci_common_1.composeRequest({
|
|
2357
|
+
baseEndpoint: this._endpoint,
|
|
2358
|
+
defaultHeaders: this._defaultHeaders,
|
|
2359
|
+
path: "/videoJobs/{videoJobId}",
|
|
2360
|
+
method: "GET",
|
|
2361
|
+
pathParams: pathParams,
|
|
2362
|
+
headerParams: headerParams,
|
|
2363
|
+
queryParams: queryParams
|
|
2364
|
+
});
|
|
2365
|
+
try {
|
|
2366
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2367
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2368
|
+
responseObject: {},
|
|
2369
|
+
body: yield response.json(),
|
|
2370
|
+
bodyKey: "videoJob",
|
|
2371
|
+
bodyModel: model.VideoJob,
|
|
2372
|
+
type: "model.VideoJob",
|
|
2373
|
+
responseHeaders: [
|
|
2374
|
+
{
|
|
2375
|
+
value: response.headers.get("etag"),
|
|
2376
|
+
key: "etag",
|
|
2377
|
+
dataType: "string"
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
value: response.headers.get("opc-request-id"),
|
|
2381
|
+
key: "opcRequestId",
|
|
2382
|
+
dataType: "string"
|
|
2383
|
+
}
|
|
2384
|
+
]
|
|
2385
|
+
});
|
|
2386
|
+
return sdkResponse;
|
|
2387
|
+
}
|
|
2388
|
+
catch (err) {
|
|
2389
|
+
throw err;
|
|
2390
|
+
}
|
|
2391
|
+
});
|
|
2392
|
+
}
|
|
2393
|
+
/**
|
|
2394
|
+
* Get a visionPrivateEndpoint by identifier.
|
|
2395
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2396
|
+
* @param GetVisionPrivateEndpointRequest
|
|
2397
|
+
* @return GetVisionPrivateEndpointResponse
|
|
2398
|
+
* @throws OciError when an error occurs
|
|
2399
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetVisionPrivateEndpoint.ts.html |here} to see how to use GetVisionPrivateEndpoint API.
|
|
2400
|
+
*/
|
|
2401
|
+
getVisionPrivateEndpoint(getVisionPrivateEndpointRequest) {
|
|
2402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2403
|
+
if (this.logger)
|
|
2404
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getVisionPrivateEndpoint.");
|
|
2405
|
+
const operationName = "getVisionPrivateEndpoint";
|
|
2406
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpoint/GetVisionPrivateEndpoint";
|
|
2407
|
+
const pathParams = {
|
|
2408
|
+
"{visionPrivateEndpointId}": getVisionPrivateEndpointRequest.visionPrivateEndpointId
|
|
2409
|
+
};
|
|
2410
|
+
const queryParams = {};
|
|
2411
|
+
let headerParams = {
|
|
2412
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2413
|
+
"opc-request-id": getVisionPrivateEndpointRequest.opcRequestId
|
|
2414
|
+
};
|
|
2415
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2416
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVisionPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
2417
|
+
if (this.logger)
|
|
2418
|
+
retrier.logger = this.logger;
|
|
2419
|
+
const request = yield oci_common_1.composeRequest({
|
|
2420
|
+
baseEndpoint: this._endpoint,
|
|
2421
|
+
defaultHeaders: this._defaultHeaders,
|
|
2422
|
+
path: "/visionPrivateEndpoints/{visionPrivateEndpointId}",
|
|
2423
|
+
method: "GET",
|
|
2424
|
+
pathParams: pathParams,
|
|
2425
|
+
headerParams: headerParams,
|
|
2426
|
+
queryParams: queryParams
|
|
2427
|
+
});
|
|
2428
|
+
try {
|
|
2429
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2430
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2431
|
+
responseObject: {},
|
|
2432
|
+
body: yield response.json(),
|
|
2433
|
+
bodyKey: "visionPrivateEndpoint",
|
|
2434
|
+
bodyModel: model.VisionPrivateEndpoint,
|
|
2435
|
+
type: "model.VisionPrivateEndpoint",
|
|
2436
|
+
responseHeaders: [
|
|
2437
|
+
{
|
|
2438
|
+
value: response.headers.get("etag"),
|
|
2439
|
+
key: "etag",
|
|
2440
|
+
dataType: "string"
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
value: response.headers.get("opc-request-id"),
|
|
2444
|
+
key: "opcRequestId",
|
|
2445
|
+
dataType: "string"
|
|
2446
|
+
}
|
|
2447
|
+
]
|
|
2448
|
+
});
|
|
2449
|
+
return sdkResponse;
|
|
2450
|
+
}
|
|
2451
|
+
catch (err) {
|
|
2452
|
+
throw err;
|
|
2453
|
+
}
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Gets the status of the work request with the given ID.
|
|
2458
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2459
|
+
* @param GetWorkRequestRequest
|
|
2460
|
+
* @return GetWorkRequestResponse
|
|
2461
|
+
* @throws OciError when an error occurs
|
|
2462
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2463
|
+
*/
|
|
2464
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
2465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2466
|
+
if (this.logger)
|
|
2467
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getWorkRequest.");
|
|
2468
|
+
const operationName = "getWorkRequest";
|
|
2469
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/GetWorkRequest";
|
|
2470
|
+
const pathParams = {
|
|
2471
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
2472
|
+
};
|
|
2473
|
+
const queryParams = {};
|
|
2474
|
+
let headerParams = {
|
|
2475
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2476
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
2477
|
+
};
|
|
2478
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2479
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2480
|
+
if (this.logger)
|
|
2481
|
+
retrier.logger = this.logger;
|
|
2482
|
+
const request = yield oci_common_1.composeRequest({
|
|
2483
|
+
baseEndpoint: this._endpoint,
|
|
2484
|
+
defaultHeaders: this._defaultHeaders,
|
|
2485
|
+
path: "/workRequests/{workRequestId}",
|
|
2486
|
+
method: "GET",
|
|
2487
|
+
pathParams: pathParams,
|
|
2488
|
+
headerParams: headerParams,
|
|
2489
|
+
queryParams: queryParams
|
|
2490
|
+
});
|
|
2491
|
+
try {
|
|
2492
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2493
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2494
|
+
responseObject: {},
|
|
2495
|
+
body: yield response.json(),
|
|
2496
|
+
bodyKey: "workRequest",
|
|
2497
|
+
bodyModel: model.WorkRequest,
|
|
2498
|
+
type: "model.WorkRequest",
|
|
2499
|
+
responseHeaders: [
|
|
2500
|
+
{
|
|
2501
|
+
value: response.headers.get("etag"),
|
|
2502
|
+
key: "etag",
|
|
2503
|
+
dataType: "string"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
value: response.headers.get("opc-request-id"),
|
|
2507
|
+
key: "opcRequestId",
|
|
2508
|
+
dataType: "string"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
value: response.headers.get("retry-after"),
|
|
2512
|
+
key: "retryAfter",
|
|
2513
|
+
dataType: "number"
|
|
2514
|
+
}
|
|
2515
|
+
]
|
|
2516
|
+
});
|
|
2517
|
+
return sdkResponse;
|
|
2518
|
+
}
|
|
2519
|
+
catch (err) {
|
|
2520
|
+
throw err;
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
}
|
|
2524
|
+
/**
|
|
2525
|
+
* Returns a list of models in a compartment.
|
|
2526
|
+
*
|
|
2527
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2528
|
+
* @param ListModelsRequest
|
|
2529
|
+
* @return ListModelsResponse
|
|
2530
|
+
* @throws OciError when an error occurs
|
|
2531
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListModels.ts.html |here} to see how to use ListModels API.
|
|
2532
|
+
*/
|
|
2533
|
+
listModels(listModelsRequest) {
|
|
2534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2535
|
+
if (this.logger)
|
|
2536
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listModels.");
|
|
2537
|
+
const operationName = "listModels";
|
|
2538
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ModelCollection/ListModels";
|
|
2539
|
+
const pathParams = {};
|
|
2540
|
+
const queryParams = {
|
|
2541
|
+
"compartmentId": listModelsRequest.compartmentId,
|
|
2542
|
+
"projectId": listModelsRequest.projectId,
|
|
2543
|
+
"lifecycleState": listModelsRequest.lifecycleState,
|
|
2544
|
+
"displayName": listModelsRequest.displayName,
|
|
2545
|
+
"id": listModelsRequest.id,
|
|
2546
|
+
"limit": listModelsRequest.limit,
|
|
2547
|
+
"page": listModelsRequest.page,
|
|
2548
|
+
"sortOrder": listModelsRequest.sortOrder,
|
|
2549
|
+
"sortBy": listModelsRequest.sortBy
|
|
2550
|
+
};
|
|
2551
|
+
let headerParams = {
|
|
2552
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2553
|
+
"opc-request-id": listModelsRequest.opcRequestId
|
|
2554
|
+
};
|
|
2555
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2556
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
|
|
2557
|
+
if (this.logger)
|
|
2558
|
+
retrier.logger = this.logger;
|
|
2559
|
+
const request = yield oci_common_1.composeRequest({
|
|
2560
|
+
baseEndpoint: this._endpoint,
|
|
2561
|
+
defaultHeaders: this._defaultHeaders,
|
|
2562
|
+
path: "/models",
|
|
2563
|
+
method: "GET",
|
|
2564
|
+
pathParams: pathParams,
|
|
2565
|
+
headerParams: headerParams,
|
|
2566
|
+
queryParams: queryParams
|
|
2567
|
+
});
|
|
2568
|
+
try {
|
|
2569
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2570
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2571
|
+
responseObject: {},
|
|
2572
|
+
body: yield response.json(),
|
|
2573
|
+
bodyKey: "modelCollection",
|
|
2574
|
+
bodyModel: model.ModelCollection,
|
|
2575
|
+
type: "model.ModelCollection",
|
|
2576
|
+
responseHeaders: [
|
|
2577
|
+
{
|
|
2578
|
+
value: response.headers.get("opc-request-id"),
|
|
2579
|
+
key: "opcRequestId",
|
|
2580
|
+
dataType: "string"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
value: response.headers.get("opc-next-page"),
|
|
2584
|
+
key: "opcNextPage",
|
|
2585
|
+
dataType: "string"
|
|
2586
|
+
}
|
|
2587
|
+
]
|
|
2588
|
+
});
|
|
2589
|
+
return sdkResponse;
|
|
2590
|
+
}
|
|
2591
|
+
catch (err) {
|
|
2592
|
+
throw err;
|
|
2593
|
+
}
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
/**
|
|
2597
|
+
* Returns a list of projects.
|
|
2598
|
+
*
|
|
2599
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2600
|
+
* @param ListProjectsRequest
|
|
2601
|
+
* @return ListProjectsResponse
|
|
2602
|
+
* @throws OciError when an error occurs
|
|
2603
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
2604
|
+
*/
|
|
2605
|
+
listProjects(listProjectsRequest) {
|
|
2606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2607
|
+
if (this.logger)
|
|
2608
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listProjects.");
|
|
2609
|
+
const operationName = "listProjects";
|
|
2610
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/ProjectCollection/ListProjects";
|
|
2611
|
+
const pathParams = {};
|
|
2612
|
+
const queryParams = {
|
|
2613
|
+
"compartmentId": listProjectsRequest.compartmentId,
|
|
2614
|
+
"lifecycleState": listProjectsRequest.lifecycleState,
|
|
2615
|
+
"displayName": listProjectsRequest.displayName,
|
|
2616
|
+
"id": listProjectsRequest.id,
|
|
2617
|
+
"limit": listProjectsRequest.limit,
|
|
2618
|
+
"page": listProjectsRequest.page,
|
|
2619
|
+
"sortOrder": listProjectsRequest.sortOrder,
|
|
2620
|
+
"sortBy": listProjectsRequest.sortBy
|
|
2621
|
+
};
|
|
2622
|
+
let headerParams = {
|
|
2623
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2624
|
+
"opc-request-id": listProjectsRequest.opcRequestId
|
|
2625
|
+
};
|
|
2626
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2627
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
2628
|
+
if (this.logger)
|
|
2629
|
+
retrier.logger = this.logger;
|
|
2630
|
+
const request = yield oci_common_1.composeRequest({
|
|
2631
|
+
baseEndpoint: this._endpoint,
|
|
2632
|
+
defaultHeaders: this._defaultHeaders,
|
|
2633
|
+
path: "/projects",
|
|
2634
|
+
method: "GET",
|
|
2635
|
+
pathParams: pathParams,
|
|
2636
|
+
headerParams: headerParams,
|
|
2637
|
+
queryParams: queryParams
|
|
2638
|
+
});
|
|
2639
|
+
try {
|
|
2640
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2641
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2642
|
+
responseObject: {},
|
|
2643
|
+
body: yield response.json(),
|
|
2644
|
+
bodyKey: "projectCollection",
|
|
2645
|
+
bodyModel: model.ProjectCollection,
|
|
2646
|
+
type: "model.ProjectCollection",
|
|
2647
|
+
responseHeaders: [
|
|
2648
|
+
{
|
|
2649
|
+
value: response.headers.get("opc-request-id"),
|
|
2650
|
+
key: "opcRequestId",
|
|
2651
|
+
dataType: "string"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
value: response.headers.get("opc-next-page"),
|
|
2655
|
+
key: "opcNextPage",
|
|
2656
|
+
dataType: "string"
|
|
2657
|
+
}
|
|
2658
|
+
]
|
|
2659
|
+
});
|
|
2660
|
+
return sdkResponse;
|
|
2661
|
+
}
|
|
2662
|
+
catch (err) {
|
|
2663
|
+
throw err;
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* Gets a list of the streamGroups in the specified compartment.
|
|
2669
|
+
*
|
|
2670
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2671
|
+
* @param ListStreamGroupsRequest
|
|
2672
|
+
* @return ListStreamGroupsResponse
|
|
2673
|
+
* @throws OciError when an error occurs
|
|
2674
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListStreamGroups.ts.html |here} to see how to use ListStreamGroups API.
|
|
2675
|
+
*/
|
|
2676
|
+
listStreamGroups(listStreamGroupsRequest) {
|
|
2677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2678
|
+
if (this.logger)
|
|
2679
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listStreamGroups.");
|
|
2680
|
+
const operationName = "listStreamGroups";
|
|
2681
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroupCollection/ListStreamGroups";
|
|
2682
|
+
const pathParams = {};
|
|
2683
|
+
const queryParams = {
|
|
2684
|
+
"compartmentId": listStreamGroupsRequest.compartmentId,
|
|
2685
|
+
"id": listStreamGroupsRequest.id,
|
|
2686
|
+
"displayName": listStreamGroupsRequest.displayName,
|
|
2687
|
+
"limit": listStreamGroupsRequest.limit,
|
|
2688
|
+
"page": listStreamGroupsRequest.page,
|
|
2689
|
+
"sortOrder": listStreamGroupsRequest.sortOrder,
|
|
2690
|
+
"sortBy": listStreamGroupsRequest.sortBy
|
|
2691
|
+
};
|
|
2692
|
+
let headerParams = {
|
|
2693
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2694
|
+
"opc-request-id": listStreamGroupsRequest.opcRequestId
|
|
2695
|
+
};
|
|
2696
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2697
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamGroupsRequest.retryConfiguration, specRetryConfiguration);
|
|
2698
|
+
if (this.logger)
|
|
2699
|
+
retrier.logger = this.logger;
|
|
2700
|
+
const request = yield oci_common_1.composeRequest({
|
|
2701
|
+
baseEndpoint: this._endpoint,
|
|
2702
|
+
defaultHeaders: this._defaultHeaders,
|
|
2703
|
+
path: "/streamGroups",
|
|
2704
|
+
method: "GET",
|
|
2705
|
+
pathParams: pathParams,
|
|
2706
|
+
headerParams: headerParams,
|
|
2707
|
+
queryParams: queryParams
|
|
2708
|
+
});
|
|
2709
|
+
try {
|
|
2710
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2711
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2712
|
+
responseObject: {},
|
|
2713
|
+
body: yield response.json(),
|
|
2714
|
+
bodyKey: "streamGroupCollection",
|
|
2715
|
+
bodyModel: model.StreamGroupCollection,
|
|
2716
|
+
type: "model.StreamGroupCollection",
|
|
2717
|
+
responseHeaders: [
|
|
2718
|
+
{
|
|
2719
|
+
value: response.headers.get("opc-request-id"),
|
|
2720
|
+
key: "opcRequestId",
|
|
2721
|
+
dataType: "string"
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
value: response.headers.get("opc-next-page"),
|
|
2725
|
+
key: "opcNextPage",
|
|
2726
|
+
dataType: "string"
|
|
2727
|
+
}
|
|
2728
|
+
]
|
|
2729
|
+
});
|
|
2730
|
+
return sdkResponse;
|
|
2731
|
+
}
|
|
2732
|
+
catch (err) {
|
|
2733
|
+
throw err;
|
|
2734
|
+
}
|
|
2735
|
+
});
|
|
2736
|
+
}
|
|
2737
|
+
/**
|
|
2738
|
+
* Get list of stream jobs
|
|
2739
|
+
*
|
|
2740
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2741
|
+
* @param ListStreamJobsRequest
|
|
2742
|
+
* @return ListStreamJobsResponse
|
|
2743
|
+
* @throws OciError when an error occurs
|
|
2744
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListStreamJobs.ts.html |here} to see how to use ListStreamJobs API.
|
|
2745
|
+
*/
|
|
2746
|
+
listStreamJobs(listStreamJobsRequest) {
|
|
2747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2748
|
+
if (this.logger)
|
|
2749
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listStreamJobs.");
|
|
2750
|
+
const operationName = "listStreamJobs";
|
|
2751
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJobCollection/ListStreamJobs";
|
|
2752
|
+
const pathParams = {};
|
|
2753
|
+
const queryParams = {
|
|
2754
|
+
"compartmentId": listStreamJobsRequest.compartmentId,
|
|
2755
|
+
"lifecycleState": listStreamJobsRequest.lifecycleState,
|
|
2756
|
+
"id": listStreamJobsRequest.id,
|
|
2757
|
+
"displayName": listStreamJobsRequest.displayName,
|
|
2758
|
+
"limit": listStreamJobsRequest.limit,
|
|
2759
|
+
"page": listStreamJobsRequest.page,
|
|
2760
|
+
"sortOrder": listStreamJobsRequest.sortOrder,
|
|
2761
|
+
"sortBy": listStreamJobsRequest.sortBy
|
|
2762
|
+
};
|
|
2763
|
+
let headerParams = {
|
|
2764
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2765
|
+
"opc-request-id": listStreamJobsRequest.opcRequestId
|
|
2766
|
+
};
|
|
2767
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2768
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamJobsRequest.retryConfiguration, specRetryConfiguration);
|
|
2769
|
+
if (this.logger)
|
|
2770
|
+
retrier.logger = this.logger;
|
|
2771
|
+
const request = yield oci_common_1.composeRequest({
|
|
2772
|
+
baseEndpoint: this._endpoint,
|
|
2773
|
+
defaultHeaders: this._defaultHeaders,
|
|
2774
|
+
path: "/streamJobs",
|
|
2775
|
+
method: "GET",
|
|
2776
|
+
pathParams: pathParams,
|
|
2777
|
+
headerParams: headerParams,
|
|
2778
|
+
queryParams: queryParams
|
|
2779
|
+
});
|
|
2780
|
+
try {
|
|
2781
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2782
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2783
|
+
responseObject: {},
|
|
2784
|
+
body: yield response.json(),
|
|
2785
|
+
bodyKey: "streamJobCollection",
|
|
2786
|
+
bodyModel: model.StreamJobCollection,
|
|
2787
|
+
type: "model.StreamJobCollection",
|
|
2788
|
+
responseHeaders: [
|
|
2789
|
+
{
|
|
2790
|
+
value: response.headers.get("opc-request-id"),
|
|
2791
|
+
key: "opcRequestId",
|
|
2792
|
+
dataType: "string"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
value: response.headers.get("opc-next-page"),
|
|
2796
|
+
key: "opcNextPage",
|
|
2797
|
+
dataType: "string"
|
|
2798
|
+
}
|
|
2799
|
+
]
|
|
2800
|
+
});
|
|
2801
|
+
return sdkResponse;
|
|
2802
|
+
}
|
|
2803
|
+
catch (err) {
|
|
2804
|
+
throw err;
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
/**
|
|
2809
|
+
* Gets a list of the streamSources in the specified compartment.
|
|
2810
|
+
*
|
|
2811
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2812
|
+
* @param ListStreamSourcesRequest
|
|
2813
|
+
* @return ListStreamSourcesResponse
|
|
2814
|
+
* @throws OciError when an error occurs
|
|
2815
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListStreamSources.ts.html |here} to see how to use ListStreamSources API.
|
|
2816
|
+
*/
|
|
2817
|
+
listStreamSources(listStreamSourcesRequest) {
|
|
2818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2819
|
+
if (this.logger)
|
|
2820
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listStreamSources.");
|
|
2821
|
+
const operationName = "listStreamSources";
|
|
2822
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSourceCollection/ListStreamSources";
|
|
2823
|
+
const pathParams = {};
|
|
2824
|
+
const queryParams = {
|
|
2825
|
+
"compartmentId": listStreamSourcesRequest.compartmentId,
|
|
2826
|
+
"lifecycleState": listStreamSourcesRequest.lifecycleState,
|
|
2827
|
+
"id": listStreamSourcesRequest.id,
|
|
2828
|
+
"displayName": listStreamSourcesRequest.displayName,
|
|
2829
|
+
"limit": listStreamSourcesRequest.limit,
|
|
2830
|
+
"page": listStreamSourcesRequest.page,
|
|
2831
|
+
"sortOrder": listStreamSourcesRequest.sortOrder,
|
|
2832
|
+
"sortBy": listStreamSourcesRequest.sortBy
|
|
2833
|
+
};
|
|
2834
|
+
let headerParams = {
|
|
2835
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2836
|
+
"opc-request-id": listStreamSourcesRequest.opcRequestId
|
|
2837
|
+
};
|
|
2838
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2839
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamSourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
2840
|
+
if (this.logger)
|
|
2841
|
+
retrier.logger = this.logger;
|
|
2842
|
+
const request = yield oci_common_1.composeRequest({
|
|
2843
|
+
baseEndpoint: this._endpoint,
|
|
2844
|
+
defaultHeaders: this._defaultHeaders,
|
|
2845
|
+
path: "/streamSources",
|
|
2846
|
+
method: "GET",
|
|
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: "streamSourceCollection",
|
|
2857
|
+
bodyModel: model.StreamSourceCollection,
|
|
2858
|
+
type: "model.StreamSourceCollection",
|
|
2859
|
+
responseHeaders: [
|
|
2860
|
+
{
|
|
2861
|
+
value: response.headers.get("opc-request-id"),
|
|
2862
|
+
key: "opcRequestId",
|
|
2863
|
+
dataType: "string"
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
value: response.headers.get("opc-next-page"),
|
|
2867
|
+
key: "opcNextPage",
|
|
2868
|
+
dataType: "string"
|
|
2869
|
+
}
|
|
2870
|
+
]
|
|
2871
|
+
});
|
|
2872
|
+
return sdkResponse;
|
|
2873
|
+
}
|
|
2874
|
+
catch (err) {
|
|
2875
|
+
throw err;
|
|
2876
|
+
}
|
|
2877
|
+
});
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* Returns a list of visionPrivateEndpoints.
|
|
2881
|
+
*
|
|
2882
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2883
|
+
* @param ListVisionPrivateEndpointsRequest
|
|
2884
|
+
* @return ListVisionPrivateEndpointsResponse
|
|
2885
|
+
* @throws OciError when an error occurs
|
|
2886
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListVisionPrivateEndpoints.ts.html |here} to see how to use ListVisionPrivateEndpoints API.
|
|
2887
|
+
*/
|
|
2888
|
+
listVisionPrivateEndpoints(listVisionPrivateEndpointsRequest) {
|
|
2889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2890
|
+
if (this.logger)
|
|
2891
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listVisionPrivateEndpoints.");
|
|
2892
|
+
const operationName = "listVisionPrivateEndpoints";
|
|
2893
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpointCollection/ListVisionPrivateEndpoints";
|
|
2894
|
+
const pathParams = {};
|
|
2895
|
+
const queryParams = {
|
|
2896
|
+
"compartmentId": listVisionPrivateEndpointsRequest.compartmentId,
|
|
2897
|
+
"lifecycleState": listVisionPrivateEndpointsRequest.lifecycleState,
|
|
2898
|
+
"displayName": listVisionPrivateEndpointsRequest.displayName,
|
|
2899
|
+
"id": listVisionPrivateEndpointsRequest.id,
|
|
2900
|
+
"limit": listVisionPrivateEndpointsRequest.limit,
|
|
2901
|
+
"page": listVisionPrivateEndpointsRequest.page,
|
|
2902
|
+
"sortOrder": listVisionPrivateEndpointsRequest.sortOrder,
|
|
2903
|
+
"sortBy": listVisionPrivateEndpointsRequest.sortBy
|
|
2904
|
+
};
|
|
2905
|
+
let headerParams = {
|
|
2906
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2907
|
+
"opc-request-id": listVisionPrivateEndpointsRequest.opcRequestId
|
|
2908
|
+
};
|
|
2909
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2910
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVisionPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
2911
|
+
if (this.logger)
|
|
2912
|
+
retrier.logger = this.logger;
|
|
2913
|
+
const request = yield oci_common_1.composeRequest({
|
|
2914
|
+
baseEndpoint: this._endpoint,
|
|
2915
|
+
defaultHeaders: this._defaultHeaders,
|
|
2916
|
+
path: "/visionPrivateEndpoints",
|
|
2917
|
+
method: "GET",
|
|
1618
2918
|
pathParams: pathParams,
|
|
1619
2919
|
headerParams: headerParams,
|
|
1620
2920
|
queryParams: queryParams
|
|
@@ -1624,18 +2924,351 @@ class AIServiceVisionClient {
|
|
|
1624
2924
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1625
2925
|
responseObject: {},
|
|
1626
2926
|
body: yield response.json(),
|
|
1627
|
-
bodyKey: "
|
|
1628
|
-
bodyModel: model.
|
|
1629
|
-
type: "model.
|
|
2927
|
+
bodyKey: "visionPrivateEndpointCollection",
|
|
2928
|
+
bodyModel: model.VisionPrivateEndpointCollection,
|
|
2929
|
+
type: "model.VisionPrivateEndpointCollection",
|
|
2930
|
+
responseHeaders: [
|
|
2931
|
+
{
|
|
2932
|
+
value: response.headers.get("opc-request-id"),
|
|
2933
|
+
key: "opcRequestId",
|
|
2934
|
+
dataType: "string"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
value: response.headers.get("opc-next-page"),
|
|
2938
|
+
key: "opcNextPage",
|
|
2939
|
+
dataType: "string"
|
|
2940
|
+
}
|
|
2941
|
+
]
|
|
2942
|
+
});
|
|
2943
|
+
return sdkResponse;
|
|
2944
|
+
}
|
|
2945
|
+
catch (err) {
|
|
2946
|
+
throw err;
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* Returns a (paginated) list of errors for a given work request.
|
|
2952
|
+
*
|
|
2953
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2954
|
+
* @param ListWorkRequestErrorsRequest
|
|
2955
|
+
* @return ListWorkRequestErrorsResponse
|
|
2956
|
+
* @throws OciError when an error occurs
|
|
2957
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2958
|
+
*/
|
|
2959
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2961
|
+
if (this.logger)
|
|
2962
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestErrors.");
|
|
2963
|
+
const operationName = "listWorkRequestErrors";
|
|
2964
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestError/ListWorkRequestErrors";
|
|
2965
|
+
const pathParams = {
|
|
2966
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
2967
|
+
};
|
|
2968
|
+
const queryParams = {
|
|
2969
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
2970
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
2971
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
2972
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
2973
|
+
};
|
|
2974
|
+
let headerParams = {
|
|
2975
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2976
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
2977
|
+
};
|
|
2978
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2979
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2980
|
+
if (this.logger)
|
|
2981
|
+
retrier.logger = this.logger;
|
|
2982
|
+
const request = yield oci_common_1.composeRequest({
|
|
2983
|
+
baseEndpoint: this._endpoint,
|
|
2984
|
+
defaultHeaders: this._defaultHeaders,
|
|
2985
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
2986
|
+
method: "GET",
|
|
2987
|
+
pathParams: pathParams,
|
|
2988
|
+
headerParams: headerParams,
|
|
2989
|
+
queryParams: queryParams
|
|
2990
|
+
});
|
|
2991
|
+
try {
|
|
2992
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2993
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2994
|
+
responseObject: {},
|
|
2995
|
+
body: yield response.json(),
|
|
2996
|
+
bodyKey: "workRequestErrorCollection",
|
|
2997
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
2998
|
+
type: "model.WorkRequestErrorCollection",
|
|
2999
|
+
responseHeaders: [
|
|
3000
|
+
{
|
|
3001
|
+
value: response.headers.get("opc-next-page"),
|
|
3002
|
+
key: "opcNextPage",
|
|
3003
|
+
dataType: "string"
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
value: response.headers.get("opc-request-id"),
|
|
3007
|
+
key: "opcRequestId",
|
|
3008
|
+
dataType: "string"
|
|
3009
|
+
}
|
|
3010
|
+
]
|
|
3011
|
+
});
|
|
3012
|
+
return sdkResponse;
|
|
3013
|
+
}
|
|
3014
|
+
catch (err) {
|
|
3015
|
+
throw err;
|
|
3016
|
+
}
|
|
3017
|
+
});
|
|
3018
|
+
}
|
|
3019
|
+
/**
|
|
3020
|
+
* Return a (paginated) list of logs for a given work request.
|
|
3021
|
+
*
|
|
3022
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3023
|
+
* @param ListWorkRequestLogsRequest
|
|
3024
|
+
* @return ListWorkRequestLogsResponse
|
|
3025
|
+
* @throws OciError when an error occurs
|
|
3026
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3027
|
+
*/
|
|
3028
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3030
|
+
if (this.logger)
|
|
3031
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestLogs.");
|
|
3032
|
+
const operationName = "listWorkRequestLogs";
|
|
3033
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestLogEntry/ListWorkRequestLogs";
|
|
3034
|
+
const pathParams = {
|
|
3035
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
3036
|
+
};
|
|
3037
|
+
const queryParams = {
|
|
3038
|
+
"page": listWorkRequestLogsRequest.page,
|
|
3039
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
3040
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
3041
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
3042
|
+
};
|
|
3043
|
+
let headerParams = {
|
|
3044
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3045
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
3046
|
+
};
|
|
3047
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3048
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
3049
|
+
if (this.logger)
|
|
3050
|
+
retrier.logger = this.logger;
|
|
3051
|
+
const request = yield oci_common_1.composeRequest({
|
|
3052
|
+
baseEndpoint: this._endpoint,
|
|
3053
|
+
defaultHeaders: this._defaultHeaders,
|
|
3054
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
3055
|
+
method: "GET",
|
|
3056
|
+
pathParams: pathParams,
|
|
3057
|
+
headerParams: headerParams,
|
|
3058
|
+
queryParams: queryParams
|
|
3059
|
+
});
|
|
3060
|
+
try {
|
|
3061
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3062
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3063
|
+
responseObject: {},
|
|
3064
|
+
body: yield response.json(),
|
|
3065
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
3066
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
3067
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
3068
|
+
responseHeaders: [
|
|
3069
|
+
{
|
|
3070
|
+
value: response.headers.get("opc-next-page"),
|
|
3071
|
+
key: "opcNextPage",
|
|
3072
|
+
dataType: "string"
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
value: response.headers.get("opc-request-id"),
|
|
3076
|
+
key: "opcRequestId",
|
|
3077
|
+
dataType: "string"
|
|
3078
|
+
}
|
|
3079
|
+
]
|
|
3080
|
+
});
|
|
3081
|
+
return sdkResponse;
|
|
3082
|
+
}
|
|
3083
|
+
catch (err) {
|
|
3084
|
+
throw err;
|
|
3085
|
+
}
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
/**
|
|
3089
|
+
* Lists the work requests in a compartment.
|
|
3090
|
+
*
|
|
3091
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3092
|
+
* @param ListWorkRequestsRequest
|
|
3093
|
+
* @return ListWorkRequestsResponse
|
|
3094
|
+
* @throws OciError when an error occurs
|
|
3095
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
3096
|
+
*/
|
|
3097
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
3098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3099
|
+
if (this.logger)
|
|
3100
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequests.");
|
|
3101
|
+
const operationName = "listWorkRequests";
|
|
3102
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/ListWorkRequests";
|
|
3103
|
+
const pathParams = {};
|
|
3104
|
+
const queryParams = {
|
|
3105
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
3106
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
3107
|
+
"status": listWorkRequestsRequest.status,
|
|
3108
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
3109
|
+
"page": listWorkRequestsRequest.page,
|
|
3110
|
+
"limit": listWorkRequestsRequest.limit,
|
|
3111
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
3112
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
3113
|
+
};
|
|
3114
|
+
let headerParams = {
|
|
3115
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3116
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
3117
|
+
};
|
|
3118
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3119
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3120
|
+
if (this.logger)
|
|
3121
|
+
retrier.logger = this.logger;
|
|
3122
|
+
const request = yield oci_common_1.composeRequest({
|
|
3123
|
+
baseEndpoint: this._endpoint,
|
|
3124
|
+
defaultHeaders: this._defaultHeaders,
|
|
3125
|
+
path: "/workRequests",
|
|
3126
|
+
method: "GET",
|
|
3127
|
+
pathParams: pathParams,
|
|
3128
|
+
headerParams: headerParams,
|
|
3129
|
+
queryParams: queryParams
|
|
3130
|
+
});
|
|
3131
|
+
try {
|
|
3132
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3133
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3134
|
+
responseObject: {},
|
|
3135
|
+
body: yield response.json(),
|
|
3136
|
+
bodyKey: "workRequestSummaryCollection",
|
|
3137
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
3138
|
+
type: "model.WorkRequestSummaryCollection",
|
|
3139
|
+
responseHeaders: [
|
|
3140
|
+
{
|
|
3141
|
+
value: response.headers.get("opc-request-id"),
|
|
3142
|
+
key: "opcRequestId",
|
|
3143
|
+
dataType: "string"
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
value: response.headers.get("opc-next-page"),
|
|
3147
|
+
key: "opcNextPage",
|
|
3148
|
+
dataType: "string"
|
|
3149
|
+
}
|
|
3150
|
+
]
|
|
3151
|
+
});
|
|
3152
|
+
return sdkResponse;
|
|
3153
|
+
}
|
|
3154
|
+
catch (err) {
|
|
3155
|
+
throw err;
|
|
3156
|
+
}
|
|
3157
|
+
});
|
|
3158
|
+
}
|
|
3159
|
+
/**
|
|
3160
|
+
* End a stream analysis Run.
|
|
3161
|
+
*
|
|
3162
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3163
|
+
* @param StartStreamJobRequest
|
|
3164
|
+
* @return StartStreamJobResponse
|
|
3165
|
+
* @throws OciError when an error occurs
|
|
3166
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/StartStreamJob.ts.html |here} to see how to use StartStreamJob API.
|
|
3167
|
+
*/
|
|
3168
|
+
startStreamJob(startStreamJobRequest) {
|
|
3169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3170
|
+
if (this.logger)
|
|
3171
|
+
this.logger.debug("Calling operation AIServiceVisionClient#startStreamJob.");
|
|
3172
|
+
const operationName = "startStreamJob";
|
|
3173
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/StartStreamJob";
|
|
3174
|
+
const pathParams = {
|
|
3175
|
+
"{streamJobId}": startStreamJobRequest.streamJobId
|
|
3176
|
+
};
|
|
3177
|
+
const queryParams = {};
|
|
3178
|
+
let headerParams = {
|
|
3179
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3180
|
+
"opc-retry-token": startStreamJobRequest.opcRetryToken,
|
|
3181
|
+
"opc-request-id": startStreamJobRequest.opcRequestId,
|
|
3182
|
+
"if-match": startStreamJobRequest.ifMatch
|
|
3183
|
+
};
|
|
3184
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3185
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
3186
|
+
if (this.logger)
|
|
3187
|
+
retrier.logger = this.logger;
|
|
3188
|
+
const request = yield oci_common_1.composeRequest({
|
|
3189
|
+
baseEndpoint: this._endpoint,
|
|
3190
|
+
defaultHeaders: this._defaultHeaders,
|
|
3191
|
+
path: "/streamJobs/{streamJobId}/actions/start",
|
|
3192
|
+
method: "POST",
|
|
3193
|
+
pathParams: pathParams,
|
|
3194
|
+
headerParams: headerParams,
|
|
3195
|
+
queryParams: queryParams
|
|
3196
|
+
});
|
|
3197
|
+
try {
|
|
3198
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3199
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3200
|
+
responseObject: {},
|
|
1630
3201
|
responseHeaders: [
|
|
3202
|
+
{
|
|
3203
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3204
|
+
key: "opcWorkRequestId",
|
|
3205
|
+
dataType: "string"
|
|
3206
|
+
},
|
|
1631
3207
|
{
|
|
1632
3208
|
value: response.headers.get("opc-request-id"),
|
|
1633
3209
|
key: "opcRequestId",
|
|
1634
3210
|
dataType: "string"
|
|
3211
|
+
}
|
|
3212
|
+
]
|
|
3213
|
+
});
|
|
3214
|
+
return sdkResponse;
|
|
3215
|
+
}
|
|
3216
|
+
catch (err) {
|
|
3217
|
+
throw err;
|
|
3218
|
+
}
|
|
3219
|
+
});
|
|
3220
|
+
}
|
|
3221
|
+
/**
|
|
3222
|
+
* End a stream analysis Run.
|
|
3223
|
+
*
|
|
3224
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3225
|
+
* @param StopStreamJobRequest
|
|
3226
|
+
* @return StopStreamJobResponse
|
|
3227
|
+
* @throws OciError when an error occurs
|
|
3228
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/StopStreamJob.ts.html |here} to see how to use StopStreamJob API.
|
|
3229
|
+
*/
|
|
3230
|
+
stopStreamJob(stopStreamJobRequest) {
|
|
3231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3232
|
+
if (this.logger)
|
|
3233
|
+
this.logger.debug("Calling operation AIServiceVisionClient#stopStreamJob.");
|
|
3234
|
+
const operationName = "stopStreamJob";
|
|
3235
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/StopStreamJob";
|
|
3236
|
+
const pathParams = {
|
|
3237
|
+
"{streamJobId}": stopStreamJobRequest.streamJobId
|
|
3238
|
+
};
|
|
3239
|
+
const queryParams = {};
|
|
3240
|
+
let headerParams = {
|
|
3241
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3242
|
+
"opc-retry-token": stopStreamJobRequest.opcRetryToken,
|
|
3243
|
+
"if-match": stopStreamJobRequest.ifMatch,
|
|
3244
|
+
"opc-request-id": stopStreamJobRequest.opcRequestId
|
|
3245
|
+
};
|
|
3246
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3247
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
3248
|
+
if (this.logger)
|
|
3249
|
+
retrier.logger = this.logger;
|
|
3250
|
+
const request = yield oci_common_1.composeRequest({
|
|
3251
|
+
baseEndpoint: this._endpoint,
|
|
3252
|
+
defaultHeaders: this._defaultHeaders,
|
|
3253
|
+
path: "/streamJobs/{streamJobId}/actions/stop",
|
|
3254
|
+
method: "POST",
|
|
3255
|
+
pathParams: pathParams,
|
|
3256
|
+
headerParams: headerParams,
|
|
3257
|
+
queryParams: queryParams
|
|
3258
|
+
});
|
|
3259
|
+
try {
|
|
3260
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3261
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3262
|
+
responseObject: {},
|
|
3263
|
+
responseHeaders: [
|
|
3264
|
+
{
|
|
3265
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3266
|
+
key: "opcWorkRequestId",
|
|
3267
|
+
dataType: "string"
|
|
1635
3268
|
},
|
|
1636
3269
|
{
|
|
1637
|
-
value: response.headers.get("opc-
|
|
1638
|
-
key: "
|
|
3270
|
+
value: response.headers.get("opc-request-id"),
|
|
3271
|
+
key: "opcRequestId",
|
|
1639
3272
|
dataType: "string"
|
|
1640
3273
|
}
|
|
1641
3274
|
]
|
|
@@ -1648,42 +3281,38 @@ class AIServiceVisionClient {
|
|
|
1648
3281
|
});
|
|
1649
3282
|
}
|
|
1650
3283
|
/**
|
|
1651
|
-
*
|
|
1652
|
-
*
|
|
3284
|
+
* Updates the model metadata.
|
|
1653
3285
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1654
|
-
* @param
|
|
1655
|
-
* @return
|
|
3286
|
+
* @param UpdateModelRequest
|
|
3287
|
+
* @return UpdateModelResponse
|
|
1656
3288
|
* @throws OciError when an error occurs
|
|
1657
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
3289
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
1658
3290
|
*/
|
|
1659
|
-
|
|
3291
|
+
updateModel(updateModelRequest) {
|
|
1660
3292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1661
3293
|
if (this.logger)
|
|
1662
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1663
|
-
const operationName = "
|
|
1664
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
3294
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateModel.");
|
|
3295
|
+
const operationName = "updateModel";
|
|
3296
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/UpdateModel";
|
|
1665
3297
|
const pathParams = {
|
|
1666
|
-
"{
|
|
1667
|
-
};
|
|
1668
|
-
const queryParams = {
|
|
1669
|
-
"page": listWorkRequestErrorsRequest.page,
|
|
1670
|
-
"limit": listWorkRequestErrorsRequest.limit,
|
|
1671
|
-
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1672
|
-
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
3298
|
+
"{modelId}": updateModelRequest.modelId
|
|
1673
3299
|
};
|
|
3300
|
+
const queryParams = {};
|
|
1674
3301
|
let headerParams = {
|
|
1675
3302
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1676
|
-
"
|
|
3303
|
+
"if-match": updateModelRequest.ifMatch,
|
|
3304
|
+
"opc-request-id": updateModelRequest.opcRequestId
|
|
1677
3305
|
};
|
|
1678
3306
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1679
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3307
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1680
3308
|
if (this.logger)
|
|
1681
3309
|
retrier.logger = this.logger;
|
|
1682
3310
|
const request = yield oci_common_1.composeRequest({
|
|
1683
3311
|
baseEndpoint: this._endpoint,
|
|
1684
3312
|
defaultHeaders: this._defaultHeaders,
|
|
1685
|
-
path: "/
|
|
1686
|
-
method: "
|
|
3313
|
+
path: "/models/{modelId}",
|
|
3314
|
+
method: "PUT",
|
|
3315
|
+
bodyContent: common.ObjectSerializer.serialize(updateModelRequest.updateModelDetails, "UpdateModelDetails", model.UpdateModelDetails.getJsonObj),
|
|
1687
3316
|
pathParams: pathParams,
|
|
1688
3317
|
headerParams: headerParams,
|
|
1689
3318
|
queryParams: queryParams
|
|
@@ -1692,14 +3321,10 @@ class AIServiceVisionClient {
|
|
|
1692
3321
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1693
3322
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1694
3323
|
responseObject: {},
|
|
1695
|
-
body: yield response.json(),
|
|
1696
|
-
bodyKey: "workRequestErrorCollection",
|
|
1697
|
-
bodyModel: model.WorkRequestErrorCollection,
|
|
1698
|
-
type: "model.WorkRequestErrorCollection",
|
|
1699
3324
|
responseHeaders: [
|
|
1700
3325
|
{
|
|
1701
|
-
value: response.headers.get("opc-
|
|
1702
|
-
key: "
|
|
3326
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3327
|
+
key: "opcWorkRequestId",
|
|
1703
3328
|
dataType: "string"
|
|
1704
3329
|
},
|
|
1705
3330
|
{
|
|
@@ -1717,42 +3342,38 @@ class AIServiceVisionClient {
|
|
|
1717
3342
|
});
|
|
1718
3343
|
}
|
|
1719
3344
|
/**
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
3345
|
+
* Update the project metadata.
|
|
1722
3346
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1723
|
-
* @param
|
|
1724
|
-
* @return
|
|
3347
|
+
* @param UpdateProjectRequest
|
|
3348
|
+
* @return UpdateProjectResponse
|
|
1725
3349
|
* @throws OciError when an error occurs
|
|
1726
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
3350
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
1727
3351
|
*/
|
|
1728
|
-
|
|
3352
|
+
updateProject(updateProjectRequest) {
|
|
1729
3353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1730
3354
|
if (this.logger)
|
|
1731
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1732
|
-
const operationName = "
|
|
1733
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
3355
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateProject.");
|
|
3356
|
+
const operationName = "updateProject";
|
|
3357
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/UpdateProject";
|
|
1734
3358
|
const pathParams = {
|
|
1735
|
-
"{
|
|
1736
|
-
};
|
|
1737
|
-
const queryParams = {
|
|
1738
|
-
"page": listWorkRequestLogsRequest.page,
|
|
1739
|
-
"limit": listWorkRequestLogsRequest.limit,
|
|
1740
|
-
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1741
|
-
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
3359
|
+
"{projectId}": updateProjectRequest.projectId
|
|
1742
3360
|
};
|
|
3361
|
+
const queryParams = {};
|
|
1743
3362
|
let headerParams = {
|
|
1744
3363
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1745
|
-
"
|
|
3364
|
+
"if-match": updateProjectRequest.ifMatch,
|
|
3365
|
+
"opc-request-id": updateProjectRequest.opcRequestId
|
|
1746
3366
|
};
|
|
1747
3367
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1748
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3368
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1749
3369
|
if (this.logger)
|
|
1750
3370
|
retrier.logger = this.logger;
|
|
1751
3371
|
const request = yield oci_common_1.composeRequest({
|
|
1752
3372
|
baseEndpoint: this._endpoint,
|
|
1753
3373
|
defaultHeaders: this._defaultHeaders,
|
|
1754
|
-
path: "/
|
|
1755
|
-
method: "
|
|
3374
|
+
path: "/projects/{projectId}",
|
|
3375
|
+
method: "PUT",
|
|
3376
|
+
bodyContent: common.ObjectSerializer.serialize(updateProjectRequest.updateProjectDetails, "UpdateProjectDetails", model.UpdateProjectDetails.getJsonObj),
|
|
1756
3377
|
pathParams: pathParams,
|
|
1757
3378
|
headerParams: headerParams,
|
|
1758
3379
|
queryParams: queryParams
|
|
@@ -1761,14 +3382,10 @@ class AIServiceVisionClient {
|
|
|
1761
3382
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1762
3383
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1763
3384
|
responseObject: {},
|
|
1764
|
-
body: yield response.json(),
|
|
1765
|
-
bodyKey: "workRequestLogEntryCollection",
|
|
1766
|
-
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1767
|
-
type: "model.WorkRequestLogEntryCollection",
|
|
1768
3385
|
responseHeaders: [
|
|
1769
3386
|
{
|
|
1770
|
-
value: response.headers.get("opc-
|
|
1771
|
-
key: "
|
|
3387
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3388
|
+
key: "opcWorkRequestId",
|
|
1772
3389
|
dataType: "string"
|
|
1773
3390
|
},
|
|
1774
3391
|
{
|
|
@@ -1786,44 +3403,39 @@ class AIServiceVisionClient {
|
|
|
1786
3403
|
});
|
|
1787
3404
|
}
|
|
1788
3405
|
/**
|
|
1789
|
-
*
|
|
3406
|
+
* Update a streamGroup
|
|
1790
3407
|
*
|
|
1791
3408
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1792
|
-
* @param
|
|
1793
|
-
* @return
|
|
3409
|
+
* @param UpdateStreamGroupRequest
|
|
3410
|
+
* @return UpdateStreamGroupResponse
|
|
1794
3411
|
* @throws OciError when an error occurs
|
|
1795
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
3412
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateStreamGroup.ts.html |here} to see how to use UpdateStreamGroup API.
|
|
1796
3413
|
*/
|
|
1797
|
-
|
|
3414
|
+
updateStreamGroup(updateStreamGroupRequest) {
|
|
1798
3415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1799
3416
|
if (this.logger)
|
|
1800
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1801
|
-
const operationName = "
|
|
1802
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
1803
|
-
const pathParams = {
|
|
1804
|
-
|
|
1805
|
-
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1806
|
-
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1807
|
-
"status": listWorkRequestsRequest.status,
|
|
1808
|
-
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1809
|
-
"page": listWorkRequestsRequest.page,
|
|
1810
|
-
"limit": listWorkRequestsRequest.limit,
|
|
1811
|
-
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1812
|
-
"sortBy": listWorkRequestsRequest.sortBy
|
|
3417
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateStreamGroup.");
|
|
3418
|
+
const operationName = "updateStreamGroup";
|
|
3419
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/UpdateStreamGroup";
|
|
3420
|
+
const pathParams = {
|
|
3421
|
+
"{streamGroupId}": updateStreamGroupRequest.streamGroupId
|
|
1813
3422
|
};
|
|
3423
|
+
const queryParams = {};
|
|
1814
3424
|
let headerParams = {
|
|
1815
3425
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1816
|
-
"
|
|
3426
|
+
"if-match": updateStreamGroupRequest.ifMatch,
|
|
3427
|
+
"opc-request-id": updateStreamGroupRequest.opcRequestId
|
|
1817
3428
|
};
|
|
1818
3429
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1819
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3430
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
1820
3431
|
if (this.logger)
|
|
1821
3432
|
retrier.logger = this.logger;
|
|
1822
3433
|
const request = yield oci_common_1.composeRequest({
|
|
1823
3434
|
baseEndpoint: this._endpoint,
|
|
1824
3435
|
defaultHeaders: this._defaultHeaders,
|
|
1825
|
-
path: "/
|
|
1826
|
-
method: "
|
|
3436
|
+
path: "/streamGroups/{streamGroupId}",
|
|
3437
|
+
method: "PUT",
|
|
3438
|
+
bodyContent: common.ObjectSerializer.serialize(updateStreamGroupRequest.updateStreamGroupDetails, "UpdateStreamGroupDetails", model.UpdateStreamGroupDetails.getJsonObj),
|
|
1827
3439
|
pathParams: pathParams,
|
|
1828
3440
|
headerParams: headerParams,
|
|
1829
3441
|
queryParams: queryParams
|
|
@@ -1832,19 +3444,77 @@ class AIServiceVisionClient {
|
|
|
1832
3444
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1833
3445
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1834
3446
|
responseObject: {},
|
|
1835
|
-
body: yield response.json(),
|
|
1836
|
-
bodyKey: "workRequestSummaryCollection",
|
|
1837
|
-
bodyModel: model.WorkRequestSummaryCollection,
|
|
1838
|
-
type: "model.WorkRequestSummaryCollection",
|
|
1839
3447
|
responseHeaders: [
|
|
3448
|
+
{
|
|
3449
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3450
|
+
key: "opcWorkRequestId",
|
|
3451
|
+
dataType: "string"
|
|
3452
|
+
},
|
|
1840
3453
|
{
|
|
1841
3454
|
value: response.headers.get("opc-request-id"),
|
|
1842
3455
|
key: "opcRequestId",
|
|
1843
3456
|
dataType: "string"
|
|
3457
|
+
}
|
|
3458
|
+
]
|
|
3459
|
+
});
|
|
3460
|
+
return sdkResponse;
|
|
3461
|
+
}
|
|
3462
|
+
catch (err) {
|
|
3463
|
+
throw err;
|
|
3464
|
+
}
|
|
3465
|
+
});
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* Create a stream analysis job with given inputs and features.
|
|
3469
|
+
*
|
|
3470
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3471
|
+
* @param UpdateStreamJobRequest
|
|
3472
|
+
* @return UpdateStreamJobResponse
|
|
3473
|
+
* @throws OciError when an error occurs
|
|
3474
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateStreamJob.ts.html |here} to see how to use UpdateStreamJob API.
|
|
3475
|
+
*/
|
|
3476
|
+
updateStreamJob(updateStreamJobRequest) {
|
|
3477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3478
|
+
if (this.logger)
|
|
3479
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateStreamJob.");
|
|
3480
|
+
const operationName = "updateStreamJob";
|
|
3481
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/UpdateStreamJob";
|
|
3482
|
+
const pathParams = {
|
|
3483
|
+
"{streamJobId}": updateStreamJobRequest.streamJobId
|
|
3484
|
+
};
|
|
3485
|
+
const queryParams = {};
|
|
3486
|
+
let headerParams = {
|
|
3487
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3488
|
+
"opc-request-id": updateStreamJobRequest.opcRequestId,
|
|
3489
|
+
"if-match": updateStreamJobRequest.ifMatch
|
|
3490
|
+
};
|
|
3491
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3492
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamJobRequest.retryConfiguration, specRetryConfiguration);
|
|
3493
|
+
if (this.logger)
|
|
3494
|
+
retrier.logger = this.logger;
|
|
3495
|
+
const request = yield oci_common_1.composeRequest({
|
|
3496
|
+
baseEndpoint: this._endpoint,
|
|
3497
|
+
defaultHeaders: this._defaultHeaders,
|
|
3498
|
+
path: "/streamJobs/{streamJobId}",
|
|
3499
|
+
method: "PUT",
|
|
3500
|
+
bodyContent: common.ObjectSerializer.serialize(updateStreamJobRequest.updateStreamJobDetails, "UpdateStreamJobDetails", model.UpdateStreamJobDetails.getJsonObj),
|
|
3501
|
+
pathParams: pathParams,
|
|
3502
|
+
headerParams: headerParams,
|
|
3503
|
+
queryParams: queryParams
|
|
3504
|
+
});
|
|
3505
|
+
try {
|
|
3506
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3507
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3508
|
+
responseObject: {},
|
|
3509
|
+
responseHeaders: [
|
|
3510
|
+
{
|
|
3511
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3512
|
+
key: "opcWorkRequestId",
|
|
3513
|
+
dataType: "string"
|
|
1844
3514
|
},
|
|
1845
3515
|
{
|
|
1846
|
-
value: response.headers.get("opc-
|
|
1847
|
-
key: "
|
|
3516
|
+
value: response.headers.get("opc-request-id"),
|
|
3517
|
+
key: "opcRequestId",
|
|
1848
3518
|
dataType: "string"
|
|
1849
3519
|
}
|
|
1850
3520
|
]
|
|
@@ -1857,38 +3527,39 @@ class AIServiceVisionClient {
|
|
|
1857
3527
|
});
|
|
1858
3528
|
}
|
|
1859
3529
|
/**
|
|
1860
|
-
*
|
|
3530
|
+
* Update a streamSource
|
|
3531
|
+
*
|
|
1861
3532
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1862
|
-
* @param
|
|
1863
|
-
* @return
|
|
3533
|
+
* @param UpdateStreamSourceRequest
|
|
3534
|
+
* @return UpdateStreamSourceResponse
|
|
1864
3535
|
* @throws OciError when an error occurs
|
|
1865
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
3536
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateStreamSource.ts.html |here} to see how to use UpdateStreamSource API.
|
|
1866
3537
|
*/
|
|
1867
|
-
|
|
3538
|
+
updateStreamSource(updateStreamSourceRequest) {
|
|
1868
3539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1869
3540
|
if (this.logger)
|
|
1870
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1871
|
-
const operationName = "
|
|
1872
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
3541
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateStreamSource.");
|
|
3542
|
+
const operationName = "updateStreamSource";
|
|
3543
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/UpdateStreamSource";
|
|
1873
3544
|
const pathParams = {
|
|
1874
|
-
"{
|
|
3545
|
+
"{streamSourceId}": updateStreamSourceRequest.streamSourceId
|
|
1875
3546
|
};
|
|
1876
3547
|
const queryParams = {};
|
|
1877
3548
|
let headerParams = {
|
|
1878
3549
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1879
|
-
"if-match":
|
|
1880
|
-
"opc-request-id":
|
|
3550
|
+
"if-match": updateStreamSourceRequest.ifMatch,
|
|
3551
|
+
"opc-request-id": updateStreamSourceRequest.opcRequestId
|
|
1881
3552
|
};
|
|
1882
3553
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1883
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3554
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamSourceRequest.retryConfiguration, specRetryConfiguration);
|
|
1884
3555
|
if (this.logger)
|
|
1885
3556
|
retrier.logger = this.logger;
|
|
1886
3557
|
const request = yield oci_common_1.composeRequest({
|
|
1887
3558
|
baseEndpoint: this._endpoint,
|
|
1888
3559
|
defaultHeaders: this._defaultHeaders,
|
|
1889
|
-
path: "/
|
|
3560
|
+
path: "/streamSources/{streamSourceId}",
|
|
1890
3561
|
method: "PUT",
|
|
1891
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
3562
|
+
bodyContent: common.ObjectSerializer.serialize(updateStreamSourceRequest.updateStreamSourceDetails, "UpdateStreamSourceDetails", model.UpdateStreamSourceDetails.getJsonObj),
|
|
1892
3563
|
pathParams: pathParams,
|
|
1893
3564
|
headerParams: headerParams,
|
|
1894
3565
|
queryParams: queryParams
|
|
@@ -1918,38 +3589,38 @@ class AIServiceVisionClient {
|
|
|
1918
3589
|
});
|
|
1919
3590
|
}
|
|
1920
3591
|
/**
|
|
1921
|
-
* Update the
|
|
3592
|
+
* Update the visionPrivateEndpoint metadata.
|
|
1922
3593
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1923
|
-
* @param
|
|
1924
|
-
* @return
|
|
3594
|
+
* @param UpdateVisionPrivateEndpointRequest
|
|
3595
|
+
* @return UpdateVisionPrivateEndpointResponse
|
|
1925
3596
|
* @throws OciError when an error occurs
|
|
1926
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/
|
|
3597
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/UpdateVisionPrivateEndpoint.ts.html |here} to see how to use UpdateVisionPrivateEndpoint API.
|
|
1927
3598
|
*/
|
|
1928
|
-
|
|
3599
|
+
updateVisionPrivateEndpoint(updateVisionPrivateEndpointRequest) {
|
|
1929
3600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1930
3601
|
if (this.logger)
|
|
1931
|
-
this.logger.debug("Calling operation AIServiceVisionClient#
|
|
1932
|
-
const operationName = "
|
|
1933
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/
|
|
3602
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateVisionPrivateEndpoint.");
|
|
3603
|
+
const operationName = "updateVisionPrivateEndpoint";
|
|
3604
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpoint/UpdateVisionPrivateEndpoint";
|
|
1934
3605
|
const pathParams = {
|
|
1935
|
-
"{
|
|
3606
|
+
"{visionPrivateEndpointId}": updateVisionPrivateEndpointRequest.visionPrivateEndpointId
|
|
1936
3607
|
};
|
|
1937
3608
|
const queryParams = {};
|
|
1938
3609
|
let headerParams = {
|
|
1939
3610
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1940
|
-
"if-match":
|
|
1941
|
-
"opc-request-id":
|
|
3611
|
+
"if-match": updateVisionPrivateEndpointRequest.ifMatch,
|
|
3612
|
+
"opc-request-id": updateVisionPrivateEndpointRequest.opcRequestId
|
|
1942
3613
|
};
|
|
1943
3614
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1944
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3615
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVisionPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1945
3616
|
if (this.logger)
|
|
1946
3617
|
retrier.logger = this.logger;
|
|
1947
3618
|
const request = yield oci_common_1.composeRequest({
|
|
1948
3619
|
baseEndpoint: this._endpoint,
|
|
1949
3620
|
defaultHeaders: this._defaultHeaders,
|
|
1950
|
-
path: "/
|
|
3621
|
+
path: "/visionPrivateEndpoints/{visionPrivateEndpointId}",
|
|
1951
3622
|
method: "PUT",
|
|
1952
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
3623
|
+
bodyContent: common.ObjectSerializer.serialize(updateVisionPrivateEndpointRequest.updateVisionPrivateEndpointDetails, "UpdateVisionPrivateEndpointDetails", model.UpdateVisionPrivateEndpointDetails.getJsonObj),
|
|
1953
3624
|
pathParams: pathParams,
|
|
1954
3625
|
headerParams: headerParams,
|
|
1955
3626
|
queryParams: queryParams
|