@openshift-migration-advisor/agent-sdk 0.12.0 → 0.16.0-f224c4e8e35b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +78 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +78 -10
- package/dist/apis/DefaultApi.d.ts +1179 -102
- package/dist/apis/DefaultApi.js +1373 -189
- package/dist/esm/apis/DefaultApi.d.ts +1179 -102
- package/dist/esm/apis/DefaultApi.js +1352 -168
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +18 -6
- package/dist/esm/models/CollectorStartRequest.js +7 -9
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory400Response.js +41 -0
- package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory500Response.js +41 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +3 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +50 -2
- package/dist/esm/models/VirtualMachine.js +18 -2
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +39 -0
- package/dist/esm/models/index.js +39 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +18 -6
- package/dist/models/CollectorStartRequest.js +7 -9
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ExportInventory400Response.d.ts +32 -0
- package/dist/models/ExportInventory400Response.js +48 -0
- package/dist/models/ExportInventory500Response.d.ts +32 -0
- package/dist/models/ExportInventory500Response.js +48 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +3 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +50 -2
- package/dist/models/VirtualMachine.js +18 -2
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +39 -0
- package/dist/models/index.js +39 -0
- package/dist/runtime.js +2 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +5 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +2255 -319
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ExportInventory400Response.md +34 -0
- package/docs/ExportInventory500Response.md +34 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/OperationCapability.md +36 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -2
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2657 -440
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +25 -12
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +84 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ExportInventory400Response.ts +65 -0
- package/src/models/ExportInventory500Response.ts +65 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/OperationCapability.ts +74 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +17 -1
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +68 -4
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +39 -0
- package/src/runtime.ts +1 -2
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -12,79 +12,269 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
AgentModeRequest,
|
|
19
|
-
AgentStatus,
|
|
20
|
-
CollectorStartRequest,
|
|
21
|
-
CollectorStatus,
|
|
22
|
-
CreateGroupRequest,
|
|
23
|
-
GetInventory200Response,
|
|
24
|
-
Group,
|
|
25
|
-
GroupListResponse,
|
|
26
|
-
GroupResponse,
|
|
27
|
-
InspectorStatus,
|
|
28
|
-
StartInspectionRequest,
|
|
29
|
-
UpdateGroupRequest,
|
|
30
|
-
VcenterCredentials,
|
|
31
|
-
VddkProperties,
|
|
32
|
-
VersionInfo,
|
|
33
|
-
VirtualMachineDetail,
|
|
34
|
-
VirtualMachineListResponse,
|
|
35
|
-
VmInspectionStatus,
|
|
36
|
-
} from '../models/index.js';
|
|
37
16
|
import {
|
|
17
|
+
type AgentModeRequest,
|
|
38
18
|
AgentModeRequestFromJSON,
|
|
39
19
|
AgentModeRequestToJSON,
|
|
20
|
+
} from '../models/AgentModeRequest.js';
|
|
21
|
+
import {
|
|
22
|
+
type AgentStatus,
|
|
40
23
|
AgentStatusFromJSON,
|
|
41
24
|
AgentStatusToJSON,
|
|
25
|
+
} from '../models/AgentStatus.js';
|
|
26
|
+
import {
|
|
27
|
+
type ApplicationListResponse,
|
|
28
|
+
ApplicationListResponseFromJSON,
|
|
29
|
+
ApplicationListResponseToJSON,
|
|
30
|
+
} from '../models/ApplicationListResponse.js';
|
|
31
|
+
import {
|
|
32
|
+
type BenchmarkRun,
|
|
33
|
+
BenchmarkRunFromJSON,
|
|
34
|
+
BenchmarkRunToJSON,
|
|
35
|
+
} from '../models/BenchmarkRun.js';
|
|
36
|
+
import {
|
|
37
|
+
type CapabilityStatus,
|
|
38
|
+
CapabilityStatusFromJSON,
|
|
39
|
+
CapabilityStatusToJSON,
|
|
40
|
+
} from '../models/CapabilityStatus.js';
|
|
41
|
+
import {
|
|
42
|
+
type CollectorStartRequest,
|
|
42
43
|
CollectorStartRequestFromJSON,
|
|
43
44
|
CollectorStartRequestToJSON,
|
|
45
|
+
} from '../models/CollectorStartRequest.js';
|
|
46
|
+
import {
|
|
47
|
+
type CollectorStatus,
|
|
44
48
|
CollectorStatusFromJSON,
|
|
45
49
|
CollectorStatusToJSON,
|
|
50
|
+
} from '../models/CollectorStatus.js';
|
|
51
|
+
import {
|
|
52
|
+
type CreateGroupRequest,
|
|
46
53
|
CreateGroupRequestFromJSON,
|
|
47
54
|
CreateGroupRequestToJSON,
|
|
55
|
+
} from '../models/CreateGroupRequest.js';
|
|
56
|
+
import {
|
|
57
|
+
type CredentialStatus,
|
|
58
|
+
CredentialStatusFromJSON,
|
|
59
|
+
CredentialStatusToJSON,
|
|
60
|
+
} from '../models/CredentialStatus.js';
|
|
61
|
+
import {
|
|
62
|
+
type DatastoreDetail,
|
|
63
|
+
DatastoreDetailFromJSON,
|
|
64
|
+
DatastoreDetailToJSON,
|
|
65
|
+
} from '../models/DatastoreDetail.js';
|
|
66
|
+
import {
|
|
67
|
+
type DeleteLabelGloballyResponse,
|
|
68
|
+
DeleteLabelGloballyResponseFromJSON,
|
|
69
|
+
DeleteLabelGloballyResponseToJSON,
|
|
70
|
+
} from '../models/DeleteLabelGloballyResponse.js';
|
|
71
|
+
import {
|
|
72
|
+
type ExportInventory400Response,
|
|
73
|
+
ExportInventory400ResponseFromJSON,
|
|
74
|
+
ExportInventory400ResponseToJSON,
|
|
75
|
+
} from '../models/ExportInventory400Response.js';
|
|
76
|
+
import {
|
|
77
|
+
type ExportInventory500Response,
|
|
78
|
+
ExportInventory500ResponseFromJSON,
|
|
79
|
+
ExportInventory500ResponseToJSON,
|
|
80
|
+
} from '../models/ExportInventory500Response.js';
|
|
81
|
+
import {
|
|
82
|
+
type ForecastStats,
|
|
83
|
+
ForecastStatsFromJSON,
|
|
84
|
+
ForecastStatsToJSON,
|
|
85
|
+
} from '../models/ForecastStats.js';
|
|
86
|
+
import {
|
|
87
|
+
type ForecasterDatastoresRequest,
|
|
88
|
+
ForecasterDatastoresRequestFromJSON,
|
|
89
|
+
ForecasterDatastoresRequestToJSON,
|
|
90
|
+
} from '../models/ForecasterDatastoresRequest.js';
|
|
91
|
+
import {
|
|
92
|
+
type ForecasterStartRequest,
|
|
93
|
+
ForecasterStartRequestFromJSON,
|
|
94
|
+
ForecasterStartRequestToJSON,
|
|
95
|
+
} from '../models/ForecasterStartRequest.js';
|
|
96
|
+
import {
|
|
97
|
+
type ForecasterStatus,
|
|
98
|
+
ForecasterStatusFromJSON,
|
|
99
|
+
ForecasterStatusToJSON,
|
|
100
|
+
} from '../models/ForecasterStatus.js';
|
|
101
|
+
import {
|
|
102
|
+
type GetInventory200Response,
|
|
48
103
|
GetInventory200ResponseFromJSON,
|
|
49
104
|
GetInventory200ResponseToJSON,
|
|
105
|
+
} from '../models/GetInventory200Response.js';
|
|
106
|
+
import {
|
|
107
|
+
type Group,
|
|
50
108
|
GroupFromJSON,
|
|
51
109
|
GroupToJSON,
|
|
110
|
+
} from '../models/Group.js';
|
|
111
|
+
import {
|
|
112
|
+
type GroupListResponse,
|
|
52
113
|
GroupListResponseFromJSON,
|
|
53
114
|
GroupListResponseToJSON,
|
|
115
|
+
} from '../models/GroupListResponse.js';
|
|
116
|
+
import {
|
|
117
|
+
type GroupResponse,
|
|
54
118
|
GroupResponseFromJSON,
|
|
55
119
|
GroupResponseToJSON,
|
|
120
|
+
} from '../models/GroupResponse.js';
|
|
121
|
+
import {
|
|
122
|
+
type InspectorStatus,
|
|
56
123
|
InspectorStatusFromJSON,
|
|
57
124
|
InspectorStatusToJSON,
|
|
125
|
+
} from '../models/InspectorStatus.js';
|
|
126
|
+
import {
|
|
127
|
+
type PairCapability,
|
|
128
|
+
PairCapabilityFromJSON,
|
|
129
|
+
PairCapabilityToJSON,
|
|
130
|
+
} from '../models/PairCapability.js';
|
|
131
|
+
import {
|
|
132
|
+
type PairCapabilityRequest,
|
|
133
|
+
PairCapabilityRequestFromJSON,
|
|
134
|
+
PairCapabilityRequestToJSON,
|
|
135
|
+
} from '../models/PairCapabilityRequest.js';
|
|
136
|
+
import {
|
|
137
|
+
type PutForecasterCredentials403Response,
|
|
138
|
+
PutForecasterCredentials403ResponseFromJSON,
|
|
139
|
+
PutForecasterCredentials403ResponseToJSON,
|
|
140
|
+
} from '../models/PutForecasterCredentials403Response.js';
|
|
141
|
+
import {
|
|
142
|
+
type RightsizingClusterListResponse,
|
|
143
|
+
RightsizingClusterListResponseFromJSON,
|
|
144
|
+
RightsizingClusterListResponseToJSON,
|
|
145
|
+
} from '../models/RightsizingClusterListResponse.js';
|
|
146
|
+
import {
|
|
147
|
+
type RightsizingClusterResponse,
|
|
148
|
+
RightsizingClusterResponseFromJSON,
|
|
149
|
+
RightsizingClusterResponseToJSON,
|
|
150
|
+
} from '../models/RightsizingClusterResponse.js';
|
|
151
|
+
import {
|
|
152
|
+
type RightsizingCollectRequest,
|
|
153
|
+
RightsizingCollectRequestFromJSON,
|
|
154
|
+
RightsizingCollectRequestToJSON,
|
|
155
|
+
} from '../models/RightsizingCollectRequest.js';
|
|
156
|
+
import {
|
|
157
|
+
type RightsizingReport,
|
|
158
|
+
RightsizingReportFromJSON,
|
|
159
|
+
RightsizingReportToJSON,
|
|
160
|
+
} from '../models/RightsizingReport.js';
|
|
161
|
+
import {
|
|
162
|
+
type RightsizingReportListResponse,
|
|
163
|
+
RightsizingReportListResponseFromJSON,
|
|
164
|
+
RightsizingReportListResponseToJSON,
|
|
165
|
+
} from '../models/RightsizingReportListResponse.js';
|
|
166
|
+
import {
|
|
167
|
+
type RightsizingReportSummary,
|
|
168
|
+
RightsizingReportSummaryFromJSON,
|
|
169
|
+
RightsizingReportSummaryToJSON,
|
|
170
|
+
} from '../models/RightsizingReportSummary.js';
|
|
171
|
+
import {
|
|
172
|
+
type StartInspectionRequest,
|
|
58
173
|
StartInspectionRequestFromJSON,
|
|
59
174
|
StartInspectionRequestToJSON,
|
|
175
|
+
} from '../models/StartInspectionRequest.js';
|
|
176
|
+
import {
|
|
177
|
+
type StopForecasterPair202Response,
|
|
178
|
+
StopForecasterPair202ResponseFromJSON,
|
|
179
|
+
StopForecasterPair202ResponseToJSON,
|
|
180
|
+
} from '../models/StopForecasterPair202Response.js';
|
|
181
|
+
import {
|
|
182
|
+
type UpdateGroupRequest,
|
|
60
183
|
UpdateGroupRequestFromJSON,
|
|
61
184
|
UpdateGroupRequestToJSON,
|
|
185
|
+
} from '../models/UpdateGroupRequest.js';
|
|
186
|
+
import {
|
|
187
|
+
type UpdateLabelVMsRequest,
|
|
188
|
+
UpdateLabelVMsRequestFromJSON,
|
|
189
|
+
UpdateLabelVMsRequestToJSON,
|
|
190
|
+
} from '../models/UpdateLabelVMsRequest.js';
|
|
191
|
+
import {
|
|
192
|
+
type VMFilterOptionsResponse,
|
|
193
|
+
VMFilterOptionsResponseFromJSON,
|
|
194
|
+
VMFilterOptionsResponseToJSON,
|
|
195
|
+
} from '../models/VMFilterOptionsResponse.js';
|
|
196
|
+
import {
|
|
197
|
+
type VMLabelsResponse,
|
|
198
|
+
VMLabelsResponseFromJSON,
|
|
199
|
+
VMLabelsResponseToJSON,
|
|
200
|
+
} from '../models/VMLabelsResponse.js';
|
|
201
|
+
import {
|
|
202
|
+
type VcenterCredentials,
|
|
62
203
|
VcenterCredentialsFromJSON,
|
|
63
204
|
VcenterCredentialsToJSON,
|
|
205
|
+
} from '../models/VcenterCredentials.js';
|
|
206
|
+
import {
|
|
207
|
+
type VddkProperties,
|
|
64
208
|
VddkPropertiesFromJSON,
|
|
65
209
|
VddkPropertiesToJSON,
|
|
210
|
+
} from '../models/VddkProperties.js';
|
|
211
|
+
import {
|
|
212
|
+
type VersionInfo,
|
|
66
213
|
VersionInfoFromJSON,
|
|
67
214
|
VersionInfoToJSON,
|
|
215
|
+
} from '../models/VersionInfo.js';
|
|
216
|
+
import {
|
|
217
|
+
type VirtualMachineDetail,
|
|
68
218
|
VirtualMachineDetailFromJSON,
|
|
69
219
|
VirtualMachineDetailToJSON,
|
|
220
|
+
} from '../models/VirtualMachineDetail.js';
|
|
221
|
+
import {
|
|
222
|
+
type VirtualMachineListResponse,
|
|
70
223
|
VirtualMachineListResponseFromJSON,
|
|
71
224
|
VirtualMachineListResponseToJSON,
|
|
225
|
+
} from '../models/VirtualMachineListResponse.js';
|
|
226
|
+
import {
|
|
227
|
+
type VirtualMachineUpdateRequest,
|
|
228
|
+
VirtualMachineUpdateRequestFromJSON,
|
|
229
|
+
VirtualMachineUpdateRequestToJSON,
|
|
230
|
+
} from '../models/VirtualMachineUpdateRequest.js';
|
|
231
|
+
import {
|
|
232
|
+
type VmInspectionStatus,
|
|
72
233
|
VmInspectionStatusFromJSON,
|
|
73
234
|
VmInspectionStatusToJSON,
|
|
74
|
-
} from '../models/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
235
|
+
} from '../models/VmInspectionStatus.js';
|
|
236
|
+
import {
|
|
237
|
+
type VmUtilizationDetails,
|
|
238
|
+
VmUtilizationDetailsFromJSON,
|
|
239
|
+
VmUtilizationDetailsToJSON,
|
|
240
|
+
} from '../models/VmUtilizationDetails.js';
|
|
79
241
|
|
|
80
242
|
export interface CreateGroupOperationRequest {
|
|
81
243
|
createGroupRequest: CreateGroupRequest;
|
|
82
244
|
}
|
|
83
245
|
|
|
246
|
+
export interface DeleteForecasterRunRequest {
|
|
247
|
+
id: number;
|
|
248
|
+
}
|
|
249
|
+
|
|
84
250
|
export interface DeleteGroupRequest {
|
|
85
251
|
id: string;
|
|
86
252
|
}
|
|
87
253
|
|
|
254
|
+
export interface DeleteLabelGloballyRequest {
|
|
255
|
+
label: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface ExportInventoryRequest {
|
|
259
|
+
scope?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface GetClusterUtilizationRequest {
|
|
263
|
+
clusterId: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface GetForecasterDatastoresRequest {
|
|
267
|
+
forecasterDatastoresRequest?: ForecasterDatastoresRequest;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface GetForecasterRunsRequest {
|
|
271
|
+
pairName?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface GetForecasterStatsRequest {
|
|
275
|
+
pairName: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
88
278
|
export interface GetGroupRequest {
|
|
89
279
|
id: string;
|
|
90
280
|
sort?: Array<string>;
|
|
@@ -94,7 +284,6 @@ export interface GetGroupRequest {
|
|
|
94
284
|
|
|
95
285
|
export interface GetInspectorStatusRequest {
|
|
96
286
|
includeVddk?: boolean;
|
|
97
|
-
includeCredentials?: boolean;
|
|
98
287
|
}
|
|
99
288
|
|
|
100
289
|
export interface GetInventoryRequest {
|
|
@@ -102,10 +291,32 @@ export interface GetInventoryRequest {
|
|
|
102
291
|
groupId?: string;
|
|
103
292
|
}
|
|
104
293
|
|
|
294
|
+
export interface GetLatestRightsizingClustersRequest {
|
|
295
|
+
byExpression?: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export interface GetRightsizingReportRequest {
|
|
299
|
+
reportId: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface GetRightsizingReportClusterRequest {
|
|
303
|
+
reportId: string;
|
|
304
|
+
clusterId: string;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export interface GetRightsizingReportClustersRequest {
|
|
308
|
+
reportId: string;
|
|
309
|
+
byExpression?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
105
312
|
export interface GetVMRequest {
|
|
106
313
|
id: string;
|
|
107
314
|
}
|
|
108
315
|
|
|
316
|
+
export interface GetVMUtilizationRequest {
|
|
317
|
+
id: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
109
320
|
export interface GetVMsRequest {
|
|
110
321
|
byExpression?: string;
|
|
111
322
|
sort?: Array<string>;
|
|
@@ -119,7 +330,20 @@ export interface ListGroupsRequest {
|
|
|
119
330
|
pageSize?: number;
|
|
120
331
|
}
|
|
121
332
|
|
|
122
|
-
export interface
|
|
333
|
+
export interface ListRightsizingReportClustersRequest {
|
|
334
|
+
reportId: string;
|
|
335
|
+
byExpression?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export interface PostForecasterPairCapabilitiesRequest {
|
|
339
|
+
pairCapabilityRequest: PairCapabilityRequest;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export interface PutCredentialsRequest {
|
|
343
|
+
vcenterCredentials: VcenterCredentials;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export interface PutForecasterCredentialsRequest {
|
|
123
347
|
vcenterCredentials: VcenterCredentials;
|
|
124
348
|
}
|
|
125
349
|
|
|
@@ -139,15 +363,41 @@ export interface StartCollectorRequest {
|
|
|
139
363
|
collectorStartRequest: CollectorStartRequest;
|
|
140
364
|
}
|
|
141
365
|
|
|
366
|
+
export interface StartForecasterRequest {
|
|
367
|
+
forecasterStartRequest: ForecasterStartRequest;
|
|
368
|
+
}
|
|
369
|
+
|
|
142
370
|
export interface StartInspectionOperationRequest {
|
|
143
371
|
startInspectionRequest: StartInspectionRequest;
|
|
144
372
|
}
|
|
145
373
|
|
|
374
|
+
export interface StopForecasterPairRequest {
|
|
375
|
+
name: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface TriggerRightsizingCollectionRequest {
|
|
379
|
+
rightsizingCollectRequest: RightsizingCollectRequest;
|
|
380
|
+
}
|
|
381
|
+
|
|
146
382
|
export interface UpdateGroupOperationRequest {
|
|
147
383
|
id: string;
|
|
148
384
|
updateGroupRequest: UpdateGroupRequest;
|
|
149
385
|
}
|
|
150
386
|
|
|
387
|
+
export interface UpdateLabelVMsOperationRequest {
|
|
388
|
+
label: string;
|
|
389
|
+
updateLabelVMsRequest: UpdateLabelVMsRequest;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface UpdateVMRequest {
|
|
393
|
+
id: string;
|
|
394
|
+
virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export interface ValidateInspectorCredentialsRequest {
|
|
398
|
+
vcenterCredentials: VcenterCredentials;
|
|
399
|
+
}
|
|
400
|
+
|
|
151
401
|
/**
|
|
152
402
|
* DefaultApi - interface
|
|
153
403
|
*
|
|
@@ -156,628 +406,2256 @@ export interface UpdateGroupOperationRequest {
|
|
|
156
406
|
*/
|
|
157
407
|
export interface DefaultApiInterface {
|
|
158
408
|
/**
|
|
159
|
-
* Creates request options for
|
|
160
|
-
* @param {
|
|
409
|
+
* Creates request options for createGroup without sending the request
|
|
410
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
161
411
|
* @throws {RequiredError}
|
|
162
412
|
* @memberof DefaultApiInterface
|
|
163
413
|
*/
|
|
164
|
-
|
|
414
|
+
createGroupRequestOpts(requestParameters: CreateGroupOperationRequest): Promise<runtime.RequestOpts>;
|
|
165
415
|
|
|
166
416
|
/**
|
|
167
417
|
*
|
|
168
|
-
* @summary
|
|
169
|
-
* @param {
|
|
418
|
+
* @summary Create a new group
|
|
419
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
170
420
|
* @param {*} [options] Override http request option.
|
|
171
421
|
* @throws {RequiredError}
|
|
172
422
|
* @memberof DefaultApiInterface
|
|
173
423
|
*/
|
|
174
|
-
|
|
424
|
+
createGroupRaw(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Group>>;
|
|
175
425
|
|
|
176
426
|
/**
|
|
177
|
-
*
|
|
427
|
+
* Create a new group
|
|
178
428
|
*/
|
|
179
|
-
|
|
429
|
+
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
180
430
|
|
|
181
431
|
/**
|
|
182
|
-
* Creates request options for
|
|
183
|
-
* @param {CreateGroupRequest} createGroupRequest
|
|
432
|
+
* Creates request options for deleteCredentials without sending the request
|
|
184
433
|
* @throws {RequiredError}
|
|
185
434
|
* @memberof DefaultApiInterface
|
|
186
435
|
*/
|
|
187
|
-
|
|
436
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
188
437
|
|
|
189
438
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @summary
|
|
192
|
-
* @param {CreateGroupRequest} createGroupRequest
|
|
439
|
+
* Removes all stored vCenter credentials from the database.
|
|
440
|
+
* @summary Delete stored credentials
|
|
193
441
|
* @param {*} [options] Override http request option.
|
|
194
442
|
* @throws {RequiredError}
|
|
195
443
|
* @memberof DefaultApiInterface
|
|
196
444
|
*/
|
|
197
|
-
|
|
445
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
198
446
|
|
|
199
447
|
/**
|
|
200
|
-
*
|
|
448
|
+
* Removes all stored vCenter credentials from the database.
|
|
449
|
+
* Delete stored credentials
|
|
201
450
|
*/
|
|
202
|
-
|
|
451
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
203
452
|
|
|
204
453
|
/**
|
|
205
|
-
* Creates request options for
|
|
206
|
-
* @param {
|
|
454
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
455
|
+
* @param {number} id Run ID
|
|
207
456
|
* @throws {RequiredError}
|
|
208
457
|
* @memberof DefaultApiInterface
|
|
209
458
|
*/
|
|
210
|
-
|
|
459
|
+
deleteForecasterRunRequestOpts(requestParameters: DeleteForecasterRunRequest): Promise<runtime.RequestOpts>;
|
|
211
460
|
|
|
212
461
|
/**
|
|
213
462
|
*
|
|
214
|
-
* @summary Delete
|
|
215
|
-
* @param {
|
|
463
|
+
* @summary Delete a benchmark run
|
|
464
|
+
* @param {number} id Run ID
|
|
216
465
|
* @param {*} [options] Override http request option.
|
|
217
466
|
* @throws {RequiredError}
|
|
218
467
|
* @memberof DefaultApiInterface
|
|
219
468
|
*/
|
|
220
|
-
|
|
469
|
+
deleteForecasterRunRaw(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
221
470
|
|
|
222
471
|
/**
|
|
223
|
-
* Delete
|
|
472
|
+
* Delete a benchmark run
|
|
224
473
|
*/
|
|
225
|
-
|
|
474
|
+
deleteForecasterRun(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
226
475
|
|
|
227
476
|
/**
|
|
228
|
-
* Creates request options for
|
|
477
|
+
* Creates request options for deleteGroup without sending the request
|
|
478
|
+
* @param {string} id Group ID
|
|
229
479
|
* @throws {RequiredError}
|
|
230
480
|
* @memberof DefaultApiInterface
|
|
231
481
|
*/
|
|
232
|
-
|
|
482
|
+
deleteGroupRequestOpts(requestParameters: DeleteGroupRequest): Promise<runtime.RequestOpts>;
|
|
233
483
|
|
|
234
484
|
/**
|
|
235
485
|
*
|
|
236
|
-
* @summary
|
|
486
|
+
* @summary Delete group
|
|
487
|
+
* @param {string} id Group ID
|
|
237
488
|
* @param {*} [options] Override http request option.
|
|
238
489
|
* @throws {RequiredError}
|
|
239
490
|
* @memberof DefaultApiInterface
|
|
240
491
|
*/
|
|
241
|
-
|
|
492
|
+
deleteGroupRaw(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
242
493
|
|
|
243
494
|
/**
|
|
244
|
-
*
|
|
495
|
+
* Delete group
|
|
245
496
|
*/
|
|
246
|
-
|
|
497
|
+
deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
247
498
|
|
|
248
499
|
/**
|
|
249
|
-
* Creates request options for
|
|
500
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
501
|
+
* @param {string} label The label to remove from all VMs
|
|
250
502
|
* @throws {RequiredError}
|
|
251
503
|
* @memberof DefaultApiInterface
|
|
252
504
|
*/
|
|
253
|
-
|
|
505
|
+
deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts>;
|
|
254
506
|
|
|
255
507
|
/**
|
|
256
508
|
*
|
|
257
|
-
* @summary
|
|
509
|
+
* @summary Delete label from all VMs
|
|
510
|
+
* @param {string} label The label to remove from all VMs
|
|
258
511
|
* @param {*} [options] Override http request option.
|
|
259
512
|
* @throws {RequiredError}
|
|
260
513
|
* @memberof DefaultApiInterface
|
|
261
514
|
*/
|
|
262
|
-
|
|
515
|
+
deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
|
|
263
516
|
|
|
264
517
|
/**
|
|
265
|
-
*
|
|
518
|
+
* Delete label from all VMs
|
|
266
519
|
*/
|
|
267
|
-
|
|
520
|
+
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
268
521
|
|
|
269
522
|
/**
|
|
270
|
-
* Creates request options for
|
|
271
|
-
* @param {string}
|
|
272
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
273
|
-
* @param {number} [page] Page number for pagination
|
|
274
|
-
* @param {number} [pageSize] Number of items per page
|
|
523
|
+
* Creates request options for exportInventory without sending the request
|
|
524
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
275
525
|
* @throws {RequiredError}
|
|
276
526
|
* @memberof DefaultApiInterface
|
|
277
527
|
*/
|
|
278
|
-
|
|
528
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
279
529
|
|
|
280
530
|
/**
|
|
281
|
-
*
|
|
282
|
-
* @summary
|
|
283
|
-
* @param {string}
|
|
284
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
285
|
-
* @param {number} [page] Page number for pagination
|
|
286
|
-
* @param {number} [pageSize] Number of items per page
|
|
531
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
532
|
+
* @summary Export VM inventory and migration planning data
|
|
533
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
287
534
|
* @param {*} [options] Override http request option.
|
|
288
535
|
* @throws {RequiredError}
|
|
289
536
|
* @memberof DefaultApiInterface
|
|
290
537
|
*/
|
|
291
|
-
|
|
538
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
292
539
|
|
|
293
540
|
/**
|
|
294
|
-
*
|
|
541
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
542
|
+
* Export VM inventory and migration planning data
|
|
295
543
|
*/
|
|
296
|
-
|
|
544
|
+
exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
297
545
|
|
|
298
546
|
/**
|
|
299
|
-
* Creates request options for
|
|
300
|
-
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
301
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
547
|
+
* Creates request options for getAgentStatus without sending the request
|
|
302
548
|
* @throws {RequiredError}
|
|
303
549
|
* @memberof DefaultApiInterface
|
|
304
550
|
*/
|
|
305
|
-
|
|
551
|
+
getAgentStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
306
552
|
|
|
307
553
|
/**
|
|
308
554
|
*
|
|
309
|
-
* @summary Get
|
|
310
|
-
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
311
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
555
|
+
* @summary Get agent status
|
|
312
556
|
* @param {*} [options] Override http request option.
|
|
313
557
|
* @throws {RequiredError}
|
|
314
558
|
* @memberof DefaultApiInterface
|
|
315
559
|
*/
|
|
316
|
-
|
|
560
|
+
getAgentStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentStatus>>;
|
|
317
561
|
|
|
318
562
|
/**
|
|
319
|
-
* Get
|
|
563
|
+
* Get agent status
|
|
320
564
|
*/
|
|
321
|
-
|
|
565
|
+
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
322
566
|
|
|
323
567
|
/**
|
|
324
|
-
* Creates request options for
|
|
568
|
+
* Creates request options for getApplications without sending the request
|
|
325
569
|
* @throws {RequiredError}
|
|
326
570
|
* @memberof DefaultApiInterface
|
|
327
571
|
*/
|
|
328
|
-
|
|
572
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
329
573
|
|
|
330
574
|
/**
|
|
331
575
|
*
|
|
332
|
-
* @summary
|
|
576
|
+
* @summary List detected applications running on VMs
|
|
333
577
|
* @param {*} [options] Override http request option.
|
|
334
578
|
* @throws {RequiredError}
|
|
335
579
|
* @memberof DefaultApiInterface
|
|
336
580
|
*/
|
|
337
|
-
|
|
581
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
338
582
|
|
|
339
583
|
/**
|
|
340
|
-
*
|
|
584
|
+
* List detected applications running on VMs
|
|
341
585
|
*/
|
|
342
|
-
|
|
586
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
343
587
|
|
|
344
588
|
/**
|
|
345
|
-
* Creates request options for
|
|
346
|
-
* @param {
|
|
347
|
-
* @param {string} [groupId] Filter inventory to VMs matching this group\'s filter expression
|
|
589
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
590
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
348
591
|
* @throws {RequiredError}
|
|
349
592
|
* @memberof DefaultApiInterface
|
|
350
593
|
*/
|
|
351
|
-
|
|
594
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
352
595
|
|
|
353
596
|
/**
|
|
354
597
|
*
|
|
355
|
-
* @summary Get
|
|
356
|
-
* @param {
|
|
357
|
-
* @param {string} [groupId] Filter inventory to VMs matching this group\'s filter expression
|
|
598
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
599
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
358
600
|
* @param {*} [options] Override http request option.
|
|
359
601
|
* @throws {RequiredError}
|
|
360
602
|
* @memberof DefaultApiInterface
|
|
361
603
|
*/
|
|
362
|
-
|
|
604
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
363
605
|
|
|
364
606
|
/**
|
|
365
|
-
* Get
|
|
607
|
+
* Get latest cluster utilization by cluster ID
|
|
366
608
|
*/
|
|
367
|
-
|
|
609
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
368
610
|
|
|
369
611
|
/**
|
|
370
|
-
* Creates request options for
|
|
371
|
-
* @param {string} id VirtualMachine id
|
|
612
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
372
613
|
* @throws {RequiredError}
|
|
373
614
|
* @memberof DefaultApiInterface
|
|
374
615
|
*/
|
|
375
|
-
|
|
616
|
+
getCollectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
376
617
|
|
|
377
618
|
/**
|
|
378
619
|
*
|
|
379
|
-
* @summary Get
|
|
380
|
-
* @param {string} id VirtualMachine id
|
|
620
|
+
* @summary Get collector status
|
|
381
621
|
* @param {*} [options] Override http request option.
|
|
382
622
|
* @throws {RequiredError}
|
|
383
623
|
* @memberof DefaultApiInterface
|
|
384
624
|
*/
|
|
385
|
-
|
|
625
|
+
getCollectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
386
626
|
|
|
387
627
|
/**
|
|
388
|
-
* Get
|
|
628
|
+
* Get collector status
|
|
389
629
|
*/
|
|
390
|
-
|
|
630
|
+
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
391
631
|
|
|
392
632
|
/**
|
|
393
|
-
* Creates request options for
|
|
394
|
-
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
395
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
396
|
-
* @param {number} [page] Page number for pagination
|
|
397
|
-
* @param {number} [pageSize] Number of items per page
|
|
633
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
398
634
|
* @throws {RequiredError}
|
|
399
635
|
* @memberof DefaultApiInterface
|
|
400
636
|
*/
|
|
401
|
-
|
|
637
|
+
getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
402
638
|
|
|
403
639
|
/**
|
|
404
|
-
*
|
|
405
|
-
* @summary
|
|
406
|
-
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
407
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
408
|
-
* @param {number} [page] Page number for pagination
|
|
409
|
-
* @param {number} [pageSize] Number of items per page
|
|
640
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
641
|
+
* @summary Check vSphere operation capabilities
|
|
410
642
|
* @param {*} [options] Override http request option.
|
|
411
643
|
* @throws {RequiredError}
|
|
412
644
|
* @memberof DefaultApiInterface
|
|
413
645
|
*/
|
|
414
|
-
|
|
646
|
+
getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>>;
|
|
415
647
|
|
|
416
648
|
/**
|
|
417
|
-
*
|
|
649
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
650
|
+
* Check vSphere operation capabilities
|
|
418
651
|
*/
|
|
419
|
-
|
|
652
|
+
getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus>;
|
|
420
653
|
|
|
421
654
|
/**
|
|
422
|
-
* Creates request options for
|
|
655
|
+
* Creates request options for getCredentials without sending the request
|
|
423
656
|
* @throws {RequiredError}
|
|
424
657
|
* @memberof DefaultApiInterface
|
|
425
658
|
*/
|
|
426
|
-
|
|
659
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
427
660
|
|
|
428
661
|
/**
|
|
429
|
-
*
|
|
430
|
-
* @summary Get
|
|
662
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
663
|
+
* @summary Get stored credential status
|
|
431
664
|
* @param {*} [options] Override http request option.
|
|
432
665
|
* @throws {RequiredError}
|
|
433
666
|
* @memberof DefaultApiInterface
|
|
434
667
|
*/
|
|
435
|
-
|
|
668
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
436
669
|
|
|
437
670
|
/**
|
|
438
|
-
*
|
|
671
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
672
|
+
* Get stored credential status
|
|
439
673
|
*/
|
|
440
|
-
|
|
674
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
441
675
|
|
|
442
676
|
/**
|
|
443
|
-
* Creates request options for
|
|
444
|
-
* @param {
|
|
445
|
-
* @param {number} [page] Page number (1-indexed)
|
|
446
|
-
* @param {number} [pageSize] Number of groups per page
|
|
677
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
678
|
+
* @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
|
|
447
679
|
* @throws {RequiredError}
|
|
448
680
|
* @memberof DefaultApiInterface
|
|
449
681
|
*/
|
|
450
|
-
|
|
682
|
+
getForecasterDatastoresRequestOpts(requestParameters: GetForecasterDatastoresRequest): Promise<runtime.RequestOpts>;
|
|
451
683
|
|
|
452
684
|
/**
|
|
453
|
-
*
|
|
454
|
-
* @summary List
|
|
455
|
-
* @param {
|
|
456
|
-
* @param {number} [page] Page number (1-indexed)
|
|
457
|
-
* @param {number} [pageSize] Number of groups per page
|
|
685
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
686
|
+
* @summary List available datastores
|
|
687
|
+
* @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
|
|
458
688
|
* @param {*} [options] Override http request option.
|
|
459
689
|
* @throws {RequiredError}
|
|
460
690
|
* @memberof DefaultApiInterface
|
|
461
691
|
*/
|
|
462
|
-
|
|
692
|
+
getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>>;
|
|
463
693
|
|
|
464
694
|
/**
|
|
465
|
-
*
|
|
695
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
696
|
+
* List available datastores
|
|
466
697
|
*/
|
|
467
|
-
|
|
698
|
+
getForecasterDatastores(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DatastoreDetail>>;
|
|
468
699
|
|
|
469
700
|
/**
|
|
470
|
-
* Creates request options for
|
|
471
|
-
* @param {
|
|
701
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
702
|
+
* @param {string} [pairName] Filter runs by pair name
|
|
472
703
|
* @throws {RequiredError}
|
|
473
704
|
* @memberof DefaultApiInterface
|
|
474
705
|
*/
|
|
475
|
-
|
|
706
|
+
getForecasterRunsRequestOpts(requestParameters: GetForecasterRunsRequest): Promise<runtime.RequestOpts>;
|
|
476
707
|
|
|
477
708
|
/**
|
|
478
|
-
*
|
|
479
|
-
* @summary
|
|
480
|
-
* @param {
|
|
709
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
710
|
+
* @summary List benchmark runs
|
|
711
|
+
* @param {string} [pairName] Filter runs by pair name
|
|
481
712
|
* @param {*} [options] Override http request option.
|
|
482
713
|
* @throws {RequiredError}
|
|
483
714
|
* @memberof DefaultApiInterface
|
|
484
715
|
*/
|
|
485
|
-
|
|
716
|
+
getForecasterRunsRaw(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BenchmarkRun>>>;
|
|
486
717
|
|
|
487
718
|
/**
|
|
488
|
-
*
|
|
719
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
720
|
+
* List benchmark runs
|
|
489
721
|
*/
|
|
490
|
-
|
|
722
|
+
getForecasterRuns(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BenchmarkRun>>;
|
|
491
723
|
|
|
492
724
|
/**
|
|
493
|
-
* Creates request options for
|
|
494
|
-
* @param {
|
|
725
|
+
* Creates request options for getForecasterStats without sending the request
|
|
726
|
+
* @param {string} pairName Pair name to get statistics for
|
|
495
727
|
* @throws {RequiredError}
|
|
496
728
|
* @memberof DefaultApiInterface
|
|
497
729
|
*/
|
|
498
|
-
|
|
730
|
+
getForecasterStatsRequestOpts(requestParameters: GetForecasterStatsRequest): Promise<runtime.RequestOpts>;
|
|
499
731
|
|
|
500
732
|
/**
|
|
501
|
-
*
|
|
502
|
-
* @summary
|
|
503
|
-
* @param {
|
|
733
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
734
|
+
* @summary Get throughput statistics
|
|
735
|
+
* @param {string} pairName Pair name to get statistics for
|
|
504
736
|
* @param {*} [options] Override http request option.
|
|
505
737
|
* @throws {RequiredError}
|
|
506
738
|
* @memberof DefaultApiInterface
|
|
507
739
|
*/
|
|
508
|
-
|
|
740
|
+
getForecasterStatsRaw(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecastStats>>;
|
|
509
741
|
|
|
510
742
|
/**
|
|
511
|
-
*
|
|
743
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
744
|
+
* Get throughput statistics
|
|
512
745
|
*/
|
|
513
|
-
|
|
746
|
+
getForecasterStats(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecastStats>;
|
|
514
747
|
|
|
515
748
|
/**
|
|
516
|
-
* Creates request options for
|
|
517
|
-
* @param {string} id
|
|
749
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
518
750
|
* @throws {RequiredError}
|
|
519
751
|
* @memberof DefaultApiInterface
|
|
520
752
|
*/
|
|
521
|
-
|
|
753
|
+
getForecasterStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
522
754
|
|
|
523
755
|
/**
|
|
524
|
-
*
|
|
525
|
-
* @summary
|
|
526
|
-
* @param {string} id
|
|
756
|
+
* Returns current service state with per-pair progress details.
|
|
757
|
+
* @summary Poll forecaster status
|
|
527
758
|
* @param {*} [options] Override http request option.
|
|
528
759
|
* @throws {RequiredError}
|
|
529
760
|
* @memberof DefaultApiInterface
|
|
530
761
|
*/
|
|
531
|
-
|
|
762
|
+
getForecasterStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
|
|
532
763
|
|
|
533
764
|
/**
|
|
534
|
-
*
|
|
765
|
+
* Returns current service state with per-pair progress details.
|
|
766
|
+
* Poll forecaster status
|
|
535
767
|
*/
|
|
536
|
-
|
|
768
|
+
getForecasterStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
|
|
537
769
|
|
|
538
770
|
/**
|
|
539
|
-
* Creates request options for
|
|
540
|
-
* @param {
|
|
771
|
+
* Creates request options for getGroup without sending the request
|
|
772
|
+
* @param {string} id Group ID
|
|
773
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
774
|
+
* @param {number} [page] Page number for pagination
|
|
775
|
+
* @param {number} [pageSize] Number of items per page
|
|
541
776
|
* @throws {RequiredError}
|
|
542
777
|
* @memberof DefaultApiInterface
|
|
543
778
|
*/
|
|
544
|
-
|
|
779
|
+
getGroupRequestOpts(requestParameters: GetGroupRequest): Promise<runtime.RequestOpts>;
|
|
545
780
|
|
|
546
781
|
/**
|
|
547
782
|
*
|
|
548
|
-
* @summary
|
|
549
|
-
* @param {
|
|
783
|
+
* @summary Get group by ID with its VMs
|
|
784
|
+
* @param {string} id Group ID
|
|
785
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
786
|
+
* @param {number} [page] Page number for pagination
|
|
787
|
+
* @param {number} [pageSize] Number of items per page
|
|
550
788
|
* @param {*} [options] Override http request option.
|
|
551
789
|
* @throws {RequiredError}
|
|
552
790
|
* @memberof DefaultApiInterface
|
|
553
791
|
*/
|
|
554
|
-
|
|
792
|
+
getGroupRaw(requestParameters: GetGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupResponse>>;
|
|
555
793
|
|
|
556
794
|
/**
|
|
557
|
-
*
|
|
795
|
+
* Get group by ID with its VMs
|
|
558
796
|
*/
|
|
559
|
-
|
|
797
|
+
getGroup(requestParameters: GetGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
560
798
|
|
|
561
799
|
/**
|
|
562
|
-
* Creates request options for
|
|
563
|
-
* @param {
|
|
800
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
801
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
564
802
|
* @throws {RequiredError}
|
|
565
803
|
* @memberof DefaultApiInterface
|
|
566
804
|
*/
|
|
567
|
-
|
|
805
|
+
getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts>;
|
|
568
806
|
|
|
569
807
|
/**
|
|
570
808
|
*
|
|
571
|
-
* @summary
|
|
572
|
-
* @param {
|
|
809
|
+
* @summary Get inspector status
|
|
810
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
573
811
|
* @param {*} [options] Override http request option.
|
|
574
812
|
* @throws {RequiredError}
|
|
575
813
|
* @memberof DefaultApiInterface
|
|
576
814
|
*/
|
|
577
|
-
|
|
815
|
+
getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
578
816
|
|
|
579
817
|
/**
|
|
580
|
-
*
|
|
818
|
+
* Get inspector status
|
|
581
819
|
*/
|
|
582
|
-
|
|
820
|
+
getInspectorStatus(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
583
821
|
|
|
584
822
|
/**
|
|
585
|
-
* Creates request options for
|
|
586
|
-
* @param {StartInspectionRequest} startInspectionRequest
|
|
823
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
587
824
|
* @throws {RequiredError}
|
|
588
825
|
* @memberof DefaultApiInterface
|
|
589
826
|
*/
|
|
590
|
-
|
|
827
|
+
getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
591
828
|
|
|
592
829
|
/**
|
|
593
830
|
*
|
|
594
|
-
* @summary
|
|
595
|
-
* @param {StartInspectionRequest} startInspectionRequest
|
|
831
|
+
* @summary Get VDDK status
|
|
596
832
|
* @param {*} [options] Override http request option.
|
|
597
833
|
* @throws {RequiredError}
|
|
598
834
|
* @memberof DefaultApiInterface
|
|
599
835
|
*/
|
|
600
|
-
|
|
836
|
+
getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
601
837
|
|
|
602
838
|
/**
|
|
603
|
-
*
|
|
839
|
+
* Get VDDK status
|
|
604
840
|
*/
|
|
605
|
-
|
|
841
|
+
getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
606
842
|
|
|
607
843
|
/**
|
|
608
|
-
* Creates request options for
|
|
844
|
+
* Creates request options for getInventory without sending the request
|
|
845
|
+
* @param {boolean} [withAgentId] If true, include the agentId in the response (Compatible with manual inventory upload).
|
|
846
|
+
* @param {string} [groupId] Filter inventory to VMs matching this group\'s filter expression
|
|
609
847
|
* @throws {RequiredError}
|
|
610
848
|
* @memberof DefaultApiInterface
|
|
611
849
|
*/
|
|
612
|
-
|
|
850
|
+
getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts>;
|
|
613
851
|
|
|
614
852
|
/**
|
|
615
853
|
*
|
|
616
|
-
* @summary
|
|
854
|
+
* @summary Get collected inventory
|
|
855
|
+
* @param {boolean} [withAgentId] If true, include the agentId in the response (Compatible with manual inventory upload).
|
|
856
|
+
* @param {string} [groupId] Filter inventory to VMs matching this group\'s filter expression
|
|
617
857
|
* @param {*} [options] Override http request option.
|
|
618
858
|
* @throws {RequiredError}
|
|
619
859
|
* @memberof DefaultApiInterface
|
|
620
860
|
*/
|
|
621
|
-
|
|
861
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInventory200Response>>;
|
|
622
862
|
|
|
623
863
|
/**
|
|
624
|
-
*
|
|
864
|
+
* Get collected inventory
|
|
625
865
|
*/
|
|
626
|
-
|
|
866
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
627
867
|
|
|
628
868
|
/**
|
|
629
|
-
* Creates request options for
|
|
869
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
870
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
871
|
+
* @deprecated
|
|
630
872
|
* @throws {RequiredError}
|
|
631
873
|
* @memberof DefaultApiInterface
|
|
632
874
|
*/
|
|
633
|
-
|
|
875
|
+
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
634
876
|
|
|
635
877
|
/**
|
|
636
878
|
*
|
|
637
|
-
* @summary
|
|
879
|
+
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
880
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
638
881
|
* @param {*} [options] Override http request option.
|
|
882
|
+
* @deprecated
|
|
639
883
|
* @throws {RequiredError}
|
|
640
884
|
* @memberof DefaultApiInterface
|
|
641
885
|
*/
|
|
642
|
-
|
|
886
|
+
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
643
887
|
|
|
644
888
|
/**
|
|
645
|
-
*
|
|
889
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
890
|
+
* @deprecated
|
|
646
891
|
*/
|
|
647
|
-
|
|
892
|
+
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
648
893
|
|
|
649
894
|
/**
|
|
650
|
-
* Creates request options for
|
|
651
|
-
* @param {string}
|
|
652
|
-
* @param {UpdateGroupRequest} updateGroupRequest
|
|
895
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
896
|
+
* @param {string} reportId Report UUID
|
|
653
897
|
* @throws {RequiredError}
|
|
654
898
|
* @memberof DefaultApiInterface
|
|
655
899
|
*/
|
|
656
|
-
|
|
900
|
+
getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts>;
|
|
657
901
|
|
|
658
902
|
/**
|
|
659
903
|
*
|
|
660
|
-
* @summary
|
|
661
|
-
* @param {string}
|
|
662
|
-
* @param {UpdateGroupRequest} updateGroupRequest
|
|
904
|
+
* @summary Get a specific rightsizing report with full VM metrics
|
|
905
|
+
* @param {string} reportId Report UUID
|
|
663
906
|
* @param {*} [options] Override http request option.
|
|
664
907
|
* @throws {RequiredError}
|
|
665
908
|
* @memberof DefaultApiInterface
|
|
666
909
|
*/
|
|
667
|
-
|
|
910
|
+
getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>>;
|
|
668
911
|
|
|
669
912
|
/**
|
|
670
|
-
*
|
|
913
|
+
* Get a specific rightsizing report with full VM metrics
|
|
671
914
|
*/
|
|
672
|
-
|
|
915
|
+
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
673
916
|
|
|
674
|
-
|
|
917
|
+
/**
|
|
918
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
919
|
+
* @param {string} reportId Rightsizing report UUID
|
|
920
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
* @memberof DefaultApiInterface
|
|
923
|
+
*/
|
|
924
|
+
getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts>;
|
|
675
925
|
|
|
676
|
-
/**
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @summary Get utilization for a specific cluster from a specific report
|
|
929
|
+
* @param {string} reportId Rightsizing report UUID
|
|
930
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
* @memberof DefaultApiInterface
|
|
934
|
+
*/
|
|
935
|
+
getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
680
936
|
|
|
681
937
|
/**
|
|
682
|
-
*
|
|
938
|
+
* Get utilization for a specific cluster from a specific report
|
|
683
939
|
*/
|
|
684
|
-
|
|
685
|
-
if (requestParameters['id'] == null) {
|
|
686
|
-
throw new runtime.RequiredError(
|
|
687
|
-
'id',
|
|
688
|
-
'Required parameter "id" was null or undefined when calling addVMToInspection().'
|
|
689
|
-
);
|
|
690
|
-
}
|
|
940
|
+
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
691
941
|
|
|
692
|
-
|
|
942
|
+
/**
|
|
943
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
944
|
+
* @param {string} reportId Rightsizing report UUID
|
|
945
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
946
|
+
* @deprecated
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
* @memberof DefaultApiInterface
|
|
949
|
+
*/
|
|
950
|
+
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
693
951
|
|
|
694
|
-
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
955
|
+
* @param {string} reportId Rightsizing report UUID
|
|
956
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @deprecated
|
|
959
|
+
* @throws {RequiredError}
|
|
960
|
+
* @memberof DefaultApiInterface
|
|
961
|
+
*/
|
|
962
|
+
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
695
963
|
|
|
964
|
+
/**
|
|
965
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
966
|
+
* @deprecated
|
|
967
|
+
*/
|
|
968
|
+
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
696
969
|
|
|
697
|
-
|
|
698
|
-
|
|
970
|
+
/**
|
|
971
|
+
* Creates request options for getVM without sending the request
|
|
972
|
+
* @param {string} id VirtualMachine id
|
|
973
|
+
* @throws {RequiredError}
|
|
974
|
+
* @memberof DefaultApiInterface
|
|
975
|
+
*/
|
|
976
|
+
getVMRequestOpts(requestParameters: GetVMRequest): Promise<runtime.RequestOpts>;
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @summary Get details about a vm
|
|
981
|
+
* @param {string} id VirtualMachine id
|
|
982
|
+
* @param {*} [options] Override http request option.
|
|
983
|
+
* @throws {RequiredError}
|
|
984
|
+
* @memberof DefaultApiInterface
|
|
985
|
+
*/
|
|
986
|
+
getVMRaw(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>>;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Get details about a vm
|
|
990
|
+
*/
|
|
991
|
+
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Creates request options for getVMLabels without sending the request
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
* @memberof DefaultApiInterface
|
|
997
|
+
*/
|
|
998
|
+
getVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @summary Get all distinct labels in use across VMs
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
* @memberof DefaultApiInterface
|
|
1006
|
+
*/
|
|
1007
|
+
getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Get all distinct labels in use across VMs
|
|
1011
|
+
*/
|
|
1012
|
+
getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Creates request options for getVMUtilization without sending the request
|
|
1016
|
+
* @param {string} id VirtualMachine MoRef ID
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
* @memberof DefaultApiInterface
|
|
1019
|
+
*/
|
|
1020
|
+
getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
*
|
|
1024
|
+
* @summary Get utilization breakdown for a specific VM
|
|
1025
|
+
* @param {string} id VirtualMachine MoRef ID
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
* @memberof DefaultApiInterface
|
|
1029
|
+
*/
|
|
1030
|
+
getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Get utilization breakdown for a specific VM
|
|
1034
|
+
*/
|
|
1035
|
+
getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Creates request options for getVMs without sending the request
|
|
1039
|
+
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
1040
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
1041
|
+
* @param {number} [page] Page number for pagination
|
|
1042
|
+
* @param {number} [pageSize] Number of items per page
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
* @memberof DefaultApiInterface
|
|
1045
|
+
*/
|
|
1046
|
+
getVMsRequestOpts(requestParameters: GetVMsRequest): Promise<runtime.RequestOpts>;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
* @summary Get list of VMs with filtering and pagination
|
|
1051
|
+
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
1052
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
1053
|
+
* @param {number} [page] Page number for pagination
|
|
1054
|
+
* @param {number} [pageSize] Number of items per page
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
* @memberof DefaultApiInterface
|
|
1058
|
+
*/
|
|
1059
|
+
getVMsRaw(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>>;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Get list of VMs with filtering and pagination
|
|
1063
|
+
*/
|
|
1064
|
+
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1068
|
+
* @throws {RequiredError}
|
|
1069
|
+
* @memberof DefaultApiInterface
|
|
1070
|
+
*/
|
|
1071
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @summary Get distinct filter option values for VMs
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
* @memberof DefaultApiInterface
|
|
1079
|
+
*/
|
|
1080
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Get distinct filter option values for VMs
|
|
1084
|
+
*/
|
|
1085
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Creates request options for getVersion without sending the request
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
* @memberof DefaultApiInterface
|
|
1091
|
+
*/
|
|
1092
|
+
getVersionRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @summary Get agent version information
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
* @memberof DefaultApiInterface
|
|
1100
|
+
*/
|
|
1101
|
+
getVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionInfo>>;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Get agent version information
|
|
1105
|
+
*/
|
|
1106
|
+
getVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionInfo>;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Creates request options for listGroups without sending the request
|
|
1110
|
+
* @param {string} [byName] Filter groups by name (case-insensitive substring match)
|
|
1111
|
+
* @param {number} [page] Page number (1-indexed)
|
|
1112
|
+
* @param {number} [pageSize] Number of groups per page
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
* @memberof DefaultApiInterface
|
|
1115
|
+
*/
|
|
1116
|
+
listGroupsRequestOpts(requestParameters: ListGroupsRequest): Promise<runtime.RequestOpts>;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @summary List all groups
|
|
1121
|
+
* @param {string} [byName] Filter groups by name (case-insensitive substring match)
|
|
1122
|
+
* @param {number} [page] Page number (1-indexed)
|
|
1123
|
+
* @param {number} [pageSize] Number of groups per page
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
* @memberof DefaultApiInterface
|
|
1127
|
+
*/
|
|
1128
|
+
listGroupsRaw(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupListResponse>>;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* List all groups
|
|
1132
|
+
*/
|
|
1133
|
+
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1137
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1138
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
* @memberof DefaultApiInterface
|
|
1141
|
+
*/
|
|
1142
|
+
listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
1147
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1148
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
* @memberof DefaultApiInterface
|
|
1152
|
+
*/
|
|
1153
|
+
listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1157
|
+
*/
|
|
1158
|
+
listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
* @memberof DefaultApiInterface
|
|
1164
|
+
*/
|
|
1165
|
+
listRightsizingReportsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @summary List all rightsizing reports
|
|
1170
|
+
* @param {*} [options] Override http request option.
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
* @memberof DefaultApiInterface
|
|
1173
|
+
*/
|
|
1174
|
+
listRightsizingReportsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportListResponse>>;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* List all rightsizing reports
|
|
1178
|
+
*/
|
|
1179
|
+
listRightsizingReports(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportListResponse>;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1183
|
+
* @param {PairCapabilityRequest} pairCapabilityRequest
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
* @memberof DefaultApiInterface
|
|
1186
|
+
*/
|
|
1187
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters: PostForecasterPairCapabilitiesRequest): Promise<runtime.RequestOpts>;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* 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.
|
|
1191
|
+
* @summary Compute pair capabilities
|
|
1192
|
+
* @param {PairCapabilityRequest} pairCapabilityRequest
|
|
1193
|
+
* @param {*} [options] Override http request option.
|
|
1194
|
+
* @throws {RequiredError}
|
|
1195
|
+
* @memberof DefaultApiInterface
|
|
1196
|
+
*/
|
|
1197
|
+
postForecasterPairCapabilitiesRaw(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PairCapability>>>;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* 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.
|
|
1201
|
+
* Compute pair capabilities
|
|
1202
|
+
*/
|
|
1203
|
+
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Creates request options for putCredentials without sending the request
|
|
1207
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
* @memberof DefaultApiInterface
|
|
1210
|
+
*/
|
|
1211
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* 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.
|
|
1215
|
+
* @summary Store vCenter credentials
|
|
1216
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
* @memberof DefaultApiInterface
|
|
1220
|
+
*/
|
|
1221
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* 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.
|
|
1225
|
+
* Store vCenter credentials
|
|
1226
|
+
*/
|
|
1227
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
1231
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1232
|
+
* @throws {RequiredError}
|
|
1233
|
+
* @memberof DefaultApiInterface
|
|
1234
|
+
*/
|
|
1235
|
+
putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* 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.
|
|
1239
|
+
* @summary Verify vCenter credentials and permissions
|
|
1240
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1241
|
+
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @throws {RequiredError}
|
|
1243
|
+
* @memberof DefaultApiInterface
|
|
1244
|
+
*/
|
|
1245
|
+
putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* 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.
|
|
1249
|
+
* Verify vCenter credentials and permissions
|
|
1250
|
+
*/
|
|
1251
|
+
putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1255
|
+
* @param {Blob} file VDDK tarball
|
|
1256
|
+
* @throws {RequiredError}
|
|
1257
|
+
* @memberof DefaultApiInterface
|
|
1258
|
+
*/
|
|
1259
|
+
putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts>;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @summary Upload VDDK tarball
|
|
1264
|
+
* @param {Blob} file VDDK tarball
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
* @memberof DefaultApiInterface
|
|
1268
|
+
*/
|
|
1269
|
+
putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Upload VDDK tarball
|
|
1273
|
+
*/
|
|
1274
|
+
putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Creates request options for removeVMFromInspection without sending the request
|
|
1278
|
+
* @param {string} id
|
|
1279
|
+
* @throws {RequiredError}
|
|
1280
|
+
* @memberof DefaultApiInterface
|
|
1281
|
+
*/
|
|
1282
|
+
removeVMFromInspectionRequestOpts(requestParameters: RemoveVMFromInspectionRequest): Promise<runtime.RequestOpts>;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* @summary Remove VirtualMachine from inspection queue
|
|
1287
|
+
* @param {string} id
|
|
1288
|
+
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
* @memberof DefaultApiInterface
|
|
1291
|
+
*/
|
|
1292
|
+
removeVMFromInspectionRaw(requestParameters: RemoveVMFromInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Remove VirtualMachine from inspection queue
|
|
1296
|
+
*/
|
|
1297
|
+
removeVMFromInspection(requestParameters: RemoveVMFromInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Creates request options for setAgentMode without sending the request
|
|
1301
|
+
* @param {AgentModeRequest} agentModeRequest
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
* @memberof DefaultApiInterface
|
|
1304
|
+
*/
|
|
1305
|
+
setAgentModeRequestOpts(requestParameters: SetAgentModeRequest): Promise<runtime.RequestOpts>;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @summary Change agent mode
|
|
1310
|
+
* @param {AgentModeRequest} agentModeRequest
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
* @memberof DefaultApiInterface
|
|
1314
|
+
*/
|
|
1315
|
+
setAgentModeRaw(requestParameters: SetAgentModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentStatus>>;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Change agent mode
|
|
1319
|
+
*/
|
|
1320
|
+
setAgentMode(requestParameters: SetAgentModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Creates request options for startCollector without sending the request
|
|
1324
|
+
* @param {CollectorStartRequest} collectorStartRequest
|
|
1325
|
+
* @throws {RequiredError}
|
|
1326
|
+
* @memberof DefaultApiInterface
|
|
1327
|
+
*/
|
|
1328
|
+
startCollectorRequestOpts(requestParameters: StartCollectorRequest): Promise<runtime.RequestOpts>;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
*
|
|
1332
|
+
* @summary Start inventory collection
|
|
1333
|
+
* @param {CollectorStartRequest} collectorStartRequest
|
|
1334
|
+
* @param {*} [options] Override http request option.
|
|
1335
|
+
* @throws {RequiredError}
|
|
1336
|
+
* @memberof DefaultApiInterface
|
|
1337
|
+
*/
|
|
1338
|
+
startCollectorRaw(requestParameters: StartCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Start inventory collection
|
|
1342
|
+
*/
|
|
1343
|
+
startCollector(requestParameters: StartCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Creates request options for startForecaster without sending the request
|
|
1347
|
+
* @param {ForecasterStartRequest} forecasterStartRequest
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
* @memberof DefaultApiInterface
|
|
1350
|
+
*/
|
|
1351
|
+
startForecasterRequestOpts(requestParameters: StartForecasterRequest): Promise<runtime.RequestOpts>;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1355
|
+
* @summary Start benchmark
|
|
1356
|
+
* @param {ForecasterStartRequest} forecasterStartRequest
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
* @memberof DefaultApiInterface
|
|
1360
|
+
*/
|
|
1361
|
+
startForecasterRaw(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1365
|
+
* Start benchmark
|
|
1366
|
+
*/
|
|
1367
|
+
startForecaster(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Creates request options for startInspection without sending the request
|
|
1371
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
* @memberof DefaultApiInterface
|
|
1374
|
+
*/
|
|
1375
|
+
startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @summary Start inspection for VMs
|
|
1380
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
1381
|
+
* @param {*} [options] Override http request option.
|
|
1382
|
+
* @throws {RequiredError}
|
|
1383
|
+
* @memberof DefaultApiInterface
|
|
1384
|
+
*/
|
|
1385
|
+
startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Start inspection for VMs
|
|
1389
|
+
*/
|
|
1390
|
+
startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Creates request options for stopCollector without sending the request
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
* @memberof DefaultApiInterface
|
|
1396
|
+
*/
|
|
1397
|
+
stopCollectorRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
*
|
|
1401
|
+
* @summary Stop collection
|
|
1402
|
+
* @param {*} [options] Override http request option.
|
|
1403
|
+
* @throws {RequiredError}
|
|
1404
|
+
* @memberof DefaultApiInterface
|
|
1405
|
+
*/
|
|
1406
|
+
stopCollectorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Stop collection
|
|
1410
|
+
*/
|
|
1411
|
+
stopCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Creates request options for stopForecaster without sending the request
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
* @memberof DefaultApiInterface
|
|
1417
|
+
*/
|
|
1418
|
+
stopForecasterRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1422
|
+
* @summary Cancel benchmark
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
* @memberof DefaultApiInterface
|
|
1426
|
+
*/
|
|
1427
|
+
stopForecasterRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1431
|
+
* Cancel benchmark
|
|
1432
|
+
*/
|
|
1433
|
+
stopForecaster(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1437
|
+
* @param {string} name Pair name as specified in the start request
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
* @memberof DefaultApiInterface
|
|
1440
|
+
*/
|
|
1441
|
+
stopForecasterPairRequestOpts(requestParameters: StopForecasterPairRequest): Promise<runtime.RequestOpts>;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1445
|
+
* @summary Cancel a single pair
|
|
1446
|
+
* @param {string} name Pair name as specified in the start request
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
* @memberof DefaultApiInterface
|
|
1450
|
+
*/
|
|
1451
|
+
stopForecasterPairRaw(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StopForecasterPair202Response>>;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1455
|
+
* Cancel a single pair
|
|
1456
|
+
*/
|
|
1457
|
+
stopForecasterPair(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StopForecasterPair202Response>;
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Creates request options for stopInspection without sending the request
|
|
1461
|
+
* @throws {RequiredError}
|
|
1462
|
+
* @memberof DefaultApiInterface
|
|
1463
|
+
*/
|
|
1464
|
+
stopInspectionRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @summary Stop inspector entirely
|
|
1469
|
+
* @param {*} [options] Override http request option.
|
|
1470
|
+
* @throws {RequiredError}
|
|
1471
|
+
* @memberof DefaultApiInterface
|
|
1472
|
+
*/
|
|
1473
|
+
stopInspectionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Stop inspector entirely
|
|
1477
|
+
*/
|
|
1478
|
+
stopInspection(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
1482
|
+
* @param {RightsizingCollectRequest} rightsizingCollectRequest
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
* @memberof DefaultApiInterface
|
|
1485
|
+
*/
|
|
1486
|
+
triggerRightsizingCollectionRequestOpts(requestParameters: TriggerRightsizingCollectionRequest): Promise<runtime.RequestOpts>;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @summary Trigger rightsizing metrics collection
|
|
1491
|
+
* @param {RightsizingCollectRequest} rightsizingCollectRequest
|
|
1492
|
+
* @param {*} [options] Override http request option.
|
|
1493
|
+
* @throws {RequiredError}
|
|
1494
|
+
* @memberof DefaultApiInterface
|
|
1495
|
+
*/
|
|
1496
|
+
triggerRightsizingCollectionRaw(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportSummary>>;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* Trigger rightsizing metrics collection
|
|
1500
|
+
*/
|
|
1501
|
+
triggerRightsizingCollection(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportSummary>;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Creates request options for updateGroup without sending the request
|
|
1505
|
+
* @param {string} id Group ID
|
|
1506
|
+
* @param {UpdateGroupRequest} updateGroupRequest
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
* @memberof DefaultApiInterface
|
|
1509
|
+
*/
|
|
1510
|
+
updateGroupRequestOpts(requestParameters: UpdateGroupOperationRequest): Promise<runtime.RequestOpts>;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @summary Update group
|
|
1515
|
+
* @param {string} id Group ID
|
|
1516
|
+
* @param {UpdateGroupRequest} updateGroupRequest
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
* @memberof DefaultApiInterface
|
|
1520
|
+
*/
|
|
1521
|
+
updateGroupRaw(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Group>>;
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Update group
|
|
1525
|
+
*/
|
|
1526
|
+
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1530
|
+
* @param {string} label The label to modify
|
|
1531
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
* @memberof DefaultApiInterface
|
|
1534
|
+
*/
|
|
1535
|
+
updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts>;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @summary Modify label VM membership (add/remove label to/from VMs)
|
|
1540
|
+
* @param {string} label The label to modify
|
|
1541
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
* @memberof DefaultApiInterface
|
|
1545
|
+
*/
|
|
1546
|
+
updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1550
|
+
*/
|
|
1551
|
+
updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Creates request options for updateVM without sending the request
|
|
1555
|
+
* @param {string} id VirtualMachine id
|
|
1556
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1557
|
+
* @throws {RequiredError}
|
|
1558
|
+
* @memberof DefaultApiInterface
|
|
1559
|
+
*/
|
|
1560
|
+
updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts>;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @summary Update VM properties
|
|
1565
|
+
* @param {string} id VirtualMachine id
|
|
1566
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1567
|
+
* @param {*} [options] Override http request option.
|
|
1568
|
+
* @throws {RequiredError}
|
|
1569
|
+
* @memberof DefaultApiInterface
|
|
1570
|
+
*/
|
|
1571
|
+
updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Update VM properties
|
|
1575
|
+
*/
|
|
1576
|
+
updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1580
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
* @memberof DefaultApiInterface
|
|
1583
|
+
*/
|
|
1584
|
+
validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @summary Validate vCenter credentials for inspector
|
|
1589
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
* @memberof DefaultApiInterface
|
|
1593
|
+
*/
|
|
1594
|
+
validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Validate vCenter credentials for inspector
|
|
1598
|
+
*/
|
|
1599
|
+
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1600
|
+
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
*/
|
|
1606
|
+
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Creates request options for createGroup without sending the request
|
|
1610
|
+
*/
|
|
1611
|
+
async createGroupRequestOpts(requestParameters: CreateGroupOperationRequest): Promise<runtime.RequestOpts> {
|
|
1612
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
1613
|
+
throw new runtime.RequiredError(
|
|
1614
|
+
'createGroupRequest',
|
|
1615
|
+
'Required parameter "createGroupRequest" was null or undefined when calling createGroup().'
|
|
1616
|
+
);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
const queryParameters: any = {};
|
|
1620
|
+
|
|
1621
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1622
|
+
|
|
1623
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
let urlPath = `/groups`;
|
|
1627
|
+
|
|
1628
|
+
return {
|
|
1629
|
+
path: urlPath,
|
|
1630
|
+
method: 'POST',
|
|
1631
|
+
headers: headerParameters,
|
|
1632
|
+
query: queryParameters,
|
|
1633
|
+
body: CreateGroupRequestToJSON(requestParameters['createGroupRequest']),
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Create a new group
|
|
1639
|
+
*/
|
|
1640
|
+
async createGroupRaw(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Group>> {
|
|
1641
|
+
const requestOptions = await this.createGroupRequestOpts(requestParameters);
|
|
1642
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1643
|
+
|
|
1644
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Create a new group
|
|
1649
|
+
*/
|
|
1650
|
+
async createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group> {
|
|
1651
|
+
const response = await this.createGroupRaw(requestParameters, initOverrides);
|
|
1652
|
+
return await response.value();
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Creates request options for deleteCredentials without sending the request
|
|
1657
|
+
*/
|
|
1658
|
+
async deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1659
|
+
const queryParameters: any = {};
|
|
1660
|
+
|
|
1661
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
let urlPath = `/credentials`;
|
|
1665
|
+
|
|
1666
|
+
return {
|
|
1667
|
+
path: urlPath,
|
|
1668
|
+
method: 'DELETE',
|
|
1669
|
+
headers: headerParameters,
|
|
1670
|
+
query: queryParameters,
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* Removes all stored vCenter credentials from the database.
|
|
1676
|
+
* Delete stored credentials
|
|
1677
|
+
*/
|
|
1678
|
+
async deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1679
|
+
const requestOptions = await this.deleteCredentialsRequestOpts();
|
|
1680
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1681
|
+
|
|
1682
|
+
return new runtime.VoidApiResponse(response);
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* Removes all stored vCenter credentials from the database.
|
|
1687
|
+
* Delete stored credentials
|
|
1688
|
+
*/
|
|
1689
|
+
async deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1690
|
+
await this.deleteCredentialsRaw(initOverrides);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
1695
|
+
*/
|
|
1696
|
+
async deleteForecasterRunRequestOpts(requestParameters: DeleteForecasterRunRequest): Promise<runtime.RequestOpts> {
|
|
1697
|
+
if (requestParameters['id'] == null) {
|
|
1698
|
+
throw new runtime.RequiredError(
|
|
1699
|
+
'id',
|
|
1700
|
+
'Required parameter "id" was null or undefined when calling deleteForecasterRun().'
|
|
1701
|
+
);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
const queryParameters: any = {};
|
|
1705
|
+
|
|
1706
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
1710
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1711
|
+
|
|
1712
|
+
return {
|
|
1713
|
+
path: urlPath,
|
|
1714
|
+
method: 'DELETE',
|
|
1715
|
+
headers: headerParameters,
|
|
1716
|
+
query: queryParameters,
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Delete a benchmark run
|
|
1722
|
+
*/
|
|
1723
|
+
async deleteForecasterRunRaw(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1724
|
+
const requestOptions = await this.deleteForecasterRunRequestOpts(requestParameters);
|
|
1725
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1726
|
+
|
|
1727
|
+
return new runtime.VoidApiResponse(response);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Delete a benchmark run
|
|
1732
|
+
*/
|
|
1733
|
+
async deleteForecasterRun(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1734
|
+
await this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Creates request options for deleteGroup without sending the request
|
|
1739
|
+
*/
|
|
1740
|
+
async deleteGroupRequestOpts(requestParameters: DeleteGroupRequest): Promise<runtime.RequestOpts> {
|
|
1741
|
+
if (requestParameters['id'] == null) {
|
|
1742
|
+
throw new runtime.RequiredError(
|
|
1743
|
+
'id',
|
|
1744
|
+
'Required parameter "id" was null or undefined when calling deleteGroup().'
|
|
1745
|
+
);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
const queryParameters: any = {};
|
|
1749
|
+
|
|
1750
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
let urlPath = `/groups/{id}`;
|
|
1754
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1755
|
+
|
|
1756
|
+
return {
|
|
1757
|
+
path: urlPath,
|
|
1758
|
+
method: 'DELETE',
|
|
1759
|
+
headers: headerParameters,
|
|
1760
|
+
query: queryParameters,
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Delete group
|
|
1766
|
+
*/
|
|
1767
|
+
async deleteGroupRaw(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1768
|
+
const requestOptions = await this.deleteGroupRequestOpts(requestParameters);
|
|
1769
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1770
|
+
|
|
1771
|
+
return new runtime.VoidApiResponse(response);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Delete group
|
|
1776
|
+
*/
|
|
1777
|
+
async deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1778
|
+
await this.deleteGroupRaw(requestParameters, initOverrides);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
1783
|
+
*/
|
|
1784
|
+
async deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts> {
|
|
1785
|
+
if (requestParameters['label'] == null) {
|
|
1786
|
+
throw new runtime.RequiredError(
|
|
1787
|
+
'label',
|
|
1788
|
+
'Required parameter "label" was null or undefined when calling deleteLabelGlobally().'
|
|
1789
|
+
);
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
const queryParameters: any = {};
|
|
1793
|
+
|
|
1794
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1798
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1799
|
+
|
|
1800
|
+
return {
|
|
1801
|
+
path: urlPath,
|
|
1802
|
+
method: 'DELETE',
|
|
1803
|
+
headers: headerParameters,
|
|
1804
|
+
query: queryParameters,
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Delete label from all VMs
|
|
1810
|
+
*/
|
|
1811
|
+
async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
1812
|
+
const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
1813
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1814
|
+
|
|
1815
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Delete label from all VMs
|
|
1820
|
+
*/
|
|
1821
|
+
async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
1822
|
+
const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
1823
|
+
return await response.value();
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Creates request options for exportInventory without sending the request
|
|
1828
|
+
*/
|
|
1829
|
+
async exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts> {
|
|
1830
|
+
const queryParameters: any = {};
|
|
1831
|
+
|
|
1832
|
+
if (requestParameters['scope'] != null) {
|
|
1833
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
let urlPath = `/export`;
|
|
1840
|
+
|
|
1841
|
+
return {
|
|
1842
|
+
path: urlPath,
|
|
1843
|
+
method: 'GET',
|
|
1844
|
+
headers: headerParameters,
|
|
1845
|
+
query: queryParameters,
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1851
|
+
* Export VM inventory and migration planning data
|
|
1852
|
+
*/
|
|
1853
|
+
async exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
1854
|
+
const requestOptions = await this.exportInventoryRequestOpts(requestParameters);
|
|
1855
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1856
|
+
|
|
1857
|
+
return new runtime.BlobApiResponse(response);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1862
|
+
* Export VM inventory and migration planning data
|
|
1863
|
+
*/
|
|
1864
|
+
async exportInventory(requestParameters: ExportInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
1865
|
+
const response = await this.exportInventoryRaw(requestParameters, initOverrides);
|
|
1866
|
+
return await response.value();
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Creates request options for getAgentStatus without sending the request
|
|
1871
|
+
*/
|
|
1872
|
+
async getAgentStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1873
|
+
const queryParameters: any = {};
|
|
1874
|
+
|
|
1875
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
let urlPath = `/agent`;
|
|
1879
|
+
|
|
1880
|
+
return {
|
|
1881
|
+
path: urlPath,
|
|
1882
|
+
method: 'GET',
|
|
1883
|
+
headers: headerParameters,
|
|
1884
|
+
query: queryParameters,
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Get agent status
|
|
1890
|
+
*/
|
|
1891
|
+
async getAgentStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentStatus>> {
|
|
1892
|
+
const requestOptions = await this.getAgentStatusRequestOpts();
|
|
1893
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1894
|
+
|
|
1895
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentStatusFromJSON(jsonValue));
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Get agent status
|
|
1900
|
+
*/
|
|
1901
|
+
async getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus> {
|
|
1902
|
+
const response = await this.getAgentStatusRaw(initOverrides);
|
|
1903
|
+
return await response.value();
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Creates request options for getApplications without sending the request
|
|
1908
|
+
*/
|
|
1909
|
+
async getApplicationsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1910
|
+
const queryParameters: any = {};
|
|
1911
|
+
|
|
1912
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
let urlPath = `/applications`;
|
|
1916
|
+
|
|
1917
|
+
return {
|
|
1918
|
+
path: urlPath,
|
|
1919
|
+
method: 'GET',
|
|
1920
|
+
headers: headerParameters,
|
|
1921
|
+
query: queryParameters,
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* List detected applications running on VMs
|
|
1927
|
+
*/
|
|
1928
|
+
async getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>> {
|
|
1929
|
+
const requestOptions = await this.getApplicationsRequestOpts();
|
|
1930
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1931
|
+
|
|
1932
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* List detected applications running on VMs
|
|
1937
|
+
*/
|
|
1938
|
+
async getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse> {
|
|
1939
|
+
const response = await this.getApplicationsRaw(initOverrides);
|
|
1940
|
+
return await response.value();
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
1945
|
+
*/
|
|
1946
|
+
async getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
1947
|
+
if (requestParameters['clusterId'] == null) {
|
|
1948
|
+
throw new runtime.RequiredError(
|
|
1949
|
+
'clusterId',
|
|
1950
|
+
'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().'
|
|
1951
|
+
);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
const queryParameters: any = {};
|
|
1955
|
+
|
|
1956
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
1960
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
1961
|
+
|
|
1962
|
+
return {
|
|
1963
|
+
path: urlPath,
|
|
1964
|
+
method: 'GET',
|
|
1965
|
+
headers: headerParameters,
|
|
1966
|
+
query: queryParameters,
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Get latest cluster utilization by cluster ID
|
|
1972
|
+
*/
|
|
1973
|
+
async getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
1974
|
+
const requestOptions = await this.getClusterUtilizationRequestOpts(requestParameters);
|
|
1975
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1976
|
+
|
|
1977
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* Get latest cluster utilization by cluster ID
|
|
1982
|
+
*/
|
|
1983
|
+
async getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
1984
|
+
const response = await this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
1985
|
+
return await response.value();
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
1990
|
+
*/
|
|
1991
|
+
async getCollectorStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1992
|
+
const queryParameters: any = {};
|
|
1993
|
+
|
|
1994
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
let urlPath = `/collector`;
|
|
1998
|
+
|
|
1999
|
+
return {
|
|
2000
|
+
path: urlPath,
|
|
2001
|
+
method: 'GET',
|
|
2002
|
+
headers: headerParameters,
|
|
2003
|
+
query: queryParameters,
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Get collector status
|
|
2009
|
+
*/
|
|
2010
|
+
async getCollectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>> {
|
|
2011
|
+
const requestOptions = await this.getCollectorStatusRequestOpts();
|
|
2012
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2013
|
+
|
|
2014
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* Get collector status
|
|
2019
|
+
*/
|
|
2020
|
+
async getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus> {
|
|
2021
|
+
const response = await this.getCollectorStatusRaw(initOverrides);
|
|
2022
|
+
return await response.value();
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
2027
|
+
*/
|
|
2028
|
+
async getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2029
|
+
const queryParameters: any = {};
|
|
2030
|
+
|
|
2031
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
let urlPath = `/credentials/capabilities`;
|
|
2035
|
+
|
|
2036
|
+
return {
|
|
2037
|
+
path: urlPath,
|
|
2038
|
+
method: 'GET',
|
|
2039
|
+
headers: headerParameters,
|
|
2040
|
+
query: queryParameters,
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
2046
|
+
* Check vSphere operation capabilities
|
|
2047
|
+
*/
|
|
2048
|
+
async getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>> {
|
|
2049
|
+
const requestOptions = await this.getCredentialCapabilitiesRequestOpts();
|
|
2050
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2051
|
+
|
|
2052
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityStatusFromJSON(jsonValue));
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
2057
|
+
* Check vSphere operation capabilities
|
|
2058
|
+
*/
|
|
2059
|
+
async getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus> {
|
|
2060
|
+
const response = await this.getCredentialCapabilitiesRaw(initOverrides);
|
|
2061
|
+
return await response.value();
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Creates request options for getCredentials without sending the request
|
|
2066
|
+
*/
|
|
2067
|
+
async getCredentialsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2068
|
+
const queryParameters: any = {};
|
|
2069
|
+
|
|
2070
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
let urlPath = `/credentials`;
|
|
2074
|
+
|
|
2075
|
+
return {
|
|
2076
|
+
path: urlPath,
|
|
2077
|
+
method: 'GET',
|
|
2078
|
+
headers: headerParameters,
|
|
2079
|
+
query: queryParameters,
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
2085
|
+
* Get stored credential status
|
|
2086
|
+
*/
|
|
2087
|
+
async getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>> {
|
|
2088
|
+
const requestOptions = await this.getCredentialsRequestOpts();
|
|
2089
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2090
|
+
|
|
2091
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
2096
|
+
* Get stored credential status
|
|
2097
|
+
*/
|
|
2098
|
+
async getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus> {
|
|
2099
|
+
const response = await this.getCredentialsRaw(initOverrides);
|
|
2100
|
+
return await response.value();
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
2105
|
+
*/
|
|
2106
|
+
async getForecasterDatastoresRequestOpts(requestParameters: GetForecasterDatastoresRequest): Promise<runtime.RequestOpts> {
|
|
2107
|
+
const queryParameters: any = {};
|
|
2108
|
+
|
|
2109
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2110
|
+
|
|
2111
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
let urlPath = `/forecaster/datastores`;
|
|
2115
|
+
|
|
2116
|
+
return {
|
|
2117
|
+
path: urlPath,
|
|
2118
|
+
method: 'POST',
|
|
2119
|
+
headers: headerParameters,
|
|
2120
|
+
query: queryParameters,
|
|
2121
|
+
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
2127
|
+
* List available datastores
|
|
2128
|
+
*/
|
|
2129
|
+
async getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>> {
|
|
2130
|
+
const requestOptions = await this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
2131
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2132
|
+
|
|
2133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetailFromJSON));
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
2138
|
+
* List available datastores
|
|
2139
|
+
*/
|
|
2140
|
+
async getForecasterDatastores(requestParameters: GetForecasterDatastoresRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DatastoreDetail>> {
|
|
2141
|
+
const response = await this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
2142
|
+
return await response.value();
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
2147
|
+
*/
|
|
2148
|
+
async getForecasterRunsRequestOpts(requestParameters: GetForecasterRunsRequest): Promise<runtime.RequestOpts> {
|
|
2149
|
+
const queryParameters: any = {};
|
|
2150
|
+
|
|
2151
|
+
if (requestParameters['pairName'] != null) {
|
|
2152
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
let urlPath = `/forecaster/runs`;
|
|
2159
|
+
|
|
2160
|
+
return {
|
|
2161
|
+
path: urlPath,
|
|
2162
|
+
method: 'GET',
|
|
2163
|
+
headers: headerParameters,
|
|
2164
|
+
query: queryParameters,
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
2170
|
+
* List benchmark runs
|
|
2171
|
+
*/
|
|
2172
|
+
async getForecasterRunsRaw(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BenchmarkRun>>> {
|
|
2173
|
+
const requestOptions = await this.getForecasterRunsRequestOpts(requestParameters);
|
|
2174
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2175
|
+
|
|
2176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRunFromJSON));
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
2181
|
+
* List benchmark runs
|
|
2182
|
+
*/
|
|
2183
|
+
async getForecasterRuns(requestParameters: GetForecasterRunsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BenchmarkRun>> {
|
|
2184
|
+
const response = await this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
2185
|
+
return await response.value();
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* Creates request options for getForecasterStats without sending the request
|
|
2190
|
+
*/
|
|
2191
|
+
async getForecasterStatsRequestOpts(requestParameters: GetForecasterStatsRequest): Promise<runtime.RequestOpts> {
|
|
2192
|
+
if (requestParameters['pairName'] == null) {
|
|
2193
|
+
throw new runtime.RequiredError(
|
|
2194
|
+
'pairName',
|
|
2195
|
+
'Required parameter "pairName" was null or undefined when calling getForecasterStats().'
|
|
2196
|
+
);
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
const queryParameters: any = {};
|
|
2200
|
+
|
|
2201
|
+
if (requestParameters['pairName'] != null) {
|
|
2202
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
let urlPath = `/forecaster/stats`;
|
|
2209
|
+
|
|
2210
|
+
return {
|
|
2211
|
+
path: urlPath,
|
|
2212
|
+
method: 'GET',
|
|
2213
|
+
headers: headerParameters,
|
|
2214
|
+
query: queryParameters,
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
2220
|
+
* Get throughput statistics
|
|
2221
|
+
*/
|
|
2222
|
+
async getForecasterStatsRaw(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecastStats>> {
|
|
2223
|
+
const requestOptions = await this.getForecasterStatsRequestOpts(requestParameters);
|
|
2224
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2225
|
+
|
|
2226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecastStatsFromJSON(jsonValue));
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
2231
|
+
* Get throughput statistics
|
|
2232
|
+
*/
|
|
2233
|
+
async getForecasterStats(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecastStats> {
|
|
2234
|
+
const response = await this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
2235
|
+
return await response.value();
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
2240
|
+
*/
|
|
2241
|
+
async getForecasterStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2242
|
+
const queryParameters: any = {};
|
|
2243
|
+
|
|
2244
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
let urlPath = `/forecaster`;
|
|
2248
|
+
|
|
2249
|
+
return {
|
|
2250
|
+
path: urlPath,
|
|
2251
|
+
method: 'GET',
|
|
2252
|
+
headers: headerParameters,
|
|
2253
|
+
query: queryParameters,
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Returns current service state with per-pair progress details.
|
|
2259
|
+
* Poll forecaster status
|
|
2260
|
+
*/
|
|
2261
|
+
async getForecasterStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
|
|
2262
|
+
const requestOptions = await this.getForecasterStatusRequestOpts();
|
|
2263
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2264
|
+
|
|
2265
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Returns current service state with per-pair progress details.
|
|
2270
|
+
* Poll forecaster status
|
|
2271
|
+
*/
|
|
2272
|
+
async getForecasterStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
|
|
2273
|
+
const response = await this.getForecasterStatusRaw(initOverrides);
|
|
2274
|
+
return await response.value();
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Creates request options for getGroup without sending the request
|
|
2279
|
+
*/
|
|
2280
|
+
async getGroupRequestOpts(requestParameters: GetGroupRequest): Promise<runtime.RequestOpts> {
|
|
2281
|
+
if (requestParameters['id'] == null) {
|
|
2282
|
+
throw new runtime.RequiredError(
|
|
2283
|
+
'id',
|
|
2284
|
+
'Required parameter "id" was null or undefined when calling getGroup().'
|
|
2285
|
+
);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
const queryParameters: any = {};
|
|
2289
|
+
|
|
2290
|
+
if (requestParameters['sort'] != null) {
|
|
2291
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
if (requestParameters['page'] != null) {
|
|
2295
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
if (requestParameters['pageSize'] != null) {
|
|
2299
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
let urlPath = `/groups/{id}`;
|
|
2306
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
2307
|
+
|
|
2308
|
+
return {
|
|
2309
|
+
path: urlPath,
|
|
2310
|
+
method: 'GET',
|
|
2311
|
+
headers: headerParameters,
|
|
2312
|
+
query: queryParameters,
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Get group by ID with its VMs
|
|
2318
|
+
*/
|
|
2319
|
+
async getGroupRaw(requestParameters: GetGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupResponse>> {
|
|
2320
|
+
const requestOptions = await this.getGroupRequestOpts(requestParameters);
|
|
2321
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2322
|
+
|
|
2323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupResponseFromJSON(jsonValue));
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Get group by ID with its VMs
|
|
2328
|
+
*/
|
|
2329
|
+
async getGroup(requestParameters: GetGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse> {
|
|
2330
|
+
const response = await this.getGroupRaw(requestParameters, initOverrides);
|
|
2331
|
+
return await response.value();
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
2336
|
+
*/
|
|
2337
|
+
async getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts> {
|
|
2338
|
+
const queryParameters: any = {};
|
|
2339
|
+
|
|
2340
|
+
if (requestParameters['includeVddk'] != null) {
|
|
2341
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
let urlPath = `/inspector`;
|
|
2348
|
+
|
|
2349
|
+
return {
|
|
2350
|
+
path: urlPath,
|
|
2351
|
+
method: 'GET',
|
|
2352
|
+
headers: headerParameters,
|
|
2353
|
+
query: queryParameters,
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* Get inspector status
|
|
2359
|
+
*/
|
|
2360
|
+
async getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
2361
|
+
const requestOptions = await this.getInspectorStatusRequestOpts(requestParameters);
|
|
2362
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2363
|
+
|
|
2364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Get inspector status
|
|
2369
|
+
*/
|
|
2370
|
+
async getInspectorStatus(requestParameters: GetInspectorStatusRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
2371
|
+
const response = await this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
2372
|
+
return await response.value();
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
2377
|
+
*/
|
|
2378
|
+
async getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2379
|
+
const queryParameters: any = {};
|
|
2380
|
+
|
|
2381
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
let urlPath = `/inspector/vddk`;
|
|
2385
|
+
|
|
2386
|
+
return {
|
|
2387
|
+
path: urlPath,
|
|
2388
|
+
method: 'GET',
|
|
2389
|
+
headers: headerParameters,
|
|
2390
|
+
query: queryParameters,
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* Get VDDK status
|
|
2396
|
+
*/
|
|
2397
|
+
async getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
2398
|
+
const requestOptions = await this.getInspectorVddkStatusRequestOpts();
|
|
2399
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2400
|
+
|
|
2401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Get VDDK status
|
|
2406
|
+
*/
|
|
2407
|
+
async getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
2408
|
+
const response = await this.getInspectorVddkStatusRaw(initOverrides);
|
|
2409
|
+
return await response.value();
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* Creates request options for getInventory without sending the request
|
|
2414
|
+
*/
|
|
2415
|
+
async getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts> {
|
|
2416
|
+
const queryParameters: any = {};
|
|
2417
|
+
|
|
2418
|
+
if (requestParameters['withAgentId'] != null) {
|
|
2419
|
+
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
if (requestParameters['groupId'] != null) {
|
|
2423
|
+
queryParameters['group_id'] = requestParameters['groupId'];
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
let urlPath = `/inventory`;
|
|
2430
|
+
|
|
2431
|
+
return {
|
|
2432
|
+
path: urlPath,
|
|
2433
|
+
method: 'GET',
|
|
2434
|
+
headers: headerParameters,
|
|
2435
|
+
query: queryParameters,
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* Get collected inventory
|
|
2441
|
+
*/
|
|
2442
|
+
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInventory200Response>> {
|
|
2443
|
+
const requestOptions = await this.getInventoryRequestOpts(requestParameters);
|
|
2444
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2445
|
+
|
|
2446
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetInventory200ResponseFromJSON(jsonValue));
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* Get collected inventory
|
|
2451
|
+
*/
|
|
2452
|
+
async getInventory(requestParameters: GetInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response> {
|
|
2453
|
+
const response = await this.getInventoryRaw(requestParameters, initOverrides);
|
|
2454
|
+
return await response.value();
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2459
|
+
* @deprecated
|
|
2460
|
+
*/
|
|
2461
|
+
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
2462
|
+
const queryParameters: any = {};
|
|
2463
|
+
|
|
2464
|
+
if (requestParameters['byExpression'] != null) {
|
|
2465
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
let urlPath = `/cluster_rightsizing`;
|
|
2472
|
+
|
|
2473
|
+
return {
|
|
2474
|
+
path: urlPath,
|
|
2475
|
+
method: 'GET',
|
|
2476
|
+
headers: headerParameters,
|
|
2477
|
+
query: queryParameters,
|
|
2478
|
+
};
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
2483
|
+
* @deprecated
|
|
2484
|
+
*/
|
|
2485
|
+
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2486
|
+
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
2487
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2488
|
+
|
|
2489
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
2494
|
+
* @deprecated
|
|
2495
|
+
*/
|
|
2496
|
+
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2497
|
+
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
2498
|
+
return await response.value();
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
2503
|
+
*/
|
|
2504
|
+
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
2505
|
+
if (requestParameters['reportId'] == null) {
|
|
2506
|
+
throw new runtime.RequiredError(
|
|
2507
|
+
'reportId',
|
|
2508
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
|
|
2509
|
+
);
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
const queryParameters: any = {};
|
|
2513
|
+
|
|
2514
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
2518
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2519
|
+
|
|
2520
|
+
return {
|
|
2521
|
+
path: urlPath,
|
|
2522
|
+
method: 'GET',
|
|
2523
|
+
headers: headerParameters,
|
|
2524
|
+
query: queryParameters,
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* Get a specific rightsizing report with full VM metrics
|
|
2530
|
+
*/
|
|
2531
|
+
async getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>> {
|
|
2532
|
+
const requestOptions = await this.getRightsizingReportRequestOpts(requestParameters);
|
|
2533
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2534
|
+
|
|
2535
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* Get a specific rightsizing report with full VM metrics
|
|
2540
|
+
*/
|
|
2541
|
+
async getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport> {
|
|
2542
|
+
const response = await this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
2543
|
+
return await response.value();
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
2548
|
+
*/
|
|
2549
|
+
async getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts> {
|
|
2550
|
+
if (requestParameters['reportId'] == null) {
|
|
2551
|
+
throw new runtime.RequiredError(
|
|
2552
|
+
'reportId',
|
|
2553
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2554
|
+
);
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
if (requestParameters['clusterId'] == null) {
|
|
2558
|
+
throw new runtime.RequiredError(
|
|
2559
|
+
'clusterId',
|
|
2560
|
+
'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2561
|
+
);
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
const queryParameters: any = {};
|
|
2565
|
+
|
|
2566
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
2570
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2571
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
699
2572
|
|
|
700
2573
|
return {
|
|
701
2574
|
path: urlPath,
|
|
702
|
-
method: '
|
|
2575
|
+
method: 'GET',
|
|
703
2576
|
headers: headerParameters,
|
|
704
2577
|
query: queryParameters,
|
|
705
2578
|
};
|
|
706
2579
|
}
|
|
707
2580
|
|
|
708
2581
|
/**
|
|
709
|
-
*
|
|
2582
|
+
* Get utilization for a specific cluster from a specific report
|
|
710
2583
|
*/
|
|
711
|
-
async
|
|
712
|
-
const requestOptions = await this.
|
|
2584
|
+
async getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
2585
|
+
const requestOptions = await this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
713
2586
|
const response = await this.request(requestOptions, initOverrides);
|
|
714
2587
|
|
|
715
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2588
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
716
2589
|
}
|
|
717
2590
|
|
|
718
2591
|
/**
|
|
719
|
-
*
|
|
2592
|
+
* Get utilization for a specific cluster from a specific report
|
|
720
2593
|
*/
|
|
721
|
-
async
|
|
722
|
-
const response = await this.
|
|
2594
|
+
async getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
2595
|
+
const response = await this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
723
2596
|
return await response.value();
|
|
724
2597
|
}
|
|
725
2598
|
|
|
726
2599
|
/**
|
|
727
|
-
* Creates request options for
|
|
2600
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2601
|
+
* @deprecated
|
|
728
2602
|
*/
|
|
729
|
-
async
|
|
730
|
-
if (requestParameters['
|
|
2603
|
+
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2604
|
+
if (requestParameters['reportId'] == null) {
|
|
731
2605
|
throw new runtime.RequiredError(
|
|
732
|
-
'
|
|
733
|
-
'Required parameter "
|
|
2606
|
+
'reportId',
|
|
2607
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
|
|
734
2608
|
);
|
|
735
2609
|
}
|
|
736
2610
|
|
|
737
2611
|
const queryParameters: any = {};
|
|
738
2612
|
|
|
739
|
-
|
|
2613
|
+
if (requestParameters['byExpression'] != null) {
|
|
2614
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2615
|
+
}
|
|
740
2616
|
|
|
741
|
-
headerParameters
|
|
2617
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
742
2618
|
|
|
743
2619
|
|
|
744
|
-
let urlPath = `/
|
|
2620
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
2621
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
745
2622
|
|
|
746
2623
|
return {
|
|
747
2624
|
path: urlPath,
|
|
748
|
-
method: '
|
|
2625
|
+
method: 'GET',
|
|
749
2626
|
headers: headerParameters,
|
|
750
2627
|
query: queryParameters,
|
|
751
|
-
body: CreateGroupRequestToJSON(requestParameters['createGroupRequest']),
|
|
752
2628
|
};
|
|
753
2629
|
}
|
|
754
2630
|
|
|
755
2631
|
/**
|
|
756
|
-
*
|
|
2632
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2633
|
+
* @deprecated
|
|
757
2634
|
*/
|
|
758
|
-
async
|
|
759
|
-
const requestOptions = await this.
|
|
2635
|
+
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2636
|
+
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
760
2637
|
const response = await this.request(requestOptions, initOverrides);
|
|
761
2638
|
|
|
762
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2639
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
763
2640
|
}
|
|
764
2641
|
|
|
765
2642
|
/**
|
|
766
|
-
*
|
|
2643
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2644
|
+
* @deprecated
|
|
767
2645
|
*/
|
|
768
|
-
async
|
|
769
|
-
const response = await this.
|
|
2646
|
+
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2647
|
+
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
770
2648
|
return await response.value();
|
|
771
2649
|
}
|
|
772
2650
|
|
|
773
2651
|
/**
|
|
774
|
-
* Creates request options for
|
|
2652
|
+
* Creates request options for getVM without sending the request
|
|
775
2653
|
*/
|
|
776
|
-
async
|
|
2654
|
+
async getVMRequestOpts(requestParameters: GetVMRequest): Promise<runtime.RequestOpts> {
|
|
777
2655
|
if (requestParameters['id'] == null) {
|
|
778
2656
|
throw new runtime.RequiredError(
|
|
779
2657
|
'id',
|
|
780
|
-
'Required parameter "id" was null or undefined when calling
|
|
2658
|
+
'Required parameter "id" was null or undefined when calling getVM().'
|
|
781
2659
|
);
|
|
782
2660
|
}
|
|
783
2661
|
|
|
@@ -786,44 +2664,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
786
2664
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
787
2665
|
|
|
788
2666
|
|
|
789
|
-
let urlPath = `/
|
|
2667
|
+
let urlPath = `/vms/{id}`;
|
|
790
2668
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
791
2669
|
|
|
792
2670
|
return {
|
|
793
2671
|
path: urlPath,
|
|
794
|
-
method: '
|
|
2672
|
+
method: 'GET',
|
|
795
2673
|
headers: headerParameters,
|
|
796
2674
|
query: queryParameters,
|
|
797
2675
|
};
|
|
798
2676
|
}
|
|
799
2677
|
|
|
800
2678
|
/**
|
|
801
|
-
*
|
|
2679
|
+
* Get details about a vm
|
|
802
2680
|
*/
|
|
803
|
-
async
|
|
804
|
-
const requestOptions = await this.
|
|
2681
|
+
async getVMRaw(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>> {
|
|
2682
|
+
const requestOptions = await this.getVMRequestOpts(requestParameters);
|
|
805
2683
|
const response = await this.request(requestOptions, initOverrides);
|
|
806
2684
|
|
|
807
|
-
return new runtime.
|
|
2685
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
|
|
808
2686
|
}
|
|
809
2687
|
|
|
810
2688
|
/**
|
|
811
|
-
*
|
|
2689
|
+
* Get details about a vm
|
|
812
2690
|
*/
|
|
813
|
-
async
|
|
814
|
-
await this.
|
|
2691
|
+
async getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail> {
|
|
2692
|
+
const response = await this.getVMRaw(requestParameters, initOverrides);
|
|
2693
|
+
return await response.value();
|
|
815
2694
|
}
|
|
816
2695
|
|
|
817
2696
|
/**
|
|
818
|
-
* Creates request options for
|
|
2697
|
+
* Creates request options for getVMLabels without sending the request
|
|
819
2698
|
*/
|
|
820
|
-
async
|
|
2699
|
+
async getVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
821
2700
|
const queryParameters: any = {};
|
|
822
2701
|
|
|
823
2702
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
824
2703
|
|
|
825
2704
|
|
|
826
|
-
let urlPath = `/
|
|
2705
|
+
let urlPath = `/vms/labels`;
|
|
827
2706
|
|
|
828
2707
|
return {
|
|
829
2708
|
path: urlPath,
|
|
@@ -834,33 +2713,41 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
834
2713
|
}
|
|
835
2714
|
|
|
836
2715
|
/**
|
|
837
|
-
* Get
|
|
2716
|
+
* Get all distinct labels in use across VMs
|
|
838
2717
|
*/
|
|
839
|
-
async
|
|
840
|
-
const requestOptions = await this.
|
|
2718
|
+
async getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
2719
|
+
const requestOptions = await this.getVMLabelsRequestOpts();
|
|
841
2720
|
const response = await this.request(requestOptions, initOverrides);
|
|
842
2721
|
|
|
843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2722
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
844
2723
|
}
|
|
845
2724
|
|
|
846
2725
|
/**
|
|
847
|
-
* Get
|
|
2726
|
+
* Get all distinct labels in use across VMs
|
|
848
2727
|
*/
|
|
849
|
-
async
|
|
850
|
-
const response = await this.
|
|
2728
|
+
async getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
2729
|
+
const response = await this.getVMLabelsRaw(initOverrides);
|
|
851
2730
|
return await response.value();
|
|
852
2731
|
}
|
|
853
2732
|
|
|
854
2733
|
/**
|
|
855
|
-
* Creates request options for
|
|
2734
|
+
* Creates request options for getVMUtilization without sending the request
|
|
856
2735
|
*/
|
|
857
|
-
async
|
|
2736
|
+
async getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
2737
|
+
if (requestParameters['id'] == null) {
|
|
2738
|
+
throw new runtime.RequiredError(
|
|
2739
|
+
'id',
|
|
2740
|
+
'Required parameter "id" was null or undefined when calling getVMUtilization().'
|
|
2741
|
+
);
|
|
2742
|
+
}
|
|
2743
|
+
|
|
858
2744
|
const queryParameters: any = {};
|
|
859
2745
|
|
|
860
2746
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
861
2747
|
|
|
862
2748
|
|
|
863
|
-
let urlPath = `/
|
|
2749
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
2750
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
864
2751
|
|
|
865
2752
|
return {
|
|
866
2753
|
path: urlPath,
|
|
@@ -871,36 +2758,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
871
2758
|
}
|
|
872
2759
|
|
|
873
2760
|
/**
|
|
874
|
-
* Get
|
|
2761
|
+
* Get utilization breakdown for a specific VM
|
|
875
2762
|
*/
|
|
876
|
-
async
|
|
877
|
-
const requestOptions = await this.
|
|
2763
|
+
async getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>> {
|
|
2764
|
+
const requestOptions = await this.getVMUtilizationRequestOpts(requestParameters);
|
|
878
2765
|
const response = await this.request(requestOptions, initOverrides);
|
|
879
2766
|
|
|
880
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2767
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmUtilizationDetailsFromJSON(jsonValue));
|
|
881
2768
|
}
|
|
882
2769
|
|
|
883
2770
|
/**
|
|
884
|
-
* Get
|
|
2771
|
+
* Get utilization breakdown for a specific VM
|
|
885
2772
|
*/
|
|
886
|
-
async
|
|
887
|
-
const response = await this.
|
|
2773
|
+
async getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails> {
|
|
2774
|
+
const response = await this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
888
2775
|
return await response.value();
|
|
889
2776
|
}
|
|
890
2777
|
|
|
891
2778
|
/**
|
|
892
|
-
* Creates request options for
|
|
2779
|
+
* Creates request options for getVMs without sending the request
|
|
893
2780
|
*/
|
|
894
|
-
async
|
|
895
|
-
if (requestParameters['id'] == null) {
|
|
896
|
-
throw new runtime.RequiredError(
|
|
897
|
-
'id',
|
|
898
|
-
'Required parameter "id" was null or undefined when calling getGroup().'
|
|
899
|
-
);
|
|
900
|
-
}
|
|
901
|
-
|
|
2781
|
+
async getVMsRequestOpts(requestParameters: GetVMsRequest): Promise<runtime.RequestOpts> {
|
|
902
2782
|
const queryParameters: any = {};
|
|
903
2783
|
|
|
2784
|
+
if (requestParameters['byExpression'] != null) {
|
|
2785
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2786
|
+
}
|
|
2787
|
+
|
|
904
2788
|
if (requestParameters['sort'] != null) {
|
|
905
2789
|
queryParameters['sort'] = requestParameters['sort'];
|
|
906
2790
|
}
|
|
@@ -916,8 +2800,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
916
2800
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
917
2801
|
|
|
918
2802
|
|
|
919
|
-
let urlPath = `/
|
|
920
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
2803
|
+
let urlPath = `/vms`;
|
|
921
2804
|
|
|
922
2805
|
return {
|
|
923
2806
|
path: urlPath,
|
|
@@ -928,41 +2811,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
928
2811
|
}
|
|
929
2812
|
|
|
930
2813
|
/**
|
|
931
|
-
* Get
|
|
2814
|
+
* Get list of VMs with filtering and pagination
|
|
932
2815
|
*/
|
|
933
|
-
async
|
|
934
|
-
const requestOptions = await this.
|
|
2816
|
+
async getVMsRaw(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>> {
|
|
2817
|
+
const requestOptions = await this.getVMsRequestOpts(requestParameters);
|
|
935
2818
|
const response = await this.request(requestOptions, initOverrides);
|
|
936
2819
|
|
|
937
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2820
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineListResponseFromJSON(jsonValue));
|
|
938
2821
|
}
|
|
939
2822
|
|
|
940
2823
|
/**
|
|
941
|
-
* Get
|
|
2824
|
+
* Get list of VMs with filtering and pagination
|
|
942
2825
|
*/
|
|
943
|
-
async
|
|
944
|
-
const response = await this.
|
|
2826
|
+
async getVMs(requestParameters: GetVMsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse> {
|
|
2827
|
+
const response = await this.getVMsRaw(requestParameters, initOverrides);
|
|
945
2828
|
return await response.value();
|
|
946
2829
|
}
|
|
947
2830
|
|
|
948
2831
|
/**
|
|
949
|
-
* Creates request options for
|
|
2832
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
950
2833
|
*/
|
|
951
|
-
async
|
|
2834
|
+
async getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
952
2835
|
const queryParameters: any = {};
|
|
953
2836
|
|
|
954
|
-
if (requestParameters['includeVddk'] != null) {
|
|
955
|
-
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
959
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
960
|
-
}
|
|
961
|
-
|
|
962
2837
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
963
2838
|
|
|
964
2839
|
|
|
965
|
-
let urlPath = `/
|
|
2840
|
+
let urlPath = `/vms/filter-options`;
|
|
966
2841
|
|
|
967
2842
|
return {
|
|
968
2843
|
path: urlPath,
|
|
@@ -973,33 +2848,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
973
2848
|
}
|
|
974
2849
|
|
|
975
2850
|
/**
|
|
976
|
-
* Get
|
|
2851
|
+
* Get distinct filter option values for VMs
|
|
977
2852
|
*/
|
|
978
|
-
async
|
|
979
|
-
const requestOptions = await this.
|
|
2853
|
+
async getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
2854
|
+
const requestOptions = await this.getVMsFilterOptionsRequestOpts();
|
|
980
2855
|
const response = await this.request(requestOptions, initOverrides);
|
|
981
2856
|
|
|
982
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2857
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
983
2858
|
}
|
|
984
2859
|
|
|
985
2860
|
/**
|
|
986
|
-
* Get
|
|
2861
|
+
* Get distinct filter option values for VMs
|
|
987
2862
|
*/
|
|
988
|
-
async
|
|
989
|
-
const response = await this.
|
|
2863
|
+
async getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
2864
|
+
const response = await this.getVMsFilterOptionsRaw(initOverrides);
|
|
990
2865
|
return await response.value();
|
|
991
2866
|
}
|
|
992
2867
|
|
|
993
2868
|
/**
|
|
994
|
-
* Creates request options for
|
|
2869
|
+
* Creates request options for getVersion without sending the request
|
|
995
2870
|
*/
|
|
996
|
-
async
|
|
2871
|
+
async getVersionRequestOpts(): Promise<runtime.RequestOpts> {
|
|
997
2872
|
const queryParameters: any = {};
|
|
998
2873
|
|
|
999
2874
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1000
2875
|
|
|
1001
2876
|
|
|
1002
|
-
let urlPath = `/
|
|
2877
|
+
let urlPath = `/version`;
|
|
1003
2878
|
|
|
1004
2879
|
return {
|
|
1005
2880
|
path: urlPath,
|
|
@@ -1010,41 +2885,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1010
2885
|
}
|
|
1011
2886
|
|
|
1012
2887
|
/**
|
|
1013
|
-
* Get
|
|
2888
|
+
* Get agent version information
|
|
1014
2889
|
*/
|
|
1015
|
-
async
|
|
1016
|
-
const requestOptions = await this.
|
|
2890
|
+
async getVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionInfo>> {
|
|
2891
|
+
const requestOptions = await this.getVersionRequestOpts();
|
|
1017
2892
|
const response = await this.request(requestOptions, initOverrides);
|
|
1018
2893
|
|
|
1019
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2894
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VersionInfoFromJSON(jsonValue));
|
|
1020
2895
|
}
|
|
1021
2896
|
|
|
1022
2897
|
/**
|
|
1023
|
-
* Get
|
|
2898
|
+
* Get agent version information
|
|
1024
2899
|
*/
|
|
1025
|
-
async
|
|
1026
|
-
const response = await this.
|
|
2900
|
+
async getVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionInfo> {
|
|
2901
|
+
const response = await this.getVersionRaw(initOverrides);
|
|
1027
2902
|
return await response.value();
|
|
1028
2903
|
}
|
|
1029
2904
|
|
|
1030
2905
|
/**
|
|
1031
|
-
* Creates request options for
|
|
2906
|
+
* Creates request options for listGroups without sending the request
|
|
1032
2907
|
*/
|
|
1033
|
-
async
|
|
2908
|
+
async listGroupsRequestOpts(requestParameters: ListGroupsRequest): Promise<runtime.RequestOpts> {
|
|
1034
2909
|
const queryParameters: any = {};
|
|
1035
2910
|
|
|
1036
|
-
if (requestParameters['
|
|
1037
|
-
queryParameters['
|
|
2911
|
+
if (requestParameters['byName'] != null) {
|
|
2912
|
+
queryParameters['byName'] = requestParameters['byName'];
|
|
1038
2913
|
}
|
|
1039
2914
|
|
|
1040
|
-
if (requestParameters['
|
|
1041
|
-
queryParameters['
|
|
2915
|
+
if (requestParameters['page'] != null) {
|
|
2916
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
if (requestParameters['pageSize'] != null) {
|
|
2920
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1042
2921
|
}
|
|
1043
2922
|
|
|
1044
2923
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1045
2924
|
|
|
1046
2925
|
|
|
1047
|
-
let urlPath = `/
|
|
2926
|
+
let urlPath = `/groups`;
|
|
1048
2927
|
|
|
1049
2928
|
return {
|
|
1050
2929
|
path: urlPath,
|
|
@@ -1055,41 +2934,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1055
2934
|
}
|
|
1056
2935
|
|
|
1057
2936
|
/**
|
|
1058
|
-
*
|
|
2937
|
+
* List all groups
|
|
1059
2938
|
*/
|
|
1060
|
-
async
|
|
1061
|
-
const requestOptions = await this.
|
|
2939
|
+
async listGroupsRaw(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupListResponse>> {
|
|
2940
|
+
const requestOptions = await this.listGroupsRequestOpts(requestParameters);
|
|
1062
2941
|
const response = await this.request(requestOptions, initOverrides);
|
|
1063
2942
|
|
|
1064
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2943
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupListResponseFromJSON(jsonValue));
|
|
1065
2944
|
}
|
|
1066
2945
|
|
|
1067
2946
|
/**
|
|
1068
|
-
*
|
|
2947
|
+
* List all groups
|
|
1069
2948
|
*/
|
|
1070
|
-
async
|
|
1071
|
-
const response = await this.
|
|
2949
|
+
async listGroups(requestParameters: ListGroupsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse> {
|
|
2950
|
+
const response = await this.listGroupsRaw(requestParameters, initOverrides);
|
|
1072
2951
|
return await response.value();
|
|
1073
2952
|
}
|
|
1074
2953
|
|
|
1075
2954
|
/**
|
|
1076
|
-
* Creates request options for
|
|
2955
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1077
2956
|
*/
|
|
1078
|
-
async
|
|
1079
|
-
if (requestParameters['
|
|
2957
|
+
async listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2958
|
+
if (requestParameters['reportId'] == null) {
|
|
1080
2959
|
throw new runtime.RequiredError(
|
|
1081
|
-
'
|
|
1082
|
-
'Required parameter "
|
|
2960
|
+
'reportId',
|
|
2961
|
+
'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().'
|
|
1083
2962
|
);
|
|
1084
2963
|
}
|
|
1085
2964
|
|
|
1086
2965
|
const queryParameters: any = {};
|
|
1087
2966
|
|
|
2967
|
+
if (requestParameters['byExpression'] != null) {
|
|
2968
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2969
|
+
}
|
|
2970
|
+
|
|
1088
2971
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1089
2972
|
|
|
1090
2973
|
|
|
1091
|
-
let urlPath = `/
|
|
1092
|
-
urlPath = urlPath.replace('{
|
|
2974
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
2975
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1093
2976
|
|
|
1094
2977
|
return {
|
|
1095
2978
|
path: urlPath,
|
|
@@ -1100,49 +2983,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1100
2983
|
}
|
|
1101
2984
|
|
|
1102
2985
|
/**
|
|
1103
|
-
* Get
|
|
2986
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1104
2987
|
*/
|
|
1105
|
-
async
|
|
1106
|
-
const requestOptions = await this.
|
|
2988
|
+
async listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2989
|
+
const requestOptions = await this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1107
2990
|
const response = await this.request(requestOptions, initOverrides);
|
|
1108
2991
|
|
|
1109
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2992
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
1110
2993
|
}
|
|
1111
2994
|
|
|
1112
2995
|
/**
|
|
1113
|
-
* Get
|
|
2996
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1114
2997
|
*/
|
|
1115
|
-
async
|
|
1116
|
-
const response = await this.
|
|
2998
|
+
async listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2999
|
+
const response = await this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1117
3000
|
return await response.value();
|
|
1118
3001
|
}
|
|
1119
3002
|
|
|
1120
3003
|
/**
|
|
1121
|
-
* Creates request options for
|
|
3004
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
1122
3005
|
*/
|
|
1123
|
-
async
|
|
3006
|
+
async listRightsizingReportsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1124
3007
|
const queryParameters: any = {};
|
|
1125
3008
|
|
|
1126
|
-
if (requestParameters['byExpression'] != null) {
|
|
1127
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
if (requestParameters['sort'] != null) {
|
|
1131
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
if (requestParameters['page'] != null) {
|
|
1135
|
-
queryParameters['page'] = requestParameters['page'];
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
if (requestParameters['pageSize'] != null) {
|
|
1139
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
3009
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1143
3010
|
|
|
1144
3011
|
|
|
1145
|
-
let urlPath = `/
|
|
3012
|
+
let urlPath = `/rightsizing`;
|
|
1146
3013
|
|
|
1147
3014
|
return {
|
|
1148
3015
|
path: urlPath,
|
|
@@ -1153,117 +3020,129 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1153
3020
|
}
|
|
1154
3021
|
|
|
1155
3022
|
/**
|
|
1156
|
-
*
|
|
3023
|
+
* List all rightsizing reports
|
|
1157
3024
|
*/
|
|
1158
|
-
async
|
|
1159
|
-
const requestOptions = await this.
|
|
3025
|
+
async listRightsizingReportsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportListResponse>> {
|
|
3026
|
+
const requestOptions = await this.listRightsizingReportsRequestOpts();
|
|
1160
3027
|
const response = await this.request(requestOptions, initOverrides);
|
|
1161
3028
|
|
|
1162
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3029
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportListResponseFromJSON(jsonValue));
|
|
1163
3030
|
}
|
|
1164
3031
|
|
|
1165
3032
|
/**
|
|
1166
|
-
*
|
|
3033
|
+
* List all rightsizing reports
|
|
1167
3034
|
*/
|
|
1168
|
-
async
|
|
1169
|
-
const response = await this.
|
|
3035
|
+
async listRightsizingReports(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportListResponse> {
|
|
3036
|
+
const response = await this.listRightsizingReportsRaw(initOverrides);
|
|
1170
3037
|
return await response.value();
|
|
1171
3038
|
}
|
|
1172
3039
|
|
|
1173
3040
|
/**
|
|
1174
|
-
* Creates request options for
|
|
3041
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1175
3042
|
*/
|
|
1176
|
-
async
|
|
3043
|
+
async postForecasterPairCapabilitiesRequestOpts(requestParameters: PostForecasterPairCapabilitiesRequest): Promise<runtime.RequestOpts> {
|
|
3044
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
3045
|
+
throw new runtime.RequiredError(
|
|
3046
|
+
'pairCapabilityRequest',
|
|
3047
|
+
'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().'
|
|
3048
|
+
);
|
|
3049
|
+
}
|
|
3050
|
+
|
|
1177
3051
|
const queryParameters: any = {};
|
|
1178
3052
|
|
|
1179
3053
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1180
3054
|
|
|
3055
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3056
|
+
|
|
1181
3057
|
|
|
1182
|
-
let urlPath = `/
|
|
3058
|
+
let urlPath = `/forecaster/capabilities`;
|
|
1183
3059
|
|
|
1184
3060
|
return {
|
|
1185
3061
|
path: urlPath,
|
|
1186
|
-
method: '
|
|
3062
|
+
method: 'POST',
|
|
1187
3063
|
headers: headerParameters,
|
|
1188
3064
|
query: queryParameters,
|
|
3065
|
+
body: PairCapabilityRequestToJSON(requestParameters['pairCapabilityRequest']),
|
|
1189
3066
|
};
|
|
1190
3067
|
}
|
|
1191
3068
|
|
|
1192
3069
|
/**
|
|
1193
|
-
*
|
|
3070
|
+
* 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.
|
|
3071
|
+
* Compute pair capabilities
|
|
1194
3072
|
*/
|
|
1195
|
-
async
|
|
1196
|
-
const requestOptions = await this.
|
|
3073
|
+
async postForecasterPairCapabilitiesRaw(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PairCapability>>> {
|
|
3074
|
+
const requestOptions = await this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
1197
3075
|
const response = await this.request(requestOptions, initOverrides);
|
|
1198
3076
|
|
|
1199
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3077
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapabilityFromJSON));
|
|
1200
3078
|
}
|
|
1201
3079
|
|
|
1202
3080
|
/**
|
|
1203
|
-
*
|
|
3081
|
+
* 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.
|
|
3082
|
+
* Compute pair capabilities
|
|
1204
3083
|
*/
|
|
1205
|
-
async
|
|
1206
|
-
const response = await this.
|
|
3084
|
+
async postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>> {
|
|
3085
|
+
const response = await this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
1207
3086
|
return await response.value();
|
|
1208
3087
|
}
|
|
1209
3088
|
|
|
1210
3089
|
/**
|
|
1211
|
-
* Creates request options for
|
|
3090
|
+
* Creates request options for putCredentials without sending the request
|
|
1212
3091
|
*/
|
|
1213
|
-
async
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
if (requestParameters['page'] != null) {
|
|
1221
|
-
queryParameters['page'] = requestParameters['page'];
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
if (requestParameters['pageSize'] != null) {
|
|
1225
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
3092
|
+
async putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
3093
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
3094
|
+
throw new runtime.RequiredError(
|
|
3095
|
+
'vcenterCredentials',
|
|
3096
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().'
|
|
3097
|
+
);
|
|
1226
3098
|
}
|
|
1227
3099
|
|
|
3100
|
+
const queryParameters: any = {};
|
|
3101
|
+
|
|
1228
3102
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1229
3103
|
|
|
3104
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3105
|
+
|
|
1230
3106
|
|
|
1231
|
-
let urlPath = `/
|
|
3107
|
+
let urlPath = `/credentials`;
|
|
1232
3108
|
|
|
1233
3109
|
return {
|
|
1234
3110
|
path: urlPath,
|
|
1235
|
-
method: '
|
|
3111
|
+
method: 'PUT',
|
|
1236
3112
|
headers: headerParameters,
|
|
1237
3113
|
query: queryParameters,
|
|
3114
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1238
3115
|
};
|
|
1239
3116
|
}
|
|
1240
3117
|
|
|
1241
3118
|
/**
|
|
1242
|
-
*
|
|
3119
|
+
* 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.
|
|
3120
|
+
* Store vCenter credentials
|
|
1243
3121
|
*/
|
|
1244
|
-
async
|
|
1245
|
-
const requestOptions = await this.
|
|
3122
|
+
async putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>> {
|
|
3123
|
+
const requestOptions = await this.putCredentialsRequestOpts(requestParameters);
|
|
1246
3124
|
const response = await this.request(requestOptions, initOverrides);
|
|
1247
3125
|
|
|
1248
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
1249
3127
|
}
|
|
1250
3128
|
|
|
1251
3129
|
/**
|
|
1252
|
-
*
|
|
3130
|
+
* 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.
|
|
3131
|
+
* Store vCenter credentials
|
|
1253
3132
|
*/
|
|
1254
|
-
async
|
|
1255
|
-
const response = await this.
|
|
3133
|
+
async putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus> {
|
|
3134
|
+
const response = await this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1256
3135
|
return await response.value();
|
|
1257
3136
|
}
|
|
1258
3137
|
|
|
1259
3138
|
/**
|
|
1260
|
-
* Creates request options for
|
|
3139
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
1261
3140
|
*/
|
|
1262
|
-
async
|
|
3141
|
+
async putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
1263
3142
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
1264
3143
|
throw new runtime.RequiredError(
|
|
1265
3144
|
'vcenterCredentials',
|
|
1266
|
-
'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
3145
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().'
|
|
1267
3146
|
);
|
|
1268
3147
|
}
|
|
1269
3148
|
|
|
@@ -1274,7 +3153,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1274
3153
|
headerParameters['Content-Type'] = 'application/json';
|
|
1275
3154
|
|
|
1276
3155
|
|
|
1277
|
-
let urlPath = `/
|
|
3156
|
+
let urlPath = `/forecaster/credentials`;
|
|
1278
3157
|
|
|
1279
3158
|
return {
|
|
1280
3159
|
path: urlPath,
|
|
@@ -1286,20 +3165,22 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1286
3165
|
}
|
|
1287
3166
|
|
|
1288
3167
|
/**
|
|
1289
|
-
*
|
|
3168
|
+
* 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.
|
|
3169
|
+
* Verify vCenter credentials and permissions
|
|
1290
3170
|
*/
|
|
1291
|
-
async
|
|
1292
|
-
const requestOptions = await this.
|
|
3171
|
+
async putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3172
|
+
const requestOptions = await this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
1293
3173
|
const response = await this.request(requestOptions, initOverrides);
|
|
1294
3174
|
|
|
1295
3175
|
return new runtime.VoidApiResponse(response);
|
|
1296
3176
|
}
|
|
1297
3177
|
|
|
1298
3178
|
/**
|
|
1299
|
-
*
|
|
3179
|
+
* 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.
|
|
3180
|
+
* Verify vCenter credentials and permissions
|
|
1300
3181
|
*/
|
|
1301
|
-
async
|
|
1302
|
-
await this.
|
|
3182
|
+
async putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3183
|
+
await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1303
3184
|
}
|
|
1304
3185
|
|
|
1305
3186
|
/**
|
|
@@ -1506,6 +3387,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1506
3387
|
return await response.value();
|
|
1507
3388
|
}
|
|
1508
3389
|
|
|
3390
|
+
/**
|
|
3391
|
+
* Creates request options for startForecaster without sending the request
|
|
3392
|
+
*/
|
|
3393
|
+
async startForecasterRequestOpts(requestParameters: StartForecasterRequest): Promise<runtime.RequestOpts> {
|
|
3394
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
3395
|
+
throw new runtime.RequiredError(
|
|
3396
|
+
'forecasterStartRequest',
|
|
3397
|
+
'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().'
|
|
3398
|
+
);
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
const queryParameters: any = {};
|
|
3402
|
+
|
|
3403
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3404
|
+
|
|
3405
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
let urlPath = `/forecaster`;
|
|
3409
|
+
|
|
3410
|
+
return {
|
|
3411
|
+
path: urlPath,
|
|
3412
|
+
method: 'POST',
|
|
3413
|
+
headers: headerParameters,
|
|
3414
|
+
query: queryParameters,
|
|
3415
|
+
body: ForecasterStartRequestToJSON(requestParameters['forecasterStartRequest']),
|
|
3416
|
+
};
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
3421
|
+
* Start benchmark
|
|
3422
|
+
*/
|
|
3423
|
+
async startForecasterRaw(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
|
|
3424
|
+
const requestOptions = await this.startForecasterRequestOpts(requestParameters);
|
|
3425
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3426
|
+
|
|
3427
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
3432
|
+
* Start benchmark
|
|
3433
|
+
*/
|
|
3434
|
+
async startForecaster(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
|
|
3435
|
+
const response = await this.startForecasterRaw(requestParameters, initOverrides);
|
|
3436
|
+
return await response.value();
|
|
3437
|
+
}
|
|
3438
|
+
|
|
1509
3439
|
/**
|
|
1510
3440
|
* Creates request options for startInspection without sending the request
|
|
1511
3441
|
*/
|
|
@@ -1589,6 +3519,92 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1589
3519
|
await this.stopCollectorRaw(initOverrides);
|
|
1590
3520
|
}
|
|
1591
3521
|
|
|
3522
|
+
/**
|
|
3523
|
+
* Creates request options for stopForecaster without sending the request
|
|
3524
|
+
*/
|
|
3525
|
+
async stopForecasterRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3526
|
+
const queryParameters: any = {};
|
|
3527
|
+
|
|
3528
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
let urlPath = `/forecaster`;
|
|
3532
|
+
|
|
3533
|
+
return {
|
|
3534
|
+
path: urlPath,
|
|
3535
|
+
method: 'DELETE',
|
|
3536
|
+
headers: headerParameters,
|
|
3537
|
+
query: queryParameters,
|
|
3538
|
+
};
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
3543
|
+
* Cancel benchmark
|
|
3544
|
+
*/
|
|
3545
|
+
async stopForecasterRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
|
|
3546
|
+
const requestOptions = await this.stopForecasterRequestOpts();
|
|
3547
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3548
|
+
|
|
3549
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
3554
|
+
* Cancel benchmark
|
|
3555
|
+
*/
|
|
3556
|
+
async stopForecaster(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
|
|
3557
|
+
const response = await this.stopForecasterRaw(initOverrides);
|
|
3558
|
+
return await response.value();
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
/**
|
|
3562
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
3563
|
+
*/
|
|
3564
|
+
async stopForecasterPairRequestOpts(requestParameters: StopForecasterPairRequest): Promise<runtime.RequestOpts> {
|
|
3565
|
+
if (requestParameters['name'] == null) {
|
|
3566
|
+
throw new runtime.RequiredError(
|
|
3567
|
+
'name',
|
|
3568
|
+
'Required parameter "name" was null or undefined when calling stopForecasterPair().'
|
|
3569
|
+
);
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
const queryParameters: any = {};
|
|
3573
|
+
|
|
3574
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3575
|
+
|
|
3576
|
+
|
|
3577
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
3578
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
3579
|
+
|
|
3580
|
+
return {
|
|
3581
|
+
path: urlPath,
|
|
3582
|
+
method: 'DELETE',
|
|
3583
|
+
headers: headerParameters,
|
|
3584
|
+
query: queryParameters,
|
|
3585
|
+
};
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
3590
|
+
* Cancel a single pair
|
|
3591
|
+
*/
|
|
3592
|
+
async stopForecasterPairRaw(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StopForecasterPair202Response>> {
|
|
3593
|
+
const requestOptions = await this.stopForecasterPairRequestOpts(requestParameters);
|
|
3594
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3595
|
+
|
|
3596
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StopForecasterPair202ResponseFromJSON(jsonValue));
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
3601
|
+
* Cancel a single pair
|
|
3602
|
+
*/
|
|
3603
|
+
async stopForecasterPair(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StopForecasterPair202Response> {
|
|
3604
|
+
const response = await this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
3605
|
+
return await response.value();
|
|
3606
|
+
}
|
|
3607
|
+
|
|
1592
3608
|
/**
|
|
1593
3609
|
* Creates request options for stopInspection without sending the request
|
|
1594
3610
|
*/
|
|
@@ -1626,6 +3642,53 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1626
3642
|
return await response.value();
|
|
1627
3643
|
}
|
|
1628
3644
|
|
|
3645
|
+
/**
|
|
3646
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
3647
|
+
*/
|
|
3648
|
+
async triggerRightsizingCollectionRequestOpts(requestParameters: TriggerRightsizingCollectionRequest): Promise<runtime.RequestOpts> {
|
|
3649
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
3650
|
+
throw new runtime.RequiredError(
|
|
3651
|
+
'rightsizingCollectRequest',
|
|
3652
|
+
'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().'
|
|
3653
|
+
);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
const queryParameters: any = {};
|
|
3657
|
+
|
|
3658
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3659
|
+
|
|
3660
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
let urlPath = `/rightsizing`;
|
|
3664
|
+
|
|
3665
|
+
return {
|
|
3666
|
+
path: urlPath,
|
|
3667
|
+
method: 'POST',
|
|
3668
|
+
headers: headerParameters,
|
|
3669
|
+
query: queryParameters,
|
|
3670
|
+
body: RightsizingCollectRequestToJSON(requestParameters['rightsizingCollectRequest']),
|
|
3671
|
+
};
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
/**
|
|
3675
|
+
* Trigger rightsizing metrics collection
|
|
3676
|
+
*/
|
|
3677
|
+
async triggerRightsizingCollectionRaw(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportSummary>> {
|
|
3678
|
+
const requestOptions = await this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
3679
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3680
|
+
|
|
3681
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportSummaryFromJSON(jsonValue));
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
3685
|
+
* Trigger rightsizing metrics collection
|
|
3686
|
+
*/
|
|
3687
|
+
async triggerRightsizingCollection(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportSummary> {
|
|
3688
|
+
const response = await this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
3689
|
+
return await response.value();
|
|
3690
|
+
}
|
|
3691
|
+
|
|
1629
3692
|
/**
|
|
1630
3693
|
* Creates request options for updateGroup without sending the request
|
|
1631
3694
|
*/
|
|
@@ -1681,4 +3744,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1681
3744
|
return await response.value();
|
|
1682
3745
|
}
|
|
1683
3746
|
|
|
3747
|
+
/**
|
|
3748
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
3749
|
+
*/
|
|
3750
|
+
async updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts> {
|
|
3751
|
+
if (requestParameters['label'] == null) {
|
|
3752
|
+
throw new runtime.RequiredError(
|
|
3753
|
+
'label',
|
|
3754
|
+
'Required parameter "label" was null or undefined when calling updateLabelVMs().'
|
|
3755
|
+
);
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
3759
|
+
throw new runtime.RequiredError(
|
|
3760
|
+
'updateLabelVMsRequest',
|
|
3761
|
+
'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().'
|
|
3762
|
+
);
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
const queryParameters: any = {};
|
|
3766
|
+
|
|
3767
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3768
|
+
|
|
3769
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
let urlPath = `/vms/labels/{label}`;
|
|
3773
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
3774
|
+
|
|
3775
|
+
return {
|
|
3776
|
+
path: urlPath,
|
|
3777
|
+
method: 'PATCH',
|
|
3778
|
+
headers: headerParameters,
|
|
3779
|
+
query: queryParameters,
|
|
3780
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
3781
|
+
};
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3786
|
+
*/
|
|
3787
|
+
async updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3788
|
+
const requestOptions = await this.updateLabelVMsRequestOpts(requestParameters);
|
|
3789
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3790
|
+
|
|
3791
|
+
return new runtime.VoidApiResponse(response);
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
/**
|
|
3795
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3796
|
+
*/
|
|
3797
|
+
async updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3798
|
+
await this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Creates request options for updateVM without sending the request
|
|
3803
|
+
*/
|
|
3804
|
+
async updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts> {
|
|
3805
|
+
if (requestParameters['id'] == null) {
|
|
3806
|
+
throw new runtime.RequiredError(
|
|
3807
|
+
'id',
|
|
3808
|
+
'Required parameter "id" was null or undefined when calling updateVM().'
|
|
3809
|
+
);
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
3813
|
+
throw new runtime.RequiredError(
|
|
3814
|
+
'virtualMachineUpdateRequest',
|
|
3815
|
+
'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().'
|
|
3816
|
+
);
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
const queryParameters: any = {};
|
|
3820
|
+
|
|
3821
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3822
|
+
|
|
3823
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
let urlPath = `/vms/{id}`;
|
|
3827
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
3828
|
+
|
|
3829
|
+
return {
|
|
3830
|
+
path: urlPath,
|
|
3831
|
+
method: 'PATCH',
|
|
3832
|
+
headers: headerParameters,
|
|
3833
|
+
query: queryParameters,
|
|
3834
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
3835
|
+
};
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
/**
|
|
3839
|
+
* Update VM properties
|
|
3840
|
+
*/
|
|
3841
|
+
async updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3842
|
+
const requestOptions = await this.updateVMRequestOpts(requestParameters);
|
|
3843
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3844
|
+
|
|
3845
|
+
return new runtime.VoidApiResponse(response);
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
/**
|
|
3849
|
+
* Update VM properties
|
|
3850
|
+
*/
|
|
3851
|
+
async updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3852
|
+
await this.updateVMRaw(requestParameters, initOverrides);
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
3857
|
+
*/
|
|
3858
|
+
async validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
3859
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
3860
|
+
throw new runtime.RequiredError(
|
|
3861
|
+
'vcenterCredentials',
|
|
3862
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().'
|
|
3863
|
+
);
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3866
|
+
const queryParameters: any = {};
|
|
3867
|
+
|
|
3868
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3869
|
+
|
|
3870
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
let urlPath = `/inspector/credentials`;
|
|
3874
|
+
|
|
3875
|
+
return {
|
|
3876
|
+
path: urlPath,
|
|
3877
|
+
method: 'POST',
|
|
3878
|
+
headers: headerParameters,
|
|
3879
|
+
query: queryParameters,
|
|
3880
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
3881
|
+
};
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* Validate vCenter credentials for inspector
|
|
3886
|
+
*/
|
|
3887
|
+
async validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3888
|
+
const requestOptions = await this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
3889
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3890
|
+
|
|
3891
|
+
return new runtime.VoidApiResponse(response);
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* Validate vCenter credentials for inspector
|
|
3896
|
+
*/
|
|
3897
|
+
async validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3898
|
+
await this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
3899
|
+
}
|
|
3900
|
+
|
|
1684
3901
|
}
|