@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-4e95135f8529
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/.openapi-generator/FILES +74 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +80 -17
- package/dist/apis/DefaultApi.d.ts +1108 -95
- package/dist/apis/DefaultApi.js +1374 -263
- package/dist/esm/apis/DefaultApi.d.ts +1108 -95
- package/dist/esm/apis/DefaultApi.js +1350 -239
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +6 -10
- package/dist/esm/models/InspectorStatus.js +5 -9
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +39 -0
- package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +57 -3
- package/dist/esm/models/VirtualMachine.js +22 -6
- package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/esm/models/VirtualMachineDetail.js +10 -3
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +37 -1
- package/dist/esm/models/index.js +37 -1
- package/dist/esm/runtime.js +3 -2
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +6 -10
- package/dist/models/InspectorStatus.js +5 -9
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +39 -0
- package/dist/models/StartInspectionRequest.js +55 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +57 -3
- package/dist/models/VirtualMachine.js +22 -6
- package/dist/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/models/VirtualMachineDetail.js +10 -3
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +37 -1
- package/dist/models/index.js +37 -1
- package/dist/runtime.js +3 -2
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +2126 -310
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +2 -2
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +7 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VMs.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +22 -4
- package/docs/VirtualMachineDetail.md +7 -1
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2580 -491
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +15 -12
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +83 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +79 -8
- package/src/models/VirtualMachineDetail.ts +42 -11
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +37 -1
- package/src/runtime.ts +2 -3
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -24,89 +24,163 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.DefaultApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
-
const
|
|
27
|
+
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
|
+
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
30
|
+
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
31
|
+
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
32
|
+
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
33
|
+
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
34
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
35
|
+
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
36
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
37
|
+
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
38
|
+
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
39
|
+
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
40
|
+
const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
|
|
41
|
+
const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
|
|
42
|
+
const Group_js_1 = require("../models/Group.js");
|
|
43
|
+
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
44
|
+
const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
45
|
+
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
46
|
+
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
47
|
+
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
48
|
+
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
49
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
50
|
+
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
51
|
+
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
52
|
+
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
53
|
+
const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
|
|
54
|
+
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
55
|
+
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
56
|
+
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
57
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
58
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
59
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
60
|
+
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
61
|
+
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
62
|
+
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
63
|
+
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
64
|
+
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
65
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
66
|
+
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
67
|
+
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
28
68
|
/**
|
|
29
69
|
*
|
|
30
70
|
*/
|
|
31
71
|
class DefaultApi extends runtime.BaseAPI {
|
|
32
72
|
/**
|
|
33
|
-
* Creates request options for
|
|
73
|
+
* Creates request options for createGroup without sending the request
|
|
34
74
|
*/
|
|
35
|
-
|
|
75
|
+
createGroupRequestOpts(requestParameters) {
|
|
36
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['
|
|
38
|
-
throw new runtime.RequiredError('
|
|
77
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('createGroupRequest', 'Required parameter "createGroupRequest" was null or undefined when calling createGroup().');
|
|
39
79
|
}
|
|
40
80
|
const queryParameters = {};
|
|
41
81
|
const headerParameters = {};
|
|
42
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
let urlPath = `/
|
|
83
|
+
let urlPath = `/groups`;
|
|
44
84
|
return {
|
|
45
85
|
path: urlPath,
|
|
46
|
-
method: '
|
|
86
|
+
method: 'POST',
|
|
47
87
|
headers: headerParameters,
|
|
48
88
|
query: queryParameters,
|
|
49
|
-
body: requestParameters['
|
|
89
|
+
body: (0, CreateGroupRequest_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
50
90
|
};
|
|
51
91
|
});
|
|
52
92
|
}
|
|
53
93
|
/**
|
|
54
|
-
*
|
|
94
|
+
* Create a new group
|
|
55
95
|
*/
|
|
56
|
-
|
|
96
|
+
createGroupRaw(requestParameters, initOverrides) {
|
|
57
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const requestOptions = yield this.
|
|
98
|
+
const requestOptions = yield this.createGroupRequestOpts(requestParameters);
|
|
59
99
|
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
61
101
|
});
|
|
62
102
|
}
|
|
63
103
|
/**
|
|
64
|
-
*
|
|
104
|
+
* Create a new group
|
|
65
105
|
*/
|
|
66
|
-
|
|
106
|
+
createGroup(requestParameters, initOverrides) {
|
|
67
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const response = yield this.
|
|
108
|
+
const response = yield this.createGroupRaw(requestParameters, initOverrides);
|
|
69
109
|
return yield response.value();
|
|
70
110
|
});
|
|
71
111
|
}
|
|
72
112
|
/**
|
|
73
|
-
* Creates request options for
|
|
113
|
+
* Creates request options for deleteCredentials without sending the request
|
|
74
114
|
*/
|
|
75
|
-
|
|
115
|
+
deleteCredentialsRequestOpts() {
|
|
76
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
|
|
78
|
-
|
|
117
|
+
const queryParameters = {};
|
|
118
|
+
const headerParameters = {};
|
|
119
|
+
let urlPath = `/credentials`;
|
|
120
|
+
return {
|
|
121
|
+
path: urlPath,
|
|
122
|
+
method: 'DELETE',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Removes all stored vCenter credentials from the database.
|
|
130
|
+
* Delete stored credentials
|
|
131
|
+
*/
|
|
132
|
+
deleteCredentialsRaw(initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
135
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Removes all stored vCenter credentials from the database.
|
|
141
|
+
* Delete stored credentials
|
|
142
|
+
*/
|
|
143
|
+
deleteCredentials(initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
150
|
+
*/
|
|
151
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
if (requestParameters['id'] == null) {
|
|
154
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
79
155
|
}
|
|
80
156
|
const queryParameters = {};
|
|
81
157
|
const headerParameters = {};
|
|
82
|
-
|
|
83
|
-
|
|
158
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
159
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
160
|
return {
|
|
85
161
|
path: urlPath,
|
|
86
|
-
method: '
|
|
162
|
+
method: 'DELETE',
|
|
87
163
|
headers: headerParameters,
|
|
88
164
|
query: queryParameters,
|
|
89
|
-
body: (0, index_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
90
165
|
};
|
|
91
166
|
});
|
|
92
167
|
}
|
|
93
168
|
/**
|
|
94
|
-
*
|
|
169
|
+
* Delete a benchmark run
|
|
95
170
|
*/
|
|
96
|
-
|
|
171
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
97
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const requestOptions = yield this.
|
|
173
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
99
174
|
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
-
return new runtime.
|
|
175
|
+
return new runtime.VoidApiResponse(response);
|
|
101
176
|
});
|
|
102
177
|
}
|
|
103
178
|
/**
|
|
104
|
-
*
|
|
179
|
+
* Delete a benchmark run
|
|
105
180
|
*/
|
|
106
|
-
|
|
181
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
107
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
return yield response.value();
|
|
183
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
110
184
|
});
|
|
111
185
|
}
|
|
112
186
|
/**
|
|
@@ -120,7 +194,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
120
194
|
const queryParameters = {};
|
|
121
195
|
const headerParameters = {};
|
|
122
196
|
let urlPath = `/groups/{id}`;
|
|
123
|
-
urlPath = urlPath.replace(
|
|
197
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
124
198
|
return {
|
|
125
199
|
path: urlPath,
|
|
126
200
|
method: 'DELETE',
|
|
@@ -148,48 +222,52 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
148
222
|
});
|
|
149
223
|
}
|
|
150
224
|
/**
|
|
151
|
-
* Creates request options for
|
|
225
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
152
226
|
*/
|
|
153
|
-
|
|
227
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
154
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
if (requestParameters['label'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
231
|
+
}
|
|
155
232
|
const queryParameters = {};
|
|
156
233
|
const headerParameters = {};
|
|
157
|
-
let urlPath = `/
|
|
234
|
+
let urlPath = `/vms/labels/{label}`;
|
|
235
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
158
236
|
return {
|
|
159
237
|
path: urlPath,
|
|
160
|
-
method: '
|
|
238
|
+
method: 'DELETE',
|
|
161
239
|
headers: headerParameters,
|
|
162
240
|
query: queryParameters,
|
|
163
241
|
};
|
|
164
242
|
});
|
|
165
243
|
}
|
|
166
244
|
/**
|
|
167
|
-
*
|
|
245
|
+
* Delete label from all VMs
|
|
168
246
|
*/
|
|
169
|
-
|
|
247
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
170
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
const requestOptions = yield this.
|
|
249
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
172
250
|
const response = yield this.request(requestOptions, initOverrides);
|
|
173
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
251
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
174
252
|
});
|
|
175
253
|
}
|
|
176
254
|
/**
|
|
177
|
-
*
|
|
255
|
+
* Delete label from all VMs
|
|
178
256
|
*/
|
|
179
|
-
|
|
257
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
180
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
const response = yield this.
|
|
259
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
182
260
|
return yield response.value();
|
|
183
261
|
});
|
|
184
262
|
}
|
|
185
263
|
/**
|
|
186
|
-
* Creates request options for
|
|
264
|
+
* Creates request options for getAgentStatus without sending the request
|
|
187
265
|
*/
|
|
188
|
-
|
|
266
|
+
getAgentStatusRequestOpts() {
|
|
189
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
268
|
const queryParameters = {};
|
|
191
269
|
const headerParameters = {};
|
|
192
|
-
let urlPath = `/
|
|
270
|
+
let urlPath = `/agent`;
|
|
193
271
|
return {
|
|
194
272
|
path: urlPath,
|
|
195
273
|
method: 'GET',
|
|
@@ -199,45 +277,32 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
199
277
|
});
|
|
200
278
|
}
|
|
201
279
|
/**
|
|
202
|
-
* Get
|
|
280
|
+
* Get agent status
|
|
203
281
|
*/
|
|
204
|
-
|
|
282
|
+
getAgentStatusRaw(initOverrides) {
|
|
205
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
const requestOptions = yield this.
|
|
284
|
+
const requestOptions = yield this.getAgentStatusRequestOpts();
|
|
207
285
|
const response = yield this.request(requestOptions, initOverrides);
|
|
208
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
286
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
209
287
|
});
|
|
210
288
|
}
|
|
211
289
|
/**
|
|
212
|
-
* Get
|
|
290
|
+
* Get agent status
|
|
213
291
|
*/
|
|
214
|
-
|
|
292
|
+
getAgentStatus(initOverrides) {
|
|
215
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
-
const response = yield this.
|
|
294
|
+
const response = yield this.getAgentStatusRaw(initOverrides);
|
|
217
295
|
return yield response.value();
|
|
218
296
|
});
|
|
219
297
|
}
|
|
220
298
|
/**
|
|
221
|
-
* Creates request options for
|
|
299
|
+
* Creates request options for getApplications without sending the request
|
|
222
300
|
*/
|
|
223
|
-
|
|
301
|
+
getApplicationsRequestOpts() {
|
|
224
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
if (requestParameters['id'] == null) {
|
|
226
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
|
|
227
|
-
}
|
|
228
303
|
const queryParameters = {};
|
|
229
|
-
if (requestParameters['sort'] != null) {
|
|
230
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
231
|
-
}
|
|
232
|
-
if (requestParameters['page'] != null) {
|
|
233
|
-
queryParameters['page'] = requestParameters['page'];
|
|
234
|
-
}
|
|
235
|
-
if (requestParameters['pageSize'] != null) {
|
|
236
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
237
|
-
}
|
|
238
304
|
const headerParameters = {};
|
|
239
|
-
let urlPath = `/
|
|
240
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
305
|
+
let urlPath = `/applications`;
|
|
241
306
|
return {
|
|
242
307
|
path: urlPath,
|
|
243
308
|
method: 'GET',
|
|
@@ -247,32 +312,36 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
247
312
|
});
|
|
248
313
|
}
|
|
249
314
|
/**
|
|
250
|
-
*
|
|
315
|
+
* List detected applications running on VMs
|
|
251
316
|
*/
|
|
252
|
-
|
|
317
|
+
getApplicationsRaw(initOverrides) {
|
|
253
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
-
const requestOptions = yield this.
|
|
319
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
255
320
|
const response = yield this.request(requestOptions, initOverrides);
|
|
256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
257
322
|
});
|
|
258
323
|
}
|
|
259
324
|
/**
|
|
260
|
-
*
|
|
325
|
+
* List detected applications running on VMs
|
|
261
326
|
*/
|
|
262
|
-
|
|
327
|
+
getApplications(initOverrides) {
|
|
263
328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
-
const response = yield this.
|
|
329
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
265
330
|
return yield response.value();
|
|
266
331
|
});
|
|
267
332
|
}
|
|
268
333
|
/**
|
|
269
|
-
* Creates request options for
|
|
334
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
270
335
|
*/
|
|
271
|
-
|
|
336
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
272
337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
if (requestParameters['clusterId'] == null) {
|
|
339
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
340
|
+
}
|
|
273
341
|
const queryParameters = {};
|
|
274
342
|
const headerParameters = {};
|
|
275
|
-
let urlPath = `/
|
|
343
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
344
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
276
345
|
return {
|
|
277
346
|
path: urlPath,
|
|
278
347
|
method: 'GET',
|
|
@@ -282,38 +351,32 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
282
351
|
});
|
|
283
352
|
}
|
|
284
353
|
/**
|
|
285
|
-
* Get
|
|
354
|
+
* Get latest cluster utilization by cluster ID
|
|
286
355
|
*/
|
|
287
|
-
|
|
356
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
288
357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
-
const requestOptions = yield this.
|
|
358
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
290
359
|
const response = yield this.request(requestOptions, initOverrides);
|
|
291
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
292
361
|
});
|
|
293
362
|
}
|
|
294
363
|
/**
|
|
295
|
-
* Get
|
|
364
|
+
* Get latest cluster utilization by cluster ID
|
|
296
365
|
*/
|
|
297
|
-
|
|
366
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
298
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
-
const response = yield this.
|
|
368
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
300
369
|
return yield response.value();
|
|
301
370
|
});
|
|
302
371
|
}
|
|
303
372
|
/**
|
|
304
|
-
* Creates request options for
|
|
373
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
305
374
|
*/
|
|
306
|
-
|
|
375
|
+
getCollectorStatusRequestOpts() {
|
|
307
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
377
|
const queryParameters = {};
|
|
309
|
-
if (requestParameters['withAgentId'] != null) {
|
|
310
|
-
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
311
|
-
}
|
|
312
|
-
if (requestParameters['groupId'] != null) {
|
|
313
|
-
queryParameters['group_id'] = requestParameters['groupId'];
|
|
314
|
-
}
|
|
315
378
|
const headerParameters = {};
|
|
316
|
-
let urlPath = `/
|
|
379
|
+
let urlPath = `/collector`;
|
|
317
380
|
return {
|
|
318
381
|
path: urlPath,
|
|
319
382
|
method: 'GET',
|
|
@@ -323,36 +386,32 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
323
386
|
});
|
|
324
387
|
}
|
|
325
388
|
/**
|
|
326
|
-
* Get
|
|
389
|
+
* Get collector status
|
|
327
390
|
*/
|
|
328
|
-
|
|
391
|
+
getCollectorStatusRaw(initOverrides) {
|
|
329
392
|
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
-
const requestOptions = yield this.
|
|
393
|
+
const requestOptions = yield this.getCollectorStatusRequestOpts();
|
|
331
394
|
const response = yield this.request(requestOptions, initOverrides);
|
|
332
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
395
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
333
396
|
});
|
|
334
397
|
}
|
|
335
398
|
/**
|
|
336
|
-
* Get
|
|
399
|
+
* Get collector status
|
|
337
400
|
*/
|
|
338
|
-
|
|
339
|
-
return __awaiter(this,
|
|
340
|
-
const response = yield this.
|
|
401
|
+
getCollectorStatus(initOverrides) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
const response = yield this.getCollectorStatusRaw(initOverrides);
|
|
341
404
|
return yield response.value();
|
|
342
405
|
});
|
|
343
406
|
}
|
|
344
407
|
/**
|
|
345
|
-
* Creates request options for
|
|
408
|
+
* Creates request options for getCredentials without sending the request
|
|
346
409
|
*/
|
|
347
|
-
|
|
410
|
+
getCredentialsRequestOpts() {
|
|
348
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
-
if (requestParameters['id'] == null) {
|
|
350
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
|
|
351
|
-
}
|
|
352
412
|
const queryParameters = {};
|
|
353
413
|
const headerParameters = {};
|
|
354
|
-
let urlPath = `/
|
|
355
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
414
|
+
let urlPath = `/credentials`;
|
|
356
415
|
return {
|
|
357
416
|
path: urlPath,
|
|
358
417
|
method: 'GET',
|
|
@@ -362,83 +421,76 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
362
421
|
});
|
|
363
422
|
}
|
|
364
423
|
/**
|
|
365
|
-
*
|
|
424
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
425
|
+
* Get stored credential status
|
|
366
426
|
*/
|
|
367
|
-
|
|
427
|
+
getCredentialsRaw(initOverrides) {
|
|
368
428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
const requestOptions = yield this.
|
|
429
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
370
430
|
const response = yield this.request(requestOptions, initOverrides);
|
|
371
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
431
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
372
432
|
});
|
|
373
433
|
}
|
|
374
434
|
/**
|
|
375
|
-
*
|
|
435
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
436
|
+
* Get stored credential status
|
|
376
437
|
*/
|
|
377
|
-
|
|
438
|
+
getCredentials(initOverrides) {
|
|
378
439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
-
const response = yield this.
|
|
440
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
380
441
|
return yield response.value();
|
|
381
442
|
});
|
|
382
443
|
}
|
|
383
444
|
/**
|
|
384
|
-
* Creates request options for
|
|
445
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
385
446
|
*/
|
|
386
|
-
|
|
447
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
387
448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
-
if (requestParameters['id'] == null) {
|
|
389
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMInspectionStatus().');
|
|
390
|
-
}
|
|
391
449
|
const queryParameters = {};
|
|
392
450
|
const headerParameters = {};
|
|
393
|
-
|
|
394
|
-
urlPath =
|
|
451
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
452
|
+
let urlPath = `/forecaster/datastores`;
|
|
395
453
|
return {
|
|
396
454
|
path: urlPath,
|
|
397
|
-
method: '
|
|
455
|
+
method: 'POST',
|
|
398
456
|
headers: headerParameters,
|
|
399
457
|
query: queryParameters,
|
|
458
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
400
459
|
};
|
|
401
460
|
});
|
|
402
461
|
}
|
|
403
462
|
/**
|
|
404
|
-
*
|
|
463
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
464
|
+
* List available datastores
|
|
405
465
|
*/
|
|
406
|
-
|
|
466
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
407
467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
const requestOptions = yield this.
|
|
468
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
409
469
|
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
470
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
411
471
|
});
|
|
412
472
|
}
|
|
413
473
|
/**
|
|
414
|
-
*
|
|
474
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
475
|
+
* List available datastores
|
|
415
476
|
*/
|
|
416
|
-
|
|
417
|
-
return __awaiter(this,
|
|
418
|
-
const response = yield this.
|
|
477
|
+
getForecasterDatastores() {
|
|
478
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
479
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
419
480
|
return yield response.value();
|
|
420
481
|
});
|
|
421
482
|
}
|
|
422
483
|
/**
|
|
423
|
-
* Creates request options for
|
|
484
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
424
485
|
*/
|
|
425
|
-
|
|
486
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
426
487
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
488
|
const queryParameters = {};
|
|
428
|
-
if (requestParameters['
|
|
429
|
-
queryParameters['
|
|
430
|
-
}
|
|
431
|
-
if (requestParameters['sort'] != null) {
|
|
432
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
433
|
-
}
|
|
434
|
-
if (requestParameters['page'] != null) {
|
|
435
|
-
queryParameters['page'] = requestParameters['page'];
|
|
436
|
-
}
|
|
437
|
-
if (requestParameters['pageSize'] != null) {
|
|
438
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
489
|
+
if (requestParameters['pairName'] != null) {
|
|
490
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
439
491
|
}
|
|
440
492
|
const headerParameters = {};
|
|
441
|
-
let urlPath = `/
|
|
493
|
+
let urlPath = `/forecaster/runs`;
|
|
442
494
|
return {
|
|
443
495
|
path: urlPath,
|
|
444
496
|
method: 'GET',
|
|
@@ -448,32 +500,40 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
448
500
|
});
|
|
449
501
|
}
|
|
450
502
|
/**
|
|
451
|
-
*
|
|
503
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
504
|
+
* List benchmark runs
|
|
452
505
|
*/
|
|
453
|
-
|
|
506
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
454
507
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
const requestOptions = yield this.
|
|
508
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
456
509
|
const response = yield this.request(requestOptions, initOverrides);
|
|
457
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
510
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
458
511
|
});
|
|
459
512
|
}
|
|
460
513
|
/**
|
|
461
|
-
*
|
|
514
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
515
|
+
* List benchmark runs
|
|
462
516
|
*/
|
|
463
|
-
|
|
517
|
+
getForecasterRuns() {
|
|
464
518
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
465
|
-
const response = yield this.
|
|
519
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
466
520
|
return yield response.value();
|
|
467
521
|
});
|
|
468
522
|
}
|
|
469
523
|
/**
|
|
470
|
-
* Creates request options for
|
|
524
|
+
* Creates request options for getForecasterStats without sending the request
|
|
471
525
|
*/
|
|
472
|
-
|
|
526
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
473
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
if (requestParameters['pairName'] == null) {
|
|
529
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
530
|
+
}
|
|
474
531
|
const queryParameters = {};
|
|
532
|
+
if (requestParameters['pairName'] != null) {
|
|
533
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
534
|
+
}
|
|
475
535
|
const headerParameters = {};
|
|
476
|
-
let urlPath = `/
|
|
536
|
+
let urlPath = `/forecaster/stats`;
|
|
477
537
|
return {
|
|
478
538
|
path: urlPath,
|
|
479
539
|
method: 'GET',
|
|
@@ -483,32 +543,34 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
483
543
|
});
|
|
484
544
|
}
|
|
485
545
|
/**
|
|
486
|
-
*
|
|
546
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
547
|
+
* Get throughput statistics
|
|
487
548
|
*/
|
|
488
|
-
|
|
549
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
489
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
-
const requestOptions = yield this.
|
|
551
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
491
552
|
const response = yield this.request(requestOptions, initOverrides);
|
|
492
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
553
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
493
554
|
});
|
|
494
555
|
}
|
|
495
556
|
/**
|
|
496
|
-
*
|
|
557
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
558
|
+
* Get throughput statistics
|
|
497
559
|
*/
|
|
498
|
-
|
|
560
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
499
561
|
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
-
const response = yield this.
|
|
562
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
501
563
|
return yield response.value();
|
|
502
564
|
});
|
|
503
565
|
}
|
|
504
566
|
/**
|
|
505
|
-
* Creates request options for
|
|
567
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
506
568
|
*/
|
|
507
|
-
|
|
569
|
+
getForecasterStatusRequestOpts() {
|
|
508
570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
509
571
|
const queryParameters = {};
|
|
510
572
|
const headerParameters = {};
|
|
511
|
-
let urlPath = `/
|
|
573
|
+
let urlPath = `/forecaster`;
|
|
512
574
|
return {
|
|
513
575
|
path: urlPath,
|
|
514
576
|
method: 'GET',
|
|
@@ -518,32 +580,37 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
518
580
|
});
|
|
519
581
|
}
|
|
520
582
|
/**
|
|
521
|
-
*
|
|
583
|
+
* Returns current service state with per-pair progress details.
|
|
584
|
+
* Poll forecaster status
|
|
522
585
|
*/
|
|
523
|
-
|
|
586
|
+
getForecasterStatusRaw(initOverrides) {
|
|
524
587
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
const requestOptions = yield this.
|
|
588
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
526
589
|
const response = yield this.request(requestOptions, initOverrides);
|
|
527
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
590
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
528
591
|
});
|
|
529
592
|
}
|
|
530
593
|
/**
|
|
531
|
-
*
|
|
594
|
+
* Returns current service state with per-pair progress details.
|
|
595
|
+
* Poll forecaster status
|
|
532
596
|
*/
|
|
533
|
-
|
|
597
|
+
getForecasterStatus(initOverrides) {
|
|
534
598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
-
const response = yield this.
|
|
599
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
536
600
|
return yield response.value();
|
|
537
601
|
});
|
|
538
602
|
}
|
|
539
603
|
/**
|
|
540
|
-
* Creates request options for
|
|
604
|
+
* Creates request options for getGroup without sending the request
|
|
541
605
|
*/
|
|
542
|
-
|
|
606
|
+
getGroupRequestOpts(requestParameters) {
|
|
543
607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
if (requestParameters['id'] == null) {
|
|
609
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
|
|
610
|
+
}
|
|
544
611
|
const queryParameters = {};
|
|
545
|
-
if (requestParameters['
|
|
546
|
-
queryParameters['
|
|
612
|
+
if (requestParameters['sort'] != null) {
|
|
613
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
547
614
|
}
|
|
548
615
|
if (requestParameters['page'] != null) {
|
|
549
616
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -552,7 +619,8 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
552
619
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
553
620
|
}
|
|
554
621
|
const headerParameters = {};
|
|
555
|
-
let urlPath = `/groups`;
|
|
622
|
+
let urlPath = `/groups/{id}`;
|
|
623
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
556
624
|
return {
|
|
557
625
|
path: urlPath,
|
|
558
626
|
method: 'GET',
|
|
@@ -562,109 +630,924 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
562
630
|
});
|
|
563
631
|
}
|
|
564
632
|
/**
|
|
565
|
-
*
|
|
633
|
+
* Get group by ID with its VMs
|
|
566
634
|
*/
|
|
567
|
-
|
|
635
|
+
getGroupRaw(requestParameters, initOverrides) {
|
|
568
636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
-
const requestOptions = yield this.
|
|
637
|
+
const requestOptions = yield this.getGroupRequestOpts(requestParameters);
|
|
570
638
|
const response = yield this.request(requestOptions, initOverrides);
|
|
571
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
639
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupResponse_js_1.GroupResponseFromJSON)(jsonValue));
|
|
572
640
|
});
|
|
573
641
|
}
|
|
574
642
|
/**
|
|
575
|
-
*
|
|
643
|
+
* Get group by ID with its VMs
|
|
576
644
|
*/
|
|
577
|
-
|
|
578
|
-
return __awaiter(this,
|
|
579
|
-
const response = yield this.
|
|
645
|
+
getGroup(requestParameters, initOverrides) {
|
|
646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
647
|
+
const response = yield this.getGroupRaw(requestParameters, initOverrides);
|
|
580
648
|
return yield response.value();
|
|
581
649
|
});
|
|
582
650
|
}
|
|
583
651
|
/**
|
|
584
|
-
* Creates request options for
|
|
652
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
585
653
|
*/
|
|
586
|
-
|
|
654
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
587
655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
588
|
-
if (requestParameters['id'] == null) {
|
|
589
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
|
|
590
|
-
}
|
|
591
656
|
const queryParameters = {};
|
|
657
|
+
if (requestParameters['includeVddk'] != null) {
|
|
658
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
659
|
+
}
|
|
592
660
|
const headerParameters = {};
|
|
593
|
-
let urlPath = `/
|
|
594
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
661
|
+
let urlPath = `/inspector`;
|
|
595
662
|
return {
|
|
596
663
|
path: urlPath,
|
|
597
|
-
method: '
|
|
664
|
+
method: 'GET',
|
|
598
665
|
headers: headerParameters,
|
|
599
666
|
query: queryParameters,
|
|
600
667
|
};
|
|
601
668
|
});
|
|
602
669
|
}
|
|
603
670
|
/**
|
|
604
|
-
*
|
|
671
|
+
* Get inspector status
|
|
605
672
|
*/
|
|
606
|
-
|
|
673
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
607
674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
-
const requestOptions = yield this.
|
|
675
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
609
676
|
const response = yield this.request(requestOptions, initOverrides);
|
|
610
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
677
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
611
678
|
});
|
|
612
679
|
}
|
|
613
680
|
/**
|
|
614
|
-
*
|
|
681
|
+
* Get inspector status
|
|
615
682
|
*/
|
|
616
|
-
|
|
617
|
-
return __awaiter(this,
|
|
618
|
-
const response = yield this.
|
|
683
|
+
getInspectorStatus() {
|
|
684
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
685
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
619
686
|
return yield response.value();
|
|
620
687
|
});
|
|
621
688
|
}
|
|
622
689
|
/**
|
|
623
|
-
* Creates request options for
|
|
690
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
624
691
|
*/
|
|
625
|
-
|
|
692
|
+
getInspectorVddkStatusRequestOpts() {
|
|
626
693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
-
if (requestParameters['agentModeRequest'] == null) {
|
|
628
|
-
throw new runtime.RequiredError('agentModeRequest', 'Required parameter "agentModeRequest" was null or undefined when calling setAgentMode().');
|
|
629
|
-
}
|
|
630
694
|
const queryParameters = {};
|
|
631
695
|
const headerParameters = {};
|
|
632
|
-
|
|
633
|
-
let urlPath = `/agent`;
|
|
696
|
+
let urlPath = `/inspector/vddk`;
|
|
634
697
|
return {
|
|
635
698
|
path: urlPath,
|
|
636
|
-
method: '
|
|
699
|
+
method: 'GET',
|
|
637
700
|
headers: headerParameters,
|
|
638
701
|
query: queryParameters,
|
|
639
|
-
body: (0, index_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
640
702
|
};
|
|
641
703
|
});
|
|
642
704
|
}
|
|
643
705
|
/**
|
|
644
|
-
*
|
|
706
|
+
* Get VDDK status
|
|
645
707
|
*/
|
|
646
|
-
|
|
708
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
647
709
|
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
-
const requestOptions = yield this.
|
|
710
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
649
711
|
const response = yield this.request(requestOptions, initOverrides);
|
|
650
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
712
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
651
713
|
});
|
|
652
714
|
}
|
|
653
715
|
/**
|
|
654
|
-
*
|
|
716
|
+
* Get VDDK status
|
|
655
717
|
*/
|
|
656
|
-
|
|
718
|
+
getInspectorVddkStatus(initOverrides) {
|
|
657
719
|
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
-
const response = yield this.
|
|
720
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
659
721
|
return yield response.value();
|
|
660
722
|
});
|
|
661
723
|
}
|
|
662
724
|
/**
|
|
663
|
-
* Creates request options for
|
|
725
|
+
* Creates request options for getInventory without sending the request
|
|
664
726
|
*/
|
|
665
|
-
|
|
727
|
+
getInventoryRequestOpts(requestParameters) {
|
|
666
728
|
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
-
|
|
729
|
+
const queryParameters = {};
|
|
730
|
+
if (requestParameters['withAgentId'] != null) {
|
|
731
|
+
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
732
|
+
}
|
|
733
|
+
if (requestParameters['groupId'] != null) {
|
|
734
|
+
queryParameters['group_id'] = requestParameters['groupId'];
|
|
735
|
+
}
|
|
736
|
+
const headerParameters = {};
|
|
737
|
+
let urlPath = `/inventory`;
|
|
738
|
+
return {
|
|
739
|
+
path: urlPath,
|
|
740
|
+
method: 'GET',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
};
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Get collected inventory
|
|
748
|
+
*/
|
|
749
|
+
getInventoryRaw(requestParameters, initOverrides) {
|
|
750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
+
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
752
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
753
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetInventory200Response_js_1.GetInventory200ResponseFromJSON)(jsonValue));
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Get collected inventory
|
|
758
|
+
*/
|
|
759
|
+
getInventory() {
|
|
760
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
761
|
+
const response = yield this.getInventoryRaw(requestParameters, initOverrides);
|
|
762
|
+
return yield response.value();
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
767
|
+
* @deprecated
|
|
768
|
+
*/
|
|
769
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
+
const queryParameters = {};
|
|
772
|
+
if (requestParameters['byExpression'] != null) {
|
|
773
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
774
|
+
}
|
|
775
|
+
const headerParameters = {};
|
|
776
|
+
let urlPath = `/cluster_rightsizing`;
|
|
777
|
+
return {
|
|
778
|
+
path: urlPath,
|
|
779
|
+
method: 'GET',
|
|
780
|
+
headers: headerParameters,
|
|
781
|
+
query: queryParameters,
|
|
782
|
+
};
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
787
|
+
* @deprecated
|
|
788
|
+
*/
|
|
789
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
792
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
793
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
798
|
+
* @deprecated
|
|
799
|
+
*/
|
|
800
|
+
getLatestRightsizingClusters() {
|
|
801
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
802
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
803
|
+
return yield response.value();
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
808
|
+
*/
|
|
809
|
+
getRightsizingReportRequestOpts(requestParameters) {
|
|
810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
811
|
+
if (requestParameters['reportId'] == null) {
|
|
812
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
813
|
+
}
|
|
814
|
+
const queryParameters = {};
|
|
815
|
+
const headerParameters = {};
|
|
816
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
817
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
818
|
+
return {
|
|
819
|
+
path: urlPath,
|
|
820
|
+
method: 'GET',
|
|
821
|
+
headers: headerParameters,
|
|
822
|
+
query: queryParameters,
|
|
823
|
+
};
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Get a specific rightsizing report with full VM metrics
|
|
828
|
+
*/
|
|
829
|
+
getRightsizingReportRaw(requestParameters, initOverrides) {
|
|
830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
+
const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
|
|
832
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
833
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReport_js_1.RightsizingReportFromJSON)(jsonValue));
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Get a specific rightsizing report with full VM metrics
|
|
838
|
+
*/
|
|
839
|
+
getRightsizingReport(requestParameters, initOverrides) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
842
|
+
return yield response.value();
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
847
|
+
*/
|
|
848
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
850
|
+
if (requestParameters['reportId'] == null) {
|
|
851
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
852
|
+
}
|
|
853
|
+
if (requestParameters['clusterId'] == null) {
|
|
854
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
855
|
+
}
|
|
856
|
+
const queryParameters = {};
|
|
857
|
+
const headerParameters = {};
|
|
858
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
859
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
860
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
861
|
+
return {
|
|
862
|
+
path: urlPath,
|
|
863
|
+
method: 'GET',
|
|
864
|
+
headers: headerParameters,
|
|
865
|
+
query: queryParameters,
|
|
866
|
+
};
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Get utilization for a specific cluster from a specific report
|
|
871
|
+
*/
|
|
872
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
873
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
874
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
875
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
876
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Get utilization for a specific cluster from a specific report
|
|
881
|
+
*/
|
|
882
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
885
|
+
return yield response.value();
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
890
|
+
* @deprecated
|
|
891
|
+
*/
|
|
892
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
if (requestParameters['reportId'] == null) {
|
|
895
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
896
|
+
}
|
|
897
|
+
const queryParameters = {};
|
|
898
|
+
if (requestParameters['byExpression'] != null) {
|
|
899
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
900
|
+
}
|
|
901
|
+
const headerParameters = {};
|
|
902
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
903
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
904
|
+
return {
|
|
905
|
+
path: urlPath,
|
|
906
|
+
method: 'GET',
|
|
907
|
+
headers: headerParameters,
|
|
908
|
+
query: queryParameters,
|
|
909
|
+
};
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
914
|
+
* @deprecated
|
|
915
|
+
*/
|
|
916
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
918
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
919
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
920
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
925
|
+
* @deprecated
|
|
926
|
+
*/
|
|
927
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
929
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
930
|
+
return yield response.value();
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Creates request options for getVM without sending the request
|
|
935
|
+
*/
|
|
936
|
+
getVMRequestOpts(requestParameters) {
|
|
937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
+
if (requestParameters['id'] == null) {
|
|
939
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
|
|
940
|
+
}
|
|
941
|
+
const queryParameters = {};
|
|
942
|
+
const headerParameters = {};
|
|
943
|
+
let urlPath = `/vms/{id}`;
|
|
944
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
945
|
+
return {
|
|
946
|
+
path: urlPath,
|
|
947
|
+
method: 'GET',
|
|
948
|
+
headers: headerParameters,
|
|
949
|
+
query: queryParameters,
|
|
950
|
+
};
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Get details about a vm
|
|
955
|
+
*/
|
|
956
|
+
getVMRaw(requestParameters, initOverrides) {
|
|
957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
958
|
+
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
959
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
960
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* Get details about a vm
|
|
965
|
+
*/
|
|
966
|
+
getVM(requestParameters, initOverrides) {
|
|
967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
968
|
+
const response = yield this.getVMRaw(requestParameters, initOverrides);
|
|
969
|
+
return yield response.value();
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* Creates request options for getVMLabels without sending the request
|
|
974
|
+
*/
|
|
975
|
+
getVMLabelsRequestOpts() {
|
|
976
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
977
|
+
const queryParameters = {};
|
|
978
|
+
const headerParameters = {};
|
|
979
|
+
let urlPath = `/vms/labels`;
|
|
980
|
+
return {
|
|
981
|
+
path: urlPath,
|
|
982
|
+
method: 'GET',
|
|
983
|
+
headers: headerParameters,
|
|
984
|
+
query: queryParameters,
|
|
985
|
+
};
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Get all distinct labels in use across VMs
|
|
990
|
+
*/
|
|
991
|
+
getVMLabelsRaw(initOverrides) {
|
|
992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
994
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
995
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Get all distinct labels in use across VMs
|
|
1000
|
+
*/
|
|
1001
|
+
getVMLabels(initOverrides) {
|
|
1002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1003
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
1004
|
+
return yield response.value();
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Creates request options for getVMUtilization without sending the request
|
|
1009
|
+
*/
|
|
1010
|
+
getVMUtilizationRequestOpts(requestParameters) {
|
|
1011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
+
if (requestParameters['id'] == null) {
|
|
1013
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
|
|
1014
|
+
}
|
|
1015
|
+
const queryParameters = {};
|
|
1016
|
+
const headerParameters = {};
|
|
1017
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
1018
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1019
|
+
return {
|
|
1020
|
+
path: urlPath,
|
|
1021
|
+
method: 'GET',
|
|
1022
|
+
headers: headerParameters,
|
|
1023
|
+
query: queryParameters,
|
|
1024
|
+
};
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Get utilization breakdown for a specific VM
|
|
1029
|
+
*/
|
|
1030
|
+
getVMUtilizationRaw(requestParameters, initOverrides) {
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
|
|
1033
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1034
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Get utilization breakdown for a specific VM
|
|
1039
|
+
*/
|
|
1040
|
+
getVMUtilization(requestParameters, initOverrides) {
|
|
1041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1042
|
+
const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
1043
|
+
return yield response.value();
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Creates request options for getVMs without sending the request
|
|
1048
|
+
*/
|
|
1049
|
+
getVMsRequestOpts(requestParameters) {
|
|
1050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1051
|
+
const queryParameters = {};
|
|
1052
|
+
if (requestParameters['byExpression'] != null) {
|
|
1053
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1054
|
+
}
|
|
1055
|
+
if (requestParameters['sort'] != null) {
|
|
1056
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['page'] != null) {
|
|
1059
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1060
|
+
}
|
|
1061
|
+
if (requestParameters['pageSize'] != null) {
|
|
1062
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1063
|
+
}
|
|
1064
|
+
const headerParameters = {};
|
|
1065
|
+
let urlPath = `/vms`;
|
|
1066
|
+
return {
|
|
1067
|
+
path: urlPath,
|
|
1068
|
+
method: 'GET',
|
|
1069
|
+
headers: headerParameters,
|
|
1070
|
+
query: queryParameters,
|
|
1071
|
+
};
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Get list of VMs with filtering and pagination
|
|
1076
|
+
*/
|
|
1077
|
+
getVMsRaw(requestParameters, initOverrides) {
|
|
1078
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1079
|
+
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
1080
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1081
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineListResponse_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Get list of VMs with filtering and pagination
|
|
1086
|
+
*/
|
|
1087
|
+
getVMs() {
|
|
1088
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1089
|
+
const response = yield this.getVMsRaw(requestParameters, initOverrides);
|
|
1090
|
+
return yield response.value();
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1095
|
+
*/
|
|
1096
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1098
|
+
const queryParameters = {};
|
|
1099
|
+
const headerParameters = {};
|
|
1100
|
+
let urlPath = `/vms/filter-options`;
|
|
1101
|
+
return {
|
|
1102
|
+
path: urlPath,
|
|
1103
|
+
method: 'GET',
|
|
1104
|
+
headers: headerParameters,
|
|
1105
|
+
query: queryParameters,
|
|
1106
|
+
};
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Get distinct filter option values for VMs
|
|
1111
|
+
*/
|
|
1112
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1114
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1115
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Get distinct filter option values for VMs
|
|
1121
|
+
*/
|
|
1122
|
+
getVMsFilterOptions(initOverrides) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1125
|
+
return yield response.value();
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Creates request options for getVersion without sending the request
|
|
1130
|
+
*/
|
|
1131
|
+
getVersionRequestOpts() {
|
|
1132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1133
|
+
const queryParameters = {};
|
|
1134
|
+
const headerParameters = {};
|
|
1135
|
+
let urlPath = `/version`;
|
|
1136
|
+
return {
|
|
1137
|
+
path: urlPath,
|
|
1138
|
+
method: 'GET',
|
|
1139
|
+
headers: headerParameters,
|
|
1140
|
+
query: queryParameters,
|
|
1141
|
+
};
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Get agent version information
|
|
1146
|
+
*/
|
|
1147
|
+
getVersionRaw(initOverrides) {
|
|
1148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1149
|
+
const requestOptions = yield this.getVersionRequestOpts();
|
|
1150
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VersionInfo_js_1.VersionInfoFromJSON)(jsonValue));
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Get agent version information
|
|
1156
|
+
*/
|
|
1157
|
+
getVersion(initOverrides) {
|
|
1158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1159
|
+
const response = yield this.getVersionRaw(initOverrides);
|
|
1160
|
+
return yield response.value();
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Creates request options for listGroups without sending the request
|
|
1165
|
+
*/
|
|
1166
|
+
listGroupsRequestOpts(requestParameters) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
|
+
const queryParameters = {};
|
|
1169
|
+
if (requestParameters['byName'] != null) {
|
|
1170
|
+
queryParameters['byName'] = requestParameters['byName'];
|
|
1171
|
+
}
|
|
1172
|
+
if (requestParameters['page'] != null) {
|
|
1173
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1174
|
+
}
|
|
1175
|
+
if (requestParameters['pageSize'] != null) {
|
|
1176
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1177
|
+
}
|
|
1178
|
+
const headerParameters = {};
|
|
1179
|
+
let urlPath = `/groups`;
|
|
1180
|
+
return {
|
|
1181
|
+
path: urlPath,
|
|
1182
|
+
method: 'GET',
|
|
1183
|
+
headers: headerParameters,
|
|
1184
|
+
query: queryParameters,
|
|
1185
|
+
};
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* List all groups
|
|
1190
|
+
*/
|
|
1191
|
+
listGroupsRaw(requestParameters, initOverrides) {
|
|
1192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1193
|
+
const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
|
|
1194
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupListResponse_js_1.GroupListResponseFromJSON)(jsonValue));
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* List all groups
|
|
1200
|
+
*/
|
|
1201
|
+
listGroups() {
|
|
1202
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1203
|
+
const response = yield this.listGroupsRaw(requestParameters, initOverrides);
|
|
1204
|
+
return yield response.value();
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1209
|
+
*/
|
|
1210
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
if (requestParameters['reportId'] == null) {
|
|
1213
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1214
|
+
}
|
|
1215
|
+
const queryParameters = {};
|
|
1216
|
+
if (requestParameters['byExpression'] != null) {
|
|
1217
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1218
|
+
}
|
|
1219
|
+
const headerParameters = {};
|
|
1220
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1221
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1222
|
+
return {
|
|
1223
|
+
path: urlPath,
|
|
1224
|
+
method: 'GET',
|
|
1225
|
+
headers: headerParameters,
|
|
1226
|
+
query: queryParameters,
|
|
1227
|
+
};
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1232
|
+
*/
|
|
1233
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1236
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1242
|
+
*/
|
|
1243
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1246
|
+
return yield response.value();
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
1251
|
+
*/
|
|
1252
|
+
listRightsizingReportsRequestOpts() {
|
|
1253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
+
const queryParameters = {};
|
|
1255
|
+
const headerParameters = {};
|
|
1256
|
+
let urlPath = `/rightsizing`;
|
|
1257
|
+
return {
|
|
1258
|
+
path: urlPath,
|
|
1259
|
+
method: 'GET',
|
|
1260
|
+
headers: headerParameters,
|
|
1261
|
+
query: queryParameters,
|
|
1262
|
+
};
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* List all rightsizing reports
|
|
1267
|
+
*/
|
|
1268
|
+
listRightsizingReportsRaw(initOverrides) {
|
|
1269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1270
|
+
const requestOptions = yield this.listRightsizingReportsRequestOpts();
|
|
1271
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1272
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportListResponse_js_1.RightsizingReportListResponseFromJSON)(jsonValue));
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* List all rightsizing reports
|
|
1277
|
+
*/
|
|
1278
|
+
listRightsizingReports(initOverrides) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
const response = yield this.listRightsizingReportsRaw(initOverrides);
|
|
1281
|
+
return yield response.value();
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1286
|
+
*/
|
|
1287
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
1288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1289
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
1290
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
1291
|
+
}
|
|
1292
|
+
const queryParameters = {};
|
|
1293
|
+
const headerParameters = {};
|
|
1294
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1295
|
+
let urlPath = `/forecaster/capabilities`;
|
|
1296
|
+
return {
|
|
1297
|
+
path: urlPath,
|
|
1298
|
+
method: 'POST',
|
|
1299
|
+
headers: headerParameters,
|
|
1300
|
+
query: queryParameters,
|
|
1301
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
1302
|
+
};
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
1307
|
+
* Compute pair capabilities
|
|
1308
|
+
*/
|
|
1309
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
1310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1311
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
1312
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1313
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
1318
|
+
* Compute pair capabilities
|
|
1319
|
+
*/
|
|
1320
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
1321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1322
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
1323
|
+
return yield response.value();
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Creates request options for putCredentials without sending the request
|
|
1328
|
+
*/
|
|
1329
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1332
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
1333
|
+
}
|
|
1334
|
+
const queryParameters = {};
|
|
1335
|
+
const headerParameters = {};
|
|
1336
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1337
|
+
let urlPath = `/credentials`;
|
|
1338
|
+
return {
|
|
1339
|
+
path: urlPath,
|
|
1340
|
+
method: 'PUT',
|
|
1341
|
+
headers: headerParameters,
|
|
1342
|
+
query: queryParameters,
|
|
1343
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1344
|
+
};
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1349
|
+
* Store vCenter credentials
|
|
1350
|
+
*/
|
|
1351
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
1352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1353
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
1354
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1360
|
+
* Store vCenter credentials
|
|
1361
|
+
*/
|
|
1362
|
+
putCredentials(requestParameters, initOverrides) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1365
|
+
return yield response.value();
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
1370
|
+
*/
|
|
1371
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
1372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1373
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1374
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
1375
|
+
}
|
|
1376
|
+
const queryParameters = {};
|
|
1377
|
+
const headerParameters = {};
|
|
1378
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1379
|
+
let urlPath = `/forecaster/credentials`;
|
|
1380
|
+
return {
|
|
1381
|
+
path: urlPath,
|
|
1382
|
+
method: 'PUT',
|
|
1383
|
+
headers: headerParameters,
|
|
1384
|
+
query: queryParameters,
|
|
1385
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1386
|
+
};
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
1391
|
+
* Verify vCenter credentials and permissions
|
|
1392
|
+
*/
|
|
1393
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
1394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1395
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
1396
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1397
|
+
return new runtime.VoidApiResponse(response);
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
1402
|
+
* Verify vCenter credentials and permissions
|
|
1403
|
+
*/
|
|
1404
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
1405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1406
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1411
|
+
*/
|
|
1412
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
1413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1414
|
+
if (requestParameters['file'] == null) {
|
|
1415
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
1416
|
+
}
|
|
1417
|
+
const queryParameters = {};
|
|
1418
|
+
const headerParameters = {};
|
|
1419
|
+
const consumes = [
|
|
1420
|
+
{ contentType: 'multipart/form-data' },
|
|
1421
|
+
];
|
|
1422
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1423
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1424
|
+
let formParams;
|
|
1425
|
+
let useForm = false;
|
|
1426
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1427
|
+
useForm = canConsumeForm;
|
|
1428
|
+
if (useForm) {
|
|
1429
|
+
formParams = new FormData();
|
|
1430
|
+
}
|
|
1431
|
+
else {
|
|
1432
|
+
formParams = new URLSearchParams();
|
|
1433
|
+
}
|
|
1434
|
+
if (requestParameters['file'] != null) {
|
|
1435
|
+
formParams.append('file', requestParameters['file']);
|
|
1436
|
+
}
|
|
1437
|
+
let urlPath = `/inspector/vddk`;
|
|
1438
|
+
return {
|
|
1439
|
+
path: urlPath,
|
|
1440
|
+
method: 'PUT',
|
|
1441
|
+
headers: headerParameters,
|
|
1442
|
+
query: queryParameters,
|
|
1443
|
+
body: formParams,
|
|
1444
|
+
};
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Upload VDDK tarball
|
|
1449
|
+
*/
|
|
1450
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
1451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
1453
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Upload VDDK tarball
|
|
1459
|
+
*/
|
|
1460
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1462
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1463
|
+
return yield response.value();
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Creates request options for removeVMFromInspection without sending the request
|
|
1468
|
+
*/
|
|
1469
|
+
removeVMFromInspectionRequestOpts(requestParameters) {
|
|
1470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
if (requestParameters['id'] == null) {
|
|
1472
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
|
|
1473
|
+
}
|
|
1474
|
+
const queryParameters = {};
|
|
1475
|
+
const headerParameters = {};
|
|
1476
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1477
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1478
|
+
return {
|
|
1479
|
+
path: urlPath,
|
|
1480
|
+
method: 'DELETE',
|
|
1481
|
+
headers: headerParameters,
|
|
1482
|
+
query: queryParameters,
|
|
1483
|
+
};
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Remove VirtualMachine from inspection queue
|
|
1488
|
+
*/
|
|
1489
|
+
removeVMFromInspectionRaw(requestParameters, initOverrides) {
|
|
1490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1491
|
+
const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
|
|
1492
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1493
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Remove VirtualMachine from inspection queue
|
|
1498
|
+
*/
|
|
1499
|
+
removeVMFromInspection(requestParameters, initOverrides) {
|
|
1500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1501
|
+
const response = yield this.removeVMFromInspectionRaw(requestParameters, initOverrides);
|
|
1502
|
+
return yield response.value();
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Creates request options for setAgentMode without sending the request
|
|
1507
|
+
*/
|
|
1508
|
+
setAgentModeRequestOpts(requestParameters) {
|
|
1509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1510
|
+
if (requestParameters['agentModeRequest'] == null) {
|
|
1511
|
+
throw new runtime.RequiredError('agentModeRequest', 'Required parameter "agentModeRequest" was null or undefined when calling setAgentMode().');
|
|
1512
|
+
}
|
|
1513
|
+
const queryParameters = {};
|
|
1514
|
+
const headerParameters = {};
|
|
1515
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1516
|
+
let urlPath = `/agent`;
|
|
1517
|
+
return {
|
|
1518
|
+
path: urlPath,
|
|
1519
|
+
method: 'POST',
|
|
1520
|
+
headers: headerParameters,
|
|
1521
|
+
query: queryParameters,
|
|
1522
|
+
body: (0, AgentModeRequest_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
1523
|
+
};
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* Change agent mode
|
|
1528
|
+
*/
|
|
1529
|
+
setAgentModeRaw(requestParameters, initOverrides) {
|
|
1530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1531
|
+
const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
|
|
1532
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1533
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Change agent mode
|
|
1538
|
+
*/
|
|
1539
|
+
setAgentMode(requestParameters, initOverrides) {
|
|
1540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1541
|
+
const response = yield this.setAgentModeRaw(requestParameters, initOverrides);
|
|
1542
|
+
return yield response.value();
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Creates request options for startCollector without sending the request
|
|
1547
|
+
*/
|
|
1548
|
+
startCollectorRequestOpts(requestParameters) {
|
|
1549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1550
|
+
if (requestParameters['collectorStartRequest'] == null) {
|
|
668
1551
|
throw new runtime.RequiredError('collectorStartRequest', 'Required parameter "collectorStartRequest" was null or undefined when calling startCollector().');
|
|
669
1552
|
}
|
|
670
1553
|
const queryParameters = {};
|
|
@@ -676,7 +1559,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
676
1559
|
method: 'POST',
|
|
677
1560
|
headers: headerParameters,
|
|
678
1561
|
query: queryParameters,
|
|
679
|
-
body: (0,
|
|
1562
|
+
body: (0, CollectorStartRequest_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
|
|
680
1563
|
};
|
|
681
1564
|
});
|
|
682
1565
|
}
|
|
@@ -687,7 +1570,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
687
1570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
1571
|
const requestOptions = yield this.startCollectorRequestOpts(requestParameters);
|
|
689
1572
|
const response = yield this.request(requestOptions, initOverrides);
|
|
690
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1573
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
691
1574
|
});
|
|
692
1575
|
}
|
|
693
1576
|
/**
|
|
@@ -699,24 +1582,66 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
699
1582
|
return yield response.value();
|
|
700
1583
|
});
|
|
701
1584
|
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Creates request options for startForecaster without sending the request
|
|
1587
|
+
*/
|
|
1588
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1590
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1591
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1592
|
+
}
|
|
1593
|
+
const queryParameters = {};
|
|
1594
|
+
const headerParameters = {};
|
|
1595
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1596
|
+
let urlPath = `/forecaster`;
|
|
1597
|
+
return {
|
|
1598
|
+
path: urlPath,
|
|
1599
|
+
method: 'POST',
|
|
1600
|
+
headers: headerParameters,
|
|
1601
|
+
query: queryParameters,
|
|
1602
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1603
|
+
};
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1608
|
+
* Start benchmark
|
|
1609
|
+
*/
|
|
1610
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1612
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1613
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1614
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1619
|
+
* Start benchmark
|
|
1620
|
+
*/
|
|
1621
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1623
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1624
|
+
return yield response.value();
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
702
1627
|
/**
|
|
703
1628
|
* Creates request options for startInspection without sending the request
|
|
704
1629
|
*/
|
|
705
1630
|
startInspectionRequestOpts(requestParameters) {
|
|
706
1631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
-
if (requestParameters['
|
|
708
|
-
throw new runtime.RequiredError('
|
|
1632
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1633
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
709
1634
|
}
|
|
710
1635
|
const queryParameters = {};
|
|
711
1636
|
const headerParameters = {};
|
|
712
1637
|
headerParameters['Content-Type'] = 'application/json';
|
|
713
|
-
let urlPath = `/
|
|
1638
|
+
let urlPath = `/inspector`;
|
|
714
1639
|
return {
|
|
715
1640
|
path: urlPath,
|
|
716
1641
|
method: 'POST',
|
|
717
1642
|
headers: headerParameters,
|
|
718
1643
|
query: queryParameters,
|
|
719
|
-
body: (0,
|
|
1644
|
+
body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
|
|
720
1645
|
};
|
|
721
1646
|
});
|
|
722
1647
|
}
|
|
@@ -727,7 +1652,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
727
1652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
728
1653
|
const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
|
|
729
1654
|
const response = yield this.request(requestOptions, initOverrides);
|
|
730
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1655
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
731
1656
|
});
|
|
732
1657
|
}
|
|
733
1658
|
/**
|
|
@@ -773,6 +1698,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
773
1698
|
yield this.stopCollectorRaw(initOverrides);
|
|
774
1699
|
});
|
|
775
1700
|
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Creates request options for stopForecaster without sending the request
|
|
1703
|
+
*/
|
|
1704
|
+
stopForecasterRequestOpts() {
|
|
1705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1706
|
+
const queryParameters = {};
|
|
1707
|
+
const headerParameters = {};
|
|
1708
|
+
let urlPath = `/forecaster`;
|
|
1709
|
+
return {
|
|
1710
|
+
path: urlPath,
|
|
1711
|
+
method: 'DELETE',
|
|
1712
|
+
headers: headerParameters,
|
|
1713
|
+
query: queryParameters,
|
|
1714
|
+
};
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1719
|
+
* Cancel benchmark
|
|
1720
|
+
*/
|
|
1721
|
+
stopForecasterRaw(initOverrides) {
|
|
1722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1723
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1724
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1725
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1730
|
+
* Cancel benchmark
|
|
1731
|
+
*/
|
|
1732
|
+
stopForecaster(initOverrides) {
|
|
1733
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1734
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1735
|
+
return yield response.value();
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1740
|
+
*/
|
|
1741
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1743
|
+
if (requestParameters['name'] == null) {
|
|
1744
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1745
|
+
}
|
|
1746
|
+
const queryParameters = {};
|
|
1747
|
+
const headerParameters = {};
|
|
1748
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1749
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1750
|
+
return {
|
|
1751
|
+
path: urlPath,
|
|
1752
|
+
method: 'DELETE',
|
|
1753
|
+
headers: headerParameters,
|
|
1754
|
+
query: queryParameters,
|
|
1755
|
+
};
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1760
|
+
* Cancel a single pair
|
|
1761
|
+
*/
|
|
1762
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1764
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1765
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1767
|
+
});
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1771
|
+
* Cancel a single pair
|
|
1772
|
+
*/
|
|
1773
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1775
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1776
|
+
return yield response.value();
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
776
1779
|
/**
|
|
777
1780
|
* Creates request options for stopInspection without sending the request
|
|
778
1781
|
*/
|
|
@@ -780,7 +1783,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
780
1783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
1784
|
const queryParameters = {};
|
|
782
1785
|
const headerParameters = {};
|
|
783
|
-
let urlPath = `/
|
|
1786
|
+
let urlPath = `/inspector`;
|
|
784
1787
|
return {
|
|
785
1788
|
path: urlPath,
|
|
786
1789
|
method: 'DELETE',
|
|
@@ -796,7 +1799,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
796
1799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
1800
|
const requestOptions = yield this.stopInspectionRequestOpts();
|
|
798
1801
|
const response = yield this.request(requestOptions, initOverrides);
|
|
799
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1802
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
800
1803
|
});
|
|
801
1804
|
}
|
|
802
1805
|
/**
|
|
@@ -808,6 +1811,46 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
808
1811
|
return yield response.value();
|
|
809
1812
|
});
|
|
810
1813
|
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
1816
|
+
*/
|
|
1817
|
+
triggerRightsizingCollectionRequestOpts(requestParameters) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1819
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1820
|
+
throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
|
|
1821
|
+
}
|
|
1822
|
+
const queryParameters = {};
|
|
1823
|
+
const headerParameters = {};
|
|
1824
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1825
|
+
let urlPath = `/rightsizing`;
|
|
1826
|
+
return {
|
|
1827
|
+
path: urlPath,
|
|
1828
|
+
method: 'POST',
|
|
1829
|
+
headers: headerParameters,
|
|
1830
|
+
query: queryParameters,
|
|
1831
|
+
body: (0, RightsizingCollectRequest_js_1.RightsizingCollectRequestToJSON)(requestParameters['rightsizingCollectRequest']),
|
|
1832
|
+
};
|
|
1833
|
+
});
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Trigger rightsizing metrics collection
|
|
1837
|
+
*/
|
|
1838
|
+
triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
|
|
1839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1840
|
+
const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
1841
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1842
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)(jsonValue));
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* Trigger rightsizing metrics collection
|
|
1847
|
+
*/
|
|
1848
|
+
triggerRightsizingCollection(requestParameters, initOverrides) {
|
|
1849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1850
|
+
const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
1851
|
+
return yield response.value();
|
|
1852
|
+
});
|
|
1853
|
+
}
|
|
811
1854
|
/**
|
|
812
1855
|
* Creates request options for updateGroup without sending the request
|
|
813
1856
|
*/
|
|
@@ -823,13 +1866,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
823
1866
|
const headerParameters = {};
|
|
824
1867
|
headerParameters['Content-Type'] = 'application/json';
|
|
825
1868
|
let urlPath = `/groups/{id}`;
|
|
826
|
-
urlPath = urlPath.replace(
|
|
1869
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
827
1870
|
return {
|
|
828
1871
|
path: urlPath,
|
|
829
1872
|
method: 'PATCH',
|
|
830
1873
|
headers: headerParameters,
|
|
831
1874
|
query: queryParameters,
|
|
832
|
-
body: (0,
|
|
1875
|
+
body: (0, UpdateGroupRequest_js_1.UpdateGroupRequestToJSON)(requestParameters['updateGroupRequest']),
|
|
833
1876
|
};
|
|
834
1877
|
});
|
|
835
1878
|
}
|
|
@@ -840,7 +1883,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
840
1883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
841
1884
|
const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
|
|
842
1885
|
const response = yield this.request(requestOptions, initOverrides);
|
|
843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1886
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
844
1887
|
});
|
|
845
1888
|
}
|
|
846
1889
|
/**
|
|
@@ -853,60 +1896,128 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
853
1896
|
});
|
|
854
1897
|
}
|
|
855
1898
|
/**
|
|
856
|
-
* Creates request options for
|
|
1899
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
857
1900
|
*/
|
|
858
|
-
|
|
1901
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
859
1902
|
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
-
if (requestParameters['
|
|
861
|
-
throw new runtime.RequiredError('
|
|
1903
|
+
if (requestParameters['label'] == null) {
|
|
1904
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1905
|
+
}
|
|
1906
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1907
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
862
1908
|
}
|
|
863
1909
|
const queryParameters = {};
|
|
864
1910
|
const headerParameters = {};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
];
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1911
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1912
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1913
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1914
|
+
return {
|
|
1915
|
+
path: urlPath,
|
|
1916
|
+
method: 'PATCH',
|
|
1917
|
+
headers: headerParameters,
|
|
1918
|
+
query: queryParameters,
|
|
1919
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1920
|
+
};
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1925
|
+
*/
|
|
1926
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1928
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1929
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1930
|
+
return new runtime.VoidApiResponse(response);
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1935
|
+
*/
|
|
1936
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* Creates request options for updateVM without sending the request
|
|
1943
|
+
*/
|
|
1944
|
+
updateVMRequestOpts(requestParameters) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
|
+
if (requestParameters['id'] == null) {
|
|
1947
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
876
1948
|
}
|
|
877
|
-
|
|
878
|
-
|
|
1949
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1950
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
879
1951
|
}
|
|
880
|
-
|
|
881
|
-
|
|
1952
|
+
const queryParameters = {};
|
|
1953
|
+
const headerParameters = {};
|
|
1954
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1955
|
+
let urlPath = `/vms/{id}`;
|
|
1956
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1957
|
+
return {
|
|
1958
|
+
path: urlPath,
|
|
1959
|
+
method: 'PATCH',
|
|
1960
|
+
headers: headerParameters,
|
|
1961
|
+
query: queryParameters,
|
|
1962
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1963
|
+
};
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Update VM properties
|
|
1968
|
+
*/
|
|
1969
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1971
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1972
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1973
|
+
return new runtime.VoidApiResponse(response);
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* Update VM properties
|
|
1978
|
+
*/
|
|
1979
|
+
updateVM(requestParameters, initOverrides) {
|
|
1980
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1981
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1986
|
+
*/
|
|
1987
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1989
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1990
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
882
1991
|
}
|
|
883
|
-
|
|
1992
|
+
const queryParameters = {};
|
|
1993
|
+
const headerParameters = {};
|
|
1994
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1995
|
+
let urlPath = `/inspector/credentials`;
|
|
884
1996
|
return {
|
|
885
1997
|
path: urlPath,
|
|
886
1998
|
method: 'POST',
|
|
887
1999
|
headers: headerParameters,
|
|
888
2000
|
query: queryParameters,
|
|
889
|
-
body:
|
|
2001
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
890
2002
|
};
|
|
891
2003
|
});
|
|
892
2004
|
}
|
|
893
2005
|
/**
|
|
894
|
-
*
|
|
2006
|
+
* Validate vCenter credentials for inspector
|
|
895
2007
|
*/
|
|
896
|
-
|
|
2008
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
897
2009
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
|
-
const requestOptions = yield this.
|
|
2010
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
899
2011
|
const response = yield this.request(requestOptions, initOverrides);
|
|
900
|
-
return new runtime.
|
|
2012
|
+
return new runtime.VoidApiResponse(response);
|
|
901
2013
|
});
|
|
902
2014
|
}
|
|
903
2015
|
/**
|
|
904
|
-
*
|
|
2016
|
+
* Validate vCenter credentials for inspector
|
|
905
2017
|
*/
|
|
906
|
-
|
|
2018
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
907
2019
|
return __awaiter(this, void 0, void 0, function* () {
|
|
908
|
-
|
|
909
|
-
return yield response.value();
|
|
2020
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
910
2021
|
});
|
|
911
2022
|
}
|
|
912
2023
|
}
|