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