@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-9c0f4b0f1f89
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 +30 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +33 -5
- package/dist/apis/DefaultApi.d.ts +506 -39
- package/dist/apis/DefaultApi.js +548 -30
- package/dist/esm/apis/DefaultApi.d.ts +506 -39
- package/dist/esm/apis/DefaultApi.js +548 -30
- 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/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -0
- 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/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -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 +3 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +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/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -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 +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -0
- 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/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -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 +3 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +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/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/runtime.js +2 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +38 -0
- package/docs/DefaultApi.md +937 -84
- 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/OperationCapability.md +36 -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 +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1019 -62
- 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/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +84 -0
- 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/OperationCapability.ts +74 -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 +17 -1
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +15 -0
- package/src/runtime.ts +1 -1
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,11 +26,15 @@ 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");
|
|
29
30
|
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
31
|
+
const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
|
|
30
32
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
33
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
34
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
35
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
33
36
|
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
37
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
34
38
|
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
35
39
|
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
36
40
|
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
@@ -43,6 +47,7 @@ const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
|
43
47
|
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
44
48
|
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
45
49
|
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
50
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
46
51
|
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
47
52
|
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
48
53
|
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
@@ -50,11 +55,15 @@ const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummar
|
|
|
50
55
|
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
51
56
|
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
52
57
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
58
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
59
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
60
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
53
61
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
54
62
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
55
63
|
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
56
64
|
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
57
65
|
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
66
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
58
67
|
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
59
68
|
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
60
69
|
/**
|
|
@@ -101,6 +110,42 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
101
110
|
return yield response.value();
|
|
102
111
|
});
|
|
103
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for deleteCredentials without sending the request
|
|
115
|
+
*/
|
|
116
|
+
deleteCredentialsRequestOpts() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
let urlPath = `/credentials`;
|
|
121
|
+
return {
|
|
122
|
+
path: urlPath,
|
|
123
|
+
method: 'DELETE',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Removes all stored vCenter credentials from the database.
|
|
131
|
+
* Delete stored credentials
|
|
132
|
+
*/
|
|
133
|
+
deleteCredentialsRaw(initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
136
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
137
|
+
return new runtime.VoidApiResponse(response);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Removes all stored vCenter credentials from the database.
|
|
142
|
+
* Delete stored credentials
|
|
143
|
+
*/
|
|
144
|
+
deleteCredentials(initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
104
149
|
/**
|
|
105
150
|
* Creates request options for deleteForecasterRun without sending the request
|
|
106
151
|
*/
|
|
@@ -177,6 +222,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
177
222
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
178
223
|
});
|
|
179
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
227
|
+
*/
|
|
228
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
if (requestParameters['label'] == null) {
|
|
231
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
232
|
+
}
|
|
233
|
+
const queryParameters = {};
|
|
234
|
+
const headerParameters = {};
|
|
235
|
+
let urlPath = `/vms/labels/{label}`;
|
|
236
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
237
|
+
return {
|
|
238
|
+
path: urlPath,
|
|
239
|
+
method: 'DELETE',
|
|
240
|
+
headers: headerParameters,
|
|
241
|
+
query: queryParameters,
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Delete label from all VMs
|
|
247
|
+
*/
|
|
248
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
251
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Delete label from all VMs
|
|
257
|
+
*/
|
|
258
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
261
|
+
return yield response.value();
|
|
262
|
+
});
|
|
263
|
+
}
|
|
180
264
|
/**
|
|
181
265
|
* Creates request options for getAgentStatus without sending the request
|
|
182
266
|
*/
|
|
@@ -212,6 +296,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
212
296
|
return yield response.value();
|
|
213
297
|
});
|
|
214
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getApplications without sending the request
|
|
301
|
+
*/
|
|
302
|
+
getApplicationsRequestOpts() {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
let urlPath = `/applications`;
|
|
307
|
+
return {
|
|
308
|
+
path: urlPath,
|
|
309
|
+
method: 'GET',
|
|
310
|
+
headers: headerParameters,
|
|
311
|
+
query: queryParameters,
|
|
312
|
+
};
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* List detected applications running on VMs
|
|
317
|
+
*/
|
|
318
|
+
getApplicationsRaw(initOverrides) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
321
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
322
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* List detected applications running on VMs
|
|
327
|
+
*/
|
|
328
|
+
getApplications(initOverrides) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
331
|
+
return yield response.value();
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
336
|
+
*/
|
|
337
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
if (requestParameters['clusterId'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
341
|
+
}
|
|
342
|
+
const queryParameters = {};
|
|
343
|
+
const headerParameters = {};
|
|
344
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
345
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
346
|
+
return {
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Get latest cluster utilization by cluster ID
|
|
356
|
+
*/
|
|
357
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
360
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
361
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get latest cluster utilization by cluster ID
|
|
366
|
+
*/
|
|
367
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
370
|
+
return yield response.value();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
215
373
|
/**
|
|
216
374
|
* Creates request options for getCollectorStatus without sending the request
|
|
217
375
|
*/
|
|
@@ -247,6 +405,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
247
405
|
return yield response.value();
|
|
248
406
|
});
|
|
249
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
410
|
+
*/
|
|
411
|
+
getCredentialCapabilitiesRequestOpts() {
|
|
412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
+
const queryParameters = {};
|
|
414
|
+
const headerParameters = {};
|
|
415
|
+
let urlPath = `/credentials/capabilities`;
|
|
416
|
+
return {
|
|
417
|
+
path: urlPath,
|
|
418
|
+
method: 'GET',
|
|
419
|
+
headers: headerParameters,
|
|
420
|
+
query: queryParameters,
|
|
421
|
+
};
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
426
|
+
* Check vSphere operation capabilities
|
|
427
|
+
*/
|
|
428
|
+
getCredentialCapabilitiesRaw(initOverrides) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
|
|
431
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
432
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CapabilityStatus_js_1.CapabilityStatusFromJSON)(jsonValue));
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
437
|
+
* Check vSphere operation capabilities
|
|
438
|
+
*/
|
|
439
|
+
getCredentialCapabilities(initOverrides) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
|
|
442
|
+
return yield response.value();
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Creates request options for getCredentials without sending the request
|
|
447
|
+
*/
|
|
448
|
+
getCredentialsRequestOpts() {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
const queryParameters = {};
|
|
451
|
+
const headerParameters = {};
|
|
452
|
+
let urlPath = `/credentials`;
|
|
453
|
+
return {
|
|
454
|
+
path: urlPath,
|
|
455
|
+
method: 'GET',
|
|
456
|
+
headers: headerParameters,
|
|
457
|
+
query: queryParameters,
|
|
458
|
+
};
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
463
|
+
* Get stored credential status
|
|
464
|
+
*/
|
|
465
|
+
getCredentialsRaw(initOverrides) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
468
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
474
|
+
* Get stored credential status
|
|
475
|
+
*/
|
|
476
|
+
getCredentials(initOverrides) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
479
|
+
return yield response.value();
|
|
480
|
+
});
|
|
481
|
+
}
|
|
250
482
|
/**
|
|
251
483
|
* Creates request options for getForecasterDatastores without sending the request
|
|
252
484
|
*/
|
|
@@ -463,9 +695,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
463
695
|
if (requestParameters['includeVddk'] != null) {
|
|
464
696
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
465
697
|
}
|
|
466
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
467
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
468
|
-
}
|
|
469
698
|
const headerParameters = {};
|
|
470
699
|
let urlPath = `/inspector`;
|
|
471
700
|
return {
|
|
@@ -573,6 +802,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
573
802
|
}
|
|
574
803
|
/**
|
|
575
804
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
805
|
+
* @deprecated
|
|
576
806
|
*/
|
|
577
807
|
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
578
808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -592,6 +822,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
592
822
|
}
|
|
593
823
|
/**
|
|
594
824
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
825
|
+
* @deprecated
|
|
595
826
|
*/
|
|
596
827
|
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
597
828
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -602,6 +833,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
602
833
|
}
|
|
603
834
|
/**
|
|
604
835
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
836
|
+
* @deprecated
|
|
605
837
|
*/
|
|
606
838
|
getLatestRightsizingClusters() {
|
|
607
839
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -614,13 +846,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
614
846
|
*/
|
|
615
847
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
616
848
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
-
if (requestParameters['
|
|
618
|
-
throw new runtime.RequiredError('
|
|
849
|
+
if (requestParameters['reportId'] == null) {
|
|
850
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
619
851
|
}
|
|
620
852
|
const queryParameters = {};
|
|
621
853
|
const headerParameters = {};
|
|
622
|
-
let urlPath = `/rightsizing/{
|
|
623
|
-
urlPath = urlPath.replace('{
|
|
854
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
855
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
624
856
|
return {
|
|
625
857
|
path: urlPath,
|
|
626
858
|
method: 'GET',
|
|
@@ -648,8 +880,52 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
648
880
|
return yield response.value();
|
|
649
881
|
});
|
|
650
882
|
}
|
|
883
|
+
/**
|
|
884
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
885
|
+
*/
|
|
886
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
888
|
+
if (requestParameters['reportId'] == null) {
|
|
889
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
890
|
+
}
|
|
891
|
+
if (requestParameters['clusterId'] == null) {
|
|
892
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
893
|
+
}
|
|
894
|
+
const queryParameters = {};
|
|
895
|
+
const headerParameters = {};
|
|
896
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
897
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
898
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
899
|
+
return {
|
|
900
|
+
path: urlPath,
|
|
901
|
+
method: 'GET',
|
|
902
|
+
headers: headerParameters,
|
|
903
|
+
query: queryParameters,
|
|
904
|
+
};
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Get utilization for a specific cluster from a specific report
|
|
909
|
+
*/
|
|
910
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
912
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
913
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
914
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Get utilization for a specific cluster from a specific report
|
|
919
|
+
*/
|
|
920
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
922
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
923
|
+
return yield response.value();
|
|
924
|
+
});
|
|
925
|
+
}
|
|
651
926
|
/**
|
|
652
927
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
928
|
+
* @deprecated
|
|
653
929
|
*/
|
|
654
930
|
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
655
931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -673,6 +949,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
673
949
|
}
|
|
674
950
|
/**
|
|
675
951
|
* Get cluster-level utilization aggregates for a specific report
|
|
952
|
+
* @deprecated
|
|
676
953
|
*/
|
|
677
954
|
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
678
955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -683,6 +960,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
683
960
|
}
|
|
684
961
|
/**
|
|
685
962
|
* Get cluster-level utilization aggregates for a specific report
|
|
963
|
+
* @deprecated
|
|
686
964
|
*/
|
|
687
965
|
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
688
966
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -729,6 +1007,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
729
1007
|
return yield response.value();
|
|
730
1008
|
});
|
|
731
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Creates request options for getVMLabels without sending the request
|
|
1012
|
+
*/
|
|
1013
|
+
getVMLabelsRequestOpts() {
|
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1015
|
+
const queryParameters = {};
|
|
1016
|
+
const headerParameters = {};
|
|
1017
|
+
let urlPath = `/vms/labels`;
|
|
1018
|
+
return {
|
|
1019
|
+
path: urlPath,
|
|
1020
|
+
method: 'GET',
|
|
1021
|
+
headers: headerParameters,
|
|
1022
|
+
query: queryParameters,
|
|
1023
|
+
};
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Get all distinct labels in use across VMs
|
|
1028
|
+
*/
|
|
1029
|
+
getVMLabelsRaw(initOverrides) {
|
|
1030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1031
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
1032
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1033
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Get all distinct labels in use across VMs
|
|
1038
|
+
*/
|
|
1039
|
+
getVMLabels(initOverrides) {
|
|
1040
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
1042
|
+
return yield response.value();
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
732
1045
|
/**
|
|
733
1046
|
* Creates request options for getVMUtilization without sending the request
|
|
734
1047
|
*/
|
|
@@ -815,6 +1128,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
815
1128
|
return yield response.value();
|
|
816
1129
|
});
|
|
817
1130
|
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1133
|
+
*/
|
|
1134
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1136
|
+
const queryParameters = {};
|
|
1137
|
+
const headerParameters = {};
|
|
1138
|
+
let urlPath = `/vms/filter-options`;
|
|
1139
|
+
return {
|
|
1140
|
+
path: urlPath,
|
|
1141
|
+
method: 'GET',
|
|
1142
|
+
headers: headerParameters,
|
|
1143
|
+
query: queryParameters,
|
|
1144
|
+
};
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Get distinct filter option values for VMs
|
|
1149
|
+
*/
|
|
1150
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1152
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1153
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1154
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Get distinct filter option values for VMs
|
|
1159
|
+
*/
|
|
1160
|
+
getVMsFilterOptions(initOverrides) {
|
|
1161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1162
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1163
|
+
return yield response.value();
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
818
1166
|
/**
|
|
819
1167
|
* Creates request options for getVersion without sending the request
|
|
820
1168
|
*/
|
|
@@ -894,6 +1242,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
894
1242
|
return yield response.value();
|
|
895
1243
|
});
|
|
896
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1247
|
+
*/
|
|
1248
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1250
|
+
if (requestParameters['reportId'] == null) {
|
|
1251
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1252
|
+
}
|
|
1253
|
+
const queryParameters = {};
|
|
1254
|
+
if (requestParameters['byExpression'] != null) {
|
|
1255
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1256
|
+
}
|
|
1257
|
+
const headerParameters = {};
|
|
1258
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1259
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1260
|
+
return {
|
|
1261
|
+
path: urlPath,
|
|
1262
|
+
method: 'GET',
|
|
1263
|
+
headers: headerParameters,
|
|
1264
|
+
query: queryParameters,
|
|
1265
|
+
};
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1270
|
+
*/
|
|
1271
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1273
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1274
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1280
|
+
*/
|
|
1281
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1283
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1284
|
+
return yield response.value();
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
897
1287
|
/**
|
|
898
1288
|
* Creates request options for listRightsizingReports without sending the request
|
|
899
1289
|
*/
|
|
@@ -972,17 +1362,17 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
972
1362
|
});
|
|
973
1363
|
}
|
|
974
1364
|
/**
|
|
975
|
-
* Creates request options for
|
|
1365
|
+
* Creates request options for putCredentials without sending the request
|
|
976
1366
|
*/
|
|
977
|
-
|
|
1367
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
978
1368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
979
1369
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
980
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1370
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
981
1371
|
}
|
|
982
1372
|
const queryParameters = {};
|
|
983
1373
|
const headerParameters = {};
|
|
984
1374
|
headerParameters['Content-Type'] = 'application/json';
|
|
985
|
-
let urlPath = `/
|
|
1375
|
+
let urlPath = `/credentials`;
|
|
986
1376
|
return {
|
|
987
1377
|
path: urlPath,
|
|
988
1378
|
method: 'PUT',
|
|
@@ -993,37 +1383,38 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
993
1383
|
});
|
|
994
1384
|
}
|
|
995
1385
|
/**
|
|
996
|
-
* Validates
|
|
997
|
-
*
|
|
1386
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1387
|
+
* Store vCenter credentials
|
|
998
1388
|
*/
|
|
999
|
-
|
|
1389
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
1000
1390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
-
const requestOptions = yield this.
|
|
1391
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
1002
1392
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1003
|
-
return new runtime.
|
|
1393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
1004
1394
|
});
|
|
1005
1395
|
}
|
|
1006
1396
|
/**
|
|
1007
|
-
* Validates
|
|
1008
|
-
*
|
|
1397
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1398
|
+
* Store vCenter credentials
|
|
1009
1399
|
*/
|
|
1010
|
-
|
|
1400
|
+
putCredentials(requestParameters, initOverrides) {
|
|
1011
1401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
-
yield this.
|
|
1402
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1403
|
+
return yield response.value();
|
|
1013
1404
|
});
|
|
1014
1405
|
}
|
|
1015
1406
|
/**
|
|
1016
|
-
* Creates request options for
|
|
1407
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
1017
1408
|
*/
|
|
1018
|
-
|
|
1409
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
1019
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1020
1411
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
1021
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1412
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
1022
1413
|
}
|
|
1023
1414
|
const queryParameters = {};
|
|
1024
1415
|
const headerParameters = {};
|
|
1025
1416
|
headerParameters['Content-Type'] = 'application/json';
|
|
1026
|
-
let urlPath = `/
|
|
1417
|
+
let urlPath = `/forecaster/credentials`;
|
|
1027
1418
|
return {
|
|
1028
1419
|
path: urlPath,
|
|
1029
1420
|
method: 'PUT',
|
|
@@ -1034,21 +1425,23 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1034
1425
|
});
|
|
1035
1426
|
}
|
|
1036
1427
|
/**
|
|
1037
|
-
*
|
|
1428
|
+
* 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.
|
|
1429
|
+
* Verify vCenter credentials and permissions
|
|
1038
1430
|
*/
|
|
1039
|
-
|
|
1431
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
1040
1432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
-
const requestOptions = yield this.
|
|
1433
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
1042
1434
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1043
1435
|
return new runtime.VoidApiResponse(response);
|
|
1044
1436
|
});
|
|
1045
1437
|
}
|
|
1046
1438
|
/**
|
|
1047
|
-
*
|
|
1439
|
+
* 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.
|
|
1440
|
+
* Verify vCenter credentials and permissions
|
|
1048
1441
|
*/
|
|
1049
|
-
|
|
1442
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
1050
1443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1051
|
-
yield this.
|
|
1444
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1052
1445
|
});
|
|
1053
1446
|
}
|
|
1054
1447
|
/**
|
|
@@ -1540,5 +1933,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1540
1933
|
return yield response.value();
|
|
1541
1934
|
});
|
|
1542
1935
|
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1938
|
+
*/
|
|
1939
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1941
|
+
if (requestParameters['label'] == null) {
|
|
1942
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1943
|
+
}
|
|
1944
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1945
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1946
|
+
}
|
|
1947
|
+
const queryParameters = {};
|
|
1948
|
+
const headerParameters = {};
|
|
1949
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1950
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1951
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1952
|
+
return {
|
|
1953
|
+
path: urlPath,
|
|
1954
|
+
method: 'PATCH',
|
|
1955
|
+
headers: headerParameters,
|
|
1956
|
+
query: queryParameters,
|
|
1957
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1958
|
+
};
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1963
|
+
*/
|
|
1964
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1966
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1967
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1968
|
+
return new runtime.VoidApiResponse(response);
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1973
|
+
*/
|
|
1974
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1976
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Creates request options for updateVM without sending the request
|
|
1981
|
+
*/
|
|
1982
|
+
updateVMRequestOpts(requestParameters) {
|
|
1983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1984
|
+
if (requestParameters['id'] == null) {
|
|
1985
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1986
|
+
}
|
|
1987
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1988
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1989
|
+
}
|
|
1990
|
+
const queryParameters = {};
|
|
1991
|
+
const headerParameters = {};
|
|
1992
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1993
|
+
let urlPath = `/vms/{id}`;
|
|
1994
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1995
|
+
return {
|
|
1996
|
+
path: urlPath,
|
|
1997
|
+
method: 'PATCH',
|
|
1998
|
+
headers: headerParameters,
|
|
1999
|
+
query: queryParameters,
|
|
2000
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
2001
|
+
};
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Update VM properties
|
|
2006
|
+
*/
|
|
2007
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
2008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
2010
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2011
|
+
return new runtime.VoidApiResponse(response);
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Update VM properties
|
|
2016
|
+
*/
|
|
2017
|
+
updateVM(requestParameters, initOverrides) {
|
|
2018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2019
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
2024
|
+
*/
|
|
2025
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
2026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
2028
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
2029
|
+
}
|
|
2030
|
+
const queryParameters = {};
|
|
2031
|
+
const headerParameters = {};
|
|
2032
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2033
|
+
let urlPath = `/inspector/credentials`;
|
|
2034
|
+
return {
|
|
2035
|
+
path: urlPath,
|
|
2036
|
+
method: 'POST',
|
|
2037
|
+
headers: headerParameters,
|
|
2038
|
+
query: queryParameters,
|
|
2039
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
2040
|
+
};
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Validate vCenter credentials for inspector
|
|
2045
|
+
*/
|
|
2046
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
2047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
2049
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2050
|
+
return new runtime.VoidApiResponse(response);
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
/**
|
|
2054
|
+
* Validate vCenter credentials for inspector
|
|
2055
|
+
*/
|
|
2056
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
2057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2058
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
1543
2061
|
}
|
|
1544
2062
|
exports.DefaultApi = DefaultApi;
|