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