@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
|
@@ -23,11 +23,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
24
|
import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
|
|
25
25
|
import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
|
|
26
|
+
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
26
27
|
import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
|
|
27
28
|
import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
|
|
28
29
|
import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
|
|
29
30
|
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
31
|
+
import { CredentialStatusFromJSON, } from '../models/CredentialStatus.js';
|
|
30
32
|
import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
|
|
33
|
+
import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
|
|
31
34
|
import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
|
|
32
35
|
import { ForecasterDatastoresRequestToJSON, } from '../models/ForecasterDatastoresRequest.js';
|
|
33
36
|
import { ForecasterStartRequestToJSON, } from '../models/ForecasterStartRequest.js';
|
|
@@ -39,6 +42,8 @@ import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
|
|
|
39
42
|
import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
|
|
40
43
|
import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
|
|
41
44
|
import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
|
|
45
|
+
import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
|
|
46
|
+
import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
|
|
42
47
|
import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
|
|
43
48
|
import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
|
|
44
49
|
import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
|
|
@@ -46,11 +51,15 @@ import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSu
|
|
|
46
51
|
import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
|
|
47
52
|
import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
|
|
48
53
|
import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
|
|
54
|
+
import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
|
|
55
|
+
import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
|
|
56
|
+
import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
|
|
49
57
|
import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
|
|
50
58
|
import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
|
|
51
59
|
import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
|
|
52
60
|
import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
|
|
53
61
|
import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
|
|
62
|
+
import { VirtualMachineUpdateRequestToJSON, } from '../models/VirtualMachineUpdateRequest.js';
|
|
54
63
|
import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
|
|
55
64
|
import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
|
|
56
65
|
/**
|
|
@@ -97,6 +106,42 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
97
106
|
return yield response.value();
|
|
98
107
|
});
|
|
99
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for deleteCredentials without sending the request
|
|
111
|
+
*/
|
|
112
|
+
deleteCredentialsRequestOpts() {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const queryParameters = {};
|
|
115
|
+
const headerParameters = {};
|
|
116
|
+
let urlPath = `/credentials`;
|
|
117
|
+
return {
|
|
118
|
+
path: urlPath,
|
|
119
|
+
method: 'DELETE',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Removes all stored vCenter credentials from the database.
|
|
127
|
+
* Delete stored credentials
|
|
128
|
+
*/
|
|
129
|
+
deleteCredentialsRaw(initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
132
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
133
|
+
return new runtime.VoidApiResponse(response);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Removes all stored vCenter credentials from the database.
|
|
138
|
+
* Delete stored credentials
|
|
139
|
+
*/
|
|
140
|
+
deleteCredentials(initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
100
145
|
/**
|
|
101
146
|
* Creates request options for deleteForecasterRun without sending the request
|
|
102
147
|
*/
|
|
@@ -173,6 +218,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
173
218
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
174
219
|
});
|
|
175
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
223
|
+
*/
|
|
224
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
if (requestParameters['label'] == null) {
|
|
227
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
228
|
+
}
|
|
229
|
+
const queryParameters = {};
|
|
230
|
+
const headerParameters = {};
|
|
231
|
+
let urlPath = `/vms/labels/{label}`;
|
|
232
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
233
|
+
return {
|
|
234
|
+
path: urlPath,
|
|
235
|
+
method: 'DELETE',
|
|
236
|
+
headers: headerParameters,
|
|
237
|
+
query: queryParameters,
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Delete label from all VMs
|
|
243
|
+
*/
|
|
244
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
247
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
248
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Delete label from all VMs
|
|
253
|
+
*/
|
|
254
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
257
|
+
return yield response.value();
|
|
258
|
+
});
|
|
259
|
+
}
|
|
176
260
|
/**
|
|
177
261
|
* Creates request options for getAgentStatus without sending the request
|
|
178
262
|
*/
|
|
@@ -208,6 +292,80 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
208
292
|
return yield response.value();
|
|
209
293
|
});
|
|
210
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Creates request options for getApplications without sending the request
|
|
297
|
+
*/
|
|
298
|
+
getApplicationsRequestOpts() {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const queryParameters = {};
|
|
301
|
+
const headerParameters = {};
|
|
302
|
+
let urlPath = `/applications`;
|
|
303
|
+
return {
|
|
304
|
+
path: urlPath,
|
|
305
|
+
method: 'GET',
|
|
306
|
+
headers: headerParameters,
|
|
307
|
+
query: queryParameters,
|
|
308
|
+
};
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* List detected applications running on VMs
|
|
313
|
+
*/
|
|
314
|
+
getApplicationsRaw(initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
317
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
318
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* List detected applications running on VMs
|
|
323
|
+
*/
|
|
324
|
+
getApplications(initOverrides) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
327
|
+
return yield response.value();
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
332
|
+
*/
|
|
333
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
if (requestParameters['clusterId'] == null) {
|
|
336
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
337
|
+
}
|
|
338
|
+
const queryParameters = {};
|
|
339
|
+
const headerParameters = {};
|
|
340
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
341
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
342
|
+
return {
|
|
343
|
+
path: urlPath,
|
|
344
|
+
method: 'GET',
|
|
345
|
+
headers: headerParameters,
|
|
346
|
+
query: queryParameters,
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Get latest cluster utilization by cluster ID
|
|
352
|
+
*/
|
|
353
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
356
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
357
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Get latest cluster utilization by cluster ID
|
|
362
|
+
*/
|
|
363
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
366
|
+
return yield response.value();
|
|
367
|
+
});
|
|
368
|
+
}
|
|
211
369
|
/**
|
|
212
370
|
* Creates request options for getCollectorStatus without sending the request
|
|
213
371
|
*/
|
|
@@ -243,6 +401,43 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
243
401
|
return yield response.value();
|
|
244
402
|
});
|
|
245
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* Creates request options for getCredentials without sending the request
|
|
406
|
+
*/
|
|
407
|
+
getCredentialsRequestOpts() {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
const queryParameters = {};
|
|
410
|
+
const headerParameters = {};
|
|
411
|
+
let urlPath = `/credentials`;
|
|
412
|
+
return {
|
|
413
|
+
path: urlPath,
|
|
414
|
+
method: 'GET',
|
|
415
|
+
headers: headerParameters,
|
|
416
|
+
query: queryParameters,
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
422
|
+
* Get stored credential status
|
|
423
|
+
*/
|
|
424
|
+
getCredentialsRaw(initOverrides) {
|
|
425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
427
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
428
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
433
|
+
* Get stored credential status
|
|
434
|
+
*/
|
|
435
|
+
getCredentials(initOverrides) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
438
|
+
return yield response.value();
|
|
439
|
+
});
|
|
440
|
+
}
|
|
246
441
|
/**
|
|
247
442
|
* Creates request options for getForecasterDatastores without sending the request
|
|
248
443
|
*/
|
|
@@ -459,9 +654,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
459
654
|
if (requestParameters['includeVddk'] != null) {
|
|
460
655
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
461
656
|
}
|
|
462
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
463
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
464
|
-
}
|
|
465
657
|
const headerParameters = {};
|
|
466
658
|
let urlPath = `/inspector`;
|
|
467
659
|
return {
|
|
@@ -567,18 +759,59 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
567
759
|
return yield response.value();
|
|
568
760
|
});
|
|
569
761
|
}
|
|
762
|
+
/**
|
|
763
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
764
|
+
* @deprecated
|
|
765
|
+
*/
|
|
766
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
768
|
+
const queryParameters = {};
|
|
769
|
+
if (requestParameters['byExpression'] != null) {
|
|
770
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
771
|
+
}
|
|
772
|
+
const headerParameters = {};
|
|
773
|
+
let urlPath = `/cluster_rightsizing`;
|
|
774
|
+
return {
|
|
775
|
+
path: urlPath,
|
|
776
|
+
method: 'GET',
|
|
777
|
+
headers: headerParameters,
|
|
778
|
+
query: queryParameters,
|
|
779
|
+
};
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
784
|
+
* @deprecated
|
|
785
|
+
*/
|
|
786
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
788
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
789
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
790
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
795
|
+
* @deprecated
|
|
796
|
+
*/
|
|
797
|
+
getLatestRightsizingClusters() {
|
|
798
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
799
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
800
|
+
return yield response.value();
|
|
801
|
+
});
|
|
802
|
+
}
|
|
570
803
|
/**
|
|
571
804
|
* Creates request options for getRightsizingReport without sending the request
|
|
572
805
|
*/
|
|
573
806
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
574
807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
-
if (requestParameters['
|
|
576
|
-
throw new runtime.RequiredError('
|
|
808
|
+
if (requestParameters['reportId'] == null) {
|
|
809
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
577
810
|
}
|
|
578
811
|
const queryParameters = {};
|
|
579
812
|
const headerParameters = {};
|
|
580
|
-
let urlPath = `/rightsizing/{
|
|
581
|
-
urlPath = urlPath.replace('{
|
|
813
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
814
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
582
815
|
return {
|
|
583
816
|
path: urlPath,
|
|
584
817
|
method: 'GET',
|
|
@@ -606,6 +839,94 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
606
839
|
return yield response.value();
|
|
607
840
|
});
|
|
608
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
844
|
+
*/
|
|
845
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
if (requestParameters['reportId'] == null) {
|
|
848
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
849
|
+
}
|
|
850
|
+
if (requestParameters['clusterId'] == null) {
|
|
851
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
852
|
+
}
|
|
853
|
+
const queryParameters = {};
|
|
854
|
+
const headerParameters = {};
|
|
855
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
856
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
857
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
858
|
+
return {
|
|
859
|
+
path: urlPath,
|
|
860
|
+
method: 'GET',
|
|
861
|
+
headers: headerParameters,
|
|
862
|
+
query: queryParameters,
|
|
863
|
+
};
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Get utilization for a specific cluster from a specific report
|
|
868
|
+
*/
|
|
869
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
871
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
872
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
873
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Get utilization for a specific cluster from a specific report
|
|
878
|
+
*/
|
|
879
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
882
|
+
return yield response.value();
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
887
|
+
* @deprecated
|
|
888
|
+
*/
|
|
889
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
891
|
+
if (requestParameters['reportId'] == null) {
|
|
892
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
893
|
+
}
|
|
894
|
+
const queryParameters = {};
|
|
895
|
+
if (requestParameters['byExpression'] != null) {
|
|
896
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
897
|
+
}
|
|
898
|
+
const headerParameters = {};
|
|
899
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
900
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
901
|
+
return {
|
|
902
|
+
path: urlPath,
|
|
903
|
+
method: 'GET',
|
|
904
|
+
headers: headerParameters,
|
|
905
|
+
query: queryParameters,
|
|
906
|
+
};
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
911
|
+
* @deprecated
|
|
912
|
+
*/
|
|
913
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
916
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
917
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
922
|
+
* @deprecated
|
|
923
|
+
*/
|
|
924
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
925
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
926
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
927
|
+
return yield response.value();
|
|
928
|
+
});
|
|
929
|
+
}
|
|
609
930
|
/**
|
|
610
931
|
* Creates request options for getVM without sending the request
|
|
611
932
|
*/
|
|
@@ -645,6 +966,41 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
645
966
|
return yield response.value();
|
|
646
967
|
});
|
|
647
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* Creates request options for getVMLabels without sending the request
|
|
971
|
+
*/
|
|
972
|
+
getVMLabelsRequestOpts() {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
const queryParameters = {};
|
|
975
|
+
const headerParameters = {};
|
|
976
|
+
let urlPath = `/vms/labels`;
|
|
977
|
+
return {
|
|
978
|
+
path: urlPath,
|
|
979
|
+
method: 'GET',
|
|
980
|
+
headers: headerParameters,
|
|
981
|
+
query: queryParameters,
|
|
982
|
+
};
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Get all distinct labels in use across VMs
|
|
987
|
+
*/
|
|
988
|
+
getVMLabelsRaw(initOverrides) {
|
|
989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
990
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
991
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
992
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Get all distinct labels in use across VMs
|
|
997
|
+
*/
|
|
998
|
+
getVMLabels(initOverrides) {
|
|
999
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1000
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
1001
|
+
return yield response.value();
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
648
1004
|
/**
|
|
649
1005
|
* Creates request options for getVMUtilization without sending the request
|
|
650
1006
|
*/
|
|
@@ -731,6 +1087,41 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
731
1087
|
return yield response.value();
|
|
732
1088
|
});
|
|
733
1089
|
}
|
|
1090
|
+
/**
|
|
1091
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1092
|
+
*/
|
|
1093
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1094
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1095
|
+
const queryParameters = {};
|
|
1096
|
+
const headerParameters = {};
|
|
1097
|
+
let urlPath = `/vms/filter-options`;
|
|
1098
|
+
return {
|
|
1099
|
+
path: urlPath,
|
|
1100
|
+
method: 'GET',
|
|
1101
|
+
headers: headerParameters,
|
|
1102
|
+
query: queryParameters,
|
|
1103
|
+
};
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Get distinct filter option values for VMs
|
|
1108
|
+
*/
|
|
1109
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1112
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Get distinct filter option values for VMs
|
|
1118
|
+
*/
|
|
1119
|
+
getVMsFilterOptions(initOverrides) {
|
|
1120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1121
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1122
|
+
return yield response.value();
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
734
1125
|
/**
|
|
735
1126
|
* Creates request options for getVersion without sending the request
|
|
736
1127
|
*/
|
|
@@ -810,6 +1201,48 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
810
1201
|
return yield response.value();
|
|
811
1202
|
});
|
|
812
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1206
|
+
*/
|
|
1207
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1209
|
+
if (requestParameters['reportId'] == null) {
|
|
1210
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1211
|
+
}
|
|
1212
|
+
const queryParameters = {};
|
|
1213
|
+
if (requestParameters['byExpression'] != null) {
|
|
1214
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1215
|
+
}
|
|
1216
|
+
const headerParameters = {};
|
|
1217
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1218
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1219
|
+
return {
|
|
1220
|
+
path: urlPath,
|
|
1221
|
+
method: 'GET',
|
|
1222
|
+
headers: headerParameters,
|
|
1223
|
+
query: queryParameters,
|
|
1224
|
+
};
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1229
|
+
*/
|
|
1230
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1232
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1233
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1234
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1239
|
+
*/
|
|
1240
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1242
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1243
|
+
return yield response.value();
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
813
1246
|
/**
|
|
814
1247
|
* Creates request options for listRightsizingReports without sending the request
|
|
815
1248
|
*/
|
|
@@ -888,17 +1321,17 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
888
1321
|
});
|
|
889
1322
|
}
|
|
890
1323
|
/**
|
|
891
|
-
* Creates request options for
|
|
1324
|
+
* Creates request options for putCredentials without sending the request
|
|
892
1325
|
*/
|
|
893
|
-
|
|
1326
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
894
1327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
895
1328
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
896
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1329
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
897
1330
|
}
|
|
898
1331
|
const queryParameters = {};
|
|
899
1332
|
const headerParameters = {};
|
|
900
1333
|
headerParameters['Content-Type'] = 'application/json';
|
|
901
|
-
let urlPath = `/
|
|
1334
|
+
let urlPath = `/credentials`;
|
|
902
1335
|
return {
|
|
903
1336
|
path: urlPath,
|
|
904
1337
|
method: 'PUT',
|
|
@@ -909,37 +1342,38 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
909
1342
|
});
|
|
910
1343
|
}
|
|
911
1344
|
/**
|
|
912
|
-
* Validates
|
|
913
|
-
*
|
|
1345
|
+
* 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.
|
|
1346
|
+
* Store vCenter credentials
|
|
914
1347
|
*/
|
|
915
|
-
|
|
1348
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
916
1349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
917
|
-
const requestOptions = yield this.
|
|
1350
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
918
1351
|
const response = yield this.request(requestOptions, initOverrides);
|
|
919
|
-
return new runtime.
|
|
1352
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
920
1353
|
});
|
|
921
1354
|
}
|
|
922
1355
|
/**
|
|
923
|
-
* Validates
|
|
924
|
-
*
|
|
1356
|
+
* 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.
|
|
1357
|
+
* Store vCenter credentials
|
|
925
1358
|
*/
|
|
926
|
-
|
|
1359
|
+
putCredentials(requestParameters, initOverrides) {
|
|
927
1360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
928
|
-
yield this.
|
|
1361
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1362
|
+
return yield response.value();
|
|
929
1363
|
});
|
|
930
1364
|
}
|
|
931
1365
|
/**
|
|
932
|
-
* Creates request options for
|
|
1366
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
933
1367
|
*/
|
|
934
|
-
|
|
1368
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
935
1369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
936
1370
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
937
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1371
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
938
1372
|
}
|
|
939
1373
|
const queryParameters = {};
|
|
940
1374
|
const headerParameters = {};
|
|
941
1375
|
headerParameters['Content-Type'] = 'application/json';
|
|
942
|
-
let urlPath = `/
|
|
1376
|
+
let urlPath = `/forecaster/credentials`;
|
|
943
1377
|
return {
|
|
944
1378
|
path: urlPath,
|
|
945
1379
|
method: 'PUT',
|
|
@@ -950,21 +1384,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
950
1384
|
});
|
|
951
1385
|
}
|
|
952
1386
|
/**
|
|
953
|
-
*
|
|
1387
|
+
* 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.
|
|
1388
|
+
* Verify vCenter credentials and permissions
|
|
954
1389
|
*/
|
|
955
|
-
|
|
1390
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
956
1391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
957
|
-
const requestOptions = yield this.
|
|
1392
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
958
1393
|
const response = yield this.request(requestOptions, initOverrides);
|
|
959
1394
|
return new runtime.VoidApiResponse(response);
|
|
960
1395
|
});
|
|
961
1396
|
}
|
|
962
1397
|
/**
|
|
963
|
-
*
|
|
1398
|
+
* 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.
|
|
1399
|
+
* Verify vCenter credentials and permissions
|
|
964
1400
|
*/
|
|
965
|
-
|
|
1401
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
966
1402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
-
yield this.
|
|
1403
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
968
1404
|
});
|
|
969
1405
|
}
|
|
970
1406
|
/**
|
|
@@ -1456,4 +1892,129 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1456
1892
|
return yield response.value();
|
|
1457
1893
|
});
|
|
1458
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1897
|
+
*/
|
|
1898
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1900
|
+
if (requestParameters['label'] == null) {
|
|
1901
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1902
|
+
}
|
|
1903
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1904
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1905
|
+
}
|
|
1906
|
+
const queryParameters = {};
|
|
1907
|
+
const headerParameters = {};
|
|
1908
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1909
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1910
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1911
|
+
return {
|
|
1912
|
+
path: urlPath,
|
|
1913
|
+
method: 'PATCH',
|
|
1914
|
+
headers: headerParameters,
|
|
1915
|
+
query: queryParameters,
|
|
1916
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
1917
|
+
};
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1922
|
+
*/
|
|
1923
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1925
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1926
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1927
|
+
return new runtime.VoidApiResponse(response);
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1932
|
+
*/
|
|
1933
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1935
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Creates request options for updateVM without sending the request
|
|
1940
|
+
*/
|
|
1941
|
+
updateVMRequestOpts(requestParameters) {
|
|
1942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1943
|
+
if (requestParameters['id'] == null) {
|
|
1944
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1945
|
+
}
|
|
1946
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1947
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1948
|
+
}
|
|
1949
|
+
const queryParameters = {};
|
|
1950
|
+
const headerParameters = {};
|
|
1951
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1952
|
+
let urlPath = `/vms/{id}`;
|
|
1953
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1954
|
+
return {
|
|
1955
|
+
path: urlPath,
|
|
1956
|
+
method: 'PATCH',
|
|
1957
|
+
headers: headerParameters,
|
|
1958
|
+
query: queryParameters,
|
|
1959
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
1960
|
+
};
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Update VM properties
|
|
1965
|
+
*/
|
|
1966
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1968
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1969
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1970
|
+
return new runtime.VoidApiResponse(response);
|
|
1971
|
+
});
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* Update VM properties
|
|
1975
|
+
*/
|
|
1976
|
+
updateVM(requestParameters, initOverrides) {
|
|
1977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1978
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1983
|
+
*/
|
|
1984
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1985
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1986
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1987
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1988
|
+
}
|
|
1989
|
+
const queryParameters = {};
|
|
1990
|
+
const headerParameters = {};
|
|
1991
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1992
|
+
let urlPath = `/inspector/credentials`;
|
|
1993
|
+
return {
|
|
1994
|
+
path: urlPath,
|
|
1995
|
+
method: 'POST',
|
|
1996
|
+
headers: headerParameters,
|
|
1997
|
+
query: queryParameters,
|
|
1998
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1999
|
+
};
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
/**
|
|
2003
|
+
* Validate vCenter credentials for inspector
|
|
2004
|
+
*/
|
|
2005
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
2006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2007
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
2008
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2009
|
+
return new runtime.VoidApiResponse(response);
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Validate vCenter credentials for inspector
|
|
2014
|
+
*/
|
|
2015
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
2016
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2017
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2018
|
+
});
|
|
2019
|
+
}
|
|
1459
2020
|
}
|