oci-datascience 2.132.0 → 2.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +128 -0
- package/lib/client.js +540 -0
- package/lib/client.js.map +1 -1
- package/lib/datascience-waiter.d.ts +8 -0
- package/lib/datascience-waiter.js +12 -0
- package/lib/datascience-waiter.js.map +1 -1
- package/lib/model/auth-configuration.js +0 -8
- package/lib/model/auth-configuration.js.map +1 -1
- package/lib/model/auto-scaling-policy.d.ts +1 -1
- package/lib/model/change-compute-target-compartment-details.d.ts +27 -0
- package/lib/model/change-compute-target-compartment-details.js +30 -0
- package/lib/model/change-compute-target-compartment-details.js.map +1 -0
- package/lib/model/compute-configuration-details.d.ts +23 -0
- package/lib/model/compute-configuration-details.js +69 -0
- package/lib/model/compute-configuration-details.js.map +1 -0
- package/lib/model/compute-target-lifecycle-state.d.ts +34 -0
- package/lib/model/compute-target-lifecycle-state.js +45 -0
- package/lib/model/compute-target-lifecycle-state.js.map +1 -0
- package/lib/model/compute-target-shape-series.d.ts +34 -0
- package/lib/model/compute-target-shape-series.js +45 -0
- package/lib/model/compute-target-shape-series.js.map +1 -0
- package/lib/model/{idcs-custom-service-auth-configuration.d.ts → compute-target-shape-summary.d.ts} +18 -19
- package/lib/model/compute-target-shape-summary.js +30 -0
- package/lib/model/compute-target-shape-summary.js.map +1 -0
- package/lib/model/compute-target-summary.d.ts +67 -0
- package/lib/model/compute-target-summary.js +30 -0
- package/lib/model/compute-target-summary.js.map +1 -0
- package/lib/model/compute-target-system-data.d.ts +23 -0
- package/lib/model/compute-target-system-data.js +69 -0
- package/lib/model/compute-target-system-data.js.map +1 -0
- package/lib/model/compute-target.d.ts +93 -0
- package/lib/model/compute-target.js +64 -0
- package/lib/model/compute-target.js.map +1 -0
- package/lib/model/compute-type.d.ts +28 -0
- package/lib/model/compute-type.js +39 -0
- package/lib/model/compute-type.js.map +1 -0
- package/lib/model/create-auth-configuration-details.js +0 -8
- package/lib/model/create-auth-configuration-details.js.map +1 -1
- package/lib/model/create-compute-target-details.d.ts +71 -0
- package/lib/model/create-compute-target-details.js +58 -0
- package/lib/model/create-compute-target-details.js.map +1 -0
- package/lib/model/create-job-details.d.ts +1 -1
- package/lib/model/create-job-details.js.map +1 -1
- package/lib/model/create-job-run-details.d.ts +1 -1
- package/lib/model/create-job-run-details.js.map +1 -1
- package/lib/model/create-ml-application-instance-details.d.ts +1 -1
- package/lib/model/create-ml-application-instance-details.js.map +1 -1
- package/lib/model/create-model-deployment-details.d.ts +1 -1
- package/lib/model/create-model-deployment-details.js.map +1 -1
- package/lib/model/http-method.d.ts +33 -0
- package/lib/model/http-method.js +44 -0
- package/lib/model/http-method.js.map +1 -0
- package/lib/model/index.d.ts +116 -8
- package/lib/model/index.js +124 -15
- package/lib/model/index.js.map +1 -1
- package/lib/model/{idcs-auth-configuration.d.ts → inference-http-endpoint.d.ts} +12 -11
- package/lib/model/inference-http-endpoint.js +62 -0
- package/lib/model/inference-http-endpoint.js.map +1 -0
- package/lib/model/job-infrastructure-configuration-details.js +4 -0
- package/lib/model/job-infrastructure-configuration-details.js.map +1 -1
- package/lib/model/job-node-group-configuration-details.d.ts +1 -1
- package/lib/model/job-node-group-configuration-details.js.map +1 -1
- package/lib/model/job-run.d.ts +2 -2
- package/lib/model/job-run.js.map +1 -1
- package/lib/model/job.d.ts +1 -1
- package/lib/model/job.js.map +1 -1
- package/lib/model/managed-compute-cluster-auto-scaling-policy-details.d.ts +23 -0
- package/lib/model/managed-compute-cluster-auto-scaling-policy-details.js +69 -0
- package/lib/model/managed-compute-cluster-auto-scaling-policy-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-auto-scaling-policy.d.ts +40 -0
- package/lib/model/managed-compute-cluster-auto-scaling-policy.js +67 -0
- package/lib/model/managed-compute-cluster-auto-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-compute-configuration-details.d.ts +27 -0
- package/lib/model/managed-compute-cluster-compute-configuration-details.js +69 -0
- package/lib/model/managed-compute-cluster-compute-configuration-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-custom-expression-query-scaling-configuration.d.ts +39 -0
- package/lib/model/managed-compute-cluster-custom-expression-query-scaling-configuration.js +55 -0
- package/lib/model/managed-compute-cluster-custom-expression-query-scaling-configuration.js.map +1 -0
- package/lib/model/managed-compute-cluster-custom-metric-expression-rule.d.ts +27 -0
- package/lib/model/managed-compute-cluster-custom-metric-expression-rule.js +69 -0
- package/lib/model/managed-compute-cluster-custom-metric-expression-rule.js.map +1 -0
- package/lib/model/managed-compute-cluster-fixed-size-scaling-policy.d.ts +29 -0
- package/lib/model/{create-idcs-auth-configuration-details.js → managed-compute-cluster-fixed-size-scaling-policy.js} +10 -10
- package/lib/model/managed-compute-cluster-fixed-size-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-instance-configuration-details.d.ts +32 -0
- package/lib/model/managed-compute-cluster-instance-configuration-details.js +58 -0
- package/lib/model/managed-compute-cluster-instance-configuration-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-instance-shape-details.d.ts +30 -0
- package/lib/model/managed-compute-cluster-instance-shape-details.js +30 -0
- package/lib/model/managed-compute-cluster-instance-shape-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-job-infrastructure-configuration-details.d.ts +30 -0
- package/lib/model/managed-compute-cluster-job-infrastructure-configuration-details.js +63 -0
- package/lib/model/managed-compute-cluster-job-infrastructure-configuration-details.js.map +1 -0
- package/lib/model/{create-idcs-auth-configuration-details.d.ts → managed-compute-cluster-job-resource-configuration.d.ts} +7 -11
- package/lib/model/managed-compute-cluster-job-resource-configuration.js +64 -0
- package/lib/model/managed-compute-cluster-job-resource-configuration.js.map +1 -0
- package/lib/model/managed-compute-cluster-metric-expression-rule.d.ts +23 -0
- package/lib/model/managed-compute-cluster-metric-expression-rule.js +73 -0
- package/lib/model/managed-compute-cluster-metric-expression-rule.js.map +1 -0
- package/lib/model/managed-compute-cluster-model-deploy-infrastructure-config-details.d.ts +31 -0
- package/lib/model/managed-compute-cluster-model-deploy-infrastructure-config-details.js +69 -0
- package/lib/model/managed-compute-cluster-model-deploy-infrastructure-config-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-model-deployment-resource-configuration.d.ts +25 -0
- package/lib/model/managed-compute-cluster-model-deployment-resource-configuration.js +64 -0
- package/lib/model/managed-compute-cluster-model-deployment-resource-configuration.js.map +1 -0
- package/lib/model/managed-compute-cluster-model-deployment-system-data.d.ts +29 -0
- package/lib/model/{idcs-custom-service-auth-configuration.js → managed-compute-cluster-model-deployment-system-data.js} +10 -10
- package/lib/model/managed-compute-cluster-model-deployment-system-data.js.map +1 -0
- package/lib/model/managed-compute-cluster-predefined-expression-threshold-scaling-configuration.d.ts +29 -0
- package/lib/model/managed-compute-cluster-predefined-expression-threshold-scaling-configuration.js +55 -0
- package/lib/model/managed-compute-cluster-predefined-expression-threshold-scaling-configuration.js.map +1 -0
- package/lib/model/managed-compute-cluster-predefined-metric-expression-rule.d.ts +40 -0
- package/lib/model/managed-compute-cluster-predefined-metric-expression-rule.js +79 -0
- package/lib/model/managed-compute-cluster-predefined-metric-expression-rule.js.map +1 -0
- package/lib/model/managed-compute-cluster-scaling-configuration.d.ts +36 -0
- package/lib/model/managed-compute-cluster-scaling-configuration.js +73 -0
- package/lib/model/managed-compute-cluster-scaling-configuration.js.map +1 -0
- package/lib/model/managed-compute-cluster-scaling-policy.d.ts +23 -0
- package/lib/model/managed-compute-cluster-scaling-policy.js +73 -0
- package/lib/model/managed-compute-cluster-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-system-data.d.ts +29 -0
- package/lib/model/{idcs-auth-configuration.js → managed-compute-cluster-system-data.js} +10 -10
- package/lib/model/managed-compute-cluster-system-data.js.map +1 -0
- package/lib/model/managed-compute-cluster-threshold-based-auto-scaling-policy-details.d.ts +45 -0
- package/lib/model/managed-compute-cluster-threshold-based-auto-scaling-policy-details.js +67 -0
- package/lib/model/managed-compute-cluster-threshold-based-auto-scaling-policy-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy-details.d.ts +23 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy-details.js +69 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy-details.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy.d.ts +33 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy.js +67 -0
- package/lib/model/managed-compute-cluster-workload-auto-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-fixed-size-scaling-policy.d.ts +29 -0
- package/lib/model/managed-compute-cluster-workload-fixed-size-scaling-policy.js +55 -0
- package/lib/model/managed-compute-cluster-workload-fixed-size-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-metric-expression-rule.d.ts +23 -0
- package/lib/model/managed-compute-cluster-workload-metric-expression-rule.js +73 -0
- package/lib/model/managed-compute-cluster-workload-metric-expression-rule.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-scale-policy.d.ts +41 -0
- package/lib/model/managed-compute-cluster-workload-scale-policy.js +30 -0
- package/lib/model/managed-compute-cluster-workload-scale-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-scaling-policy.d.ts +23 -0
- package/lib/model/managed-compute-cluster-workload-scaling-policy.js +73 -0
- package/lib/model/managed-compute-cluster-workload-scaling-policy.js.map +1 -0
- package/lib/model/managed-compute-cluster-workload-threshold-based-policy-details.d.ts +47 -0
- package/lib/model/managed-compute-cluster-workload-threshold-based-policy-details.js +79 -0
- package/lib/model/managed-compute-cluster-workload-threshold-based-policy-details.js.map +1 -0
- package/lib/model/ml-application-instance-view.d.ts +1 -1
- package/lib/model/ml-application-instance-view.js.map +1 -1
- package/lib/model/ml-application-instance.d.ts +1 -1
- package/lib/model/ml-application-instance.js.map +1 -1
- package/lib/model/model-deploy-infrastructure-configuration-details.d.ts +23 -0
- package/lib/model/model-deploy-infrastructure-configuration-details.js +69 -0
- package/lib/model/model-deploy-infrastructure-configuration-details.js.map +1 -0
- package/lib/model/model-deploy-infrastructure-type.d.ts +28 -0
- package/lib/model/model-deploy-infrastructure-type.js +39 -0
- package/lib/model/model-deploy-infrastructure-type.js.map +1 -0
- package/lib/model/model-deployment-configuration-details.js +4 -0
- package/lib/model/model-deployment-configuration-details.js.map +1 -1
- package/lib/model/model-deployment-summary.d.ts +2 -2
- package/lib/model/model-deployment-summary.js.map +1 -1
- package/lib/model/model-deployment-system-data.js +4 -0
- package/lib/model/model-deployment-system-data.js.map +1 -1
- package/lib/model/model-deployment-type.d.ts +1 -0
- package/lib/model/model-deployment-type.js +1 -0
- package/lib/model/model-deployment-type.js.map +1 -1
- package/lib/model/model-deployment.d.ts +2 -2
- package/lib/model/model-deployment.js.map +1 -1
- package/lib/model/ocir-model-deployment-environment-configuration-details.d.ts +12 -0
- package/lib/model/ocir-model-deployment-environment-configuration-details.js +14 -2
- package/lib/model/ocir-model-deployment-environment-configuration-details.js.map +1 -1
- package/lib/model/resource-limit-configuration.d.ts +32 -0
- package/lib/model/resource-limit-configuration.js +30 -0
- package/lib/model/resource-limit-configuration.js.map +1 -0
- package/lib/model/resource-request-configuration.d.ts +37 -0
- package/lib/model/resource-request-configuration.js +30 -0
- package/lib/model/resource-request-configuration.js.map +1 -0
- package/lib/model/single-model-configuration-details.d.ts +26 -0
- package/lib/model/single-model-configuration-details.js +30 -0
- package/lib/model/single-model-configuration-details.js.map +1 -0
- package/lib/model/single-model-deployment-flex-configuration-details.d.ts +28 -0
- package/lib/model/single-model-deployment-flex-configuration-details.js +75 -0
- package/lib/model/single-model-deployment-flex-configuration-details.js.map +1 -0
- package/lib/model/target-custom-expression-query-scaling-configuration.d.ts +47 -0
- package/lib/model/{create-idcs-custom-service-auth-configuration-details.js → target-custom-expression-query-scaling-configuration.js} +10 -10
- package/lib/model/target-custom-expression-query-scaling-configuration.js.map +1 -0
- package/lib/model/target-custom-metric-expression-rule.d.ts +26 -0
- package/lib/model/target-custom-metric-expression-rule.js +63 -0
- package/lib/model/target-custom-metric-expression-rule.js.map +1 -0
- package/lib/model/target-predefined-expression-threshold-scaling-configuration.d.ts +29 -0
- package/lib/model/target-predefined-expression-threshold-scaling-configuration.js +55 -0
- package/lib/model/target-predefined-expression-threshold-scaling-configuration.js.map +1 -0
- package/lib/model/target-predefined-metric-expression-rule.d.ts +39 -0
- package/lib/model/target-predefined-metric-expression-rule.js +73 -0
- package/lib/model/target-predefined-metric-expression-rule.js.map +1 -0
- package/lib/model/target-scaling-configuration.d.ts +23 -0
- package/lib/model/target-scaling-configuration.js +73 -0
- package/lib/model/target-scaling-configuration.js.map +1 -0
- package/lib/model/update-compute-configuration-details.d.ts +23 -0
- package/lib/model/update-compute-configuration-details.js +69 -0
- package/lib/model/update-compute-configuration-details.js.map +1 -0
- package/lib/model/update-compute-target-details.d.ts +66 -0
- package/lib/model/update-compute-target-details.js +58 -0
- package/lib/model/update-compute-target-details.js.map +1 -0
- package/lib/model/update-job-details.d.ts +1 -1
- package/lib/model/update-job-details.js.map +1 -1
- package/lib/model/update-managed-compute-cluster-configuration-details.d.ts +27 -0
- package/lib/model/update-managed-compute-cluster-configuration-details.js +69 -0
- package/lib/model/update-managed-compute-cluster-configuration-details.js.map +1 -0
- package/lib/model/update-managed-compute-cluster-instance-configuration-details.d.ts +32 -0
- package/lib/model/update-managed-compute-cluster-instance-configuration-details.js +58 -0
- package/lib/model/update-managed-compute-cluster-instance-configuration-details.js.map +1 -0
- package/lib/model/update-managed-compute-cluster-model-deploy-infrastructure-config-details.d.ts +33 -0
- package/lib/model/update-managed-compute-cluster-model-deploy-infrastructure-config-details.js +69 -0
- package/lib/model/update-managed-compute-cluster-model-deploy-infrastructure-config-details.js.map +1 -0
- package/lib/model/update-model-deploy-infrastructure-configuration-details.d.ts +23 -0
- package/lib/model/update-model-deploy-infrastructure-configuration-details.js +69 -0
- package/lib/model/update-model-deploy-infrastructure-configuration-details.js.map +1 -0
- package/lib/model/update-model-deployment-configuration-details.js +4 -0
- package/lib/model/update-model-deployment-configuration-details.js.map +1 -1
- package/lib/model/update-model-deployment-details.d.ts +1 -1
- package/lib/model/update-model-deployment-details.js.map +1 -1
- package/lib/model/update-ocir-model-deployment-environment-configuration-details.d.ts +12 -0
- package/lib/model/update-ocir-model-deployment-environment-configuration-details.js +14 -2
- package/lib/model/update-ocir-model-deployment-environment-configuration-details.js.map +1 -1
- package/lib/model/update-single-model-configuration-details.d.ts +26 -0
- package/lib/model/update-single-model-configuration-details.js +30 -0
- package/lib/model/update-single-model-configuration-details.js.map +1 -0
- package/lib/model/update-single-model-deployment-flex-configuration-details.d.ts +28 -0
- package/lib/model/update-single-model-deployment-flex-configuration-details.js +75 -0
- package/lib/model/update-single-model-deployment-flex-configuration-details.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +3 -0
- package/lib/model/work-request-operation-type.js +3 -0
- package/lib/model/work-request-operation-type.js.map +1 -1
- package/lib/request/change-compute-target-compartment-request.d.ts +46 -0
- package/lib/request/change-compute-target-compartment-request.js +15 -0
- package/lib/request/change-compute-target-compartment-request.js.map +1 -0
- package/lib/request/create-compute-target-request.d.ts +33 -0
- package/lib/request/create-compute-target-request.js +15 -0
- package/lib/request/create-compute-target-request.js.map +1 -0
- package/lib/request/delete-compute-target-request.d.ts +36 -0
- package/lib/request/delete-compute-target-request.js +15 -0
- package/lib/request/delete-compute-target-request.js.map +1 -0
- package/lib/request/get-compute-target-request.d.ts +27 -0
- package/lib/request/get-compute-target-request.js +15 -0
- package/lib/request/get-compute-target-request.js.map +1 -0
- package/lib/request/index.d.ts +14 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-compute-target-shapes-request.d.ts +45 -0
- package/lib/request/list-compute-target-shapes-request.js +15 -0
- package/lib/request/list-compute-target-shapes-request.js.map +1 -0
- package/lib/request/list-compute-targets-request.d.ts +84 -0
- package/lib/request/list-compute-targets-request.js +29 -0
- package/lib/request/list-compute-targets-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +3 -0
- package/lib/request/list-work-requests-request.js +3 -0
- package/lib/request/list-work-requests-request.js.map +1 -1
- package/lib/request/update-compute-target-request.d.ts +41 -0
- package/lib/request/update-compute-target-request.js +15 -0
- package/lib/request/update-compute-target-request.js.map +1 -0
- package/lib/response/change-compute-target-compartment-response.d.ts +20 -0
- package/lib/response/change-compute-target-compartment-response.js +15 -0
- package/lib/response/change-compute-target-compartment-response.js.map +1 -0
- package/lib/response/create-compute-target-response.d.ts +41 -0
- package/lib/response/create-compute-target-response.js +15 -0
- package/lib/response/create-compute-target-response.js.map +1 -0
- package/lib/response/delete-compute-target-response.d.ts +26 -0
- package/lib/response/delete-compute-target-response.js +15 -0
- package/lib/response/delete-compute-target-response.js.map +1 -0
- package/lib/response/get-compute-target-response.d.ts +30 -0
- package/lib/response/get-compute-target-response.js +15 -0
- package/lib/response/get-compute-target-response.js.map +1 -0
- package/lib/response/index.d.ts +14 -0
- package/lib/response/list-compute-target-shapes-response.d.ts +35 -0
- package/lib/response/list-compute-target-shapes-response.js +15 -0
- package/lib/response/list-compute-target-shapes-response.js.map +1 -0
- package/lib/response/list-compute-targets-response.d.ts +35 -0
- package/lib/response/list-compute-targets-response.js +15 -0
- package/lib/response/list-compute-targets-response.js.map +1 -0
- package/lib/response/update-compute-target-response.d.ts +26 -0
- package/lib/response/update-compute-target-response.js +15 -0
- package/lib/response/update-compute-target-response.js.map +1 -0
- package/package.json +8 -6
- package/lib/model/create-idcs-auth-configuration-details.js.map +0 -1
- package/lib/model/create-idcs-custom-service-auth-configuration-details.d.ts +0 -45
- package/lib/model/create-idcs-custom-service-auth-configuration-details.js.map +0 -1
- package/lib/model/idcs-auth-configuration.js.map +0 -1
- package/lib/model/idcs-custom-service-auth-configuration.js.map +0 -1
package/lib/client.js
CHANGED
|
@@ -686,6 +686,63 @@ class DataScienceClient {
|
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Moves a compute target into a different compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
691
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
692
|
+
* @param ChangeComputeTargetCompartmentRequest
|
|
693
|
+
* @return ChangeComputeTargetCompartmentResponse
|
|
694
|
+
* @throws OciError when an error occurs
|
|
695
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ChangeComputeTargetCompartment.ts.html |here} to see how to use ChangeComputeTargetCompartment API.
|
|
696
|
+
*/
|
|
697
|
+
changeComputeTargetCompartment(changeComputeTargetCompartmentRequest) {
|
|
698
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
699
|
+
if (this.logger)
|
|
700
|
+
this.logger.debug("Calling operation DataScienceClient#changeComputeTargetCompartment.");
|
|
701
|
+
const operationName = "changeComputeTargetCompartment";
|
|
702
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/ChangeComputeTargetCompartment";
|
|
703
|
+
const pathParams = {
|
|
704
|
+
"{computeTargetId}": changeComputeTargetCompartmentRequest.computeTargetId
|
|
705
|
+
};
|
|
706
|
+
const queryParams = {};
|
|
707
|
+
let headerParams = {
|
|
708
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
709
|
+
"if-match": changeComputeTargetCompartmentRequest.ifMatch,
|
|
710
|
+
"opc-request-id": changeComputeTargetCompartmentRequest.opcRequestId,
|
|
711
|
+
"opc-retry-token": changeComputeTargetCompartmentRequest.opcRetryToken
|
|
712
|
+
};
|
|
713
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
714
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeComputeTargetCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
715
|
+
if (this.logger)
|
|
716
|
+
retrier.logger = this.logger;
|
|
717
|
+
const request = yield oci_common_2.composeRequest({
|
|
718
|
+
baseEndpoint: this._endpoint,
|
|
719
|
+
defaultHeaders: this._defaultHeaders,
|
|
720
|
+
path: "/computeTargets/{computeTargetId}/actions/changeCompartment",
|
|
721
|
+
method: "POST",
|
|
722
|
+
bodyContent: common.ObjectSerializer.serialize(changeComputeTargetCompartmentRequest.changeComputeTargetCompartmentDetails, "ChangeComputeTargetCompartmentDetails", model.ChangeComputeTargetCompartmentDetails.getJsonObj),
|
|
723
|
+
pathParams: pathParams,
|
|
724
|
+
headerParams: headerParams,
|
|
725
|
+
queryParams: queryParams
|
|
726
|
+
});
|
|
727
|
+
try {
|
|
728
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
729
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
730
|
+
responseObject: {},
|
|
731
|
+
responseHeaders: [
|
|
732
|
+
{
|
|
733
|
+
value: response.headers.get("opc-request-id"),
|
|
734
|
+
key: "opcRequestId",
|
|
735
|
+
dataType: "string"
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
});
|
|
739
|
+
return sdkResponse;
|
|
740
|
+
}
|
|
741
|
+
catch (err) {
|
|
742
|
+
throw err;
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
689
746
|
/**
|
|
690
747
|
* Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
691
748
|
*
|
|
@@ -1682,6 +1739,79 @@ class DataScienceClient {
|
|
|
1682
1739
|
}
|
|
1683
1740
|
});
|
|
1684
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Creates a new compute target resource.
|
|
1744
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1745
|
+
* @param CreateComputeTargetRequest
|
|
1746
|
+
* @return CreateComputeTargetResponse
|
|
1747
|
+
* @throws OciError when an error occurs
|
|
1748
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateComputeTarget.ts.html |here} to see how to use CreateComputeTarget API.
|
|
1749
|
+
*/
|
|
1750
|
+
createComputeTarget(createComputeTargetRequest) {
|
|
1751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1752
|
+
if (this.logger)
|
|
1753
|
+
this.logger.debug("Calling operation DataScienceClient#createComputeTarget.");
|
|
1754
|
+
const operationName = "createComputeTarget";
|
|
1755
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/CreateComputeTarget";
|
|
1756
|
+
const pathParams = {};
|
|
1757
|
+
const queryParams = {};
|
|
1758
|
+
let headerParams = {
|
|
1759
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1760
|
+
"opc-request-id": createComputeTargetRequest.opcRequestId,
|
|
1761
|
+
"opc-retry-token": createComputeTargetRequest.opcRetryToken
|
|
1762
|
+
};
|
|
1763
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1764
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createComputeTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
1765
|
+
if (this.logger)
|
|
1766
|
+
retrier.logger = this.logger;
|
|
1767
|
+
const request = yield oci_common_2.composeRequest({
|
|
1768
|
+
baseEndpoint: this._endpoint,
|
|
1769
|
+
defaultHeaders: this._defaultHeaders,
|
|
1770
|
+
path: "/computeTargets",
|
|
1771
|
+
method: "POST",
|
|
1772
|
+
bodyContent: common.ObjectSerializer.serialize(createComputeTargetRequest.createComputeTargetDetails, "CreateComputeTargetDetails", model.CreateComputeTargetDetails.getJsonObj),
|
|
1773
|
+
pathParams: pathParams,
|
|
1774
|
+
headerParams: headerParams,
|
|
1775
|
+
queryParams: queryParams
|
|
1776
|
+
});
|
|
1777
|
+
try {
|
|
1778
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1779
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1780
|
+
responseObject: {},
|
|
1781
|
+
body: yield response.json(),
|
|
1782
|
+
bodyKey: "computeTarget",
|
|
1783
|
+
bodyModel: model.ComputeTarget,
|
|
1784
|
+
type: "model.ComputeTarget",
|
|
1785
|
+
responseHeaders: [
|
|
1786
|
+
{
|
|
1787
|
+
value: response.headers.get("etag"),
|
|
1788
|
+
key: "etag",
|
|
1789
|
+
dataType: "string"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
value: response.headers.get("location"),
|
|
1793
|
+
key: "location",
|
|
1794
|
+
dataType: "string"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
value: response.headers.get("opc-request-id"),
|
|
1798
|
+
key: "opcRequestId",
|
|
1799
|
+
dataType: "string"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1803
|
+
key: "opcWorkRequestId",
|
|
1804
|
+
dataType: "string"
|
|
1805
|
+
}
|
|
1806
|
+
]
|
|
1807
|
+
});
|
|
1808
|
+
return sdkResponse;
|
|
1809
|
+
}
|
|
1810
|
+
catch (err) {
|
|
1811
|
+
throw err;
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1685
1815
|
/**
|
|
1686
1816
|
* Creates a Data Science private endpoint to be used by a Data Science resource.
|
|
1687
1817
|
*
|
|
@@ -3522,6 +3652,66 @@ class DataScienceClient {
|
|
|
3522
3652
|
}
|
|
3523
3653
|
});
|
|
3524
3654
|
}
|
|
3655
|
+
/**
|
|
3656
|
+
* Deletes the specified compute target.
|
|
3657
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3658
|
+
* @param DeleteComputeTargetRequest
|
|
3659
|
+
* @return DeleteComputeTargetResponse
|
|
3660
|
+
* @throws OciError when an error occurs
|
|
3661
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteComputeTarget.ts.html |here} to see how to use DeleteComputeTarget API.
|
|
3662
|
+
*/
|
|
3663
|
+
deleteComputeTarget(deleteComputeTargetRequest) {
|
|
3664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3665
|
+
if (this.logger)
|
|
3666
|
+
this.logger.debug("Calling operation DataScienceClient#deleteComputeTarget.");
|
|
3667
|
+
const operationName = "deleteComputeTarget";
|
|
3668
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/DeleteComputeTarget";
|
|
3669
|
+
const pathParams = {
|
|
3670
|
+
"{computeTargetId}": deleteComputeTargetRequest.computeTargetId
|
|
3671
|
+
};
|
|
3672
|
+
const queryParams = {};
|
|
3673
|
+
let headerParams = {
|
|
3674
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3675
|
+
"if-match": deleteComputeTargetRequest.ifMatch,
|
|
3676
|
+
"opc-request-id": deleteComputeTargetRequest.opcRequestId
|
|
3677
|
+
};
|
|
3678
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3679
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteComputeTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
3680
|
+
if (this.logger)
|
|
3681
|
+
retrier.logger = this.logger;
|
|
3682
|
+
const request = yield oci_common_2.composeRequest({
|
|
3683
|
+
baseEndpoint: this._endpoint,
|
|
3684
|
+
defaultHeaders: this._defaultHeaders,
|
|
3685
|
+
path: "/computeTargets/{computeTargetId}",
|
|
3686
|
+
method: "DELETE",
|
|
3687
|
+
pathParams: pathParams,
|
|
3688
|
+
headerParams: headerParams,
|
|
3689
|
+
queryParams: queryParams
|
|
3690
|
+
});
|
|
3691
|
+
try {
|
|
3692
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3693
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3694
|
+
responseObject: {},
|
|
3695
|
+
responseHeaders: [
|
|
3696
|
+
{
|
|
3697
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3698
|
+
key: "opcWorkRequestId",
|
|
3699
|
+
dataType: "string"
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
value: response.headers.get("opc-request-id"),
|
|
3703
|
+
key: "opcRequestId",
|
|
3704
|
+
dataType: "string"
|
|
3705
|
+
}
|
|
3706
|
+
]
|
|
3707
|
+
});
|
|
3708
|
+
return sdkResponse;
|
|
3709
|
+
}
|
|
3710
|
+
catch (err) {
|
|
3711
|
+
throw err;
|
|
3712
|
+
}
|
|
3713
|
+
});
|
|
3714
|
+
}
|
|
3525
3715
|
/**
|
|
3526
3716
|
* Deletes a private endpoint using `privateEndpointId`.
|
|
3527
3717
|
*
|
|
@@ -4778,6 +4968,69 @@ class DataScienceClient {
|
|
|
4778
4968
|
}
|
|
4779
4969
|
});
|
|
4780
4970
|
}
|
|
4971
|
+
/**
|
|
4972
|
+
* Retrieves the compute target for the specified `computeTargetId`.
|
|
4973
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4974
|
+
* @param GetComputeTargetRequest
|
|
4975
|
+
* @return GetComputeTargetResponse
|
|
4976
|
+
* @throws OciError when an error occurs
|
|
4977
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetComputeTarget.ts.html |here} to see how to use GetComputeTarget API.
|
|
4978
|
+
*/
|
|
4979
|
+
getComputeTarget(getComputeTargetRequest) {
|
|
4980
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4981
|
+
if (this.logger)
|
|
4982
|
+
this.logger.debug("Calling operation DataScienceClient#getComputeTarget.");
|
|
4983
|
+
const operationName = "getComputeTarget";
|
|
4984
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/GetComputeTarget";
|
|
4985
|
+
const pathParams = {
|
|
4986
|
+
"{computeTargetId}": getComputeTargetRequest.computeTargetId
|
|
4987
|
+
};
|
|
4988
|
+
const queryParams = {};
|
|
4989
|
+
let headerParams = {
|
|
4990
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4991
|
+
"opc-request-id": getComputeTargetRequest.opcRequestId
|
|
4992
|
+
};
|
|
4993
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4994
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
4995
|
+
if (this.logger)
|
|
4996
|
+
retrier.logger = this.logger;
|
|
4997
|
+
const request = yield oci_common_2.composeRequest({
|
|
4998
|
+
baseEndpoint: this._endpoint,
|
|
4999
|
+
defaultHeaders: this._defaultHeaders,
|
|
5000
|
+
path: "/computeTargets/{computeTargetId}",
|
|
5001
|
+
method: "GET",
|
|
5002
|
+
pathParams: pathParams,
|
|
5003
|
+
headerParams: headerParams,
|
|
5004
|
+
queryParams: queryParams
|
|
5005
|
+
});
|
|
5006
|
+
try {
|
|
5007
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5008
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5009
|
+
responseObject: {},
|
|
5010
|
+
body: yield response.json(),
|
|
5011
|
+
bodyKey: "computeTarget",
|
|
5012
|
+
bodyModel: model.ComputeTarget,
|
|
5013
|
+
type: "model.ComputeTarget",
|
|
5014
|
+
responseHeaders: [
|
|
5015
|
+
{
|
|
5016
|
+
value: response.headers.get("etag"),
|
|
5017
|
+
key: "etag",
|
|
5018
|
+
dataType: "string"
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
value: response.headers.get("opc-request-id"),
|
|
5022
|
+
key: "opcRequestId",
|
|
5023
|
+
dataType: "string"
|
|
5024
|
+
}
|
|
5025
|
+
]
|
|
5026
|
+
});
|
|
5027
|
+
return sdkResponse;
|
|
5028
|
+
}
|
|
5029
|
+
catch (err) {
|
|
5030
|
+
throw err;
|
|
5031
|
+
}
|
|
5032
|
+
});
|
|
5033
|
+
}
|
|
4781
5034
|
/**
|
|
4782
5035
|
* Retrieves an private endpoint using a `privateEndpointId`.
|
|
4783
5036
|
*
|
|
@@ -7207,6 +7460,232 @@ class DataScienceClient {
|
|
|
7207
7460
|
}
|
|
7208
7461
|
});
|
|
7209
7462
|
}
|
|
7463
|
+
/**
|
|
7464
|
+
* Lists the valid compute target shapes.
|
|
7465
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7466
|
+
* @param ListComputeTargetShapesRequest
|
|
7467
|
+
* @return ListComputeTargetShapesResponse
|
|
7468
|
+
* @throws OciError when an error occurs
|
|
7469
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListComputeTargetShapes.ts.html |here} to see how to use ListComputeTargetShapes API.
|
|
7470
|
+
*/
|
|
7471
|
+
listComputeTargetShapes(listComputeTargetShapesRequest) {
|
|
7472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7473
|
+
if (this.logger)
|
|
7474
|
+
this.logger.debug("Calling operation DataScienceClient#listComputeTargetShapes.");
|
|
7475
|
+
const operationName = "listComputeTargetShapes";
|
|
7476
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetShapeSummary/ListComputeTargetShapes";
|
|
7477
|
+
const pathParams = {};
|
|
7478
|
+
const queryParams = {
|
|
7479
|
+
"compartmentId": listComputeTargetShapesRequest.compartmentId,
|
|
7480
|
+
"limit": listComputeTargetShapesRequest.limit,
|
|
7481
|
+
"page": listComputeTargetShapesRequest.page
|
|
7482
|
+
};
|
|
7483
|
+
let headerParams = {
|
|
7484
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7485
|
+
"opc-request-id": listComputeTargetShapesRequest.opcRequestId
|
|
7486
|
+
};
|
|
7487
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7488
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeTargetShapesRequest.retryConfiguration, specRetryConfiguration);
|
|
7489
|
+
if (this.logger)
|
|
7490
|
+
retrier.logger = this.logger;
|
|
7491
|
+
const request = yield oci_common_2.composeRequest({
|
|
7492
|
+
baseEndpoint: this._endpoint,
|
|
7493
|
+
defaultHeaders: this._defaultHeaders,
|
|
7494
|
+
path: "/computeTargetShapes",
|
|
7495
|
+
method: "GET",
|
|
7496
|
+
pathParams: pathParams,
|
|
7497
|
+
headerParams: headerParams,
|
|
7498
|
+
queryParams: queryParams
|
|
7499
|
+
});
|
|
7500
|
+
try {
|
|
7501
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7502
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7503
|
+
responseObject: {},
|
|
7504
|
+
body: yield response.json(),
|
|
7505
|
+
bodyKey: "items",
|
|
7506
|
+
bodyModel: model.ComputeTargetShapeSummary,
|
|
7507
|
+
type: "Array<model.ComputeTargetShapeSummary>",
|
|
7508
|
+
responseHeaders: [
|
|
7509
|
+
{
|
|
7510
|
+
value: response.headers.get("opc-next-page"),
|
|
7511
|
+
key: "opcNextPage",
|
|
7512
|
+
dataType: "string"
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
value: response.headers.get("opc-prev-page"),
|
|
7516
|
+
key: "opcPrevPage",
|
|
7517
|
+
dataType: "string"
|
|
7518
|
+
},
|
|
7519
|
+
{
|
|
7520
|
+
value: response.headers.get("opc-request-id"),
|
|
7521
|
+
key: "opcRequestId",
|
|
7522
|
+
dataType: "string"
|
|
7523
|
+
}
|
|
7524
|
+
]
|
|
7525
|
+
});
|
|
7526
|
+
return sdkResponse;
|
|
7527
|
+
}
|
|
7528
|
+
catch (err) {
|
|
7529
|
+
throw err;
|
|
7530
|
+
}
|
|
7531
|
+
});
|
|
7532
|
+
}
|
|
7533
|
+
/**
|
|
7534
|
+
* NOTE: This function is deprecated in favor of listComputeTargetShapesRecordIterator function.
|
|
7535
|
+
* Creates a new async iterator which will iterate over the models.ComputeTargetShapeSummary objects
|
|
7536
|
+
* contained in responses from the listComputeTargetShapes operation. This iterator will fetch more data from the
|
|
7537
|
+
* server as needed.
|
|
7538
|
+
*
|
|
7539
|
+
* @param request a request which can be sent to the service operation
|
|
7540
|
+
*/
|
|
7541
|
+
listAllComputeTargetShapes(request) {
|
|
7542
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeTargetShapes(req));
|
|
7543
|
+
}
|
|
7544
|
+
/**
|
|
7545
|
+
* NOTE: This function is deprecated in favor of listComputeTargetShapesResponseIterator function.
|
|
7546
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeTargetShapes operation. This iterator
|
|
7547
|
+
* will fetch more data from the server as needed.
|
|
7548
|
+
*
|
|
7549
|
+
* @param request a request which can be sent to the service operation
|
|
7550
|
+
*/
|
|
7551
|
+
listAllComputeTargetShapesResponses(request) {
|
|
7552
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeTargetShapes(req));
|
|
7553
|
+
}
|
|
7554
|
+
/**
|
|
7555
|
+
* Creates a new async iterator which will iterate over the models.ComputeTargetShapeSummary objects
|
|
7556
|
+
* contained in responses from the listComputeTargetShapes operation. This iterator will fetch more data from the
|
|
7557
|
+
* server as needed.
|
|
7558
|
+
*
|
|
7559
|
+
* @param request a request which can be sent to the service operation
|
|
7560
|
+
*/
|
|
7561
|
+
listComputeTargetShapesRecordIterator(request) {
|
|
7562
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeTargetShapes(req));
|
|
7563
|
+
}
|
|
7564
|
+
/**
|
|
7565
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeTargetShapes operation. This iterator
|
|
7566
|
+
* will fetch more data from the server as needed.
|
|
7567
|
+
*
|
|
7568
|
+
* @param request a request which can be sent to the service operation
|
|
7569
|
+
*/
|
|
7570
|
+
listComputeTargetShapesResponseIterator(request) {
|
|
7571
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeTargetShapes(req));
|
|
7572
|
+
}
|
|
7573
|
+
/**
|
|
7574
|
+
* List all compute targets in the specified compartment. Supports queries on various other parameters in the query alongside compartmentId (must be included).
|
|
7575
|
+
*
|
|
7576
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7577
|
+
* @param ListComputeTargetsRequest
|
|
7578
|
+
* @return ListComputeTargetsResponse
|
|
7579
|
+
* @throws OciError when an error occurs
|
|
7580
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListComputeTargets.ts.html |here} to see how to use ListComputeTargets API.
|
|
7581
|
+
*/
|
|
7582
|
+
listComputeTargets(listComputeTargetsRequest) {
|
|
7583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7584
|
+
if (this.logger)
|
|
7585
|
+
this.logger.debug("Calling operation DataScienceClient#listComputeTargets.");
|
|
7586
|
+
const operationName = "listComputeTargets";
|
|
7587
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTargetSummary/ListComputeTargets";
|
|
7588
|
+
const pathParams = {};
|
|
7589
|
+
const queryParams = {
|
|
7590
|
+
"compartmentId": listComputeTargetsRequest.compartmentId,
|
|
7591
|
+
"id": listComputeTargetsRequest.id,
|
|
7592
|
+
"displayName": listComputeTargetsRequest.displayName,
|
|
7593
|
+
"lifecycleState": listComputeTargetsRequest.lifecycleState,
|
|
7594
|
+
"limit": listComputeTargetsRequest.limit,
|
|
7595
|
+
"page": listComputeTargetsRequest.page,
|
|
7596
|
+
"sortOrder": listComputeTargetsRequest.sortOrder,
|
|
7597
|
+
"sortBy": listComputeTargetsRequest.sortBy
|
|
7598
|
+
};
|
|
7599
|
+
let headerParams = {
|
|
7600
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7601
|
+
"opc-request-id": listComputeTargetsRequest.opcRequestId
|
|
7602
|
+
};
|
|
7603
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7604
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeTargetsRequest.retryConfiguration, specRetryConfiguration);
|
|
7605
|
+
if (this.logger)
|
|
7606
|
+
retrier.logger = this.logger;
|
|
7607
|
+
const request = yield oci_common_2.composeRequest({
|
|
7608
|
+
baseEndpoint: this._endpoint,
|
|
7609
|
+
defaultHeaders: this._defaultHeaders,
|
|
7610
|
+
path: "/computeTargets",
|
|
7611
|
+
method: "GET",
|
|
7612
|
+
pathParams: pathParams,
|
|
7613
|
+
headerParams: headerParams,
|
|
7614
|
+
queryParams: queryParams
|
|
7615
|
+
});
|
|
7616
|
+
try {
|
|
7617
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7618
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7619
|
+
responseObject: {},
|
|
7620
|
+
body: yield response.json(),
|
|
7621
|
+
bodyKey: "items",
|
|
7622
|
+
bodyModel: model.ComputeTargetSummary,
|
|
7623
|
+
type: "Array<model.ComputeTargetSummary>",
|
|
7624
|
+
responseHeaders: [
|
|
7625
|
+
{
|
|
7626
|
+
value: response.headers.get("opc-next-page"),
|
|
7627
|
+
key: "opcNextPage",
|
|
7628
|
+
dataType: "string"
|
|
7629
|
+
},
|
|
7630
|
+
{
|
|
7631
|
+
value: response.headers.get("opc-prev-page"),
|
|
7632
|
+
key: "opcPrevPage",
|
|
7633
|
+
dataType: "string"
|
|
7634
|
+
},
|
|
7635
|
+
{
|
|
7636
|
+
value: response.headers.get("opc-request-id"),
|
|
7637
|
+
key: "opcRequestId",
|
|
7638
|
+
dataType: "string"
|
|
7639
|
+
}
|
|
7640
|
+
]
|
|
7641
|
+
});
|
|
7642
|
+
return sdkResponse;
|
|
7643
|
+
}
|
|
7644
|
+
catch (err) {
|
|
7645
|
+
throw err;
|
|
7646
|
+
}
|
|
7647
|
+
});
|
|
7648
|
+
}
|
|
7649
|
+
/**
|
|
7650
|
+
* NOTE: This function is deprecated in favor of listComputeTargetsRecordIterator function.
|
|
7651
|
+
* Creates a new async iterator which will iterate over the models.ComputeTargetSummary objects
|
|
7652
|
+
* contained in responses from the listComputeTargets operation. This iterator will fetch more data from the
|
|
7653
|
+
* server as needed.
|
|
7654
|
+
*
|
|
7655
|
+
* @param request a request which can be sent to the service operation
|
|
7656
|
+
*/
|
|
7657
|
+
listAllComputeTargets(request) {
|
|
7658
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeTargets(req));
|
|
7659
|
+
}
|
|
7660
|
+
/**
|
|
7661
|
+
* NOTE: This function is deprecated in favor of listComputeTargetsResponseIterator function.
|
|
7662
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeTargets operation. This iterator
|
|
7663
|
+
* will fetch more data from the server as needed.
|
|
7664
|
+
*
|
|
7665
|
+
* @param request a request which can be sent to the service operation
|
|
7666
|
+
*/
|
|
7667
|
+
listAllComputeTargetsResponses(request) {
|
|
7668
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeTargets(req));
|
|
7669
|
+
}
|
|
7670
|
+
/**
|
|
7671
|
+
* Creates a new async iterator which will iterate over the models.ComputeTargetSummary objects
|
|
7672
|
+
* contained in responses from the listComputeTargets operation. This iterator will fetch more data from the
|
|
7673
|
+
* server as needed.
|
|
7674
|
+
*
|
|
7675
|
+
* @param request a request which can be sent to the service operation
|
|
7676
|
+
*/
|
|
7677
|
+
listComputeTargetsRecordIterator(request) {
|
|
7678
|
+
return oci_common_1.paginateRecords(request, req => this.listComputeTargets(req));
|
|
7679
|
+
}
|
|
7680
|
+
/**
|
|
7681
|
+
* Creates a new async iterator which will iterate over the responses received from the listComputeTargets operation. This iterator
|
|
7682
|
+
* will fetch more data from the server as needed.
|
|
7683
|
+
*
|
|
7684
|
+
* @param request a request which can be sent to the service operation
|
|
7685
|
+
*/
|
|
7686
|
+
listComputeTargetsResponseIterator(request) {
|
|
7687
|
+
return oci_common_1.paginateResponses(request, req => this.listComputeTargets(req));
|
|
7688
|
+
}
|
|
7210
7689
|
/**
|
|
7211
7690
|
* List containers.
|
|
7212
7691
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -10586,6 +11065,67 @@ class DataScienceClient {
|
|
|
10586
11065
|
}
|
|
10587
11066
|
});
|
|
10588
11067
|
}
|
|
11068
|
+
/**
|
|
11069
|
+
* Updates the compute target.
|
|
11070
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
11071
|
+
* @param UpdateComputeTargetRequest
|
|
11072
|
+
* @return UpdateComputeTargetResponse
|
|
11073
|
+
* @throws OciError when an error occurs
|
|
11074
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateComputeTarget.ts.html |here} to see how to use UpdateComputeTarget API.
|
|
11075
|
+
*/
|
|
11076
|
+
updateComputeTarget(updateComputeTargetRequest) {
|
|
11077
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11078
|
+
if (this.logger)
|
|
11079
|
+
this.logger.debug("Calling operation DataScienceClient#updateComputeTarget.");
|
|
11080
|
+
const operationName = "updateComputeTarget";
|
|
11081
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ComputeTarget/UpdateComputeTarget";
|
|
11082
|
+
const pathParams = {
|
|
11083
|
+
"{computeTargetId}": updateComputeTargetRequest.computeTargetId
|
|
11084
|
+
};
|
|
11085
|
+
const queryParams = {};
|
|
11086
|
+
let headerParams = {
|
|
11087
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
11088
|
+
"opc-request-id": updateComputeTargetRequest.opcRequestId,
|
|
11089
|
+
"if-match": updateComputeTargetRequest.ifMatch
|
|
11090
|
+
};
|
|
11091
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
11092
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateComputeTargetRequest.retryConfiguration, specRetryConfiguration);
|
|
11093
|
+
if (this.logger)
|
|
11094
|
+
retrier.logger = this.logger;
|
|
11095
|
+
const request = yield oci_common_2.composeRequest({
|
|
11096
|
+
baseEndpoint: this._endpoint,
|
|
11097
|
+
defaultHeaders: this._defaultHeaders,
|
|
11098
|
+
path: "/computeTargets/{computeTargetId}",
|
|
11099
|
+
method: "PUT",
|
|
11100
|
+
bodyContent: common.ObjectSerializer.serialize(updateComputeTargetRequest.updateComputeTargetDetails, "UpdateComputeTargetDetails", model.UpdateComputeTargetDetails.getJsonObj),
|
|
11101
|
+
pathParams: pathParams,
|
|
11102
|
+
headerParams: headerParams,
|
|
11103
|
+
queryParams: queryParams
|
|
11104
|
+
});
|
|
11105
|
+
try {
|
|
11106
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
11107
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
11108
|
+
responseObject: {},
|
|
11109
|
+
responseHeaders: [
|
|
11110
|
+
{
|
|
11111
|
+
value: response.headers.get("opc-request-id"),
|
|
11112
|
+
key: "opcRequestId",
|
|
11113
|
+
dataType: "string"
|
|
11114
|
+
},
|
|
11115
|
+
{
|
|
11116
|
+
value: response.headers.get("opc-work-request-id"),
|
|
11117
|
+
key: "opcWorkRequestId",
|
|
11118
|
+
dataType: "string"
|
|
11119
|
+
}
|
|
11120
|
+
]
|
|
11121
|
+
});
|
|
11122
|
+
return sdkResponse;
|
|
11123
|
+
}
|
|
11124
|
+
catch (err) {
|
|
11125
|
+
throw err;
|
|
11126
|
+
}
|
|
11127
|
+
});
|
|
11128
|
+
}
|
|
10589
11129
|
/**
|
|
10590
11130
|
* Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match
|
|
10591
11131
|
* a previously defined private endpoint, then a 409 status code is returned. This indicates
|