@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-a3d6bdc8bce2
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 +19 -4
- package/dist/apis/DefaultApi.d.ts +303 -41
- package/dist/apis/DefaultApi.js +335 -46
- package/dist/esm/apis/DefaultApi.d.ts +303 -41
- package/dist/esm/apis/DefaultApi.js +335 -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 +18 -6
- package/dist/esm/models/VirtualMachine.js +14 -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 +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 +18 -6
- package/dist/models/VirtualMachine.js +14 -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 +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 +529 -60
- 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 +14 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +641 -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 +32 -16
- package/src/models/VirtualMachineDetail.ts +31 -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
|
*/
|
|
@@ -463,9 +508,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
463
508
|
if (requestParameters['includeVddk'] != null) {
|
|
464
509
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
465
510
|
}
|
|
466
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
467
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
468
|
-
}
|
|
469
511
|
const headerParameters = {};
|
|
470
512
|
let urlPath = `/inspector`;
|
|
471
513
|
return {
|
|
@@ -573,6 +615,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
573
615
|
}
|
|
574
616
|
/**
|
|
575
617
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
618
|
+
* @deprecated
|
|
576
619
|
*/
|
|
577
620
|
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
578
621
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -592,6 +635,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
592
635
|
}
|
|
593
636
|
/**
|
|
594
637
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
638
|
+
* @deprecated
|
|
595
639
|
*/
|
|
596
640
|
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
597
641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -602,6 +646,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
602
646
|
}
|
|
603
647
|
/**
|
|
604
648
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
649
|
+
* @deprecated
|
|
605
650
|
*/
|
|
606
651
|
getLatestRightsizingClusters() {
|
|
607
652
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -614,13 +659,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
614
659
|
*/
|
|
615
660
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
616
661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
-
if (requestParameters['
|
|
618
|
-
throw new runtime.RequiredError('
|
|
662
|
+
if (requestParameters['reportId'] == null) {
|
|
663
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
619
664
|
}
|
|
620
665
|
const queryParameters = {};
|
|
621
666
|
const headerParameters = {};
|
|
622
|
-
let urlPath = `/rightsizing/{
|
|
623
|
-
urlPath = urlPath.replace('{
|
|
667
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
668
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
624
669
|
return {
|
|
625
670
|
path: urlPath,
|
|
626
671
|
method: 'GET',
|
|
@@ -648,8 +693,52 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
648
693
|
return yield response.value();
|
|
649
694
|
});
|
|
650
695
|
}
|
|
696
|
+
/**
|
|
697
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
698
|
+
*/
|
|
699
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
701
|
+
if (requestParameters['reportId'] == null) {
|
|
702
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
703
|
+
}
|
|
704
|
+
if (requestParameters['clusterId'] == null) {
|
|
705
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
706
|
+
}
|
|
707
|
+
const queryParameters = {};
|
|
708
|
+
const headerParameters = {};
|
|
709
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
710
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
711
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
712
|
+
return {
|
|
713
|
+
path: urlPath,
|
|
714
|
+
method: 'GET',
|
|
715
|
+
headers: headerParameters,
|
|
716
|
+
query: queryParameters,
|
|
717
|
+
};
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Get utilization for a specific cluster from a specific report
|
|
722
|
+
*/
|
|
723
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
725
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
726
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
727
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Get utilization for a specific cluster from a specific report
|
|
732
|
+
*/
|
|
733
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
735
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
736
|
+
return yield response.value();
|
|
737
|
+
});
|
|
738
|
+
}
|
|
651
739
|
/**
|
|
652
740
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
741
|
+
* @deprecated
|
|
653
742
|
*/
|
|
654
743
|
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
655
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -673,6 +762,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
673
762
|
}
|
|
674
763
|
/**
|
|
675
764
|
* Get cluster-level utilization aggregates for a specific report
|
|
765
|
+
* @deprecated
|
|
676
766
|
*/
|
|
677
767
|
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
678
768
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -683,6 +773,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
683
773
|
}
|
|
684
774
|
/**
|
|
685
775
|
* Get cluster-level utilization aggregates for a specific report
|
|
776
|
+
* @deprecated
|
|
686
777
|
*/
|
|
687
778
|
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
688
779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -729,6 +820,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
729
820
|
return yield response.value();
|
|
730
821
|
});
|
|
731
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* Creates request options for getVMLabels without sending the request
|
|
825
|
+
*/
|
|
826
|
+
getVMLabelsRequestOpts() {
|
|
827
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
828
|
+
const queryParameters = {};
|
|
829
|
+
const headerParameters = {};
|
|
830
|
+
let urlPath = `/vms/labels`;
|
|
831
|
+
return {
|
|
832
|
+
path: urlPath,
|
|
833
|
+
method: 'GET',
|
|
834
|
+
headers: headerParameters,
|
|
835
|
+
query: queryParameters,
|
|
836
|
+
};
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Get all distinct labels in use across VMs
|
|
841
|
+
*/
|
|
842
|
+
getVMLabelsRaw(initOverrides) {
|
|
843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
845
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
846
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Get all distinct labels in use across VMs
|
|
851
|
+
*/
|
|
852
|
+
getVMLabels(initOverrides) {
|
|
853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
854
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
855
|
+
return yield response.value();
|
|
856
|
+
});
|
|
857
|
+
}
|
|
732
858
|
/**
|
|
733
859
|
* Creates request options for getVMUtilization without sending the request
|
|
734
860
|
*/
|
|
@@ -815,6 +941,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
815
941
|
return yield response.value();
|
|
816
942
|
});
|
|
817
943
|
}
|
|
944
|
+
/**
|
|
945
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
946
|
+
*/
|
|
947
|
+
getVMsFilterOptionsRequestOpts() {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
949
|
+
const queryParameters = {};
|
|
950
|
+
const headerParameters = {};
|
|
951
|
+
let urlPath = `/vms/filter-options`;
|
|
952
|
+
return {
|
|
953
|
+
path: urlPath,
|
|
954
|
+
method: 'GET',
|
|
955
|
+
headers: headerParameters,
|
|
956
|
+
query: queryParameters,
|
|
957
|
+
};
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Get distinct filter option values for VMs
|
|
962
|
+
*/
|
|
963
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
965
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
966
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
967
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* Get distinct filter option values for VMs
|
|
972
|
+
*/
|
|
973
|
+
getVMsFilterOptions(initOverrides) {
|
|
974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
976
|
+
return yield response.value();
|
|
977
|
+
});
|
|
978
|
+
}
|
|
818
979
|
/**
|
|
819
980
|
* Creates request options for getVersion without sending the request
|
|
820
981
|
*/
|
|
@@ -894,6 +1055,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
894
1055
|
return yield response.value();
|
|
895
1056
|
});
|
|
896
1057
|
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1060
|
+
*/
|
|
1061
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1063
|
+
if (requestParameters['reportId'] == null) {
|
|
1064
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1065
|
+
}
|
|
1066
|
+
const queryParameters = {};
|
|
1067
|
+
if (requestParameters['byExpression'] != null) {
|
|
1068
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1069
|
+
}
|
|
1070
|
+
const headerParameters = {};
|
|
1071
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1072
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1073
|
+
return {
|
|
1074
|
+
path: urlPath,
|
|
1075
|
+
method: 'GET',
|
|
1076
|
+
headers: headerParameters,
|
|
1077
|
+
query: queryParameters,
|
|
1078
|
+
};
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1083
|
+
*/
|
|
1084
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1085
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1086
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1087
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1088
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1093
|
+
*/
|
|
1094
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1096
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1097
|
+
return yield response.value();
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
897
1100
|
/**
|
|
898
1101
|
* Creates request options for listRightsizingReports without sending the request
|
|
899
1102
|
*/
|
|
@@ -1012,45 +1215,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1012
1215
|
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1013
1216
|
});
|
|
1014
1217
|
}
|
|
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
1218
|
/**
|
|
1055
1219
|
* Creates request options for putInspectorVddk without sending the request
|
|
1056
1220
|
*/
|
|
@@ -1540,5 +1704,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1540
1704
|
return yield response.value();
|
|
1541
1705
|
});
|
|
1542
1706
|
}
|
|
1707
|
+
/**
|
|
1708
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1709
|
+
*/
|
|
1710
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1711
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1712
|
+
if (requestParameters['label'] == null) {
|
|
1713
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1714
|
+
}
|
|
1715
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1716
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1717
|
+
}
|
|
1718
|
+
const queryParameters = {};
|
|
1719
|
+
const headerParameters = {};
|
|
1720
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1721
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1722
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1723
|
+
return {
|
|
1724
|
+
path: urlPath,
|
|
1725
|
+
method: 'PATCH',
|
|
1726
|
+
headers: headerParameters,
|
|
1727
|
+
query: queryParameters,
|
|
1728
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1729
|
+
};
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
/**
|
|
1733
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1734
|
+
*/
|
|
1735
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1736
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1737
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1738
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1739
|
+
return new runtime.VoidApiResponse(response);
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1744
|
+
*/
|
|
1745
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1747
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Creates request options for updateVM without sending the request
|
|
1752
|
+
*/
|
|
1753
|
+
updateVMRequestOpts(requestParameters) {
|
|
1754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1755
|
+
if (requestParameters['id'] == null) {
|
|
1756
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1757
|
+
}
|
|
1758
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1759
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1760
|
+
}
|
|
1761
|
+
const queryParameters = {};
|
|
1762
|
+
const headerParameters = {};
|
|
1763
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1764
|
+
let urlPath = `/vms/{id}`;
|
|
1765
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1766
|
+
return {
|
|
1767
|
+
path: urlPath,
|
|
1768
|
+
method: 'PATCH',
|
|
1769
|
+
headers: headerParameters,
|
|
1770
|
+
query: queryParameters,
|
|
1771
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1772
|
+
};
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* Update VM properties
|
|
1777
|
+
*/
|
|
1778
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1780
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1781
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1782
|
+
return new runtime.VoidApiResponse(response);
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Update VM properties
|
|
1787
|
+
*/
|
|
1788
|
+
updateVM(requestParameters, initOverrides) {
|
|
1789
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1790
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1795
|
+
*/
|
|
1796
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1798
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1799
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1800
|
+
}
|
|
1801
|
+
const queryParameters = {};
|
|
1802
|
+
const headerParameters = {};
|
|
1803
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1804
|
+
let urlPath = `/inspector/credentials`;
|
|
1805
|
+
return {
|
|
1806
|
+
path: urlPath,
|
|
1807
|
+
method: 'POST',
|
|
1808
|
+
headers: headerParameters,
|
|
1809
|
+
query: queryParameters,
|
|
1810
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1811
|
+
};
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Validate vCenter credentials for inspector
|
|
1816
|
+
*/
|
|
1817
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1819
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
1820
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1821
|
+
return new runtime.VoidApiResponse(response);
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Validate vCenter credentials for inspector
|
|
1826
|
+
*/
|
|
1827
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
1828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1829
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1543
1832
|
}
|
|
1544
1833
|
exports.DefaultApi = DefaultApi;
|