@openshift-migration-advisor/agent-sdk 0.12.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +74 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +75 -10
- package/dist/apis/DefaultApi.d.ts +1102 -63
- package/dist/apis/DefaultApi.js +1333 -189
- package/dist/esm/apis/DefaultApi.d.ts +1102 -63
- package/dist/esm/apis/DefaultApi.js +1309 -165
- 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 +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +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/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 +37 -0
- package/dist/esm/models/index.js +37 -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 +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +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/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 +37 -0
- package/dist/models/index.js +37 -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 +4 -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 +2170 -304
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +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 +2566 -430
- 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 +16 -0
- 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/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 +37 -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,45 @@ 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
|
+
}
|
|
149
264
|
/**
|
|
150
265
|
* Creates request options for getAgentStatus without sending the request
|
|
151
266
|
*/
|
|
@@ -169,7 +284,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
169
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
285
|
const requestOptions = yield this.getAgentStatusRequestOpts();
|
|
171
286
|
const response = yield this.request(requestOptions, initOverrides);
|
|
172
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
173
288
|
});
|
|
174
289
|
}
|
|
175
290
|
/**
|
|
@@ -181,6 +296,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
181
296
|
return yield response.value();
|
|
182
297
|
});
|
|
183
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getApplications without sending the request
|
|
301
|
+
*/
|
|
302
|
+
getApplicationsRequestOpts() {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
let urlPath = `/applications`;
|
|
307
|
+
return {
|
|
308
|
+
path: urlPath,
|
|
309
|
+
method: 'GET',
|
|
310
|
+
headers: headerParameters,
|
|
311
|
+
query: queryParameters,
|
|
312
|
+
};
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* List detected applications running on VMs
|
|
317
|
+
*/
|
|
318
|
+
getApplicationsRaw(initOverrides) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
321
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
322
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* List detected applications running on VMs
|
|
327
|
+
*/
|
|
328
|
+
getApplications(initOverrides) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
331
|
+
return yield response.value();
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
336
|
+
*/
|
|
337
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
if (requestParameters['clusterId'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
341
|
+
}
|
|
342
|
+
const queryParameters = {};
|
|
343
|
+
const headerParameters = {};
|
|
344
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
345
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
346
|
+
return {
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Get latest cluster utilization by cluster ID
|
|
356
|
+
*/
|
|
357
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
360
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
361
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get latest cluster utilization by cluster ID
|
|
366
|
+
*/
|
|
367
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
370
|
+
return yield response.value();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
184
373
|
/**
|
|
185
374
|
* Creates request options for getCollectorStatus without sending the request
|
|
186
375
|
*/
|
|
@@ -204,7 +393,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
204
393
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
394
|
const requestOptions = yield this.getCollectorStatusRequestOpts();
|
|
206
395
|
const response = yield this.request(requestOptions, initOverrides);
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
208
397
|
});
|
|
209
398
|
}
|
|
210
399
|
/**
|
|
@@ -217,26 +406,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
217
406
|
});
|
|
218
407
|
}
|
|
219
408
|
/**
|
|
220
|
-
* Creates request options for
|
|
409
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
221
410
|
*/
|
|
222
|
-
|
|
411
|
+
getCredentialCapabilitiesRequestOpts() {
|
|
223
412
|
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
413
|
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
414
|
const headerParameters = {};
|
|
238
|
-
let urlPath = `/
|
|
239
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
415
|
+
let urlPath = `/credentials/capabilities`;
|
|
240
416
|
return {
|
|
241
417
|
path: urlPath,
|
|
242
418
|
method: 'GET',
|
|
@@ -246,38 +422,34 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
246
422
|
});
|
|
247
423
|
}
|
|
248
424
|
/**
|
|
249
|
-
*
|
|
425
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
426
|
+
* Check vSphere operation capabilities
|
|
250
427
|
*/
|
|
251
|
-
|
|
428
|
+
getCredentialCapabilitiesRaw(initOverrides) {
|
|
252
429
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
-
const requestOptions = yield this.
|
|
430
|
+
const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
|
|
254
431
|
const response = yield this.request(requestOptions, initOverrides);
|
|
255
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
432
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CapabilityStatus_js_1.CapabilityStatusFromJSON)(jsonValue));
|
|
256
433
|
});
|
|
257
434
|
}
|
|
258
435
|
/**
|
|
259
|
-
*
|
|
436
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
437
|
+
* Check vSphere operation capabilities
|
|
260
438
|
*/
|
|
261
|
-
|
|
439
|
+
getCredentialCapabilities(initOverrides) {
|
|
262
440
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
-
const response = yield this.
|
|
441
|
+
const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
|
|
264
442
|
return yield response.value();
|
|
265
443
|
});
|
|
266
444
|
}
|
|
267
445
|
/**
|
|
268
|
-
* Creates request options for
|
|
446
|
+
* Creates request options for getCredentials without sending the request
|
|
269
447
|
*/
|
|
270
|
-
|
|
448
|
+
getCredentialsRequestOpts() {
|
|
271
449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
450
|
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
451
|
const headerParameters = {};
|
|
280
|
-
let urlPath = `/
|
|
452
|
+
let urlPath = `/credentials`;
|
|
281
453
|
return {
|
|
282
454
|
path: urlPath,
|
|
283
455
|
method: 'GET',
|
|
@@ -287,73 +459,76 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
287
459
|
});
|
|
288
460
|
}
|
|
289
461
|
/**
|
|
290
|
-
*
|
|
462
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
463
|
+
* Get stored credential status
|
|
291
464
|
*/
|
|
292
|
-
|
|
465
|
+
getCredentialsRaw(initOverrides) {
|
|
293
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
const requestOptions = yield this.
|
|
467
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
295
468
|
const response = yield this.request(requestOptions, initOverrides);
|
|
296
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
297
470
|
});
|
|
298
471
|
}
|
|
299
472
|
/**
|
|
300
|
-
*
|
|
473
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
474
|
+
* Get stored credential status
|
|
301
475
|
*/
|
|
302
|
-
|
|
303
|
-
return __awaiter(this,
|
|
304
|
-
const response = yield this.
|
|
476
|
+
getCredentials(initOverrides) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
305
479
|
return yield response.value();
|
|
306
480
|
});
|
|
307
481
|
}
|
|
308
482
|
/**
|
|
309
|
-
* Creates request options for
|
|
483
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
310
484
|
*/
|
|
311
|
-
|
|
485
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
312
486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
487
|
const queryParameters = {};
|
|
314
488
|
const headerParameters = {};
|
|
315
|
-
|
|
489
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
490
|
+
let urlPath = `/forecaster/datastores`;
|
|
316
491
|
return {
|
|
317
492
|
path: urlPath,
|
|
318
|
-
method: '
|
|
493
|
+
method: 'POST',
|
|
319
494
|
headers: headerParameters,
|
|
320
495
|
query: queryParameters,
|
|
496
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
321
497
|
};
|
|
322
498
|
});
|
|
323
499
|
}
|
|
324
500
|
/**
|
|
325
|
-
*
|
|
501
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
502
|
+
* List available datastores
|
|
326
503
|
*/
|
|
327
|
-
|
|
504
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
328
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
-
const requestOptions = yield this.
|
|
506
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
330
507
|
const response = yield this.request(requestOptions, initOverrides);
|
|
331
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
508
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
332
509
|
});
|
|
333
510
|
}
|
|
334
511
|
/**
|
|
335
|
-
*
|
|
512
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
513
|
+
* List available datastores
|
|
336
514
|
*/
|
|
337
|
-
|
|
338
|
-
return __awaiter(this,
|
|
339
|
-
const response = yield this.
|
|
515
|
+
getForecasterDatastores() {
|
|
516
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
517
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
340
518
|
return yield response.value();
|
|
341
519
|
});
|
|
342
520
|
}
|
|
343
521
|
/**
|
|
344
|
-
* Creates request options for
|
|
522
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
345
523
|
*/
|
|
346
|
-
|
|
524
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
347
525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
348
526
|
const queryParameters = {};
|
|
349
|
-
if (requestParameters['
|
|
350
|
-
queryParameters['
|
|
351
|
-
}
|
|
352
|
-
if (requestParameters['groupId'] != null) {
|
|
353
|
-
queryParameters['group_id'] = requestParameters['groupId'];
|
|
527
|
+
if (requestParameters['pairName'] != null) {
|
|
528
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
354
529
|
}
|
|
355
530
|
const headerParameters = {};
|
|
356
|
-
let urlPath = `/
|
|
531
|
+
let urlPath = `/forecaster/runs`;
|
|
357
532
|
return {
|
|
358
533
|
path: urlPath,
|
|
359
534
|
method: 'GET',
|
|
@@ -363,36 +538,40 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
363
538
|
});
|
|
364
539
|
}
|
|
365
540
|
/**
|
|
366
|
-
*
|
|
541
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
542
|
+
* List benchmark runs
|
|
367
543
|
*/
|
|
368
|
-
|
|
544
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
369
545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
-
const requestOptions = yield this.
|
|
546
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
371
547
|
const response = yield this.request(requestOptions, initOverrides);
|
|
372
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
548
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
373
549
|
});
|
|
374
550
|
}
|
|
375
551
|
/**
|
|
376
|
-
*
|
|
552
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
553
|
+
* List benchmark runs
|
|
377
554
|
*/
|
|
378
|
-
|
|
555
|
+
getForecasterRuns() {
|
|
379
556
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
380
|
-
const response = yield this.
|
|
557
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
381
558
|
return yield response.value();
|
|
382
559
|
});
|
|
383
560
|
}
|
|
384
561
|
/**
|
|
385
|
-
* Creates request options for
|
|
562
|
+
* Creates request options for getForecasterStats without sending the request
|
|
386
563
|
*/
|
|
387
|
-
|
|
564
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
388
565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
-
if (requestParameters['
|
|
390
|
-
throw new runtime.RequiredError('
|
|
566
|
+
if (requestParameters['pairName'] == null) {
|
|
567
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
391
568
|
}
|
|
392
569
|
const queryParameters = {};
|
|
570
|
+
if (requestParameters['pairName'] != null) {
|
|
571
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
572
|
+
}
|
|
393
573
|
const headerParameters = {};
|
|
394
|
-
let urlPath = `/
|
|
395
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
574
|
+
let urlPath = `/forecaster/stats`;
|
|
396
575
|
return {
|
|
397
576
|
path: urlPath,
|
|
398
577
|
method: 'GET',
|
|
@@ -402,44 +581,717 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
402
581
|
});
|
|
403
582
|
}
|
|
404
583
|
/**
|
|
405
|
-
*
|
|
584
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
585
|
+
* Get throughput statistics
|
|
406
586
|
*/
|
|
407
|
-
|
|
587
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
408
588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
-
const requestOptions = yield this.
|
|
589
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
410
590
|
const response = yield this.request(requestOptions, initOverrides);
|
|
411
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
412
592
|
});
|
|
413
593
|
}
|
|
414
594
|
/**
|
|
415
|
-
*
|
|
595
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
596
|
+
* Get throughput statistics
|
|
416
597
|
*/
|
|
417
|
-
|
|
598
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
601
|
+
return yield response.value();
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
606
|
+
*/
|
|
607
|
+
getForecasterStatusRequestOpts() {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const queryParameters = {};
|
|
610
|
+
const headerParameters = {};
|
|
611
|
+
let urlPath = `/forecaster`;
|
|
612
|
+
return {
|
|
613
|
+
path: urlPath,
|
|
614
|
+
method: 'GET',
|
|
615
|
+
headers: headerParameters,
|
|
616
|
+
query: queryParameters,
|
|
617
|
+
};
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Returns current service state with per-pair progress details.
|
|
622
|
+
* Poll forecaster status
|
|
623
|
+
*/
|
|
624
|
+
getForecasterStatusRaw(initOverrides) {
|
|
625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
626
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
627
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
628
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Returns current service state with per-pair progress details.
|
|
633
|
+
* Poll forecaster status
|
|
634
|
+
*/
|
|
635
|
+
getForecasterStatus(initOverrides) {
|
|
636
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
637
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
638
|
+
return yield response.value();
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Creates request options for getGroup without sending the request
|
|
643
|
+
*/
|
|
644
|
+
getGroupRequestOpts(requestParameters) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
if (requestParameters['id'] == null) {
|
|
647
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
|
|
648
|
+
}
|
|
649
|
+
const queryParameters = {};
|
|
650
|
+
if (requestParameters['sort'] != null) {
|
|
651
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
652
|
+
}
|
|
653
|
+
if (requestParameters['page'] != null) {
|
|
654
|
+
queryParameters['page'] = requestParameters['page'];
|
|
655
|
+
}
|
|
656
|
+
if (requestParameters['pageSize'] != null) {
|
|
657
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
658
|
+
}
|
|
659
|
+
const headerParameters = {};
|
|
660
|
+
let urlPath = `/groups/{id}`;
|
|
661
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
662
|
+
return {
|
|
663
|
+
path: urlPath,
|
|
664
|
+
method: 'GET',
|
|
665
|
+
headers: headerParameters,
|
|
666
|
+
query: queryParameters,
|
|
667
|
+
};
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Get group by ID with its VMs
|
|
672
|
+
*/
|
|
673
|
+
getGroupRaw(requestParameters, initOverrides) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
const requestOptions = yield this.getGroupRequestOpts(requestParameters);
|
|
676
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
677
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupResponse_js_1.GroupResponseFromJSON)(jsonValue));
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Get group by ID with its VMs
|
|
682
|
+
*/
|
|
683
|
+
getGroup(requestParameters, initOverrides) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
685
|
+
const response = yield this.getGroupRaw(requestParameters, initOverrides);
|
|
686
|
+
return yield response.value();
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
691
|
+
*/
|
|
692
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
const queryParameters = {};
|
|
695
|
+
if (requestParameters['includeVddk'] != null) {
|
|
696
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
697
|
+
}
|
|
698
|
+
const headerParameters = {};
|
|
699
|
+
let urlPath = `/inspector`;
|
|
700
|
+
return {
|
|
701
|
+
path: urlPath,
|
|
702
|
+
method: 'GET',
|
|
703
|
+
headers: headerParameters,
|
|
704
|
+
query: queryParameters,
|
|
705
|
+
};
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Get inspector status
|
|
710
|
+
*/
|
|
711
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
713
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
714
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
715
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Get inspector status
|
|
720
|
+
*/
|
|
721
|
+
getInspectorStatus() {
|
|
722
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
723
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
724
|
+
return yield response.value();
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
729
|
+
*/
|
|
730
|
+
getInspectorVddkStatusRequestOpts() {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
const queryParameters = {};
|
|
733
|
+
const headerParameters = {};
|
|
734
|
+
let urlPath = `/inspector/vddk`;
|
|
735
|
+
return {
|
|
736
|
+
path: urlPath,
|
|
737
|
+
method: 'GET',
|
|
738
|
+
headers: headerParameters,
|
|
739
|
+
query: queryParameters,
|
|
740
|
+
};
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Get VDDK status
|
|
745
|
+
*/
|
|
746
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
749
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
750
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Get VDDK status
|
|
755
|
+
*/
|
|
756
|
+
getInspectorVddkStatus(initOverrides) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
758
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
759
|
+
return yield response.value();
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Creates request options for getInventory without sending the request
|
|
764
|
+
*/
|
|
765
|
+
getInventoryRequestOpts(requestParameters) {
|
|
766
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
767
|
+
const queryParameters = {};
|
|
768
|
+
if (requestParameters['withAgentId'] != null) {
|
|
769
|
+
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
770
|
+
}
|
|
771
|
+
if (requestParameters['groupId'] != null) {
|
|
772
|
+
queryParameters['group_id'] = requestParameters['groupId'];
|
|
773
|
+
}
|
|
774
|
+
const headerParameters = {};
|
|
775
|
+
let urlPath = `/inventory`;
|
|
776
|
+
return {
|
|
777
|
+
path: urlPath,
|
|
778
|
+
method: 'GET',
|
|
779
|
+
headers: headerParameters,
|
|
780
|
+
query: queryParameters,
|
|
781
|
+
};
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Get collected inventory
|
|
786
|
+
*/
|
|
787
|
+
getInventoryRaw(requestParameters, initOverrides) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
789
|
+
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
790
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
791
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetInventory200Response_js_1.GetInventory200ResponseFromJSON)(jsonValue));
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Get collected inventory
|
|
796
|
+
*/
|
|
797
|
+
getInventory() {
|
|
798
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
799
|
+
const response = yield this.getInventoryRaw(requestParameters, initOverrides);
|
|
800
|
+
return yield response.value();
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
805
|
+
* @deprecated
|
|
806
|
+
*/
|
|
807
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
+
const queryParameters = {};
|
|
810
|
+
if (requestParameters['byExpression'] != null) {
|
|
811
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
812
|
+
}
|
|
813
|
+
const headerParameters = {};
|
|
814
|
+
let urlPath = `/cluster_rightsizing`;
|
|
815
|
+
return {
|
|
816
|
+
path: urlPath,
|
|
817
|
+
method: 'GET',
|
|
818
|
+
headers: headerParameters,
|
|
819
|
+
query: queryParameters,
|
|
820
|
+
};
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
825
|
+
* @deprecated
|
|
826
|
+
*/
|
|
827
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
829
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
830
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
831
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
836
|
+
* @deprecated
|
|
837
|
+
*/
|
|
838
|
+
getLatestRightsizingClusters() {
|
|
839
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
840
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
841
|
+
return yield response.value();
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
846
|
+
*/
|
|
847
|
+
getRightsizingReportRequestOpts(requestParameters) {
|
|
848
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
849
|
+
if (requestParameters['reportId'] == null) {
|
|
850
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
851
|
+
}
|
|
852
|
+
const queryParameters = {};
|
|
853
|
+
const headerParameters = {};
|
|
854
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
855
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
856
|
+
return {
|
|
857
|
+
path: urlPath,
|
|
858
|
+
method: 'GET',
|
|
859
|
+
headers: headerParameters,
|
|
860
|
+
query: queryParameters,
|
|
861
|
+
};
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Get a specific rightsizing report with full VM metrics
|
|
866
|
+
*/
|
|
867
|
+
getRightsizingReportRaw(requestParameters, initOverrides) {
|
|
868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
+
const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
|
|
870
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
871
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReport_js_1.RightsizingReportFromJSON)(jsonValue));
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* Get a specific rightsizing report with full VM metrics
|
|
876
|
+
*/
|
|
877
|
+
getRightsizingReport(requestParameters, initOverrides) {
|
|
878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
879
|
+
const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
880
|
+
return yield response.value();
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
885
|
+
*/
|
|
886
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
888
|
+
if (requestParameters['reportId'] == null) {
|
|
889
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
890
|
+
}
|
|
891
|
+
if (requestParameters['clusterId'] == null) {
|
|
892
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
893
|
+
}
|
|
894
|
+
const queryParameters = {};
|
|
895
|
+
const headerParameters = {};
|
|
896
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
897
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
898
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
899
|
+
return {
|
|
900
|
+
path: urlPath,
|
|
901
|
+
method: 'GET',
|
|
902
|
+
headers: headerParameters,
|
|
903
|
+
query: queryParameters,
|
|
904
|
+
};
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Get utilization for a specific cluster from a specific report
|
|
909
|
+
*/
|
|
910
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
912
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
913
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
914
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Get utilization for a specific cluster from a specific report
|
|
919
|
+
*/
|
|
920
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
922
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
923
|
+
return yield response.value();
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
928
|
+
* @deprecated
|
|
929
|
+
*/
|
|
930
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
932
|
+
if (requestParameters['reportId'] == null) {
|
|
933
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
934
|
+
}
|
|
935
|
+
const queryParameters = {};
|
|
936
|
+
if (requestParameters['byExpression'] != null) {
|
|
937
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
938
|
+
}
|
|
939
|
+
const headerParameters = {};
|
|
940
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
941
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
942
|
+
return {
|
|
943
|
+
path: urlPath,
|
|
944
|
+
method: 'GET',
|
|
945
|
+
headers: headerParameters,
|
|
946
|
+
query: queryParameters,
|
|
947
|
+
};
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
952
|
+
* @deprecated
|
|
953
|
+
*/
|
|
954
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
956
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
957
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
958
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
963
|
+
* @deprecated
|
|
964
|
+
*/
|
|
965
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
968
|
+
return yield response.value();
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Creates request options for getVM without sending the request
|
|
973
|
+
*/
|
|
974
|
+
getVMRequestOpts(requestParameters) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
976
|
+
if (requestParameters['id'] == null) {
|
|
977
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
|
|
978
|
+
}
|
|
979
|
+
const queryParameters = {};
|
|
980
|
+
const headerParameters = {};
|
|
981
|
+
let urlPath = `/vms/{id}`;
|
|
982
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
983
|
+
return {
|
|
984
|
+
path: urlPath,
|
|
985
|
+
method: 'GET',
|
|
986
|
+
headers: headerParameters,
|
|
987
|
+
query: queryParameters,
|
|
988
|
+
};
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Get details about a vm
|
|
993
|
+
*/
|
|
994
|
+
getVMRaw(requestParameters, initOverrides) {
|
|
995
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
996
|
+
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
997
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
998
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Get details about a vm
|
|
1003
|
+
*/
|
|
1004
|
+
getVM(requestParameters, initOverrides) {
|
|
1005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
|
+
const response = yield this.getVMRaw(requestParameters, initOverrides);
|
|
1007
|
+
return yield response.value();
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Creates request options for getVMLabels without sending the request
|
|
1012
|
+
*/
|
|
1013
|
+
getVMLabelsRequestOpts() {
|
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1015
|
+
const queryParameters = {};
|
|
1016
|
+
const headerParameters = {};
|
|
1017
|
+
let urlPath = `/vms/labels`;
|
|
1018
|
+
return {
|
|
1019
|
+
path: urlPath,
|
|
1020
|
+
method: 'GET',
|
|
1021
|
+
headers: headerParameters,
|
|
1022
|
+
query: queryParameters,
|
|
1023
|
+
};
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Get all distinct labels in use across VMs
|
|
1028
|
+
*/
|
|
1029
|
+
getVMLabelsRaw(initOverrides) {
|
|
1030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1031
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
1032
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1033
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Get all distinct labels in use across VMs
|
|
1038
|
+
*/
|
|
1039
|
+
getVMLabels(initOverrides) {
|
|
1040
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
1042
|
+
return yield response.value();
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Creates request options for getVMUtilization without sending the request
|
|
1047
|
+
*/
|
|
1048
|
+
getVMUtilizationRequestOpts(requestParameters) {
|
|
1049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
|
+
if (requestParameters['id'] == null) {
|
|
1051
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
|
|
1052
|
+
}
|
|
1053
|
+
const queryParameters = {};
|
|
1054
|
+
const headerParameters = {};
|
|
1055
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
1056
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1057
|
+
return {
|
|
1058
|
+
path: urlPath,
|
|
1059
|
+
method: 'GET',
|
|
1060
|
+
headers: headerParameters,
|
|
1061
|
+
query: queryParameters,
|
|
1062
|
+
};
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Get utilization breakdown for a specific VM
|
|
1067
|
+
*/
|
|
1068
|
+
getVMUtilizationRaw(requestParameters, initOverrides) {
|
|
1069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1070
|
+
const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
|
|
1071
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1072
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Get utilization breakdown for a specific VM
|
|
1077
|
+
*/
|
|
1078
|
+
getVMUtilization(requestParameters, initOverrides) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
1081
|
+
return yield response.value();
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Creates request options for getVMs without sending the request
|
|
1086
|
+
*/
|
|
1087
|
+
getVMsRequestOpts(requestParameters) {
|
|
1088
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1089
|
+
const queryParameters = {};
|
|
1090
|
+
if (requestParameters['byExpression'] != null) {
|
|
1091
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1092
|
+
}
|
|
1093
|
+
if (requestParameters['sort'] != null) {
|
|
1094
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1095
|
+
}
|
|
1096
|
+
if (requestParameters['page'] != null) {
|
|
1097
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1098
|
+
}
|
|
1099
|
+
if (requestParameters['pageSize'] != null) {
|
|
1100
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1101
|
+
}
|
|
1102
|
+
const headerParameters = {};
|
|
1103
|
+
let urlPath = `/vms`;
|
|
1104
|
+
return {
|
|
1105
|
+
path: urlPath,
|
|
1106
|
+
method: 'GET',
|
|
1107
|
+
headers: headerParameters,
|
|
1108
|
+
query: queryParameters,
|
|
1109
|
+
};
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Get list of VMs with filtering and pagination
|
|
1114
|
+
*/
|
|
1115
|
+
getVMsRaw(requestParameters, initOverrides) {
|
|
1116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1117
|
+
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
1118
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineListResponse_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Get list of VMs with filtering and pagination
|
|
1124
|
+
*/
|
|
1125
|
+
getVMs() {
|
|
1126
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1127
|
+
const response = yield this.getVMsRaw(requestParameters, initOverrides);
|
|
1128
|
+
return yield response.value();
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1133
|
+
*/
|
|
1134
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1136
|
+
const queryParameters = {};
|
|
1137
|
+
const headerParameters = {};
|
|
1138
|
+
let urlPath = `/vms/filter-options`;
|
|
1139
|
+
return {
|
|
1140
|
+
path: urlPath,
|
|
1141
|
+
method: 'GET',
|
|
1142
|
+
headers: headerParameters,
|
|
1143
|
+
query: queryParameters,
|
|
1144
|
+
};
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Get distinct filter option values for VMs
|
|
1149
|
+
*/
|
|
1150
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1152
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1153
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1154
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Get distinct filter option values for VMs
|
|
1159
|
+
*/
|
|
1160
|
+
getVMsFilterOptions(initOverrides) {
|
|
1161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1162
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1163
|
+
return yield response.value();
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Creates request options for getVersion without sending the request
|
|
1168
|
+
*/
|
|
1169
|
+
getVersionRequestOpts() {
|
|
1170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1171
|
+
const queryParameters = {};
|
|
1172
|
+
const headerParameters = {};
|
|
1173
|
+
let urlPath = `/version`;
|
|
1174
|
+
return {
|
|
1175
|
+
path: urlPath,
|
|
1176
|
+
method: 'GET',
|
|
1177
|
+
headers: headerParameters,
|
|
1178
|
+
query: queryParameters,
|
|
1179
|
+
};
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Get agent version information
|
|
1184
|
+
*/
|
|
1185
|
+
getVersionRaw(initOverrides) {
|
|
1186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
+
const requestOptions = yield this.getVersionRequestOpts();
|
|
1188
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VersionInfo_js_1.VersionInfoFromJSON)(jsonValue));
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Get agent version information
|
|
1194
|
+
*/
|
|
1195
|
+
getVersion(initOverrides) {
|
|
1196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1197
|
+
const response = yield this.getVersionRaw(initOverrides);
|
|
1198
|
+
return yield response.value();
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Creates request options for listGroups without sending the request
|
|
1203
|
+
*/
|
|
1204
|
+
listGroupsRequestOpts(requestParameters) {
|
|
1205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1206
|
+
const queryParameters = {};
|
|
1207
|
+
if (requestParameters['byName'] != null) {
|
|
1208
|
+
queryParameters['byName'] = requestParameters['byName'];
|
|
1209
|
+
}
|
|
1210
|
+
if (requestParameters['page'] != null) {
|
|
1211
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1212
|
+
}
|
|
1213
|
+
if (requestParameters['pageSize'] != null) {
|
|
1214
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1215
|
+
}
|
|
1216
|
+
const headerParameters = {};
|
|
1217
|
+
let urlPath = `/groups`;
|
|
1218
|
+
return {
|
|
1219
|
+
path: urlPath,
|
|
1220
|
+
method: 'GET',
|
|
1221
|
+
headers: headerParameters,
|
|
1222
|
+
query: queryParameters,
|
|
1223
|
+
};
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* List all groups
|
|
1228
|
+
*/
|
|
1229
|
+
listGroupsRaw(requestParameters, initOverrides) {
|
|
1230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1231
|
+
const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
|
|
1232
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupListResponse_js_1.GroupListResponseFromJSON)(jsonValue));
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
/**
|
|
1237
|
+
* List all groups
|
|
1238
|
+
*/
|
|
1239
|
+
listGroups() {
|
|
1240
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1241
|
+
const response = yield this.listGroupsRaw(requestParameters, initOverrides);
|
|
1242
|
+
return yield response.value();
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1247
|
+
*/
|
|
1248
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1250
|
+
if (requestParameters['reportId'] == null) {
|
|
1251
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1252
|
+
}
|
|
1253
|
+
const queryParameters = {};
|
|
1254
|
+
if (requestParameters['byExpression'] != null) {
|
|
1255
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1256
|
+
}
|
|
1257
|
+
const headerParameters = {};
|
|
1258
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1259
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1260
|
+
return {
|
|
1261
|
+
path: urlPath,
|
|
1262
|
+
method: 'GET',
|
|
1263
|
+
headers: headerParameters,
|
|
1264
|
+
query: queryParameters,
|
|
1265
|
+
};
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1270
|
+
*/
|
|
1271
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1273
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1274
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1280
|
+
*/
|
|
1281
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
418
1282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
-
const response = yield this.
|
|
1283
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
420
1284
|
return yield response.value();
|
|
421
1285
|
});
|
|
422
1286
|
}
|
|
423
1287
|
/**
|
|
424
|
-
* Creates request options for
|
|
1288
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
425
1289
|
*/
|
|
426
|
-
|
|
1290
|
+
listRightsizingReportsRequestOpts() {
|
|
427
1291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
1292
|
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
1293
|
const headerParameters = {};
|
|
442
|
-
let urlPath = `/
|
|
1294
|
+
let urlPath = `/rightsizing`;
|
|
443
1295
|
return {
|
|
444
1296
|
path: urlPath,
|
|
445
1297
|
method: 'GET',
|
|
@@ -449,140 +1301,147 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
449
1301
|
});
|
|
450
1302
|
}
|
|
451
1303
|
/**
|
|
452
|
-
*
|
|
1304
|
+
* List all rightsizing reports
|
|
453
1305
|
*/
|
|
454
|
-
|
|
1306
|
+
listRightsizingReportsRaw(initOverrides) {
|
|
455
1307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
456
|
-
const requestOptions = yield this.
|
|
1308
|
+
const requestOptions = yield this.listRightsizingReportsRequestOpts();
|
|
457
1309
|
const response = yield this.request(requestOptions, initOverrides);
|
|
458
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1310
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportListResponse_js_1.RightsizingReportListResponseFromJSON)(jsonValue));
|
|
459
1311
|
});
|
|
460
1312
|
}
|
|
461
1313
|
/**
|
|
462
|
-
*
|
|
1314
|
+
* List all rightsizing reports
|
|
463
1315
|
*/
|
|
464
|
-
|
|
465
|
-
return __awaiter(this,
|
|
466
|
-
const response = yield this.
|
|
1316
|
+
listRightsizingReports(initOverrides) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1318
|
+
const response = yield this.listRightsizingReportsRaw(initOverrides);
|
|
467
1319
|
return yield response.value();
|
|
468
1320
|
});
|
|
469
1321
|
}
|
|
470
1322
|
/**
|
|
471
|
-
* Creates request options for
|
|
1323
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
472
1324
|
*/
|
|
473
|
-
|
|
1325
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
474
1326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
1328
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
1329
|
+
}
|
|
475
1330
|
const queryParameters = {};
|
|
476
1331
|
const headerParameters = {};
|
|
477
|
-
|
|
1332
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1333
|
+
let urlPath = `/forecaster/capabilities`;
|
|
478
1334
|
return {
|
|
479
1335
|
path: urlPath,
|
|
480
|
-
method: '
|
|
1336
|
+
method: 'POST',
|
|
481
1337
|
headers: headerParameters,
|
|
482
1338
|
query: queryParameters,
|
|
1339
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
483
1340
|
};
|
|
484
1341
|
});
|
|
485
1342
|
}
|
|
486
1343
|
/**
|
|
487
|
-
*
|
|
1344
|
+
* 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.
|
|
1345
|
+
* Compute pair capabilities
|
|
488
1346
|
*/
|
|
489
|
-
|
|
1347
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
490
1348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
-
const requestOptions = yield this.
|
|
1349
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
492
1350
|
const response = yield this.request(requestOptions, initOverrides);
|
|
493
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
1351
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
494
1352
|
});
|
|
495
1353
|
}
|
|
496
1354
|
/**
|
|
497
|
-
*
|
|
1355
|
+
* 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.
|
|
1356
|
+
* Compute pair capabilities
|
|
498
1357
|
*/
|
|
499
|
-
|
|
1358
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
500
1359
|
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
-
const response = yield this.
|
|
1360
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
502
1361
|
return yield response.value();
|
|
503
1362
|
});
|
|
504
1363
|
}
|
|
505
1364
|
/**
|
|
506
|
-
* Creates request options for
|
|
1365
|
+
* Creates request options for putCredentials without sending the request
|
|
507
1366
|
*/
|
|
508
|
-
|
|
1367
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
509
1368
|
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'];
|
|
1369
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1370
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
519
1371
|
}
|
|
1372
|
+
const queryParameters = {};
|
|
520
1373
|
const headerParameters = {};
|
|
521
|
-
|
|
1374
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1375
|
+
let urlPath = `/credentials`;
|
|
522
1376
|
return {
|
|
523
1377
|
path: urlPath,
|
|
524
|
-
method: '
|
|
1378
|
+
method: 'PUT',
|
|
525
1379
|
headers: headerParameters,
|
|
526
1380
|
query: queryParameters,
|
|
1381
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
527
1382
|
};
|
|
528
1383
|
});
|
|
529
1384
|
}
|
|
530
1385
|
/**
|
|
531
|
-
*
|
|
1386
|
+
* 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.
|
|
1387
|
+
* Store vCenter credentials
|
|
532
1388
|
*/
|
|
533
|
-
|
|
1389
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
534
1390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
-
const requestOptions = yield this.
|
|
1391
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
536
1392
|
const response = yield this.request(requestOptions, initOverrides);
|
|
537
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
538
1394
|
});
|
|
539
1395
|
}
|
|
540
1396
|
/**
|
|
541
|
-
*
|
|
1397
|
+
* 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.
|
|
1398
|
+
* Store vCenter credentials
|
|
542
1399
|
*/
|
|
543
|
-
|
|
544
|
-
return __awaiter(this,
|
|
545
|
-
const response = yield this.
|
|
1400
|
+
putCredentials(requestParameters, initOverrides) {
|
|
1401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
546
1403
|
return yield response.value();
|
|
547
1404
|
});
|
|
548
1405
|
}
|
|
549
1406
|
/**
|
|
550
|
-
* Creates request options for
|
|
1407
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
551
1408
|
*/
|
|
552
|
-
|
|
1409
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
553
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
554
1411
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
555
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1412
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
556
1413
|
}
|
|
557
1414
|
const queryParameters = {};
|
|
558
1415
|
const headerParameters = {};
|
|
559
1416
|
headerParameters['Content-Type'] = 'application/json';
|
|
560
|
-
let urlPath = `/
|
|
1417
|
+
let urlPath = `/forecaster/credentials`;
|
|
561
1418
|
return {
|
|
562
1419
|
path: urlPath,
|
|
563
1420
|
method: 'PUT',
|
|
564
1421
|
headers: headerParameters,
|
|
565
1422
|
query: queryParameters,
|
|
566
|
-
body: (0,
|
|
1423
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
567
1424
|
};
|
|
568
1425
|
});
|
|
569
1426
|
}
|
|
570
1427
|
/**
|
|
571
|
-
*
|
|
1428
|
+
* 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.
|
|
1429
|
+
* Verify vCenter credentials and permissions
|
|
572
1430
|
*/
|
|
573
|
-
|
|
1431
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
574
1432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
-
const requestOptions = yield this.
|
|
1433
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
576
1434
|
const response = yield this.request(requestOptions, initOverrides);
|
|
577
1435
|
return new runtime.VoidApiResponse(response);
|
|
578
1436
|
});
|
|
579
1437
|
}
|
|
580
1438
|
/**
|
|
581
|
-
*
|
|
1439
|
+
* 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.
|
|
1440
|
+
* Verify vCenter credentials and permissions
|
|
582
1441
|
*/
|
|
583
|
-
|
|
1442
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
584
1443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
-
yield this.
|
|
1444
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
586
1445
|
});
|
|
587
1446
|
}
|
|
588
1447
|
/**
|
|
@@ -630,7 +1489,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
630
1489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
631
1490
|
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
632
1491
|
const response = yield this.request(requestOptions, initOverrides);
|
|
633
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1492
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
634
1493
|
});
|
|
635
1494
|
}
|
|
636
1495
|
/**
|
|
@@ -669,7 +1528,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
669
1528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
670
1529
|
const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
|
|
671
1530
|
const response = yield this.request(requestOptions, initOverrides);
|
|
672
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1531
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
673
1532
|
});
|
|
674
1533
|
}
|
|
675
1534
|
/**
|
|
@@ -698,7 +1557,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
698
1557
|
method: 'POST',
|
|
699
1558
|
headers: headerParameters,
|
|
700
1559
|
query: queryParameters,
|
|
701
|
-
body: (0,
|
|
1560
|
+
body: (0, AgentModeRequest_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
702
1561
|
};
|
|
703
1562
|
});
|
|
704
1563
|
}
|
|
@@ -709,7 +1568,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
709
1568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
710
1569
|
const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
|
|
711
1570
|
const response = yield this.request(requestOptions, initOverrides);
|
|
712
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1571
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
713
1572
|
});
|
|
714
1573
|
}
|
|
715
1574
|
/**
|
|
@@ -738,7 +1597,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
738
1597
|
method: 'POST',
|
|
739
1598
|
headers: headerParameters,
|
|
740
1599
|
query: queryParameters,
|
|
741
|
-
body: (0,
|
|
1600
|
+
body: (0, CollectorStartRequest_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
|
|
742
1601
|
};
|
|
743
1602
|
});
|
|
744
1603
|
}
|
|
@@ -749,7 +1608,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
749
1608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
750
1609
|
const requestOptions = yield this.startCollectorRequestOpts(requestParameters);
|
|
751
1610
|
const response = yield this.request(requestOptions, initOverrides);
|
|
752
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1611
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
753
1612
|
});
|
|
754
1613
|
}
|
|
755
1614
|
/**
|
|
@@ -761,6 +1620,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
761
1620
|
return yield response.value();
|
|
762
1621
|
});
|
|
763
1622
|
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Creates request options for startForecaster without sending the request
|
|
1625
|
+
*/
|
|
1626
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1628
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1629
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1630
|
+
}
|
|
1631
|
+
const queryParameters = {};
|
|
1632
|
+
const headerParameters = {};
|
|
1633
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1634
|
+
let urlPath = `/forecaster`;
|
|
1635
|
+
return {
|
|
1636
|
+
path: urlPath,
|
|
1637
|
+
method: 'POST',
|
|
1638
|
+
headers: headerParameters,
|
|
1639
|
+
query: queryParameters,
|
|
1640
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1641
|
+
};
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1646
|
+
* Start benchmark
|
|
1647
|
+
*/
|
|
1648
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1650
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1651
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1652
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1657
|
+
* Start benchmark
|
|
1658
|
+
*/
|
|
1659
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1660
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1661
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1662
|
+
return yield response.value();
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
764
1665
|
/**
|
|
765
1666
|
* Creates request options for startInspection without sending the request
|
|
766
1667
|
*/
|
|
@@ -778,7 +1679,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
778
1679
|
method: 'POST',
|
|
779
1680
|
headers: headerParameters,
|
|
780
1681
|
query: queryParameters,
|
|
781
|
-
body: (0,
|
|
1682
|
+
body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
|
|
782
1683
|
};
|
|
783
1684
|
});
|
|
784
1685
|
}
|
|
@@ -789,7 +1690,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
789
1690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
790
1691
|
const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
|
|
791
1692
|
const response = yield this.request(requestOptions, initOverrides);
|
|
792
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1693
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
793
1694
|
});
|
|
794
1695
|
}
|
|
795
1696
|
/**
|
|
@@ -835,6 +1736,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
835
1736
|
yield this.stopCollectorRaw(initOverrides);
|
|
836
1737
|
});
|
|
837
1738
|
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Creates request options for stopForecaster without sending the request
|
|
1741
|
+
*/
|
|
1742
|
+
stopForecasterRequestOpts() {
|
|
1743
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1744
|
+
const queryParameters = {};
|
|
1745
|
+
const headerParameters = {};
|
|
1746
|
+
let urlPath = `/forecaster`;
|
|
1747
|
+
return {
|
|
1748
|
+
path: urlPath,
|
|
1749
|
+
method: 'DELETE',
|
|
1750
|
+
headers: headerParameters,
|
|
1751
|
+
query: queryParameters,
|
|
1752
|
+
};
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1757
|
+
* Cancel benchmark
|
|
1758
|
+
*/
|
|
1759
|
+
stopForecasterRaw(initOverrides) {
|
|
1760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1761
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1762
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1763
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1768
|
+
* Cancel benchmark
|
|
1769
|
+
*/
|
|
1770
|
+
stopForecaster(initOverrides) {
|
|
1771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1772
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1773
|
+
return yield response.value();
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1778
|
+
*/
|
|
1779
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1781
|
+
if (requestParameters['name'] == null) {
|
|
1782
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1783
|
+
}
|
|
1784
|
+
const queryParameters = {};
|
|
1785
|
+
const headerParameters = {};
|
|
1786
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1787
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1788
|
+
return {
|
|
1789
|
+
path: urlPath,
|
|
1790
|
+
method: 'DELETE',
|
|
1791
|
+
headers: headerParameters,
|
|
1792
|
+
query: queryParameters,
|
|
1793
|
+
};
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1798
|
+
* Cancel a single pair
|
|
1799
|
+
*/
|
|
1800
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1801
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1802
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1803
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1804
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1809
|
+
* Cancel a single pair
|
|
1810
|
+
*/
|
|
1811
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1813
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1814
|
+
return yield response.value();
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
838
1817
|
/**
|
|
839
1818
|
* Creates request options for stopInspection without sending the request
|
|
840
1819
|
*/
|
|
@@ -858,7 +1837,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
858
1837
|
return __awaiter(this, void 0, void 0, function* () {
|
|
859
1838
|
const requestOptions = yield this.stopInspectionRequestOpts();
|
|
860
1839
|
const response = yield this.request(requestOptions, initOverrides);
|
|
861
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1840
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
862
1841
|
});
|
|
863
1842
|
}
|
|
864
1843
|
/**
|
|
@@ -870,6 +1849,46 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
870
1849
|
return yield response.value();
|
|
871
1850
|
});
|
|
872
1851
|
}
|
|
1852
|
+
/**
|
|
1853
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
1854
|
+
*/
|
|
1855
|
+
triggerRightsizingCollectionRequestOpts(requestParameters) {
|
|
1856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1857
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1858
|
+
throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
|
|
1859
|
+
}
|
|
1860
|
+
const queryParameters = {};
|
|
1861
|
+
const headerParameters = {};
|
|
1862
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1863
|
+
let urlPath = `/rightsizing`;
|
|
1864
|
+
return {
|
|
1865
|
+
path: urlPath,
|
|
1866
|
+
method: 'POST',
|
|
1867
|
+
headers: headerParameters,
|
|
1868
|
+
query: queryParameters,
|
|
1869
|
+
body: (0, RightsizingCollectRequest_js_1.RightsizingCollectRequestToJSON)(requestParameters['rightsizingCollectRequest']),
|
|
1870
|
+
};
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Trigger rightsizing metrics collection
|
|
1875
|
+
*/
|
|
1876
|
+
triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
|
|
1877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1878
|
+
const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
1879
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1880
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)(jsonValue));
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Trigger rightsizing metrics collection
|
|
1885
|
+
*/
|
|
1886
|
+
triggerRightsizingCollection(requestParameters, initOverrides) {
|
|
1887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
+
const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
1889
|
+
return yield response.value();
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
873
1892
|
/**
|
|
874
1893
|
* Creates request options for updateGroup without sending the request
|
|
875
1894
|
*/
|
|
@@ -891,7 +1910,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
891
1910
|
method: 'PATCH',
|
|
892
1911
|
headers: headerParameters,
|
|
893
1912
|
query: queryParameters,
|
|
894
|
-
body: (0,
|
|
1913
|
+
body: (0, UpdateGroupRequest_js_1.UpdateGroupRequestToJSON)(requestParameters['updateGroupRequest']),
|
|
895
1914
|
};
|
|
896
1915
|
});
|
|
897
1916
|
}
|
|
@@ -902,7 +1921,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
902
1921
|
return __awaiter(this, void 0, void 0, function* () {
|
|
903
1922
|
const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
|
|
904
1923
|
const response = yield this.request(requestOptions, initOverrides);
|
|
905
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1924
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
906
1925
|
});
|
|
907
1926
|
}
|
|
908
1927
|
/**
|
|
@@ -914,5 +1933,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
914
1933
|
return yield response.value();
|
|
915
1934
|
});
|
|
916
1935
|
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1938
|
+
*/
|
|
1939
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1941
|
+
if (requestParameters['label'] == null) {
|
|
1942
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1943
|
+
}
|
|
1944
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1945
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1946
|
+
}
|
|
1947
|
+
const queryParameters = {};
|
|
1948
|
+
const headerParameters = {};
|
|
1949
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1950
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1951
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1952
|
+
return {
|
|
1953
|
+
path: urlPath,
|
|
1954
|
+
method: 'PATCH',
|
|
1955
|
+
headers: headerParameters,
|
|
1956
|
+
query: queryParameters,
|
|
1957
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1958
|
+
};
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1963
|
+
*/
|
|
1964
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1966
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1967
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1968
|
+
return new runtime.VoidApiResponse(response);
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1973
|
+
*/
|
|
1974
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1976
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Creates request options for updateVM without sending the request
|
|
1981
|
+
*/
|
|
1982
|
+
updateVMRequestOpts(requestParameters) {
|
|
1983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1984
|
+
if (requestParameters['id'] == null) {
|
|
1985
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1986
|
+
}
|
|
1987
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1988
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1989
|
+
}
|
|
1990
|
+
const queryParameters = {};
|
|
1991
|
+
const headerParameters = {};
|
|
1992
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1993
|
+
let urlPath = `/vms/{id}`;
|
|
1994
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1995
|
+
return {
|
|
1996
|
+
path: urlPath,
|
|
1997
|
+
method: 'PATCH',
|
|
1998
|
+
headers: headerParameters,
|
|
1999
|
+
query: queryParameters,
|
|
2000
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
2001
|
+
};
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Update VM properties
|
|
2006
|
+
*/
|
|
2007
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
2008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
2010
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2011
|
+
return new runtime.VoidApiResponse(response);
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Update VM properties
|
|
2016
|
+
*/
|
|
2017
|
+
updateVM(requestParameters, initOverrides) {
|
|
2018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2019
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
2024
|
+
*/
|
|
2025
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
2026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
2028
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
2029
|
+
}
|
|
2030
|
+
const queryParameters = {};
|
|
2031
|
+
const headerParameters = {};
|
|
2032
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2033
|
+
let urlPath = `/inspector/credentials`;
|
|
2034
|
+
return {
|
|
2035
|
+
path: urlPath,
|
|
2036
|
+
method: 'POST',
|
|
2037
|
+
headers: headerParameters,
|
|
2038
|
+
query: queryParameters,
|
|
2039
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
2040
|
+
};
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Validate vCenter credentials for inspector
|
|
2045
|
+
*/
|
|
2046
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
2047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
2049
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2050
|
+
return new runtime.VoidApiResponse(response);
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
/**
|
|
2054
|
+
* Validate vCenter credentials for inspector
|
|
2055
|
+
*/
|
|
2056
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
2057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2058
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
917
2061
|
}
|
|
918
2062
|
exports.DefaultApi = DefaultApi;
|