@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-bb9a2d859358
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 +16 -0
- package/README.md +20 -4
- package/dist/apis/DefaultApi.d.ts +338 -41
- package/dist/apis/DefaultApi.js +374 -46
- package/dist/esm/apis/DefaultApi.d.ts +338 -41
- package/dist/esm/apis/DefaultApi.js +374 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- 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/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -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/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- 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/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 +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -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 +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -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 +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- 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/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -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/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- 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/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 +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +624 -86
- package/docs/DeleteLabelGloballyResponse.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/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- 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/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +713 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -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/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- 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/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +8 -0
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -31,6 +31,7 @@ const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js")
|
|
|
31
31
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
32
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
33
33
|
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
34
35
|
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
35
36
|
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
36
37
|
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
@@ -43,6 +44,7 @@ const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
|
43
44
|
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
44
45
|
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
45
46
|
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
47
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
46
48
|
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
47
49
|
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
48
50
|
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
@@ -50,11 +52,15 @@ const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummar
|
|
|
50
52
|
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
51
53
|
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
52
54
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
55
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
56
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
57
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
53
58
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
54
59
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
55
60
|
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
56
61
|
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
57
62
|
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
63
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
58
64
|
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
59
65
|
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
60
66
|
/**
|
|
@@ -177,6 +183,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
177
183
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
178
184
|
});
|
|
179
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
188
|
+
*/
|
|
189
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
if (requestParameters['label'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
193
|
+
}
|
|
194
|
+
const queryParameters = {};
|
|
195
|
+
const headerParameters = {};
|
|
196
|
+
let urlPath = `/vms/labels/{label}`;
|
|
197
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
198
|
+
return {
|
|
199
|
+
path: urlPath,
|
|
200
|
+
method: 'DELETE',
|
|
201
|
+
headers: headerParameters,
|
|
202
|
+
query: queryParameters,
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Delete label from all VMs
|
|
208
|
+
*/
|
|
209
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
212
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Delete label from all VMs
|
|
218
|
+
*/
|
|
219
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
222
|
+
return yield response.value();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
180
225
|
/**
|
|
181
226
|
* Creates request options for getAgentStatus without sending the request
|
|
182
227
|
*/
|
|
@@ -212,6 +257,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
212
257
|
return yield response.value();
|
|
213
258
|
});
|
|
214
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
262
|
+
*/
|
|
263
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
if (requestParameters['clusterId'] == null) {
|
|
266
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
267
|
+
}
|
|
268
|
+
const queryParameters = {};
|
|
269
|
+
const headerParameters = {};
|
|
270
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
271
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
272
|
+
return {
|
|
273
|
+
path: urlPath,
|
|
274
|
+
method: 'GET',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Get latest cluster utilization by cluster ID
|
|
282
|
+
*/
|
|
283
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
286
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Get latest cluster utilization by cluster ID
|
|
292
|
+
*/
|
|
293
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
296
|
+
return yield response.value();
|
|
297
|
+
});
|
|
298
|
+
}
|
|
215
299
|
/**
|
|
216
300
|
* Creates request options for getCollectorStatus without sending the request
|
|
217
301
|
*/
|
|
@@ -463,9 +547,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
463
547
|
if (requestParameters['includeVddk'] != null) {
|
|
464
548
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
465
549
|
}
|
|
466
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
467
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
468
|
-
}
|
|
469
550
|
const headerParameters = {};
|
|
470
551
|
let urlPath = `/inspector`;
|
|
471
552
|
return {
|
|
@@ -573,6 +654,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
573
654
|
}
|
|
574
655
|
/**
|
|
575
656
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
657
|
+
* @deprecated
|
|
576
658
|
*/
|
|
577
659
|
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
578
660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -592,6 +674,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
592
674
|
}
|
|
593
675
|
/**
|
|
594
676
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
677
|
+
* @deprecated
|
|
595
678
|
*/
|
|
596
679
|
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
597
680
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -602,6 +685,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
602
685
|
}
|
|
603
686
|
/**
|
|
604
687
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
688
|
+
* @deprecated
|
|
605
689
|
*/
|
|
606
690
|
getLatestRightsizingClusters() {
|
|
607
691
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -614,13 +698,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
614
698
|
*/
|
|
615
699
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
616
700
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
-
if (requestParameters['
|
|
618
|
-
throw new runtime.RequiredError('
|
|
701
|
+
if (requestParameters['reportId'] == null) {
|
|
702
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
619
703
|
}
|
|
620
704
|
const queryParameters = {};
|
|
621
705
|
const headerParameters = {};
|
|
622
|
-
let urlPath = `/rightsizing/{
|
|
623
|
-
urlPath = urlPath.replace('{
|
|
706
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
707
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
624
708
|
return {
|
|
625
709
|
path: urlPath,
|
|
626
710
|
method: 'GET',
|
|
@@ -648,8 +732,52 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
648
732
|
return yield response.value();
|
|
649
733
|
});
|
|
650
734
|
}
|
|
735
|
+
/**
|
|
736
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
737
|
+
*/
|
|
738
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
if (requestParameters['reportId'] == null) {
|
|
741
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
742
|
+
}
|
|
743
|
+
if (requestParameters['clusterId'] == null) {
|
|
744
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
745
|
+
}
|
|
746
|
+
const queryParameters = {};
|
|
747
|
+
const headerParameters = {};
|
|
748
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
749
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
750
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
751
|
+
return {
|
|
752
|
+
path: urlPath,
|
|
753
|
+
method: 'GET',
|
|
754
|
+
headers: headerParameters,
|
|
755
|
+
query: queryParameters,
|
|
756
|
+
};
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Get utilization for a specific cluster from a specific report
|
|
761
|
+
*/
|
|
762
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
764
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
765
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Get utilization for a specific cluster from a specific report
|
|
771
|
+
*/
|
|
772
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
773
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
774
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
775
|
+
return yield response.value();
|
|
776
|
+
});
|
|
777
|
+
}
|
|
651
778
|
/**
|
|
652
779
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
780
|
+
* @deprecated
|
|
653
781
|
*/
|
|
654
782
|
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
655
783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -673,6 +801,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
673
801
|
}
|
|
674
802
|
/**
|
|
675
803
|
* Get cluster-level utilization aggregates for a specific report
|
|
804
|
+
* @deprecated
|
|
676
805
|
*/
|
|
677
806
|
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
678
807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -683,6 +812,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
683
812
|
}
|
|
684
813
|
/**
|
|
685
814
|
* Get cluster-level utilization aggregates for a specific report
|
|
815
|
+
* @deprecated
|
|
686
816
|
*/
|
|
687
817
|
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
688
818
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -729,6 +859,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
729
859
|
return yield response.value();
|
|
730
860
|
});
|
|
731
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* Creates request options for getVMLabels without sending the request
|
|
864
|
+
*/
|
|
865
|
+
getVMLabelsRequestOpts() {
|
|
866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
867
|
+
const queryParameters = {};
|
|
868
|
+
const headerParameters = {};
|
|
869
|
+
let urlPath = `/vms/labels`;
|
|
870
|
+
return {
|
|
871
|
+
path: urlPath,
|
|
872
|
+
method: 'GET',
|
|
873
|
+
headers: headerParameters,
|
|
874
|
+
query: queryParameters,
|
|
875
|
+
};
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Get all distinct labels in use across VMs
|
|
880
|
+
*/
|
|
881
|
+
getVMLabelsRaw(initOverrides) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
884
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
885
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Get all distinct labels in use across VMs
|
|
890
|
+
*/
|
|
891
|
+
getVMLabels(initOverrides) {
|
|
892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
893
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
894
|
+
return yield response.value();
|
|
895
|
+
});
|
|
896
|
+
}
|
|
732
897
|
/**
|
|
733
898
|
* Creates request options for getVMUtilization without sending the request
|
|
734
899
|
*/
|
|
@@ -815,6 +980,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
815
980
|
return yield response.value();
|
|
816
981
|
});
|
|
817
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
985
|
+
*/
|
|
986
|
+
getVMsFilterOptionsRequestOpts() {
|
|
987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
988
|
+
const queryParameters = {};
|
|
989
|
+
const headerParameters = {};
|
|
990
|
+
let urlPath = `/vms/filter-options`;
|
|
991
|
+
return {
|
|
992
|
+
path: urlPath,
|
|
993
|
+
method: 'GET',
|
|
994
|
+
headers: headerParameters,
|
|
995
|
+
query: queryParameters,
|
|
996
|
+
};
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Get distinct filter option values for VMs
|
|
1001
|
+
*/
|
|
1002
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1003
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1004
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1005
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1006
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Get distinct filter option values for VMs
|
|
1011
|
+
*/
|
|
1012
|
+
getVMsFilterOptions(initOverrides) {
|
|
1013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1014
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1015
|
+
return yield response.value();
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
818
1018
|
/**
|
|
819
1019
|
* Creates request options for getVersion without sending the request
|
|
820
1020
|
*/
|
|
@@ -894,6 +1094,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
894
1094
|
return yield response.value();
|
|
895
1095
|
});
|
|
896
1096
|
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1099
|
+
*/
|
|
1100
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1102
|
+
if (requestParameters['reportId'] == null) {
|
|
1103
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1104
|
+
}
|
|
1105
|
+
const queryParameters = {};
|
|
1106
|
+
if (requestParameters['byExpression'] != null) {
|
|
1107
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1108
|
+
}
|
|
1109
|
+
const headerParameters = {};
|
|
1110
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1111
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1112
|
+
return {
|
|
1113
|
+
path: urlPath,
|
|
1114
|
+
method: 'GET',
|
|
1115
|
+
headers: headerParameters,
|
|
1116
|
+
query: queryParameters,
|
|
1117
|
+
};
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1122
|
+
*/
|
|
1123
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1125
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1126
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1132
|
+
*/
|
|
1133
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1135
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1136
|
+
return yield response.value();
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
897
1139
|
/**
|
|
898
1140
|
* Creates request options for listRightsizingReports without sending the request
|
|
899
1141
|
*/
|
|
@@ -1012,45 +1254,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1012
1254
|
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1013
1255
|
});
|
|
1014
1256
|
}
|
|
1015
|
-
/**
|
|
1016
|
-
* Creates request options for putInspectorCredentials without sending the request
|
|
1017
|
-
*/
|
|
1018
|
-
putInspectorCredentialsRequestOpts(requestParameters) {
|
|
1019
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1020
|
-
if (requestParameters['vcenterCredentials'] == null) {
|
|
1021
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
|
|
1022
|
-
}
|
|
1023
|
-
const queryParameters = {};
|
|
1024
|
-
const headerParameters = {};
|
|
1025
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1026
|
-
let urlPath = `/inspector/credentials`;
|
|
1027
|
-
return {
|
|
1028
|
-
path: urlPath,
|
|
1029
|
-
method: 'PUT',
|
|
1030
|
-
headers: headerParameters,
|
|
1031
|
-
query: queryParameters,
|
|
1032
|
-
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1033
|
-
};
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
/**
|
|
1037
|
-
* Set or replace inspector credentials
|
|
1038
|
-
*/
|
|
1039
|
-
putInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
1040
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
-
const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
1042
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
1043
|
-
return new runtime.VoidApiResponse(response);
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
/**
|
|
1047
|
-
* Set or replace inspector credentials
|
|
1048
|
-
*/
|
|
1049
|
-
putInspectorCredentials(requestParameters, initOverrides) {
|
|
1050
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1051
|
-
yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
1257
|
/**
|
|
1055
1258
|
* Creates request options for putInspectorVddk without sending the request
|
|
1056
1259
|
*/
|
|
@@ -1540,5 +1743,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1540
1743
|
return yield response.value();
|
|
1541
1744
|
});
|
|
1542
1745
|
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1748
|
+
*/
|
|
1749
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1751
|
+
if (requestParameters['label'] == null) {
|
|
1752
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1753
|
+
}
|
|
1754
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1755
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1756
|
+
}
|
|
1757
|
+
const queryParameters = {};
|
|
1758
|
+
const headerParameters = {};
|
|
1759
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1760
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1761
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1762
|
+
return {
|
|
1763
|
+
path: urlPath,
|
|
1764
|
+
method: 'PATCH',
|
|
1765
|
+
headers: headerParameters,
|
|
1766
|
+
query: queryParameters,
|
|
1767
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1768
|
+
};
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1773
|
+
*/
|
|
1774
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1776
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1777
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1778
|
+
return new runtime.VoidApiResponse(response);
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1783
|
+
*/
|
|
1784
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1785
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1786
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Creates request options for updateVM without sending the request
|
|
1791
|
+
*/
|
|
1792
|
+
updateVMRequestOpts(requestParameters) {
|
|
1793
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1794
|
+
if (requestParameters['id'] == null) {
|
|
1795
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1796
|
+
}
|
|
1797
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1798
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1799
|
+
}
|
|
1800
|
+
const queryParameters = {};
|
|
1801
|
+
const headerParameters = {};
|
|
1802
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1803
|
+
let urlPath = `/vms/{id}`;
|
|
1804
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1805
|
+
return {
|
|
1806
|
+
path: urlPath,
|
|
1807
|
+
method: 'PATCH',
|
|
1808
|
+
headers: headerParameters,
|
|
1809
|
+
query: queryParameters,
|
|
1810
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1811
|
+
};
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Update VM properties
|
|
1816
|
+
*/
|
|
1817
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1819
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1820
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1821
|
+
return new runtime.VoidApiResponse(response);
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Update VM properties
|
|
1826
|
+
*/
|
|
1827
|
+
updateVM(requestParameters, initOverrides) {
|
|
1828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1829
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1834
|
+
*/
|
|
1835
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1837
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1838
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1839
|
+
}
|
|
1840
|
+
const queryParameters = {};
|
|
1841
|
+
const headerParameters = {};
|
|
1842
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1843
|
+
let urlPath = `/inspector/credentials`;
|
|
1844
|
+
return {
|
|
1845
|
+
path: urlPath,
|
|
1846
|
+
method: 'POST',
|
|
1847
|
+
headers: headerParameters,
|
|
1848
|
+
query: queryParameters,
|
|
1849
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1850
|
+
};
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Validate vCenter credentials for inspector
|
|
1855
|
+
*/
|
|
1856
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
1857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1858
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
1859
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1860
|
+
return new runtime.VoidApiResponse(response);
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Validate vCenter credentials for inspector
|
|
1865
|
+
*/
|
|
1866
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
1867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1868
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1543
1871
|
}
|
|
1544
1872
|
exports.DefaultApi = DefaultApi;
|