@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-4e95135f8529
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +28 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +33 -5
- package/dist/apis/DefaultApi.d.ts +546 -39
- package/dist/apis/DefaultApi.js +591 -30
- package/dist/esm/apis/DefaultApi.d.ts +546 -39
- package/dist/esm/apis/DefaultApi.js +591 -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/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- package/dist/esm/models/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 +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/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/VmUtilizationDetails.d.ts +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -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/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- package/dist/models/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 +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/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/VmUtilizationDetails.d.ts +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -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/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +1127 -197
- 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 +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/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/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1136 -93
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/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 +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/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/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +14 -0
- package/src/runtime.ts +1 -1
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,11 +26,14 @@ 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");
|
|
30
31
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
32
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
33
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
34
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
33
35
|
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
36
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
34
37
|
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
35
38
|
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
36
39
|
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
@@ -42,6 +45,8 @@ const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
|
42
45
|
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
43
46
|
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
44
47
|
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
48
|
+
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
49
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
45
50
|
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
46
51
|
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
47
52
|
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
@@ -49,11 +54,15 @@ const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummar
|
|
|
49
54
|
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
50
55
|
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
51
56
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
57
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
58
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
59
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
52
60
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
53
61
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
54
62
|
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
55
63
|
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
56
64
|
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
65
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
57
66
|
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
58
67
|
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
59
68
|
/**
|
|
@@ -100,6 +109,42 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
100
109
|
return yield response.value();
|
|
101
110
|
});
|
|
102
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for deleteCredentials without sending the request
|
|
114
|
+
*/
|
|
115
|
+
deleteCredentialsRequestOpts() {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const queryParameters = {};
|
|
118
|
+
const headerParameters = {};
|
|
119
|
+
let urlPath = `/credentials`;
|
|
120
|
+
return {
|
|
121
|
+
path: urlPath,
|
|
122
|
+
method: 'DELETE',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Removes all stored vCenter credentials from the database.
|
|
130
|
+
* Delete stored credentials
|
|
131
|
+
*/
|
|
132
|
+
deleteCredentialsRaw(initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
135
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Removes all stored vCenter credentials from the database.
|
|
141
|
+
* Delete stored credentials
|
|
142
|
+
*/
|
|
143
|
+
deleteCredentials(initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
103
148
|
/**
|
|
104
149
|
* Creates request options for deleteForecasterRun without sending the request
|
|
105
150
|
*/
|
|
@@ -176,6 +221,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
176
221
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
177
222
|
});
|
|
178
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
226
|
+
*/
|
|
227
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
if (requestParameters['label'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
231
|
+
}
|
|
232
|
+
const queryParameters = {};
|
|
233
|
+
const headerParameters = {};
|
|
234
|
+
let urlPath = `/vms/labels/{label}`;
|
|
235
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
236
|
+
return {
|
|
237
|
+
path: urlPath,
|
|
238
|
+
method: 'DELETE',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Delete label from all VMs
|
|
246
|
+
*/
|
|
247
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
250
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
251
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Delete label from all VMs
|
|
256
|
+
*/
|
|
257
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
260
|
+
return yield response.value();
|
|
261
|
+
});
|
|
262
|
+
}
|
|
179
263
|
/**
|
|
180
264
|
* Creates request options for getAgentStatus without sending the request
|
|
181
265
|
*/
|
|
@@ -211,6 +295,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
211
295
|
return yield response.value();
|
|
212
296
|
});
|
|
213
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Creates request options for getApplications without sending the request
|
|
300
|
+
*/
|
|
301
|
+
getApplicationsRequestOpts() {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
const queryParameters = {};
|
|
304
|
+
const headerParameters = {};
|
|
305
|
+
let urlPath = `/applications`;
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'GET',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* List detected applications running on VMs
|
|
316
|
+
*/
|
|
317
|
+
getApplicationsRaw(initOverrides) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
320
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* List detected applications running on VMs
|
|
326
|
+
*/
|
|
327
|
+
getApplications(initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
330
|
+
return yield response.value();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
335
|
+
*/
|
|
336
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
if (requestParameters['clusterId'] == null) {
|
|
339
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
340
|
+
}
|
|
341
|
+
const queryParameters = {};
|
|
342
|
+
const headerParameters = {};
|
|
343
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
344
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
345
|
+
return {
|
|
346
|
+
path: urlPath,
|
|
347
|
+
method: 'GET',
|
|
348
|
+
headers: headerParameters,
|
|
349
|
+
query: queryParameters,
|
|
350
|
+
};
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Get latest cluster utilization by cluster ID
|
|
355
|
+
*/
|
|
356
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
359
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Get latest cluster utilization by cluster ID
|
|
365
|
+
*/
|
|
366
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
369
|
+
return yield response.value();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
214
372
|
/**
|
|
215
373
|
* Creates request options for getCollectorStatus without sending the request
|
|
216
374
|
*/
|
|
@@ -246,6 +404,43 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
246
404
|
return yield response.value();
|
|
247
405
|
});
|
|
248
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Creates request options for getCredentials without sending the request
|
|
409
|
+
*/
|
|
410
|
+
getCredentialsRequestOpts() {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const queryParameters = {};
|
|
413
|
+
const headerParameters = {};
|
|
414
|
+
let urlPath = `/credentials`;
|
|
415
|
+
return {
|
|
416
|
+
path: urlPath,
|
|
417
|
+
method: 'GET',
|
|
418
|
+
headers: headerParameters,
|
|
419
|
+
query: queryParameters,
|
|
420
|
+
};
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
425
|
+
* Get stored credential status
|
|
426
|
+
*/
|
|
427
|
+
getCredentialsRaw(initOverrides) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
430
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
431
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
436
|
+
* Get stored credential status
|
|
437
|
+
*/
|
|
438
|
+
getCredentials(initOverrides) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
441
|
+
return yield response.value();
|
|
442
|
+
});
|
|
443
|
+
}
|
|
249
444
|
/**
|
|
250
445
|
* Creates request options for getForecasterDatastores without sending the request
|
|
251
446
|
*/
|
|
@@ -462,9 +657,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
462
657
|
if (requestParameters['includeVddk'] != null) {
|
|
463
658
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
464
659
|
}
|
|
465
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
466
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
467
|
-
}
|
|
468
660
|
const headerParameters = {};
|
|
469
661
|
let urlPath = `/inspector`;
|
|
470
662
|
return {
|
|
@@ -570,18 +762,59 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
570
762
|
return yield response.value();
|
|
571
763
|
});
|
|
572
764
|
}
|
|
765
|
+
/**
|
|
766
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
767
|
+
* @deprecated
|
|
768
|
+
*/
|
|
769
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
+
const queryParameters = {};
|
|
772
|
+
if (requestParameters['byExpression'] != null) {
|
|
773
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
774
|
+
}
|
|
775
|
+
const headerParameters = {};
|
|
776
|
+
let urlPath = `/cluster_rightsizing`;
|
|
777
|
+
return {
|
|
778
|
+
path: urlPath,
|
|
779
|
+
method: 'GET',
|
|
780
|
+
headers: headerParameters,
|
|
781
|
+
query: queryParameters,
|
|
782
|
+
};
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
787
|
+
* @deprecated
|
|
788
|
+
*/
|
|
789
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
792
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
793
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
798
|
+
* @deprecated
|
|
799
|
+
*/
|
|
800
|
+
getLatestRightsizingClusters() {
|
|
801
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
802
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
803
|
+
return yield response.value();
|
|
804
|
+
});
|
|
805
|
+
}
|
|
573
806
|
/**
|
|
574
807
|
* Creates request options for getRightsizingReport without sending the request
|
|
575
808
|
*/
|
|
576
809
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
577
810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
-
if (requestParameters['
|
|
579
|
-
throw new runtime.RequiredError('
|
|
811
|
+
if (requestParameters['reportId'] == null) {
|
|
812
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
580
813
|
}
|
|
581
814
|
const queryParameters = {};
|
|
582
815
|
const headerParameters = {};
|
|
583
|
-
let urlPath = `/rightsizing/{
|
|
584
|
-
urlPath = urlPath.replace('{
|
|
816
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
817
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
585
818
|
return {
|
|
586
819
|
path: urlPath,
|
|
587
820
|
method: 'GET',
|
|
@@ -609,6 +842,94 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
609
842
|
return yield response.value();
|
|
610
843
|
});
|
|
611
844
|
}
|
|
845
|
+
/**
|
|
846
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
847
|
+
*/
|
|
848
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
850
|
+
if (requestParameters['reportId'] == null) {
|
|
851
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
852
|
+
}
|
|
853
|
+
if (requestParameters['clusterId'] == null) {
|
|
854
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
855
|
+
}
|
|
856
|
+
const queryParameters = {};
|
|
857
|
+
const headerParameters = {};
|
|
858
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
859
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
860
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
861
|
+
return {
|
|
862
|
+
path: urlPath,
|
|
863
|
+
method: 'GET',
|
|
864
|
+
headers: headerParameters,
|
|
865
|
+
query: queryParameters,
|
|
866
|
+
};
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Get utilization for a specific cluster from a specific report
|
|
871
|
+
*/
|
|
872
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
873
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
874
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
875
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
876
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Get utilization for a specific cluster from a specific report
|
|
881
|
+
*/
|
|
882
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
885
|
+
return yield response.value();
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
890
|
+
* @deprecated
|
|
891
|
+
*/
|
|
892
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
if (requestParameters['reportId'] == null) {
|
|
895
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
896
|
+
}
|
|
897
|
+
const queryParameters = {};
|
|
898
|
+
if (requestParameters['byExpression'] != null) {
|
|
899
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
900
|
+
}
|
|
901
|
+
const headerParameters = {};
|
|
902
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
903
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
904
|
+
return {
|
|
905
|
+
path: urlPath,
|
|
906
|
+
method: 'GET',
|
|
907
|
+
headers: headerParameters,
|
|
908
|
+
query: queryParameters,
|
|
909
|
+
};
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
914
|
+
* @deprecated
|
|
915
|
+
*/
|
|
916
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
918
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
919
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
920
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
925
|
+
* @deprecated
|
|
926
|
+
*/
|
|
927
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
929
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
930
|
+
return yield response.value();
|
|
931
|
+
});
|
|
932
|
+
}
|
|
612
933
|
/**
|
|
613
934
|
* Creates request options for getVM without sending the request
|
|
614
935
|
*/
|
|
@@ -648,6 +969,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
648
969
|
return yield response.value();
|
|
649
970
|
});
|
|
650
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* Creates request options for getVMLabels without sending the request
|
|
974
|
+
*/
|
|
975
|
+
getVMLabelsRequestOpts() {
|
|
976
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
977
|
+
const queryParameters = {};
|
|
978
|
+
const headerParameters = {};
|
|
979
|
+
let urlPath = `/vms/labels`;
|
|
980
|
+
return {
|
|
981
|
+
path: urlPath,
|
|
982
|
+
method: 'GET',
|
|
983
|
+
headers: headerParameters,
|
|
984
|
+
query: queryParameters,
|
|
985
|
+
};
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Get all distinct labels in use across VMs
|
|
990
|
+
*/
|
|
991
|
+
getVMLabelsRaw(initOverrides) {
|
|
992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
994
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
995
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Get all distinct labels in use across VMs
|
|
1000
|
+
*/
|
|
1001
|
+
getVMLabels(initOverrides) {
|
|
1002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1003
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
1004
|
+
return yield response.value();
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
651
1007
|
/**
|
|
652
1008
|
* Creates request options for getVMUtilization without sending the request
|
|
653
1009
|
*/
|
|
@@ -734,6 +1090,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
734
1090
|
return yield response.value();
|
|
735
1091
|
});
|
|
736
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1095
|
+
*/
|
|
1096
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1098
|
+
const queryParameters = {};
|
|
1099
|
+
const headerParameters = {};
|
|
1100
|
+
let urlPath = `/vms/filter-options`;
|
|
1101
|
+
return {
|
|
1102
|
+
path: urlPath,
|
|
1103
|
+
method: 'GET',
|
|
1104
|
+
headers: headerParameters,
|
|
1105
|
+
query: queryParameters,
|
|
1106
|
+
};
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Get distinct filter option values for VMs
|
|
1111
|
+
*/
|
|
1112
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1114
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1115
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Get distinct filter option values for VMs
|
|
1121
|
+
*/
|
|
1122
|
+
getVMsFilterOptions(initOverrides) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1125
|
+
return yield response.value();
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
737
1128
|
/**
|
|
738
1129
|
* Creates request options for getVersion without sending the request
|
|
739
1130
|
*/
|
|
@@ -813,6 +1204,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
813
1204
|
return yield response.value();
|
|
814
1205
|
});
|
|
815
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1209
|
+
*/
|
|
1210
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
if (requestParameters['reportId'] == null) {
|
|
1213
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1214
|
+
}
|
|
1215
|
+
const queryParameters = {};
|
|
1216
|
+
if (requestParameters['byExpression'] != null) {
|
|
1217
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1218
|
+
}
|
|
1219
|
+
const headerParameters = {};
|
|
1220
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1221
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1222
|
+
return {
|
|
1223
|
+
path: urlPath,
|
|
1224
|
+
method: 'GET',
|
|
1225
|
+
headers: headerParameters,
|
|
1226
|
+
query: queryParameters,
|
|
1227
|
+
};
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1232
|
+
*/
|
|
1233
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1236
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1242
|
+
*/
|
|
1243
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1246
|
+
return yield response.value();
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
816
1249
|
/**
|
|
817
1250
|
* Creates request options for listRightsizingReports without sending the request
|
|
818
1251
|
*/
|
|
@@ -891,17 +1324,17 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
891
1324
|
});
|
|
892
1325
|
}
|
|
893
1326
|
/**
|
|
894
|
-
* Creates request options for
|
|
1327
|
+
* Creates request options for putCredentials without sending the request
|
|
895
1328
|
*/
|
|
896
|
-
|
|
1329
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
897
1330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
1331
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
899
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1332
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
900
1333
|
}
|
|
901
1334
|
const queryParameters = {};
|
|
902
1335
|
const headerParameters = {};
|
|
903
1336
|
headerParameters['Content-Type'] = 'application/json';
|
|
904
|
-
let urlPath = `/
|
|
1337
|
+
let urlPath = `/credentials`;
|
|
905
1338
|
return {
|
|
906
1339
|
path: urlPath,
|
|
907
1340
|
method: 'PUT',
|
|
@@ -912,37 +1345,38 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
912
1345
|
});
|
|
913
1346
|
}
|
|
914
1347
|
/**
|
|
915
|
-
* Validates
|
|
916
|
-
*
|
|
1348
|
+
* 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.
|
|
1349
|
+
* Store vCenter credentials
|
|
917
1350
|
*/
|
|
918
|
-
|
|
1351
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
919
1352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
920
|
-
const requestOptions = yield this.
|
|
1353
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
921
1354
|
const response = yield this.request(requestOptions, initOverrides);
|
|
922
|
-
return new runtime.
|
|
1355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
923
1356
|
});
|
|
924
1357
|
}
|
|
925
1358
|
/**
|
|
926
|
-
* Validates
|
|
927
|
-
*
|
|
1359
|
+
* 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.
|
|
1360
|
+
* Store vCenter credentials
|
|
928
1361
|
*/
|
|
929
|
-
|
|
1362
|
+
putCredentials(requestParameters, initOverrides) {
|
|
930
1363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
-
yield this.
|
|
1364
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1365
|
+
return yield response.value();
|
|
932
1366
|
});
|
|
933
1367
|
}
|
|
934
1368
|
/**
|
|
935
|
-
* Creates request options for
|
|
1369
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
936
1370
|
*/
|
|
937
|
-
|
|
1371
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
938
1372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
939
1373
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
940
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1374
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
941
1375
|
}
|
|
942
1376
|
const queryParameters = {};
|
|
943
1377
|
const headerParameters = {};
|
|
944
1378
|
headerParameters['Content-Type'] = 'application/json';
|
|
945
|
-
let urlPath = `/
|
|
1379
|
+
let urlPath = `/forecaster/credentials`;
|
|
946
1380
|
return {
|
|
947
1381
|
path: urlPath,
|
|
948
1382
|
method: 'PUT',
|
|
@@ -953,21 +1387,23 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
953
1387
|
});
|
|
954
1388
|
}
|
|
955
1389
|
/**
|
|
956
|
-
*
|
|
1390
|
+
* 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.
|
|
1391
|
+
* Verify vCenter credentials and permissions
|
|
957
1392
|
*/
|
|
958
|
-
|
|
1393
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
959
1394
|
return __awaiter(this, void 0, void 0, function* () {
|
|
960
|
-
const requestOptions = yield this.
|
|
1395
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
961
1396
|
const response = yield this.request(requestOptions, initOverrides);
|
|
962
1397
|
return new runtime.VoidApiResponse(response);
|
|
963
1398
|
});
|
|
964
1399
|
}
|
|
965
1400
|
/**
|
|
966
|
-
*
|
|
1401
|
+
* 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.
|
|
1402
|
+
* Verify vCenter credentials and permissions
|
|
967
1403
|
*/
|
|
968
|
-
|
|
1404
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
969
1405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
970
|
-
yield this.
|
|
1406
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
971
1407
|
});
|
|
972
1408
|
}
|
|
973
1409
|
/**
|
|
@@ -1459,5 +1895,130 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1459
1895
|
return yield response.value();
|
|
1460
1896
|
});
|
|
1461
1897
|
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1900
|
+
*/
|
|
1901
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1903
|
+
if (requestParameters['label'] == null) {
|
|
1904
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1905
|
+
}
|
|
1906
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1907
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1908
|
+
}
|
|
1909
|
+
const queryParameters = {};
|
|
1910
|
+
const headerParameters = {};
|
|
1911
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1912
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1913
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1914
|
+
return {
|
|
1915
|
+
path: urlPath,
|
|
1916
|
+
method: 'PATCH',
|
|
1917
|
+
headers: headerParameters,
|
|
1918
|
+
query: queryParameters,
|
|
1919
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1920
|
+
};
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1925
|
+
*/
|
|
1926
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1928
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1929
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1930
|
+
return new runtime.VoidApiResponse(response);
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1935
|
+
*/
|
|
1936
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* Creates request options for updateVM without sending the request
|
|
1943
|
+
*/
|
|
1944
|
+
updateVMRequestOpts(requestParameters) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
|
+
if (requestParameters['id'] == null) {
|
|
1947
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1948
|
+
}
|
|
1949
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1950
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1951
|
+
}
|
|
1952
|
+
const queryParameters = {};
|
|
1953
|
+
const headerParameters = {};
|
|
1954
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1955
|
+
let urlPath = `/vms/{id}`;
|
|
1956
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1957
|
+
return {
|
|
1958
|
+
path: urlPath,
|
|
1959
|
+
method: 'PATCH',
|
|
1960
|
+
headers: headerParameters,
|
|
1961
|
+
query: queryParameters,
|
|
1962
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1963
|
+
};
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Update VM properties
|
|
1968
|
+
*/
|
|
1969
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1971
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1972
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1973
|
+
return new runtime.VoidApiResponse(response);
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* Update VM properties
|
|
1978
|
+
*/
|
|
1979
|
+
updateVM(requestParameters, initOverrides) {
|
|
1980
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1981
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1986
|
+
*/
|
|
1987
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1989
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1990
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1991
|
+
}
|
|
1992
|
+
const queryParameters = {};
|
|
1993
|
+
const headerParameters = {};
|
|
1994
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1995
|
+
let urlPath = `/inspector/credentials`;
|
|
1996
|
+
return {
|
|
1997
|
+
path: urlPath,
|
|
1998
|
+
method: 'POST',
|
|
1999
|
+
headers: headerParameters,
|
|
2000
|
+
query: queryParameters,
|
|
2001
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
2002
|
+
};
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Validate vCenter credentials for inspector
|
|
2007
|
+
*/
|
|
2008
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
2009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2010
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
2011
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2012
|
+
return new runtime.VoidApiResponse(response);
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Validate vCenter credentials for inspector
|
|
2017
|
+
*/
|
|
2018
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
2019
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2020
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
1462
2023
|
}
|
|
1463
2024
|
exports.DefaultApi = DefaultApi;
|