@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e4c04f972747
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 +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- 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/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/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 +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +26 -0
- package/dist/esm/models/index.js +26 -0
- 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/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/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 +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -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/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- 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/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/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 +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -93
- 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/CreateGroupRequest.ts +0 -8
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/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 +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,25 +26,42 @@ exports.DefaultApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
30
|
+
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
29
31
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
30
32
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
31
33
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
34
|
+
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
35
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
36
|
+
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
37
|
+
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
38
|
+
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
39
|
+
const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
|
|
32
40
|
const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
|
|
33
41
|
const Group_js_1 = require("../models/Group.js");
|
|
34
42
|
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
35
43
|
const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
36
44
|
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
45
|
+
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
46
|
+
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
47
|
+
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
48
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
37
49
|
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
38
50
|
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
39
51
|
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
40
52
|
const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
|
|
41
53
|
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
54
|
+
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
42
55
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
56
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
57
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
58
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
43
59
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
44
60
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
45
61
|
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
46
62
|
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
47
63
|
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
64
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
48
65
|
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
49
66
|
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
50
67
|
/**
|
|
@@ -91,6 +108,44 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
91
108
|
return yield response.value();
|
|
92
109
|
});
|
|
93
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
113
|
+
*/
|
|
114
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
if (requestParameters['id'] == null) {
|
|
117
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
118
|
+
}
|
|
119
|
+
const queryParameters = {};
|
|
120
|
+
const headerParameters = {};
|
|
121
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
122
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
123
|
+
return {
|
|
124
|
+
path: urlPath,
|
|
125
|
+
method: 'DELETE',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Delete a benchmark run
|
|
133
|
+
*/
|
|
134
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
137
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
+
return new runtime.VoidApiResponse(response);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Delete a benchmark run
|
|
143
|
+
*/
|
|
144
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
94
149
|
/**
|
|
95
150
|
* Creates request options for deleteGroup without sending the request
|
|
96
151
|
*/
|
|
@@ -129,6 +184,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
129
184
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
130
185
|
});
|
|
131
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
189
|
+
*/
|
|
190
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
if (requestParameters['label'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
194
|
+
}
|
|
195
|
+
const queryParameters = {};
|
|
196
|
+
const headerParameters = {};
|
|
197
|
+
let urlPath = `/vms/labels/{label}`;
|
|
198
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
199
|
+
return {
|
|
200
|
+
path: urlPath,
|
|
201
|
+
method: 'DELETE',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Delete label from all VMs
|
|
209
|
+
*/
|
|
210
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
213
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Delete label from all VMs
|
|
219
|
+
*/
|
|
220
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
223
|
+
return yield response.value();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
132
226
|
/**
|
|
133
227
|
* Creates request options for getAgentStatus without sending the request
|
|
134
228
|
*/
|
|
@@ -164,6 +258,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
164
258
|
return yield response.value();
|
|
165
259
|
});
|
|
166
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Creates request options for getApplications without sending the request
|
|
263
|
+
*/
|
|
264
|
+
getApplicationsRequestOpts() {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const queryParameters = {};
|
|
267
|
+
const headerParameters = {};
|
|
268
|
+
let urlPath = `/applications`;
|
|
269
|
+
return {
|
|
270
|
+
path: urlPath,
|
|
271
|
+
method: 'GET',
|
|
272
|
+
headers: headerParameters,
|
|
273
|
+
query: queryParameters,
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* List detected applications running on VMs
|
|
279
|
+
*/
|
|
280
|
+
getApplicationsRaw(initOverrides) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
283
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
284
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* List detected applications running on VMs
|
|
289
|
+
*/
|
|
290
|
+
getApplications(initOverrides) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
293
|
+
return yield response.value();
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
298
|
+
*/
|
|
299
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
if (requestParameters['clusterId'] == null) {
|
|
302
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
303
|
+
}
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
307
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
308
|
+
return {
|
|
309
|
+
path: urlPath,
|
|
310
|
+
method: 'GET',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Get latest cluster utilization by cluster ID
|
|
318
|
+
*/
|
|
319
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
322
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Get latest cluster utilization by cluster ID
|
|
328
|
+
*/
|
|
329
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
332
|
+
return yield response.value();
|
|
333
|
+
});
|
|
334
|
+
}
|
|
167
335
|
/**
|
|
168
336
|
* Creates request options for getCollectorStatus without sending the request
|
|
169
337
|
*/
|
|
@@ -199,6 +367,165 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
199
367
|
return yield response.value();
|
|
200
368
|
});
|
|
201
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
372
|
+
*/
|
|
373
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
const queryParameters = {};
|
|
376
|
+
const headerParameters = {};
|
|
377
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
378
|
+
let urlPath = `/forecaster/datastores`;
|
|
379
|
+
return {
|
|
380
|
+
path: urlPath,
|
|
381
|
+
method: 'POST',
|
|
382
|
+
headers: headerParameters,
|
|
383
|
+
query: queryParameters,
|
|
384
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
390
|
+
* List available datastores
|
|
391
|
+
*/
|
|
392
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
395
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
401
|
+
* List available datastores
|
|
402
|
+
*/
|
|
403
|
+
getForecasterDatastores() {
|
|
404
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
405
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
406
|
+
return yield response.value();
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
411
|
+
*/
|
|
412
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
const queryParameters = {};
|
|
415
|
+
if (requestParameters['pairName'] != null) {
|
|
416
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
417
|
+
}
|
|
418
|
+
const headerParameters = {};
|
|
419
|
+
let urlPath = `/forecaster/runs`;
|
|
420
|
+
return {
|
|
421
|
+
path: urlPath,
|
|
422
|
+
method: 'GET',
|
|
423
|
+
headers: headerParameters,
|
|
424
|
+
query: queryParameters,
|
|
425
|
+
};
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
430
|
+
* List benchmark runs
|
|
431
|
+
*/
|
|
432
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
435
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
436
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
441
|
+
* List benchmark runs
|
|
442
|
+
*/
|
|
443
|
+
getForecasterRuns() {
|
|
444
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
445
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
446
|
+
return yield response.value();
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Creates request options for getForecasterStats without sending the request
|
|
451
|
+
*/
|
|
452
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
if (requestParameters['pairName'] == null) {
|
|
455
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
456
|
+
}
|
|
457
|
+
const queryParameters = {};
|
|
458
|
+
if (requestParameters['pairName'] != null) {
|
|
459
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
460
|
+
}
|
|
461
|
+
const headerParameters = {};
|
|
462
|
+
let urlPath = `/forecaster/stats`;
|
|
463
|
+
return {
|
|
464
|
+
path: urlPath,
|
|
465
|
+
method: 'GET',
|
|
466
|
+
headers: headerParameters,
|
|
467
|
+
query: queryParameters,
|
|
468
|
+
};
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
473
|
+
* Get throughput statistics
|
|
474
|
+
*/
|
|
475
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
477
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
478
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
479
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
484
|
+
* Get throughput statistics
|
|
485
|
+
*/
|
|
486
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
488
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
489
|
+
return yield response.value();
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
494
|
+
*/
|
|
495
|
+
getForecasterStatusRequestOpts() {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
+
const queryParameters = {};
|
|
498
|
+
const headerParameters = {};
|
|
499
|
+
let urlPath = `/forecaster`;
|
|
500
|
+
return {
|
|
501
|
+
path: urlPath,
|
|
502
|
+
method: 'GET',
|
|
503
|
+
headers: headerParameters,
|
|
504
|
+
query: queryParameters,
|
|
505
|
+
};
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Returns current service state with per-pair progress details.
|
|
510
|
+
* Poll forecaster status
|
|
511
|
+
*/
|
|
512
|
+
getForecasterStatusRaw(initOverrides) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
515
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
516
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Returns current service state with per-pair progress details.
|
|
521
|
+
* Poll forecaster status
|
|
522
|
+
*/
|
|
523
|
+
getForecasterStatus(initOverrides) {
|
|
524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
526
|
+
return yield response.value();
|
|
527
|
+
});
|
|
528
|
+
}
|
|
202
529
|
/**
|
|
203
530
|
* Creates request options for getGroup without sending the request
|
|
204
531
|
*/
|
|
@@ -256,9 +583,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
256
583
|
if (requestParameters['includeVddk'] != null) {
|
|
257
584
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
258
585
|
}
|
|
259
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
260
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
261
|
-
}
|
|
262
586
|
const headerParameters = {};
|
|
263
587
|
let urlPath = `/inspector`;
|
|
264
588
|
return {
|
|
@@ -364,18 +688,59 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
364
688
|
return yield response.value();
|
|
365
689
|
});
|
|
366
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
693
|
+
* @deprecated
|
|
694
|
+
*/
|
|
695
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
+
const queryParameters = {};
|
|
698
|
+
if (requestParameters['byExpression'] != null) {
|
|
699
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
700
|
+
}
|
|
701
|
+
const headerParameters = {};
|
|
702
|
+
let urlPath = `/cluster_rightsizing`;
|
|
703
|
+
return {
|
|
704
|
+
path: urlPath,
|
|
705
|
+
method: 'GET',
|
|
706
|
+
headers: headerParameters,
|
|
707
|
+
query: queryParameters,
|
|
708
|
+
};
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
713
|
+
* @deprecated
|
|
714
|
+
*/
|
|
715
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
718
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
719
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
724
|
+
* @deprecated
|
|
725
|
+
*/
|
|
726
|
+
getLatestRightsizingClusters() {
|
|
727
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
728
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
729
|
+
return yield response.value();
|
|
730
|
+
});
|
|
731
|
+
}
|
|
367
732
|
/**
|
|
368
733
|
* Creates request options for getRightsizingReport without sending the request
|
|
369
734
|
*/
|
|
370
735
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
371
736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
-
if (requestParameters['
|
|
373
|
-
throw new runtime.RequiredError('
|
|
737
|
+
if (requestParameters['reportId'] == null) {
|
|
738
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
374
739
|
}
|
|
375
740
|
const queryParameters = {};
|
|
376
741
|
const headerParameters = {};
|
|
377
|
-
let urlPath = `/rightsizing/{
|
|
378
|
-
urlPath = urlPath.replace('{
|
|
742
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
743
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
379
744
|
return {
|
|
380
745
|
path: urlPath,
|
|
381
746
|
method: 'GET',
|
|
@@ -403,6 +768,94 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
403
768
|
return yield response.value();
|
|
404
769
|
});
|
|
405
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
773
|
+
*/
|
|
774
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
776
|
+
if (requestParameters['reportId'] == null) {
|
|
777
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
778
|
+
}
|
|
779
|
+
if (requestParameters['clusterId'] == null) {
|
|
780
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
781
|
+
}
|
|
782
|
+
const queryParameters = {};
|
|
783
|
+
const headerParameters = {};
|
|
784
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
785
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
786
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
787
|
+
return {
|
|
788
|
+
path: urlPath,
|
|
789
|
+
method: 'GET',
|
|
790
|
+
headers: headerParameters,
|
|
791
|
+
query: queryParameters,
|
|
792
|
+
};
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Get utilization for a specific cluster from a specific report
|
|
797
|
+
*/
|
|
798
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
801
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
802
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Get utilization for a specific cluster from a specific report
|
|
807
|
+
*/
|
|
808
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
811
|
+
return yield response.value();
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
816
|
+
* @deprecated
|
|
817
|
+
*/
|
|
818
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
820
|
+
if (requestParameters['reportId'] == null) {
|
|
821
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
822
|
+
}
|
|
823
|
+
const queryParameters = {};
|
|
824
|
+
if (requestParameters['byExpression'] != null) {
|
|
825
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
826
|
+
}
|
|
827
|
+
const headerParameters = {};
|
|
828
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
829
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
830
|
+
return {
|
|
831
|
+
path: urlPath,
|
|
832
|
+
method: 'GET',
|
|
833
|
+
headers: headerParameters,
|
|
834
|
+
query: queryParameters,
|
|
835
|
+
};
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
840
|
+
* @deprecated
|
|
841
|
+
*/
|
|
842
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
845
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
846
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
851
|
+
* @deprecated
|
|
852
|
+
*/
|
|
853
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
855
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
856
|
+
return yield response.value();
|
|
857
|
+
});
|
|
858
|
+
}
|
|
406
859
|
/**
|
|
407
860
|
* Creates request options for getVM without sending the request
|
|
408
861
|
*/
|
|
@@ -424,21 +877,56 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
424
877
|
});
|
|
425
878
|
}
|
|
426
879
|
/**
|
|
427
|
-
* Get details about a vm
|
|
880
|
+
* Get details about a vm
|
|
881
|
+
*/
|
|
882
|
+
getVMRaw(requestParameters, initOverrides) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
|
+
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
885
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
886
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Get details about a vm
|
|
891
|
+
*/
|
|
892
|
+
getVM(requestParameters, initOverrides) {
|
|
893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
const response = yield this.getVMRaw(requestParameters, initOverrides);
|
|
895
|
+
return yield response.value();
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Creates request options for getVMLabels without sending the request
|
|
900
|
+
*/
|
|
901
|
+
getVMLabelsRequestOpts() {
|
|
902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
903
|
+
const queryParameters = {};
|
|
904
|
+
const headerParameters = {};
|
|
905
|
+
let urlPath = `/vms/labels`;
|
|
906
|
+
return {
|
|
907
|
+
path: urlPath,
|
|
908
|
+
method: 'GET',
|
|
909
|
+
headers: headerParameters,
|
|
910
|
+
query: queryParameters,
|
|
911
|
+
};
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Get all distinct labels in use across VMs
|
|
428
916
|
*/
|
|
429
|
-
|
|
917
|
+
getVMLabelsRaw(initOverrides) {
|
|
430
918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
-
const requestOptions = yield this.
|
|
919
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
432
920
|
const response = yield this.request(requestOptions, initOverrides);
|
|
433
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
921
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
434
922
|
});
|
|
435
923
|
}
|
|
436
924
|
/**
|
|
437
|
-
* Get
|
|
925
|
+
* Get all distinct labels in use across VMs
|
|
438
926
|
*/
|
|
439
|
-
|
|
927
|
+
getVMLabels(initOverrides) {
|
|
440
928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
-
const response = yield this.
|
|
929
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
442
930
|
return yield response.value();
|
|
443
931
|
});
|
|
444
932
|
}
|
|
@@ -528,6 +1016,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
528
1016
|
return yield response.value();
|
|
529
1017
|
});
|
|
530
1018
|
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1021
|
+
*/
|
|
1022
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1024
|
+
const queryParameters = {};
|
|
1025
|
+
const headerParameters = {};
|
|
1026
|
+
let urlPath = `/vms/filter-options`;
|
|
1027
|
+
return {
|
|
1028
|
+
path: urlPath,
|
|
1029
|
+
method: 'GET',
|
|
1030
|
+
headers: headerParameters,
|
|
1031
|
+
query: queryParameters,
|
|
1032
|
+
};
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Get distinct filter option values for VMs
|
|
1037
|
+
*/
|
|
1038
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1041
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1042
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Get distinct filter option values for VMs
|
|
1047
|
+
*/
|
|
1048
|
+
getVMsFilterOptions(initOverrides) {
|
|
1049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1051
|
+
return yield response.value();
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
531
1054
|
/**
|
|
532
1055
|
* Creates request options for getVersion without sending the request
|
|
533
1056
|
*/
|
|
@@ -607,6 +1130,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
607
1130
|
return yield response.value();
|
|
608
1131
|
});
|
|
609
1132
|
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1135
|
+
*/
|
|
1136
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1138
|
+
if (requestParameters['reportId'] == null) {
|
|
1139
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1140
|
+
}
|
|
1141
|
+
const queryParameters = {};
|
|
1142
|
+
if (requestParameters['byExpression'] != null) {
|
|
1143
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1144
|
+
}
|
|
1145
|
+
const headerParameters = {};
|
|
1146
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1147
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1148
|
+
return {
|
|
1149
|
+
path: urlPath,
|
|
1150
|
+
method: 'GET',
|
|
1151
|
+
headers: headerParameters,
|
|
1152
|
+
query: queryParameters,
|
|
1153
|
+
};
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1158
|
+
*/
|
|
1159
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1161
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1162
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1168
|
+
*/
|
|
1169
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1171
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1172
|
+
return yield response.value();
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
610
1175
|
/**
|
|
611
1176
|
* Creates request options for listRightsizingReports without sending the request
|
|
612
1177
|
*/
|
|
@@ -643,17 +1208,59 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
643
1208
|
});
|
|
644
1209
|
}
|
|
645
1210
|
/**
|
|
646
|
-
* Creates request options for
|
|
1211
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1212
|
+
*/
|
|
1213
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
1214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1215
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
1216
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
1217
|
+
}
|
|
1218
|
+
const queryParameters = {};
|
|
1219
|
+
const headerParameters = {};
|
|
1220
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1221
|
+
let urlPath = `/forecaster/capabilities`;
|
|
1222
|
+
return {
|
|
1223
|
+
path: urlPath,
|
|
1224
|
+
method: 'POST',
|
|
1225
|
+
headers: headerParameters,
|
|
1226
|
+
query: queryParameters,
|
|
1227
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
1228
|
+
};
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* 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.
|
|
1233
|
+
* Compute pair capabilities
|
|
1234
|
+
*/
|
|
1235
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
1236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1237
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
1238
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1239
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* 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.
|
|
1244
|
+
* Compute pair capabilities
|
|
1245
|
+
*/
|
|
1246
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
1247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1248
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
1249
|
+
return yield response.value();
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
647
1254
|
*/
|
|
648
|
-
|
|
1255
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
649
1256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
650
1257
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
651
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1258
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
652
1259
|
}
|
|
653
1260
|
const queryParameters = {};
|
|
654
1261
|
const headerParameters = {};
|
|
655
1262
|
headerParameters['Content-Type'] = 'application/json';
|
|
656
|
-
let urlPath = `/
|
|
1263
|
+
let urlPath = `/forecaster/credentials`;
|
|
657
1264
|
return {
|
|
658
1265
|
path: urlPath,
|
|
659
1266
|
method: 'PUT',
|
|
@@ -664,21 +1271,23 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
664
1271
|
});
|
|
665
1272
|
}
|
|
666
1273
|
/**
|
|
667
|
-
*
|
|
1274
|
+
* 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.
|
|
1275
|
+
* Verify vCenter credentials and permissions
|
|
668
1276
|
*/
|
|
669
|
-
|
|
1277
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
670
1278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
671
|
-
const requestOptions = yield this.
|
|
1279
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
672
1280
|
const response = yield this.request(requestOptions, initOverrides);
|
|
673
1281
|
return new runtime.VoidApiResponse(response);
|
|
674
1282
|
});
|
|
675
1283
|
}
|
|
676
1284
|
/**
|
|
677
|
-
*
|
|
1285
|
+
* 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.
|
|
1286
|
+
* Verify vCenter credentials and permissions
|
|
678
1287
|
*/
|
|
679
|
-
|
|
1288
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
680
1289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
681
|
-
yield this.
|
|
1290
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
682
1291
|
});
|
|
683
1292
|
}
|
|
684
1293
|
/**
|
|
@@ -857,6 +1466,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
857
1466
|
return yield response.value();
|
|
858
1467
|
});
|
|
859
1468
|
}
|
|
1469
|
+
/**
|
|
1470
|
+
* Creates request options for startForecaster without sending the request
|
|
1471
|
+
*/
|
|
1472
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1474
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1475
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1476
|
+
}
|
|
1477
|
+
const queryParameters = {};
|
|
1478
|
+
const headerParameters = {};
|
|
1479
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1480
|
+
let urlPath = `/forecaster`;
|
|
1481
|
+
return {
|
|
1482
|
+
path: urlPath,
|
|
1483
|
+
method: 'POST',
|
|
1484
|
+
headers: headerParameters,
|
|
1485
|
+
query: queryParameters,
|
|
1486
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1487
|
+
};
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1492
|
+
* Start benchmark
|
|
1493
|
+
*/
|
|
1494
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1497
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1498
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1503
|
+
* Start benchmark
|
|
1504
|
+
*/
|
|
1505
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1507
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1508
|
+
return yield response.value();
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
860
1511
|
/**
|
|
861
1512
|
* Creates request options for startInspection without sending the request
|
|
862
1513
|
*/
|
|
@@ -931,6 +1582,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
931
1582
|
yield this.stopCollectorRaw(initOverrides);
|
|
932
1583
|
});
|
|
933
1584
|
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Creates request options for stopForecaster without sending the request
|
|
1587
|
+
*/
|
|
1588
|
+
stopForecasterRequestOpts() {
|
|
1589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1590
|
+
const queryParameters = {};
|
|
1591
|
+
const headerParameters = {};
|
|
1592
|
+
let urlPath = `/forecaster`;
|
|
1593
|
+
return {
|
|
1594
|
+
path: urlPath,
|
|
1595
|
+
method: 'DELETE',
|
|
1596
|
+
headers: headerParameters,
|
|
1597
|
+
query: queryParameters,
|
|
1598
|
+
};
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
/**
|
|
1602
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1603
|
+
* Cancel benchmark
|
|
1604
|
+
*/
|
|
1605
|
+
stopForecasterRaw(initOverrides) {
|
|
1606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1607
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1608
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1609
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1614
|
+
* Cancel benchmark
|
|
1615
|
+
*/
|
|
1616
|
+
stopForecaster(initOverrides) {
|
|
1617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1618
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1619
|
+
return yield response.value();
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1624
|
+
*/
|
|
1625
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1627
|
+
if (requestParameters['name'] == null) {
|
|
1628
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1629
|
+
}
|
|
1630
|
+
const queryParameters = {};
|
|
1631
|
+
const headerParameters = {};
|
|
1632
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1633
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1634
|
+
return {
|
|
1635
|
+
path: urlPath,
|
|
1636
|
+
method: 'DELETE',
|
|
1637
|
+
headers: headerParameters,
|
|
1638
|
+
query: queryParameters,
|
|
1639
|
+
};
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1644
|
+
* Cancel a single pair
|
|
1645
|
+
*/
|
|
1646
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1648
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1649
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1650
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1655
|
+
* Cancel a single pair
|
|
1656
|
+
*/
|
|
1657
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1659
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1660
|
+
return yield response.value();
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
934
1663
|
/**
|
|
935
1664
|
* Creates request options for stopInspection without sending the request
|
|
936
1665
|
*/
|
|
@@ -1050,5 +1779,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1050
1779
|
return yield response.value();
|
|
1051
1780
|
});
|
|
1052
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1784
|
+
*/
|
|
1785
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1787
|
+
if (requestParameters['label'] == null) {
|
|
1788
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1789
|
+
}
|
|
1790
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1791
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1792
|
+
}
|
|
1793
|
+
const queryParameters = {};
|
|
1794
|
+
const headerParameters = {};
|
|
1795
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1796
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1797
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1798
|
+
return {
|
|
1799
|
+
path: urlPath,
|
|
1800
|
+
method: 'PATCH',
|
|
1801
|
+
headers: headerParameters,
|
|
1802
|
+
query: queryParameters,
|
|
1803
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1804
|
+
};
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1809
|
+
*/
|
|
1810
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1811
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1812
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1813
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1814
|
+
return new runtime.VoidApiResponse(response);
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1819
|
+
*/
|
|
1820
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1822
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Creates request options for updateVM without sending the request
|
|
1827
|
+
*/
|
|
1828
|
+
updateVMRequestOpts(requestParameters) {
|
|
1829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1830
|
+
if (requestParameters['id'] == null) {
|
|
1831
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1832
|
+
}
|
|
1833
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1834
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1835
|
+
}
|
|
1836
|
+
const queryParameters = {};
|
|
1837
|
+
const headerParameters = {};
|
|
1838
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1839
|
+
let urlPath = `/vms/{id}`;
|
|
1840
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1841
|
+
return {
|
|
1842
|
+
path: urlPath,
|
|
1843
|
+
method: 'PATCH',
|
|
1844
|
+
headers: headerParameters,
|
|
1845
|
+
query: queryParameters,
|
|
1846
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1847
|
+
};
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Update VM properties
|
|
1852
|
+
*/
|
|
1853
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1855
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1856
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1857
|
+
return new runtime.VoidApiResponse(response);
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Update VM properties
|
|
1862
|
+
*/
|
|
1863
|
+
updateVM(requestParameters, initOverrides) {
|
|
1864
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1865
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1870
|
+
*/
|
|
1871
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1873
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1874
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1875
|
+
}
|
|
1876
|
+
const queryParameters = {};
|
|
1877
|
+
const headerParameters = {};
|
|
1878
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1879
|
+
let urlPath = `/inspector/credentials`;
|
|
1880
|
+
return {
|
|
1881
|
+
path: urlPath,
|
|
1882
|
+
method: 'POST',
|
|
1883
|
+
headers: headerParameters,
|
|
1884
|
+
query: queryParameters,
|
|
1885
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1886
|
+
};
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Validate vCenter credentials for inspector
|
|
1891
|
+
*/
|
|
1892
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
1893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1894
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
1895
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1896
|
+
return new runtime.VoidApiResponse(response);
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Validate vCenter credentials for inspector
|
|
1901
|
+
*/
|
|
1902
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
1903
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1904
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1053
1907
|
}
|
|
1054
1908
|
exports.DefaultApi = DefaultApi;
|