oci-aivision 2.14.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/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +1521 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/aiservicevision-waiter.d.ts +60 -0
- package/lib/aiservicevision-waiter.js +112 -0
- package/lib/aiservicevision-waiter.js.map +1 -0
- package/lib/client.d.ts +310 -0
- package/lib/client.js +1688 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/analyze-document-details.d.ts +40 -0
- package/lib/model/analyze-document-details.js +71 -0
- package/lib/model/analyze-document-details.js.map +1 -0
- package/lib/model/analyze-document-result.d.ts +63 -0
- package/lib/model/analyze-document-result.js +97 -0
- package/lib/model/analyze-document-result.js.map +1 -0
- package/lib/model/analyze-image-details.d.ts +31 -0
- package/lib/model/analyze-image-details.js +63 -0
- package/lib/model/analyze-image-details.js.map +1 -0
- package/lib/model/analyze-image-result.d.ts +51 -0
- package/lib/model/analyze-image-result.js +95 -0
- package/lib/model/analyze-image-result.js.map +1 -0
- package/lib/model/bounding-polygon.d.ts +28 -0
- package/lib/model/bounding-polygon.js +61 -0
- package/lib/model/bounding-polygon.js.map +1 -0
- package/lib/model/cell.d.ts +43 -0
- package/lib/model/cell.js +57 -0
- package/lib/model/cell.js.map +1 -0
- package/lib/model/change-model-compartment-details.d.ts +27 -0
- package/lib/model/change-model-compartment-details.js +29 -0
- package/lib/model/change-model-compartment-details.js.map +1 -0
- package/lib/model/change-project-compartment-details.d.ts +27 -0
- package/lib/model/change-project-compartment-details.js +29 -0
- package/lib/model/change-project-compartment-details.js.map +1 -0
- package/lib/model/create-document-job-details.d.ts +48 -0
- package/lib/model/create-document-job-details.js +73 -0
- package/lib/model/create-document-job-details.js.map +1 -0
- package/lib/model/create-image-job-details.d.ts +40 -0
- package/lib/model/create-image-job-details.js +73 -0
- package/lib/model/create-image-job-details.js.map +1 -0
- package/lib/model/create-model-details.d.ts +75 -0
- package/lib/model/create-model-details.js +69 -0
- package/lib/model/create-model-details.js.map +1 -0
- package/lib/model/create-project-details.d.ts +51 -0
- package/lib/model/create-project-details.js +29 -0
- package/lib/model/create-project-details.js.map +1 -0
- package/lib/model/data-science-labeling-dataset.d.ts +28 -0
- package/lib/model/data-science-labeling-dataset.js +52 -0
- package/lib/model/data-science-labeling-dataset.js.map +1 -0
- package/lib/model/dataset.d.ts +22 -0
- package/lib/model/dataset.js +69 -0
- package/lib/model/dataset.js.map +1 -0
- package/lib/model/detected-document-type.d.ts +29 -0
- package/lib/model/detected-document-type.js +29 -0
- package/lib/model/detected-document-type.js.map +1 -0
- package/lib/model/detected-language.d.ts +30 -0
- package/lib/model/detected-language.js +29 -0
- package/lib/model/detected-language.js.map +1 -0
- package/lib/model/dimensions.d.ts +42 -0
- package/lib/model/dimensions.js +39 -0
- package/lib/model/dimensions.js.map +1 -0
- package/lib/model/document-classification-feature.d.ts +32 -0
- package/lib/model/document-classification-feature.js +54 -0
- package/lib/model/document-classification-feature.js.map +1 -0
- package/lib/model/document-details.d.ts +22 -0
- package/lib/model/document-details.js +69 -0
- package/lib/model/document-details.js.map +1 -0
- package/lib/model/document-feature.d.ts +22 -0
- package/lib/model/document-feature.js +81 -0
- package/lib/model/document-feature.js.map +1 -0
- package/lib/model/document-field.d.ts +40 -0
- package/lib/model/document-field.js +75 -0
- package/lib/model/document-field.js.map +1 -0
- package/lib/model/document-job.d.ts +98 -0
- package/lib/model/document-job.js +97 -0
- package/lib/model/document-job.js.map +1 -0
- package/lib/model/document-key-value-detection-feature.d.ts +24 -0
- package/lib/model/document-key-value-detection-feature.js +54 -0
- package/lib/model/document-key-value-detection-feature.js.map +1 -0
- package/lib/model/document-language-classification-feature.d.ts +28 -0
- package/lib/model/document-language-classification-feature.js +54 -0
- package/lib/model/document-language-classification-feature.js.map +1 -0
- package/lib/model/document-language.d.ts +51 -0
- package/lib/model/document-language.js +62 -0
- package/lib/model/document-language.js.map +1 -0
- package/lib/model/document-metadata.d.ts +29 -0
- package/lib/model/document-metadata.js +29 -0
- package/lib/model/document-metadata.js.map +1 -0
- package/lib/model/document-table-detection-feature.d.ts +24 -0
- package/lib/model/document-table-detection-feature.js +54 -0
- package/lib/model/document-table-detection-feature.js.map +1 -0
- package/lib/model/document-text-detection-feature.d.ts +28 -0
- package/lib/model/document-text-detection-feature.js +54 -0
- package/lib/model/document-text-detection-feature.js.map +1 -0
- package/lib/model/document-type.d.ts +36 -0
- package/lib/model/document-type.js +47 -0
- package/lib/model/document-type.js.map +1 -0
- package/lib/model/field-label.d.ts +29 -0
- package/lib/model/field-label.js +29 -0
- package/lib/model/field-label.js.map +1 -0
- package/lib/model/field-name.d.ts +35 -0
- package/lib/model/field-name.js +57 -0
- package/lib/model/field-name.js.map +1 -0
- package/lib/model/field-value.d.ts +36 -0
- package/lib/model/field-value.js +97 -0
- package/lib/model/field-value.js.map +1 -0
- package/lib/model/image-classification-feature.d.ts +32 -0
- package/lib/model/image-classification-feature.js +54 -0
- package/lib/model/image-classification-feature.js.map +1 -0
- package/lib/model/image-details.d.ts +22 -0
- package/lib/model/image-details.js +69 -0
- package/lib/model/image-details.js.map +1 -0
- package/lib/model/image-feature.d.ts +22 -0
- package/lib/model/image-feature.js +73 -0
- package/lib/model/image-feature.js.map +1 -0
- package/lib/model/image-job.d.ts +90 -0
- package/lib/model/image-job.js +97 -0
- package/lib/model/image-job.js.map +1 -0
- package/lib/model/image-object-detection-feature.d.ts +32 -0
- package/lib/model/image-object-detection-feature.js +54 -0
- package/lib/model/image-object-detection-feature.js.map +1 -0
- package/lib/model/image-object.d.ts +31 -0
- package/lib/model/image-object.js +57 -0
- package/lib/model/image-object.js.map +1 -0
- package/lib/model/image-text-detection-feature.d.ts +28 -0
- package/lib/model/image-text-detection-feature.js +54 -0
- package/lib/model/image-text-detection-feature.js.map +1 -0
- package/lib/model/image-text.d.ts +30 -0
- package/lib/model/image-text.js +71 -0
- package/lib/model/image-text.js.map +1 -0
- package/lib/model/index.d.ts +182 -0
- package/lib/model/index.js +206 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/inline-document-details.d.ts +28 -0
- package/lib/model/inline-document-details.js +52 -0
- package/lib/model/inline-document-details.js.map +1 -0
- package/lib/model/inline-image-details.d.ts +28 -0
- package/lib/model/inline-image-details.js +52 -0
- package/lib/model/inline-image-details.js.map +1 -0
- package/lib/model/input-location.d.ts +22 -0
- package/lib/model/input-location.js +65 -0
- package/lib/model/input-location.js.map +1 -0
- package/lib/model/label.d.ts +29 -0
- package/lib/model/label.js +29 -0
- package/lib/model/label.js.map +1 -0
- package/lib/model/line.d.ts +35 -0
- package/lib/model/line.js +57 -0
- package/lib/model/line.js.map +1 -0
- package/lib/model/model-collection.d.ts +26 -0
- package/lib/model/model-collection.js +61 -0
- package/lib/model/model-collection.js.map +1 -0
- package/lib/model/model-summary.d.ts +101 -0
- package/lib/model/model-summary.js +69 -0
- package/lib/model/model-summary.js.map +1 -0
- package/lib/model/model.d.ts +159 -0
- package/lib/model/model.js +93 -0
- package/lib/model/model.js.map +1 -0
- package/lib/model/normalized-vertex.d.ts +32 -0
- package/lib/model/normalized-vertex.js +29 -0
- package/lib/model/normalized-vertex.js.map +1 -0
- package/lib/model/object-list-inline-input-location.d.ts +28 -0
- package/lib/model/object-list-inline-input-location.js +66 -0
- package/lib/model/object-list-inline-input-location.js.map +1 -0
- package/lib/model/object-location.d.ts +33 -0
- package/lib/model/object-location.js +29 -0
- package/lib/model/object-location.js.map +1 -0
- package/lib/model/object-storage-dataset.d.ts +36 -0
- package/lib/model/object-storage-dataset.js +52 -0
- package/lib/model/object-storage-dataset.js.map +1 -0
- package/lib/model/object-storage-document-details.d.ts +36 -0
- package/lib/model/object-storage-document-details.js +54 -0
- package/lib/model/object-storage-document-details.js.map +1 -0
- package/lib/model/object-storage-image-details.d.ts +36 -0
- package/lib/model/object-storage-image-details.js +54 -0
- package/lib/model/object-storage-image-details.js.map +1 -0
- package/lib/model/ontology-class.d.ts +33 -0
- package/lib/model/ontology-class.js +29 -0
- package/lib/model/ontology-class.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/output-location.d.ts +33 -0
- package/lib/model/output-location.js +29 -0
- package/lib/model/output-location.js.map +1 -0
- package/lib/model/page.d.ts +51 -0
- package/lib/model/page.js +115 -0
- package/lib/model/page.js.map +1 -0
- package/lib/model/processing-error.d.ts +29 -0
- package/lib/model/processing-error.js +29 -0
- package/lib/model/processing-error.js.map +1 -0
- package/lib/model/project-collection.d.ts +26 -0
- package/lib/model/project-collection.js +61 -0
- package/lib/model/project-collection.js.map +1 -0
- package/lib/model/project-summary.d.ts +77 -0
- package/lib/model/project-summary.js +29 -0
- package/lib/model/project-summary.js.map +1 -0
- package/lib/model/project.d.ts +94 -0
- package/lib/model/project.js +43 -0
- package/lib/model/project.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/table-row.d.ts +26 -0
- package/lib/model/table-row.js +61 -0
- package/lib/model/table-row.js.map +1 -0
- package/lib/model/table.d.ts +47 -0
- package/lib/model/table.js +87 -0
- package/lib/model/table.js.map +1 -0
- package/lib/model/update-model-details.d.ts +47 -0
- package/lib/model/update-model-details.js +29 -0
- package/lib/model/update-model-details.js.map +1 -0
- package/lib/model/update-project-details.d.ts +47 -0
- package/lib/model/update-project-details.js +29 -0
- package/lib/model/update-project-details.js.map +1 -0
- package/lib/model/value-array.d.ts +25 -0
- package/lib/model/value-array.js +62 -0
- package/lib/model/value-array.js.map +1 -0
- package/lib/model/value-date.d.ts +28 -0
- package/lib/model/value-date.js +50 -0
- package/lib/model/value-date.js.map +1 -0
- package/lib/model/value-integer.d.ts +28 -0
- package/lib/model/value-integer.js +50 -0
- package/lib/model/value-integer.js.map +1 -0
- package/lib/model/value-number.d.ts +28 -0
- package/lib/model/value-number.js +50 -0
- package/lib/model/value-number.js.map +1 -0
- package/lib/model/value-phone-number.d.ts +28 -0
- package/lib/model/value-phone-number.js +52 -0
- package/lib/model/value-phone-number.js.map +1 -0
- package/lib/model/value-string.d.ts +28 -0
- package/lib/model/value-string.js +50 -0
- package/lib/model/value-string.js.map +1 -0
- package/lib/model/value-time.d.ts +28 -0
- package/lib/model/value-time.js +50 -0
- package/lib/model/value-time.js.map +1 -0
- package/lib/model/word.d.ts +31 -0
- package/lib/model/word.js +57 -0
- package/lib/model/word.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +42 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +67 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +65 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/analyze-document-request.d.ts +27 -0
- package/lib/request/analyze-document-request.js +15 -0
- package/lib/request/analyze-document-request.js.map +1 -0
- package/lib/request/analyze-image-request.d.ts +27 -0
- package/lib/request/analyze-image-request.js +15 -0
- package/lib/request/analyze-image-request.js.map +1 -0
- package/lib/request/cancel-document-job-request.d.ts +35 -0
- package/lib/request/cancel-document-job-request.js +15 -0
- package/lib/request/cancel-document-job-request.js.map +1 -0
- package/lib/request/cancel-image-job-request.d.ts +35 -0
- package/lib/request/cancel-image-job-request.js +15 -0
- package/lib/request/cancel-image-job-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-model-compartment-request.d.ts +40 -0
- package/lib/request/change-model-compartment-request.js +15 -0
- package/lib/request/change-model-compartment-request.js.map +1 -0
- package/lib/request/change-project-compartment-request.d.ts +40 -0
- package/lib/request/change-project-compartment-request.js +15 -0
- package/lib/request/change-project-compartment-request.js.map +1 -0
- package/lib/request/create-document-job-request.d.ts +36 -0
- package/lib/request/create-document-job-request.js +15 -0
- package/lib/request/create-document-job-request.js.map +1 -0
- package/lib/request/create-image-job-request.d.ts +36 -0
- package/lib/request/create-image-job-request.js +15 -0
- package/lib/request/create-image-job-request.js.map +1 -0
- package/lib/request/create-model-request.d.ts +36 -0
- package/lib/request/create-model-request.js +15 -0
- package/lib/request/create-model-request.js.map +1 -0
- package/lib/request/create-project-request.d.ts +36 -0
- package/lib/request/create-project-request.js +15 -0
- package/lib/request/create-project-request.js.map +1 -0
- package/lib/request/delete-model-request.d.ts +35 -0
- package/lib/request/delete-model-request.js +15 -0
- package/lib/request/delete-model-request.js.map +1 -0
- package/lib/request/delete-project-request.d.ts +35 -0
- package/lib/request/delete-project-request.js +15 -0
- package/lib/request/delete-project-request.js.map +1 -0
- package/lib/request/get-document-job-request.d.ts +26 -0
- package/lib/request/get-document-job-request.js +15 -0
- package/lib/request/get-document-job-request.js.map +1 -0
- package/lib/request/get-image-job-request.d.ts +26 -0
- package/lib/request/get-image-job-request.js +15 -0
- package/lib/request/get-image-job-request.js.map +1 -0
- package/lib/request/get-model-request.d.ts +26 -0
- package/lib/request/get-model-request.js +15 -0
- package/lib/request/get-model-request.js.map +1 -0
- package/lib/request/get-project-request.d.ts +26 -0
- package/lib/request/get-project-request.js +15 -0
- package/lib/request/get-project-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +62 -0
- package/lib/request/index.js +45 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-models-request.d.ts +66 -0
- package/lib/request/list-models-request.js +24 -0
- package/lib/request/list-models-request.js.map +1 -0
- package/lib/request/list-projects-request.d.ts +62 -0
- package/lib/request/list-projects-request.js +24 -0
- package/lib/request/list-projects-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-model-request.d.ts +40 -0
- package/lib/request/update-model-request.js +15 -0
- package/lib/request/update-model-request.js.map +1 -0
- package/lib/request/update-project-request.d.ts +40 -0
- package/lib/request/update-project-request.js +15 -0
- package/lib/request/update-project-request.js.map +1 -0
- package/lib/response/analyze-document-response.d.ts +30 -0
- package/lib/response/analyze-document-response.js +15 -0
- package/lib/response/analyze-document-response.js.map +1 -0
- package/lib/response/analyze-image-response.d.ts +30 -0
- package/lib/response/analyze-image-response.js +15 -0
- package/lib/response/analyze-image-response.js.map +1 -0
- package/lib/response/cancel-document-job-response.d.ts +20 -0
- package/lib/response/cancel-document-job-response.js +15 -0
- package/lib/response/cancel-document-job-response.js.map +1 -0
- package/lib/response/cancel-image-job-response.d.ts +20 -0
- package/lib/response/cancel-image-job-response.js +15 -0
- package/lib/response/cancel-image-job-response.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-model-compartment-response.d.ts +20 -0
- package/lib/response/change-model-compartment-response.js +15 -0
- package/lib/response/change-model-compartment-response.js.map +1 -0
- package/lib/response/change-project-compartment-response.d.ts +20 -0
- package/lib/response/change-project-compartment-response.js +15 -0
- package/lib/response/change-project-compartment-response.js.map +1 -0
- package/lib/response/create-document-job-response.d.ts +30 -0
- package/lib/response/create-document-job-response.js +15 -0
- package/lib/response/create-document-job-response.js.map +1 -0
- package/lib/response/create-image-job-response.d.ts +30 -0
- package/lib/response/create-image-job-response.js +15 -0
- package/lib/response/create-image-job-response.js.map +1 -0
- package/lib/response/create-model-response.d.ts +35 -0
- package/lib/response/create-model-response.js +15 -0
- package/lib/response/create-model-response.js.map +1 -0
- package/lib/response/create-project-response.d.ts +35 -0
- package/lib/response/create-project-response.js +15 -0
- package/lib/response/create-project-response.js.map +1 -0
- package/lib/response/delete-model-response.d.ts +25 -0
- package/lib/response/delete-model-response.js +15 -0
- package/lib/response/delete-model-response.js.map +1 -0
- package/lib/response/delete-project-response.d.ts +25 -0
- package/lib/response/delete-project-response.js +15 -0
- package/lib/response/delete-project-response.js.map +1 -0
- package/lib/response/get-document-job-response.d.ts +30 -0
- package/lib/response/get-document-job-response.js +15 -0
- package/lib/response/get-document-job-response.js.map +1 -0
- package/lib/response/get-image-job-response.d.ts +30 -0
- package/lib/response/get-image-job-response.js +15 -0
- package/lib/response/get-image-job-response.js.map +1 -0
- package/lib/response/get-model-response.d.ts +30 -0
- package/lib/response/get-model-response.js +15 -0
- package/lib/response/get-model-response.js.map +1 -0
- package/lib/response/get-project-response.d.ts +30 -0
- package/lib/response/get-project-response.js +15 -0
- package/lib/response/get-project-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +62 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-models-response.d.ts +32 -0
- package/lib/response/list-models-response.js +15 -0
- package/lib/response/list-models-response.js.map +1 -0
- package/lib/response/list-projects-response.d.ts +32 -0
- package/lib/response/list-projects-response.js +15 -0
- package/lib/response/list-projects-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-model-response.d.ts +25 -0
- package/lib/response/update-model-response.js +15 -0
- package/lib/response/update-model-response.js.map +1 -0
- package/lib/response/update-project-response.d.ts +25 -0
- package/lib/response/update-project-response.js +15 -0
- package/lib/response/update-project-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1688 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.AIServiceVisionClient = exports.AIServiceVisionApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const aiservicevision_waiter_1 = require("./aiservicevision-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var AIServiceVisionApiKeys;
|
|
52
|
+
(function (AIServiceVisionApiKeys) {
|
|
53
|
+
})(AIServiceVisionApiKeys = exports.AIServiceVisionApiKeys || (exports.AIServiceVisionApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
56
|
+
*/
|
|
57
|
+
class AIServiceVisionClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_endpoint"] = "";
|
|
60
|
+
this["_defaultHeaders"] = {};
|
|
61
|
+
this._circuitBreaker = null;
|
|
62
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
63
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
64
|
+
: null;
|
|
65
|
+
if (clientConfiguration) {
|
|
66
|
+
this._clientConfiguration = clientConfiguration;
|
|
67
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
68
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
69
|
+
: null;
|
|
70
|
+
}
|
|
71
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
72
|
+
const specCircuitBreakerEnabled = true;
|
|
73
|
+
if (!this._circuitBreaker &&
|
|
74
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
75
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
76
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
77
|
+
}
|
|
78
|
+
this._httpClient =
|
|
79
|
+
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
80
|
+
if (params.authenticationDetailsProvider &&
|
|
81
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
82
|
+
const provider = params.authenticationDetailsProvider;
|
|
83
|
+
if (provider.getRegion()) {
|
|
84
|
+
this.region = provider.getRegion();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
90
|
+
*/
|
|
91
|
+
get endpoint() {
|
|
92
|
+
return this._endpoint;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
96
|
+
* @param endpoint The endpoint of the service.
|
|
97
|
+
*/
|
|
98
|
+
set endpoint(endpoint) {
|
|
99
|
+
this._endpoint = endpoint;
|
|
100
|
+
this._endpoint = this._endpoint + "/20220125";
|
|
101
|
+
if (this.logger)
|
|
102
|
+
this.logger.info(`AIServiceVisionClient endpoint set to ${this._endpoint}`);
|
|
103
|
+
}
|
|
104
|
+
get logger() {
|
|
105
|
+
return common.LOG.logger;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
109
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
110
|
+
* @param region The region of the service.
|
|
111
|
+
*/
|
|
112
|
+
set region(region) {
|
|
113
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AIServiceVisionClient.serviceEndpointTemplate, region, AIServiceVisionClient.endpointServiceName);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
117
|
+
*
|
|
118
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
119
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
120
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
121
|
+
* @param regionId The public region ID.
|
|
122
|
+
*/
|
|
123
|
+
set regionId(regionId) {
|
|
124
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AIServiceVisionClient.serviceEndpointTemplate, regionId, AIServiceVisionClient.endpointServiceName);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new AIServiceVisionWaiter for resources for this service.
|
|
128
|
+
*
|
|
129
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
130
|
+
* @return The service waiters.
|
|
131
|
+
*/
|
|
132
|
+
createWaiters(config) {
|
|
133
|
+
this._waiters = new aiservicevision_waiter_1.AIServiceVisionWaiter(this, config);
|
|
134
|
+
return this._waiters;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Gets the waiters available for resources for this service.
|
|
138
|
+
*
|
|
139
|
+
* @return The service waiters.
|
|
140
|
+
*/
|
|
141
|
+
getWaiters() {
|
|
142
|
+
if (this._waiters) {
|
|
143
|
+
return this._waiters;
|
|
144
|
+
}
|
|
145
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Perform different types of image analysis.
|
|
149
|
+
*
|
|
150
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
151
|
+
* @param AnalyzeDocumentRequest
|
|
152
|
+
* @return AnalyzeDocumentResponse
|
|
153
|
+
* @throws OciError when an error occurs
|
|
154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/AnalyzeDocument.ts.html |here} to see how to use AnalyzeDocument API.
|
|
155
|
+
*/
|
|
156
|
+
analyzeDocument(analyzeDocumentRequest) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (this.logger)
|
|
159
|
+
this.logger.debug("Calling operation AIServiceVisionClient#analyzeDocument.");
|
|
160
|
+
const pathParams = {};
|
|
161
|
+
const queryParams = {};
|
|
162
|
+
let headerParams = {
|
|
163
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
164
|
+
"opc-request-id": analyzeDocumentRequest.opcRequestId
|
|
165
|
+
};
|
|
166
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
167
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, analyzeDocumentRequest.retryConfiguration, specRetryConfiguration);
|
|
168
|
+
if (this.logger)
|
|
169
|
+
retrier.logger = this.logger;
|
|
170
|
+
const request = yield oci_common_1.composeRequest({
|
|
171
|
+
baseEndpoint: this._endpoint,
|
|
172
|
+
defaultHeaders: this._defaultHeaders,
|
|
173
|
+
path: "/actions/analyzeDocument",
|
|
174
|
+
method: "POST",
|
|
175
|
+
bodyContent: common.ObjectSerializer.serialize(analyzeDocumentRequest.analyzeDocumentDetails, "AnalyzeDocumentDetails", model.AnalyzeDocumentDetails.getJsonObj),
|
|
176
|
+
pathParams: pathParams,
|
|
177
|
+
headerParams: headerParams,
|
|
178
|
+
queryParams: queryParams
|
|
179
|
+
});
|
|
180
|
+
try {
|
|
181
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
182
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
183
|
+
responseObject: {},
|
|
184
|
+
body: yield response.json(),
|
|
185
|
+
bodyKey: "analyzeDocumentResult",
|
|
186
|
+
bodyModel: model.AnalyzeDocumentResult,
|
|
187
|
+
type: "model.AnalyzeDocumentResult",
|
|
188
|
+
responseHeaders: [
|
|
189
|
+
{
|
|
190
|
+
value: response.headers.get("etag"),
|
|
191
|
+
key: "etag",
|
|
192
|
+
dataType: "string"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
value: response.headers.get("opc-request-id"),
|
|
196
|
+
key: "opcRequestId",
|
|
197
|
+
dataType: "string"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
return sdkResponse;
|
|
202
|
+
}
|
|
203
|
+
catch (err) {
|
|
204
|
+
throw err;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Perform different types of image analysis.
|
|
210
|
+
*
|
|
211
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
212
|
+
* @param AnalyzeImageRequest
|
|
213
|
+
* @return AnalyzeImageResponse
|
|
214
|
+
* @throws OciError when an error occurs
|
|
215
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/AnalyzeImage.ts.html |here} to see how to use AnalyzeImage API.
|
|
216
|
+
*/
|
|
217
|
+
analyzeImage(analyzeImageRequest) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
if (this.logger)
|
|
220
|
+
this.logger.debug("Calling operation AIServiceVisionClient#analyzeImage.");
|
|
221
|
+
const pathParams = {};
|
|
222
|
+
const queryParams = {};
|
|
223
|
+
let headerParams = {
|
|
224
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
225
|
+
"opc-request-id": analyzeImageRequest.opcRequestId
|
|
226
|
+
};
|
|
227
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
228
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, analyzeImageRequest.retryConfiguration, specRetryConfiguration);
|
|
229
|
+
if (this.logger)
|
|
230
|
+
retrier.logger = this.logger;
|
|
231
|
+
const request = yield oci_common_1.composeRequest({
|
|
232
|
+
baseEndpoint: this._endpoint,
|
|
233
|
+
defaultHeaders: this._defaultHeaders,
|
|
234
|
+
path: "/actions/analyzeImage",
|
|
235
|
+
method: "POST",
|
|
236
|
+
bodyContent: common.ObjectSerializer.serialize(analyzeImageRequest.analyzeImageDetails, "AnalyzeImageDetails", model.AnalyzeImageDetails.getJsonObj),
|
|
237
|
+
pathParams: pathParams,
|
|
238
|
+
headerParams: headerParams,
|
|
239
|
+
queryParams: queryParams
|
|
240
|
+
});
|
|
241
|
+
try {
|
|
242
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
243
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
244
|
+
responseObject: {},
|
|
245
|
+
body: yield response.json(),
|
|
246
|
+
bodyKey: "analyzeImageResult",
|
|
247
|
+
bodyModel: model.AnalyzeImageResult,
|
|
248
|
+
type: "model.AnalyzeImageResult",
|
|
249
|
+
responseHeaders: [
|
|
250
|
+
{
|
|
251
|
+
value: response.headers.get("etag"),
|
|
252
|
+
key: "etag",
|
|
253
|
+
dataType: "string"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
value: response.headers.get("opc-request-id"),
|
|
257
|
+
key: "opcRequestId",
|
|
258
|
+
dataType: "string"
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
return sdkResponse;
|
|
263
|
+
}
|
|
264
|
+
catch (err) {
|
|
265
|
+
throw err;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Cancel a batch document job.
|
|
271
|
+
*
|
|
272
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
273
|
+
* @param CancelDocumentJobRequest
|
|
274
|
+
* @return CancelDocumentJobResponse
|
|
275
|
+
* @throws OciError when an error occurs
|
|
276
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CancelDocumentJob.ts.html |here} to see how to use CancelDocumentJob API.
|
|
277
|
+
*/
|
|
278
|
+
cancelDocumentJob(cancelDocumentJobRequest) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
if (this.logger)
|
|
281
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelDocumentJob.");
|
|
282
|
+
const pathParams = {
|
|
283
|
+
"{documentJobId}": cancelDocumentJobRequest.documentJobId
|
|
284
|
+
};
|
|
285
|
+
const queryParams = {};
|
|
286
|
+
let headerParams = {
|
|
287
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
288
|
+
"if-match": cancelDocumentJobRequest.ifMatch,
|
|
289
|
+
"opc-request-id": cancelDocumentJobRequest.opcRequestId
|
|
290
|
+
};
|
|
291
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
292
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
293
|
+
if (this.logger)
|
|
294
|
+
retrier.logger = this.logger;
|
|
295
|
+
const request = yield oci_common_1.composeRequest({
|
|
296
|
+
baseEndpoint: this._endpoint,
|
|
297
|
+
defaultHeaders: this._defaultHeaders,
|
|
298
|
+
path: "/documentJobs/{documentJobId}/actions/cancel",
|
|
299
|
+
method: "POST",
|
|
300
|
+
pathParams: pathParams,
|
|
301
|
+
headerParams: headerParams,
|
|
302
|
+
queryParams: queryParams
|
|
303
|
+
});
|
|
304
|
+
try {
|
|
305
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
306
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
307
|
+
responseObject: {},
|
|
308
|
+
responseHeaders: [
|
|
309
|
+
{
|
|
310
|
+
value: response.headers.get("opc-request-id"),
|
|
311
|
+
key: "opcRequestId",
|
|
312
|
+
dataType: "string"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
});
|
|
316
|
+
return sdkResponse;
|
|
317
|
+
}
|
|
318
|
+
catch (err) {
|
|
319
|
+
throw err;
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Cancel a batch image job.
|
|
325
|
+
*
|
|
326
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
327
|
+
* @param CancelImageJobRequest
|
|
328
|
+
* @return CancelImageJobResponse
|
|
329
|
+
* @throws OciError when an error occurs
|
|
330
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CancelImageJob.ts.html |here} to see how to use CancelImageJob API.
|
|
331
|
+
*/
|
|
332
|
+
cancelImageJob(cancelImageJobRequest) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
if (this.logger)
|
|
335
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelImageJob.");
|
|
336
|
+
const pathParams = {
|
|
337
|
+
"{imageJobId}": cancelImageJobRequest.imageJobId
|
|
338
|
+
};
|
|
339
|
+
const queryParams = {};
|
|
340
|
+
let headerParams = {
|
|
341
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
342
|
+
"if-match": cancelImageJobRequest.ifMatch,
|
|
343
|
+
"opc-request-id": cancelImageJobRequest.opcRequestId
|
|
344
|
+
};
|
|
345
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
346
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
347
|
+
if (this.logger)
|
|
348
|
+
retrier.logger = this.logger;
|
|
349
|
+
const request = yield oci_common_1.composeRequest({
|
|
350
|
+
baseEndpoint: this._endpoint,
|
|
351
|
+
defaultHeaders: this._defaultHeaders,
|
|
352
|
+
path: "/imageJobs/{imageJobId}/actions/cancel",
|
|
353
|
+
method: "POST",
|
|
354
|
+
pathParams: pathParams,
|
|
355
|
+
headerParams: headerParams,
|
|
356
|
+
queryParams: queryParams
|
|
357
|
+
});
|
|
358
|
+
try {
|
|
359
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
360
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
361
|
+
responseObject: {},
|
|
362
|
+
responseHeaders: [
|
|
363
|
+
{
|
|
364
|
+
value: response.headers.get("opc-request-id"),
|
|
365
|
+
key: "opcRequestId",
|
|
366
|
+
dataType: "string"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
});
|
|
370
|
+
return sdkResponse;
|
|
371
|
+
}
|
|
372
|
+
catch (err) {
|
|
373
|
+
throw err;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Cancel work request with the given ID.
|
|
379
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
380
|
+
* @param CancelWorkRequestRequest
|
|
381
|
+
* @return CancelWorkRequestResponse
|
|
382
|
+
* @throws OciError when an error occurs
|
|
383
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
384
|
+
*/
|
|
385
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
if (this.logger)
|
|
388
|
+
this.logger.debug("Calling operation AIServiceVisionClient#cancelWorkRequest.");
|
|
389
|
+
const pathParams = {
|
|
390
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
391
|
+
};
|
|
392
|
+
const queryParams = {};
|
|
393
|
+
let headerParams = {
|
|
394
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
395
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
396
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
397
|
+
};
|
|
398
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
399
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
400
|
+
if (this.logger)
|
|
401
|
+
retrier.logger = this.logger;
|
|
402
|
+
const request = yield oci_common_1.composeRequest({
|
|
403
|
+
baseEndpoint: this._endpoint,
|
|
404
|
+
defaultHeaders: this._defaultHeaders,
|
|
405
|
+
path: "/workRequests/{workRequestId}",
|
|
406
|
+
method: "DELETE",
|
|
407
|
+
pathParams: pathParams,
|
|
408
|
+
headerParams: headerParams,
|
|
409
|
+
queryParams: queryParams
|
|
410
|
+
});
|
|
411
|
+
try {
|
|
412
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
413
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
414
|
+
responseObject: {},
|
|
415
|
+
responseHeaders: [
|
|
416
|
+
{
|
|
417
|
+
value: response.headers.get("opc-request-id"),
|
|
418
|
+
key: "opcRequestId",
|
|
419
|
+
dataType: "string"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
});
|
|
423
|
+
return sdkResponse;
|
|
424
|
+
}
|
|
425
|
+
catch (err) {
|
|
426
|
+
throw err;
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Moves a model from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
|
|
432
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
433
|
+
* @param ChangeModelCompartmentRequest
|
|
434
|
+
* @return ChangeModelCompartmentResponse
|
|
435
|
+
* @throws OciError when an error occurs
|
|
436
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
437
|
+
*/
|
|
438
|
+
changeModelCompartment(changeModelCompartmentRequest) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
if (this.logger)
|
|
441
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeModelCompartment.");
|
|
442
|
+
const pathParams = {
|
|
443
|
+
"{modelId}": changeModelCompartmentRequest.modelId
|
|
444
|
+
};
|
|
445
|
+
const queryParams = {};
|
|
446
|
+
let headerParams = {
|
|
447
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
448
|
+
"if-match": changeModelCompartmentRequest.ifMatch,
|
|
449
|
+
"opc-request-id": changeModelCompartmentRequest.opcRequestId
|
|
450
|
+
};
|
|
451
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
452
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeModelCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
453
|
+
if (this.logger)
|
|
454
|
+
retrier.logger = this.logger;
|
|
455
|
+
const request = yield oci_common_1.composeRequest({
|
|
456
|
+
baseEndpoint: this._endpoint,
|
|
457
|
+
defaultHeaders: this._defaultHeaders,
|
|
458
|
+
path: "/models/{modelId}/actions/changeCompartment",
|
|
459
|
+
method: "POST",
|
|
460
|
+
bodyContent: common.ObjectSerializer.serialize(changeModelCompartmentRequest.changeModelCompartmentDetails, "ChangeModelCompartmentDetails", model.ChangeModelCompartmentDetails.getJsonObj),
|
|
461
|
+
pathParams: pathParams,
|
|
462
|
+
headerParams: headerParams,
|
|
463
|
+
queryParams: queryParams
|
|
464
|
+
});
|
|
465
|
+
try {
|
|
466
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
467
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
468
|
+
responseObject: {},
|
|
469
|
+
responseHeaders: [
|
|
470
|
+
{
|
|
471
|
+
value: response.headers.get("opc-request-id"),
|
|
472
|
+
key: "opcRequestId",
|
|
473
|
+
dataType: "string"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
});
|
|
477
|
+
return sdkResponse;
|
|
478
|
+
}
|
|
479
|
+
catch (err) {
|
|
480
|
+
throw err;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Moves a project from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
|
|
486
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
487
|
+
* @param ChangeProjectCompartmentRequest
|
|
488
|
+
* @return ChangeProjectCompartmentResponse
|
|
489
|
+
* @throws OciError when an error occurs
|
|
490
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
491
|
+
*/
|
|
492
|
+
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
+
if (this.logger)
|
|
495
|
+
this.logger.debug("Calling operation AIServiceVisionClient#changeProjectCompartment.");
|
|
496
|
+
const pathParams = {
|
|
497
|
+
"{projectId}": changeProjectCompartmentRequest.projectId
|
|
498
|
+
};
|
|
499
|
+
const queryParams = {};
|
|
500
|
+
let headerParams = {
|
|
501
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
502
|
+
"if-match": changeProjectCompartmentRequest.ifMatch,
|
|
503
|
+
"opc-request-id": changeProjectCompartmentRequest.opcRequestId
|
|
504
|
+
};
|
|
505
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
506
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProjectCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
507
|
+
if (this.logger)
|
|
508
|
+
retrier.logger = this.logger;
|
|
509
|
+
const request = yield oci_common_1.composeRequest({
|
|
510
|
+
baseEndpoint: this._endpoint,
|
|
511
|
+
defaultHeaders: this._defaultHeaders,
|
|
512
|
+
path: "/projects/{projectId}/actions/changeCompartment",
|
|
513
|
+
method: "POST",
|
|
514
|
+
bodyContent: common.ObjectSerializer.serialize(changeProjectCompartmentRequest.changeProjectCompartmentDetails, "ChangeProjectCompartmentDetails", model.ChangeProjectCompartmentDetails.getJsonObj),
|
|
515
|
+
pathParams: pathParams,
|
|
516
|
+
headerParams: headerParams,
|
|
517
|
+
queryParams: queryParams
|
|
518
|
+
});
|
|
519
|
+
try {
|
|
520
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
521
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
522
|
+
responseObject: {},
|
|
523
|
+
responseHeaders: [
|
|
524
|
+
{
|
|
525
|
+
value: response.headers.get("opc-request-id"),
|
|
526
|
+
key: "opcRequestId",
|
|
527
|
+
dataType: "string"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
});
|
|
531
|
+
return sdkResponse;
|
|
532
|
+
}
|
|
533
|
+
catch (err) {
|
|
534
|
+
throw err;
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Create a batch document analysis job
|
|
540
|
+
*
|
|
541
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
542
|
+
* @param CreateDocumentJobRequest
|
|
543
|
+
* @return CreateDocumentJobResponse
|
|
544
|
+
* @throws OciError when an error occurs
|
|
545
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CreateDocumentJob.ts.html |here} to see how to use CreateDocumentJob API.
|
|
546
|
+
*/
|
|
547
|
+
createDocumentJob(createDocumentJobRequest) {
|
|
548
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
549
|
+
if (this.logger)
|
|
550
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createDocumentJob.");
|
|
551
|
+
const pathParams = {};
|
|
552
|
+
const queryParams = {};
|
|
553
|
+
let headerParams = {
|
|
554
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
555
|
+
"opc-retry-token": createDocumentJobRequest.opcRetryToken,
|
|
556
|
+
"opc-request-id": createDocumentJobRequest.opcRequestId
|
|
557
|
+
};
|
|
558
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
559
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
560
|
+
if (this.logger)
|
|
561
|
+
retrier.logger = this.logger;
|
|
562
|
+
const request = yield oci_common_1.composeRequest({
|
|
563
|
+
baseEndpoint: this._endpoint,
|
|
564
|
+
defaultHeaders: this._defaultHeaders,
|
|
565
|
+
path: "/documentJobs",
|
|
566
|
+
method: "POST",
|
|
567
|
+
bodyContent: common.ObjectSerializer.serialize(createDocumentJobRequest.createDocumentJobDetails, "CreateDocumentJobDetails", model.CreateDocumentJobDetails.getJsonObj),
|
|
568
|
+
pathParams: pathParams,
|
|
569
|
+
headerParams: headerParams,
|
|
570
|
+
queryParams: queryParams
|
|
571
|
+
});
|
|
572
|
+
try {
|
|
573
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
574
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
575
|
+
responseObject: {},
|
|
576
|
+
body: yield response.json(),
|
|
577
|
+
bodyKey: "documentJob",
|
|
578
|
+
bodyModel: model.DocumentJob,
|
|
579
|
+
type: "model.DocumentJob",
|
|
580
|
+
responseHeaders: [
|
|
581
|
+
{
|
|
582
|
+
value: response.headers.get("etag"),
|
|
583
|
+
key: "etag",
|
|
584
|
+
dataType: "string"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
value: response.headers.get("opc-request-id"),
|
|
588
|
+
key: "opcRequestId",
|
|
589
|
+
dataType: "string"
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
});
|
|
593
|
+
return sdkResponse;
|
|
594
|
+
}
|
|
595
|
+
catch (err) {
|
|
596
|
+
throw err;
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Create a batch image analysis job.
|
|
602
|
+
*
|
|
603
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
604
|
+
* @param CreateImageJobRequest
|
|
605
|
+
* @return CreateImageJobResponse
|
|
606
|
+
* @throws OciError when an error occurs
|
|
607
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CreateImageJob.ts.html |here} to see how to use CreateImageJob API.
|
|
608
|
+
*/
|
|
609
|
+
createImageJob(createImageJobRequest) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
if (this.logger)
|
|
612
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createImageJob.");
|
|
613
|
+
const pathParams = {};
|
|
614
|
+
const queryParams = {};
|
|
615
|
+
let headerParams = {
|
|
616
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
617
|
+
"opc-retry-token": createImageJobRequest.opcRetryToken,
|
|
618
|
+
"opc-request-id": createImageJobRequest.opcRequestId
|
|
619
|
+
};
|
|
620
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
621
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
622
|
+
if (this.logger)
|
|
623
|
+
retrier.logger = this.logger;
|
|
624
|
+
const request = yield oci_common_1.composeRequest({
|
|
625
|
+
baseEndpoint: this._endpoint,
|
|
626
|
+
defaultHeaders: this._defaultHeaders,
|
|
627
|
+
path: "/imageJobs",
|
|
628
|
+
method: "POST",
|
|
629
|
+
bodyContent: common.ObjectSerializer.serialize(createImageJobRequest.createImageJobDetails, "CreateImageJobDetails", model.CreateImageJobDetails.getJsonObj),
|
|
630
|
+
pathParams: pathParams,
|
|
631
|
+
headerParams: headerParams,
|
|
632
|
+
queryParams: queryParams
|
|
633
|
+
});
|
|
634
|
+
try {
|
|
635
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
636
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
637
|
+
responseObject: {},
|
|
638
|
+
body: yield response.json(),
|
|
639
|
+
bodyKey: "imageJob",
|
|
640
|
+
bodyModel: model.ImageJob,
|
|
641
|
+
type: "model.ImageJob",
|
|
642
|
+
responseHeaders: [
|
|
643
|
+
{
|
|
644
|
+
value: response.headers.get("etag"),
|
|
645
|
+
key: "etag",
|
|
646
|
+
dataType: "string"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
value: response.headers.get("opc-request-id"),
|
|
650
|
+
key: "opcRequestId",
|
|
651
|
+
dataType: "string"
|
|
652
|
+
}
|
|
653
|
+
]
|
|
654
|
+
});
|
|
655
|
+
return sdkResponse;
|
|
656
|
+
}
|
|
657
|
+
catch (err) {
|
|
658
|
+
throw err;
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Creates a new model.
|
|
664
|
+
*
|
|
665
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
666
|
+
* @param CreateModelRequest
|
|
667
|
+
* @return CreateModelResponse
|
|
668
|
+
* @throws OciError when an error occurs
|
|
669
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
670
|
+
*/
|
|
671
|
+
createModel(createModelRequest) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
if (this.logger)
|
|
674
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createModel.");
|
|
675
|
+
const pathParams = {};
|
|
676
|
+
const queryParams = {};
|
|
677
|
+
let headerParams = {
|
|
678
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
679
|
+
"opc-retry-token": createModelRequest.opcRetryToken,
|
|
680
|
+
"opc-request-id": createModelRequest.opcRequestId
|
|
681
|
+
};
|
|
682
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
683
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelRequest.retryConfiguration, specRetryConfiguration);
|
|
684
|
+
if (this.logger)
|
|
685
|
+
retrier.logger = this.logger;
|
|
686
|
+
const request = yield oci_common_1.composeRequest({
|
|
687
|
+
baseEndpoint: this._endpoint,
|
|
688
|
+
defaultHeaders: this._defaultHeaders,
|
|
689
|
+
path: "/models",
|
|
690
|
+
method: "POST",
|
|
691
|
+
bodyContent: common.ObjectSerializer.serialize(createModelRequest.createModelDetails, "CreateModelDetails", model.CreateModelDetails.getJsonObj),
|
|
692
|
+
pathParams: pathParams,
|
|
693
|
+
headerParams: headerParams,
|
|
694
|
+
queryParams: queryParams
|
|
695
|
+
});
|
|
696
|
+
try {
|
|
697
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
698
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
699
|
+
responseObject: {},
|
|
700
|
+
body: yield response.json(),
|
|
701
|
+
bodyKey: "model",
|
|
702
|
+
bodyModel: model.Model,
|
|
703
|
+
type: "model.Model",
|
|
704
|
+
responseHeaders: [
|
|
705
|
+
{
|
|
706
|
+
value: response.headers.get("opc-work-request-id"),
|
|
707
|
+
key: "opcWorkRequestId",
|
|
708
|
+
dataType: "string"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
value: response.headers.get("opc-request-id"),
|
|
712
|
+
key: "opcRequestId",
|
|
713
|
+
dataType: "string"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
value: response.headers.get("etag"),
|
|
717
|
+
key: "etag",
|
|
718
|
+
dataType: "string"
|
|
719
|
+
}
|
|
720
|
+
]
|
|
721
|
+
});
|
|
722
|
+
return sdkResponse;
|
|
723
|
+
}
|
|
724
|
+
catch (err) {
|
|
725
|
+
throw err;
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Creates a new project.
|
|
731
|
+
*
|
|
732
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
733
|
+
* @param CreateProjectRequest
|
|
734
|
+
* @return CreateProjectResponse
|
|
735
|
+
* @throws OciError when an error occurs
|
|
736
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
737
|
+
*/
|
|
738
|
+
createProject(createProjectRequest) {
|
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
if (this.logger)
|
|
741
|
+
this.logger.debug("Calling operation AIServiceVisionClient#createProject.");
|
|
742
|
+
const pathParams = {};
|
|
743
|
+
const queryParams = {};
|
|
744
|
+
let headerParams = {
|
|
745
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
746
|
+
"opc-retry-token": createProjectRequest.opcRetryToken,
|
|
747
|
+
"opc-request-id": createProjectRequest.opcRequestId
|
|
748
|
+
};
|
|
749
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
750
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
751
|
+
if (this.logger)
|
|
752
|
+
retrier.logger = this.logger;
|
|
753
|
+
const request = yield oci_common_1.composeRequest({
|
|
754
|
+
baseEndpoint: this._endpoint,
|
|
755
|
+
defaultHeaders: this._defaultHeaders,
|
|
756
|
+
path: "/projects",
|
|
757
|
+
method: "POST",
|
|
758
|
+
bodyContent: common.ObjectSerializer.serialize(createProjectRequest.createProjectDetails, "CreateProjectDetails", model.CreateProjectDetails.getJsonObj),
|
|
759
|
+
pathParams: pathParams,
|
|
760
|
+
headerParams: headerParams,
|
|
761
|
+
queryParams: queryParams
|
|
762
|
+
});
|
|
763
|
+
try {
|
|
764
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
765
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
766
|
+
responseObject: {},
|
|
767
|
+
body: yield response.json(),
|
|
768
|
+
bodyKey: "project",
|
|
769
|
+
bodyModel: model.Project,
|
|
770
|
+
type: "model.Project",
|
|
771
|
+
responseHeaders: [
|
|
772
|
+
{
|
|
773
|
+
value: response.headers.get("etag"),
|
|
774
|
+
key: "etag",
|
|
775
|
+
dataType: "string"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
value: response.headers.get("opc-work-request-id"),
|
|
779
|
+
key: "opcWorkRequestId",
|
|
780
|
+
dataType: "string"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
value: response.headers.get("opc-request-id"),
|
|
784
|
+
key: "opcRequestId",
|
|
785
|
+
dataType: "string"
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
});
|
|
789
|
+
return sdkResponse;
|
|
790
|
+
}
|
|
791
|
+
catch (err) {
|
|
792
|
+
throw err;
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Deletes a model by identifier.
|
|
798
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
799
|
+
* @param DeleteModelRequest
|
|
800
|
+
* @return DeleteModelResponse
|
|
801
|
+
* @throws OciError when an error occurs
|
|
802
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
803
|
+
*/
|
|
804
|
+
deleteModel(deleteModelRequest) {
|
|
805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
806
|
+
if (this.logger)
|
|
807
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteModel.");
|
|
808
|
+
const pathParams = {
|
|
809
|
+
"{modelId}": deleteModelRequest.modelId
|
|
810
|
+
};
|
|
811
|
+
const queryParams = {};
|
|
812
|
+
let headerParams = {
|
|
813
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
814
|
+
"if-match": deleteModelRequest.ifMatch,
|
|
815
|
+
"opc-request-id": deleteModelRequest.opcRequestId
|
|
816
|
+
};
|
|
817
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
818
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelRequest.retryConfiguration, specRetryConfiguration);
|
|
819
|
+
if (this.logger)
|
|
820
|
+
retrier.logger = this.logger;
|
|
821
|
+
const request = yield oci_common_1.composeRequest({
|
|
822
|
+
baseEndpoint: this._endpoint,
|
|
823
|
+
defaultHeaders: this._defaultHeaders,
|
|
824
|
+
path: "/models/{modelId}",
|
|
825
|
+
method: "DELETE",
|
|
826
|
+
pathParams: pathParams,
|
|
827
|
+
headerParams: headerParams,
|
|
828
|
+
queryParams: queryParams
|
|
829
|
+
});
|
|
830
|
+
try {
|
|
831
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
832
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
833
|
+
responseObject: {},
|
|
834
|
+
responseHeaders: [
|
|
835
|
+
{
|
|
836
|
+
value: response.headers.get("opc-work-request-id"),
|
|
837
|
+
key: "opcWorkRequestId",
|
|
838
|
+
dataType: "string"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
value: response.headers.get("opc-request-id"),
|
|
842
|
+
key: "opcRequestId",
|
|
843
|
+
dataType: "string"
|
|
844
|
+
}
|
|
845
|
+
]
|
|
846
|
+
});
|
|
847
|
+
return sdkResponse;
|
|
848
|
+
}
|
|
849
|
+
catch (err) {
|
|
850
|
+
throw err;
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Deletes a project by identifier.
|
|
856
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
857
|
+
* @param DeleteProjectRequest
|
|
858
|
+
* @return DeleteProjectResponse
|
|
859
|
+
* @throws OciError when an error occurs
|
|
860
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
861
|
+
*/
|
|
862
|
+
deleteProject(deleteProjectRequest) {
|
|
863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
864
|
+
if (this.logger)
|
|
865
|
+
this.logger.debug("Calling operation AIServiceVisionClient#deleteProject.");
|
|
866
|
+
const pathParams = {
|
|
867
|
+
"{projectId}": deleteProjectRequest.projectId
|
|
868
|
+
};
|
|
869
|
+
const queryParams = {};
|
|
870
|
+
let headerParams = {
|
|
871
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
872
|
+
"if-match": deleteProjectRequest.ifMatch,
|
|
873
|
+
"opc-request-id": deleteProjectRequest.opcRequestId
|
|
874
|
+
};
|
|
875
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
876
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
877
|
+
if (this.logger)
|
|
878
|
+
retrier.logger = this.logger;
|
|
879
|
+
const request = yield oci_common_1.composeRequest({
|
|
880
|
+
baseEndpoint: this._endpoint,
|
|
881
|
+
defaultHeaders: this._defaultHeaders,
|
|
882
|
+
path: "/projects/{projectId}",
|
|
883
|
+
method: "DELETE",
|
|
884
|
+
pathParams: pathParams,
|
|
885
|
+
headerParams: headerParams,
|
|
886
|
+
queryParams: queryParams
|
|
887
|
+
});
|
|
888
|
+
try {
|
|
889
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
890
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
891
|
+
responseObject: {},
|
|
892
|
+
responseHeaders: [
|
|
893
|
+
{
|
|
894
|
+
value: response.headers.get("opc-work-request-id"),
|
|
895
|
+
key: "opcWorkRequestId",
|
|
896
|
+
dataType: "string"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
value: response.headers.get("opc-request-id"),
|
|
900
|
+
key: "opcRequestId",
|
|
901
|
+
dataType: "string"
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
});
|
|
905
|
+
return sdkResponse;
|
|
906
|
+
}
|
|
907
|
+
catch (err) {
|
|
908
|
+
throw err;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Get details of a batch document job.
|
|
914
|
+
*
|
|
915
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
916
|
+
* @param GetDocumentJobRequest
|
|
917
|
+
* @return GetDocumentJobResponse
|
|
918
|
+
* @throws OciError when an error occurs
|
|
919
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/GetDocumentJob.ts.html |here} to see how to use GetDocumentJob API.
|
|
920
|
+
*/
|
|
921
|
+
getDocumentJob(getDocumentJobRequest) {
|
|
922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
if (this.logger)
|
|
924
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getDocumentJob.");
|
|
925
|
+
const pathParams = {
|
|
926
|
+
"{documentJobId}": getDocumentJobRequest.documentJobId
|
|
927
|
+
};
|
|
928
|
+
const queryParams = {};
|
|
929
|
+
let headerParams = {
|
|
930
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
931
|
+
"opc-request-id": getDocumentJobRequest.opcRequestId
|
|
932
|
+
};
|
|
933
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
934
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDocumentJobRequest.retryConfiguration, specRetryConfiguration);
|
|
935
|
+
if (this.logger)
|
|
936
|
+
retrier.logger = this.logger;
|
|
937
|
+
const request = yield oci_common_1.composeRequest({
|
|
938
|
+
baseEndpoint: this._endpoint,
|
|
939
|
+
defaultHeaders: this._defaultHeaders,
|
|
940
|
+
path: "/documentJobs/{documentJobId}",
|
|
941
|
+
method: "GET",
|
|
942
|
+
pathParams: pathParams,
|
|
943
|
+
headerParams: headerParams,
|
|
944
|
+
queryParams: queryParams
|
|
945
|
+
});
|
|
946
|
+
try {
|
|
947
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
948
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
949
|
+
responseObject: {},
|
|
950
|
+
body: yield response.json(),
|
|
951
|
+
bodyKey: "documentJob",
|
|
952
|
+
bodyModel: model.DocumentJob,
|
|
953
|
+
type: "model.DocumentJob",
|
|
954
|
+
responseHeaders: [
|
|
955
|
+
{
|
|
956
|
+
value: response.headers.get("etag"),
|
|
957
|
+
key: "etag",
|
|
958
|
+
dataType: "string"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
value: response.headers.get("opc-request-id"),
|
|
962
|
+
key: "opcRequestId",
|
|
963
|
+
dataType: "string"
|
|
964
|
+
}
|
|
965
|
+
]
|
|
966
|
+
});
|
|
967
|
+
return sdkResponse;
|
|
968
|
+
}
|
|
969
|
+
catch (err) {
|
|
970
|
+
throw err;
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Get details of a batch image job.
|
|
976
|
+
*
|
|
977
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
978
|
+
* @param GetImageJobRequest
|
|
979
|
+
* @return GetImageJobResponse
|
|
980
|
+
* @throws OciError when an error occurs
|
|
981
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/GetImageJob.ts.html |here} to see how to use GetImageJob API.
|
|
982
|
+
*/
|
|
983
|
+
getImageJob(getImageJobRequest) {
|
|
984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
985
|
+
if (this.logger)
|
|
986
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getImageJob.");
|
|
987
|
+
const pathParams = {
|
|
988
|
+
"{imageJobId}": getImageJobRequest.imageJobId
|
|
989
|
+
};
|
|
990
|
+
const queryParams = {};
|
|
991
|
+
let headerParams = {
|
|
992
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
993
|
+
"opc-request-id": getImageJobRequest.opcRequestId
|
|
994
|
+
};
|
|
995
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
996
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getImageJobRequest.retryConfiguration, specRetryConfiguration);
|
|
997
|
+
if (this.logger)
|
|
998
|
+
retrier.logger = this.logger;
|
|
999
|
+
const request = yield oci_common_1.composeRequest({
|
|
1000
|
+
baseEndpoint: this._endpoint,
|
|
1001
|
+
defaultHeaders: this._defaultHeaders,
|
|
1002
|
+
path: "/imageJobs/{imageJobId}",
|
|
1003
|
+
method: "GET",
|
|
1004
|
+
pathParams: pathParams,
|
|
1005
|
+
headerParams: headerParams,
|
|
1006
|
+
queryParams: queryParams
|
|
1007
|
+
});
|
|
1008
|
+
try {
|
|
1009
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1010
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1011
|
+
responseObject: {},
|
|
1012
|
+
body: yield response.json(),
|
|
1013
|
+
bodyKey: "imageJob",
|
|
1014
|
+
bodyModel: model.ImageJob,
|
|
1015
|
+
type: "model.ImageJob",
|
|
1016
|
+
responseHeaders: [
|
|
1017
|
+
{
|
|
1018
|
+
value: response.headers.get("etag"),
|
|
1019
|
+
key: "etag",
|
|
1020
|
+
dataType: "string"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
value: response.headers.get("opc-request-id"),
|
|
1024
|
+
key: "opcRequestId",
|
|
1025
|
+
dataType: "string"
|
|
1026
|
+
}
|
|
1027
|
+
]
|
|
1028
|
+
});
|
|
1029
|
+
return sdkResponse;
|
|
1030
|
+
}
|
|
1031
|
+
catch (err) {
|
|
1032
|
+
throw err;
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Gets a model by identifier.
|
|
1038
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1039
|
+
* @param GetModelRequest
|
|
1040
|
+
* @return GetModelResponse
|
|
1041
|
+
* @throws OciError when an error occurs
|
|
1042
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1043
|
+
*/
|
|
1044
|
+
getModel(getModelRequest) {
|
|
1045
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1046
|
+
if (this.logger)
|
|
1047
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getModel.");
|
|
1048
|
+
const pathParams = {
|
|
1049
|
+
"{modelId}": getModelRequest.modelId
|
|
1050
|
+
};
|
|
1051
|
+
const queryParams = {};
|
|
1052
|
+
let headerParams = {
|
|
1053
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1054
|
+
"opc-request-id": getModelRequest.opcRequestId
|
|
1055
|
+
};
|
|
1056
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1057
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1058
|
+
if (this.logger)
|
|
1059
|
+
retrier.logger = this.logger;
|
|
1060
|
+
const request = yield oci_common_1.composeRequest({
|
|
1061
|
+
baseEndpoint: this._endpoint,
|
|
1062
|
+
defaultHeaders: this._defaultHeaders,
|
|
1063
|
+
path: "/models/{modelId}",
|
|
1064
|
+
method: "GET",
|
|
1065
|
+
pathParams: pathParams,
|
|
1066
|
+
headerParams: headerParams,
|
|
1067
|
+
queryParams: queryParams
|
|
1068
|
+
});
|
|
1069
|
+
try {
|
|
1070
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1071
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1072
|
+
responseObject: {},
|
|
1073
|
+
body: yield response.json(),
|
|
1074
|
+
bodyKey: "model",
|
|
1075
|
+
bodyModel: model.Model,
|
|
1076
|
+
type: "model.Model",
|
|
1077
|
+
responseHeaders: [
|
|
1078
|
+
{
|
|
1079
|
+
value: response.headers.get("etag"),
|
|
1080
|
+
key: "etag",
|
|
1081
|
+
dataType: "string"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
value: response.headers.get("opc-request-id"),
|
|
1085
|
+
key: "opcRequestId",
|
|
1086
|
+
dataType: "string"
|
|
1087
|
+
}
|
|
1088
|
+
]
|
|
1089
|
+
});
|
|
1090
|
+
return sdkResponse;
|
|
1091
|
+
}
|
|
1092
|
+
catch (err) {
|
|
1093
|
+
throw err;
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Gets a project by identifier.
|
|
1099
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1100
|
+
* @param GetProjectRequest
|
|
1101
|
+
* @return GetProjectResponse
|
|
1102
|
+
* @throws OciError when an error occurs
|
|
1103
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1104
|
+
*/
|
|
1105
|
+
getProject(getProjectRequest) {
|
|
1106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
|
+
if (this.logger)
|
|
1108
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getProject.");
|
|
1109
|
+
const pathParams = {
|
|
1110
|
+
"{projectId}": getProjectRequest.projectId
|
|
1111
|
+
};
|
|
1112
|
+
const queryParams = {};
|
|
1113
|
+
let headerParams = {
|
|
1114
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1115
|
+
"opc-request-id": getProjectRequest.opcRequestId
|
|
1116
|
+
};
|
|
1117
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1118
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1119
|
+
if (this.logger)
|
|
1120
|
+
retrier.logger = this.logger;
|
|
1121
|
+
const request = yield oci_common_1.composeRequest({
|
|
1122
|
+
baseEndpoint: this._endpoint,
|
|
1123
|
+
defaultHeaders: this._defaultHeaders,
|
|
1124
|
+
path: "/projects/{projectId}",
|
|
1125
|
+
method: "GET",
|
|
1126
|
+
pathParams: pathParams,
|
|
1127
|
+
headerParams: headerParams,
|
|
1128
|
+
queryParams: queryParams
|
|
1129
|
+
});
|
|
1130
|
+
try {
|
|
1131
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1132
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1133
|
+
responseObject: {},
|
|
1134
|
+
body: yield response.json(),
|
|
1135
|
+
bodyKey: "project",
|
|
1136
|
+
bodyModel: model.Project,
|
|
1137
|
+
type: "model.Project",
|
|
1138
|
+
responseHeaders: [
|
|
1139
|
+
{
|
|
1140
|
+
value: response.headers.get("etag"),
|
|
1141
|
+
key: "etag",
|
|
1142
|
+
dataType: "string"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
value: response.headers.get("opc-request-id"),
|
|
1146
|
+
key: "opcRequestId",
|
|
1147
|
+
dataType: "string"
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
});
|
|
1151
|
+
return sdkResponse;
|
|
1152
|
+
}
|
|
1153
|
+
catch (err) {
|
|
1154
|
+
throw err;
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Gets the status of the work request with the given ID.
|
|
1160
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1161
|
+
* @param GetWorkRequestRequest
|
|
1162
|
+
* @return GetWorkRequestResponse
|
|
1163
|
+
* @throws OciError when an error occurs
|
|
1164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1165
|
+
*/
|
|
1166
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
|
+
if (this.logger)
|
|
1169
|
+
this.logger.debug("Calling operation AIServiceVisionClient#getWorkRequest.");
|
|
1170
|
+
const pathParams = {
|
|
1171
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1172
|
+
};
|
|
1173
|
+
const queryParams = {};
|
|
1174
|
+
let headerParams = {
|
|
1175
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1176
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1177
|
+
};
|
|
1178
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1179
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1180
|
+
if (this.logger)
|
|
1181
|
+
retrier.logger = this.logger;
|
|
1182
|
+
const request = yield oci_common_1.composeRequest({
|
|
1183
|
+
baseEndpoint: this._endpoint,
|
|
1184
|
+
defaultHeaders: this._defaultHeaders,
|
|
1185
|
+
path: "/workRequests/{workRequestId}",
|
|
1186
|
+
method: "GET",
|
|
1187
|
+
pathParams: pathParams,
|
|
1188
|
+
headerParams: headerParams,
|
|
1189
|
+
queryParams: queryParams
|
|
1190
|
+
});
|
|
1191
|
+
try {
|
|
1192
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1193
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1194
|
+
responseObject: {},
|
|
1195
|
+
body: yield response.json(),
|
|
1196
|
+
bodyKey: "workRequest",
|
|
1197
|
+
bodyModel: model.WorkRequest,
|
|
1198
|
+
type: "model.WorkRequest",
|
|
1199
|
+
responseHeaders: [
|
|
1200
|
+
{
|
|
1201
|
+
value: response.headers.get("etag"),
|
|
1202
|
+
key: "etag",
|
|
1203
|
+
dataType: "string"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
value: response.headers.get("opc-request-id"),
|
|
1207
|
+
key: "opcRequestId",
|
|
1208
|
+
dataType: "string"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
value: response.headers.get("retry-after"),
|
|
1212
|
+
key: "retryAfter",
|
|
1213
|
+
dataType: "number"
|
|
1214
|
+
}
|
|
1215
|
+
]
|
|
1216
|
+
});
|
|
1217
|
+
return sdkResponse;
|
|
1218
|
+
}
|
|
1219
|
+
catch (err) {
|
|
1220
|
+
throw err;
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Returns a list of models in a compartment.
|
|
1226
|
+
*
|
|
1227
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1228
|
+
* @param ListModelsRequest
|
|
1229
|
+
* @return ListModelsResponse
|
|
1230
|
+
* @throws OciError when an error occurs
|
|
1231
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1232
|
+
*/
|
|
1233
|
+
listModels(listModelsRequest) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
if (this.logger)
|
|
1236
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listModels.");
|
|
1237
|
+
const pathParams = {};
|
|
1238
|
+
const queryParams = {
|
|
1239
|
+
"compartmentId": listModelsRequest.compartmentId,
|
|
1240
|
+
"projectId": listModelsRequest.projectId,
|
|
1241
|
+
"lifecycleState": listModelsRequest.lifecycleState,
|
|
1242
|
+
"displayName": listModelsRequest.displayName,
|
|
1243
|
+
"id": listModelsRequest.id,
|
|
1244
|
+
"limit": listModelsRequest.limit,
|
|
1245
|
+
"page": listModelsRequest.page,
|
|
1246
|
+
"sortOrder": listModelsRequest.sortOrder,
|
|
1247
|
+
"sortBy": listModelsRequest.sortBy
|
|
1248
|
+
};
|
|
1249
|
+
let headerParams = {
|
|
1250
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1251
|
+
"opc-request-id": listModelsRequest.opcRequestId
|
|
1252
|
+
};
|
|
1253
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1254
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listModelsRequest.retryConfiguration, specRetryConfiguration);
|
|
1255
|
+
if (this.logger)
|
|
1256
|
+
retrier.logger = this.logger;
|
|
1257
|
+
const request = yield oci_common_1.composeRequest({
|
|
1258
|
+
baseEndpoint: this._endpoint,
|
|
1259
|
+
defaultHeaders: this._defaultHeaders,
|
|
1260
|
+
path: "/models",
|
|
1261
|
+
method: "GET",
|
|
1262
|
+
pathParams: pathParams,
|
|
1263
|
+
headerParams: headerParams,
|
|
1264
|
+
queryParams: queryParams
|
|
1265
|
+
});
|
|
1266
|
+
try {
|
|
1267
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1268
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1269
|
+
responseObject: {},
|
|
1270
|
+
body: yield response.json(),
|
|
1271
|
+
bodyKey: "modelCollection",
|
|
1272
|
+
bodyModel: model.ModelCollection,
|
|
1273
|
+
type: "model.ModelCollection",
|
|
1274
|
+
responseHeaders: [
|
|
1275
|
+
{
|
|
1276
|
+
value: response.headers.get("opc-request-id"),
|
|
1277
|
+
key: "opcRequestId",
|
|
1278
|
+
dataType: "string"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
value: response.headers.get("opc-next-page"),
|
|
1282
|
+
key: "opcNextPage",
|
|
1283
|
+
dataType: "string"
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
|
+
});
|
|
1287
|
+
return sdkResponse;
|
|
1288
|
+
}
|
|
1289
|
+
catch (err) {
|
|
1290
|
+
throw err;
|
|
1291
|
+
}
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Returns a list of projects.
|
|
1296
|
+
*
|
|
1297
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1298
|
+
* @param ListProjectsRequest
|
|
1299
|
+
* @return ListProjectsResponse
|
|
1300
|
+
* @throws OciError when an error occurs
|
|
1301
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
1302
|
+
*/
|
|
1303
|
+
listProjects(listProjectsRequest) {
|
|
1304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1305
|
+
if (this.logger)
|
|
1306
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listProjects.");
|
|
1307
|
+
const pathParams = {};
|
|
1308
|
+
const queryParams = {
|
|
1309
|
+
"compartmentId": listProjectsRequest.compartmentId,
|
|
1310
|
+
"lifecycleState": listProjectsRequest.lifecycleState,
|
|
1311
|
+
"displayName": listProjectsRequest.displayName,
|
|
1312
|
+
"id": listProjectsRequest.id,
|
|
1313
|
+
"limit": listProjectsRequest.limit,
|
|
1314
|
+
"page": listProjectsRequest.page,
|
|
1315
|
+
"sortOrder": listProjectsRequest.sortOrder,
|
|
1316
|
+
"sortBy": listProjectsRequest.sortBy
|
|
1317
|
+
};
|
|
1318
|
+
let headerParams = {
|
|
1319
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1320
|
+
"opc-request-id": listProjectsRequest.opcRequestId
|
|
1321
|
+
};
|
|
1322
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1323
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
1324
|
+
if (this.logger)
|
|
1325
|
+
retrier.logger = this.logger;
|
|
1326
|
+
const request = yield oci_common_1.composeRequest({
|
|
1327
|
+
baseEndpoint: this._endpoint,
|
|
1328
|
+
defaultHeaders: this._defaultHeaders,
|
|
1329
|
+
path: "/projects",
|
|
1330
|
+
method: "GET",
|
|
1331
|
+
pathParams: pathParams,
|
|
1332
|
+
headerParams: headerParams,
|
|
1333
|
+
queryParams: queryParams
|
|
1334
|
+
});
|
|
1335
|
+
try {
|
|
1336
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1337
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1338
|
+
responseObject: {},
|
|
1339
|
+
body: yield response.json(),
|
|
1340
|
+
bodyKey: "projectCollection",
|
|
1341
|
+
bodyModel: model.ProjectCollection,
|
|
1342
|
+
type: "model.ProjectCollection",
|
|
1343
|
+
responseHeaders: [
|
|
1344
|
+
{
|
|
1345
|
+
value: response.headers.get("opc-request-id"),
|
|
1346
|
+
key: "opcRequestId",
|
|
1347
|
+
dataType: "string"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
value: response.headers.get("opc-next-page"),
|
|
1351
|
+
key: "opcNextPage",
|
|
1352
|
+
dataType: "string"
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
});
|
|
1356
|
+
return sdkResponse;
|
|
1357
|
+
}
|
|
1358
|
+
catch (err) {
|
|
1359
|
+
throw err;
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Return a (paginated) list of errors for a given work request.
|
|
1365
|
+
*
|
|
1366
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1367
|
+
* @param ListWorkRequestErrorsRequest
|
|
1368
|
+
* @return ListWorkRequestErrorsResponse
|
|
1369
|
+
* @throws OciError when an error occurs
|
|
1370
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1371
|
+
*/
|
|
1372
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1374
|
+
if (this.logger)
|
|
1375
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestErrors.");
|
|
1376
|
+
const pathParams = {
|
|
1377
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1378
|
+
};
|
|
1379
|
+
const queryParams = {
|
|
1380
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1381
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1382
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1383
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1384
|
+
};
|
|
1385
|
+
let headerParams = {
|
|
1386
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1387
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1388
|
+
};
|
|
1389
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1390
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1391
|
+
if (this.logger)
|
|
1392
|
+
retrier.logger = this.logger;
|
|
1393
|
+
const request = yield oci_common_1.composeRequest({
|
|
1394
|
+
baseEndpoint: this._endpoint,
|
|
1395
|
+
defaultHeaders: this._defaultHeaders,
|
|
1396
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1397
|
+
method: "GET",
|
|
1398
|
+
pathParams: pathParams,
|
|
1399
|
+
headerParams: headerParams,
|
|
1400
|
+
queryParams: queryParams
|
|
1401
|
+
});
|
|
1402
|
+
try {
|
|
1403
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1404
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1405
|
+
responseObject: {},
|
|
1406
|
+
body: yield response.json(),
|
|
1407
|
+
bodyKey: "workRequestErrorCollection",
|
|
1408
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1409
|
+
type: "model.WorkRequestErrorCollection",
|
|
1410
|
+
responseHeaders: [
|
|
1411
|
+
{
|
|
1412
|
+
value: response.headers.get("opc-next-page"),
|
|
1413
|
+
key: "opcNextPage",
|
|
1414
|
+
dataType: "string"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
value: response.headers.get("opc-request-id"),
|
|
1418
|
+
key: "opcRequestId",
|
|
1419
|
+
dataType: "string"
|
|
1420
|
+
}
|
|
1421
|
+
]
|
|
1422
|
+
});
|
|
1423
|
+
return sdkResponse;
|
|
1424
|
+
}
|
|
1425
|
+
catch (err) {
|
|
1426
|
+
throw err;
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Return a (paginated) list of logs for a given work request.
|
|
1432
|
+
*
|
|
1433
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1434
|
+
* @param ListWorkRequestLogsRequest
|
|
1435
|
+
* @return ListWorkRequestLogsResponse
|
|
1436
|
+
* @throws OciError when an error occurs
|
|
1437
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1438
|
+
*/
|
|
1439
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1441
|
+
if (this.logger)
|
|
1442
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequestLogs.");
|
|
1443
|
+
const pathParams = {
|
|
1444
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1445
|
+
};
|
|
1446
|
+
const queryParams = {
|
|
1447
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1448
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1449
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1450
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1451
|
+
};
|
|
1452
|
+
let headerParams = {
|
|
1453
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1454
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1455
|
+
};
|
|
1456
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1457
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1458
|
+
if (this.logger)
|
|
1459
|
+
retrier.logger = this.logger;
|
|
1460
|
+
const request = yield oci_common_1.composeRequest({
|
|
1461
|
+
baseEndpoint: this._endpoint,
|
|
1462
|
+
defaultHeaders: this._defaultHeaders,
|
|
1463
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1464
|
+
method: "GET",
|
|
1465
|
+
pathParams: pathParams,
|
|
1466
|
+
headerParams: headerParams,
|
|
1467
|
+
queryParams: queryParams
|
|
1468
|
+
});
|
|
1469
|
+
try {
|
|
1470
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1471
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1472
|
+
responseObject: {},
|
|
1473
|
+
body: yield response.json(),
|
|
1474
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1475
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1476
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1477
|
+
responseHeaders: [
|
|
1478
|
+
{
|
|
1479
|
+
value: response.headers.get("opc-next-page"),
|
|
1480
|
+
key: "opcNextPage",
|
|
1481
|
+
dataType: "string"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
value: response.headers.get("opc-request-id"),
|
|
1485
|
+
key: "opcRequestId",
|
|
1486
|
+
dataType: "string"
|
|
1487
|
+
}
|
|
1488
|
+
]
|
|
1489
|
+
});
|
|
1490
|
+
return sdkResponse;
|
|
1491
|
+
}
|
|
1492
|
+
catch (err) {
|
|
1493
|
+
throw err;
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Lists the work requests in a compartment.
|
|
1499
|
+
*
|
|
1500
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1501
|
+
* @param ListWorkRequestsRequest
|
|
1502
|
+
* @return ListWorkRequestsResponse
|
|
1503
|
+
* @throws OciError when an error occurs
|
|
1504
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1505
|
+
*/
|
|
1506
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1508
|
+
if (this.logger)
|
|
1509
|
+
this.logger.debug("Calling operation AIServiceVisionClient#listWorkRequests.");
|
|
1510
|
+
const pathParams = {};
|
|
1511
|
+
const queryParams = {
|
|
1512
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1513
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1514
|
+
"status": listWorkRequestsRequest.status,
|
|
1515
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1516
|
+
"page": listWorkRequestsRequest.page,
|
|
1517
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1518
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1519
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1520
|
+
};
|
|
1521
|
+
let headerParams = {
|
|
1522
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1523
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1524
|
+
};
|
|
1525
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1526
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1527
|
+
if (this.logger)
|
|
1528
|
+
retrier.logger = this.logger;
|
|
1529
|
+
const request = yield oci_common_1.composeRequest({
|
|
1530
|
+
baseEndpoint: this._endpoint,
|
|
1531
|
+
defaultHeaders: this._defaultHeaders,
|
|
1532
|
+
path: "/workRequests",
|
|
1533
|
+
method: "GET",
|
|
1534
|
+
pathParams: pathParams,
|
|
1535
|
+
headerParams: headerParams,
|
|
1536
|
+
queryParams: queryParams
|
|
1537
|
+
});
|
|
1538
|
+
try {
|
|
1539
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1540
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1541
|
+
responseObject: {},
|
|
1542
|
+
body: yield response.json(),
|
|
1543
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1544
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1545
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1546
|
+
responseHeaders: [
|
|
1547
|
+
{
|
|
1548
|
+
value: response.headers.get("opc-request-id"),
|
|
1549
|
+
key: "opcRequestId",
|
|
1550
|
+
dataType: "string"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
value: response.headers.get("opc-next-page"),
|
|
1554
|
+
key: "opcNextPage",
|
|
1555
|
+
dataType: "string"
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
});
|
|
1559
|
+
return sdkResponse;
|
|
1560
|
+
}
|
|
1561
|
+
catch (err) {
|
|
1562
|
+
throw err;
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Updates model metadata.
|
|
1568
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1569
|
+
* @param UpdateModelRequest
|
|
1570
|
+
* @return UpdateModelResponse
|
|
1571
|
+
* @throws OciError when an error occurs
|
|
1572
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
1573
|
+
*/
|
|
1574
|
+
updateModel(updateModelRequest) {
|
|
1575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1576
|
+
if (this.logger)
|
|
1577
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateModel.");
|
|
1578
|
+
const pathParams = {
|
|
1579
|
+
"{modelId}": updateModelRequest.modelId
|
|
1580
|
+
};
|
|
1581
|
+
const queryParams = {};
|
|
1582
|
+
let headerParams = {
|
|
1583
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1584
|
+
"if-match": updateModelRequest.ifMatch,
|
|
1585
|
+
"opc-request-id": updateModelRequest.opcRequestId
|
|
1586
|
+
};
|
|
1587
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1588
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelRequest.retryConfiguration, specRetryConfiguration);
|
|
1589
|
+
if (this.logger)
|
|
1590
|
+
retrier.logger = this.logger;
|
|
1591
|
+
const request = yield oci_common_1.composeRequest({
|
|
1592
|
+
baseEndpoint: this._endpoint,
|
|
1593
|
+
defaultHeaders: this._defaultHeaders,
|
|
1594
|
+
path: "/models/{modelId}",
|
|
1595
|
+
method: "PUT",
|
|
1596
|
+
bodyContent: common.ObjectSerializer.serialize(updateModelRequest.updateModelDetails, "UpdateModelDetails", model.UpdateModelDetails.getJsonObj),
|
|
1597
|
+
pathParams: pathParams,
|
|
1598
|
+
headerParams: headerParams,
|
|
1599
|
+
queryParams: queryParams
|
|
1600
|
+
});
|
|
1601
|
+
try {
|
|
1602
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1603
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1604
|
+
responseObject: {},
|
|
1605
|
+
responseHeaders: [
|
|
1606
|
+
{
|
|
1607
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1608
|
+
key: "opcWorkRequestId",
|
|
1609
|
+
dataType: "string"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
value: response.headers.get("opc-request-id"),
|
|
1613
|
+
key: "opcRequestId",
|
|
1614
|
+
dataType: "string"
|
|
1615
|
+
}
|
|
1616
|
+
]
|
|
1617
|
+
});
|
|
1618
|
+
return sdkResponse;
|
|
1619
|
+
}
|
|
1620
|
+
catch (err) {
|
|
1621
|
+
throw err;
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Updates project metadata.
|
|
1627
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1628
|
+
* @param UpdateProjectRequest
|
|
1629
|
+
* @return UpdateProjectResponse
|
|
1630
|
+
* @throws OciError when an error occurs
|
|
1631
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/aivision/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
1632
|
+
*/
|
|
1633
|
+
updateProject(updateProjectRequest) {
|
|
1634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1635
|
+
if (this.logger)
|
|
1636
|
+
this.logger.debug("Calling operation AIServiceVisionClient#updateProject.");
|
|
1637
|
+
const pathParams = {
|
|
1638
|
+
"{projectId}": updateProjectRequest.projectId
|
|
1639
|
+
};
|
|
1640
|
+
const queryParams = {};
|
|
1641
|
+
let headerParams = {
|
|
1642
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1643
|
+
"if-match": updateProjectRequest.ifMatch,
|
|
1644
|
+
"opc-request-id": updateProjectRequest.opcRequestId
|
|
1645
|
+
};
|
|
1646
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1647
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1648
|
+
if (this.logger)
|
|
1649
|
+
retrier.logger = this.logger;
|
|
1650
|
+
const request = yield oci_common_1.composeRequest({
|
|
1651
|
+
baseEndpoint: this._endpoint,
|
|
1652
|
+
defaultHeaders: this._defaultHeaders,
|
|
1653
|
+
path: "/projects/{projectId}",
|
|
1654
|
+
method: "PUT",
|
|
1655
|
+
bodyContent: common.ObjectSerializer.serialize(updateProjectRequest.updateProjectDetails, "UpdateProjectDetails", model.UpdateProjectDetails.getJsonObj),
|
|
1656
|
+
pathParams: pathParams,
|
|
1657
|
+
headerParams: headerParams,
|
|
1658
|
+
queryParams: queryParams
|
|
1659
|
+
});
|
|
1660
|
+
try {
|
|
1661
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1662
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1663
|
+
responseObject: {},
|
|
1664
|
+
responseHeaders: [
|
|
1665
|
+
{
|
|
1666
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1667
|
+
key: "opcWorkRequestId",
|
|
1668
|
+
dataType: "string"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
value: response.headers.get("opc-request-id"),
|
|
1672
|
+
key: "opcRequestId",
|
|
1673
|
+
dataType: "string"
|
|
1674
|
+
}
|
|
1675
|
+
]
|
|
1676
|
+
});
|
|
1677
|
+
return sdkResponse;
|
|
1678
|
+
}
|
|
1679
|
+
catch (err) {
|
|
1680
|
+
throw err;
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
exports.AIServiceVisionClient = AIServiceVisionClient;
|
|
1686
|
+
AIServiceVisionClient.serviceEndpointTemplate = "https://vision.aiservice.{region}.oci.{secondLevelDomain}";
|
|
1687
|
+
AIServiceVisionClient.endpointServiceName = "";
|
|
1688
|
+
//# sourceMappingURL=client.js.map
|