@openshift-migration-advisor/agent-sdk 0.12.0-f90a4cad59fa → 0.16.0
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 +14 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -3
- package/dist/apis/DefaultApi.d.ts +209 -4
- package/dist/apis/DefaultApi.js +229 -0
- package/dist/esm/apis/DefaultApi.d.ts +209 -4
- package/dist/esm/apis/DefaultApi.js +229 -0
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -0
- package/dist/esm/models/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +1 -1
- package/dist/esm/models/StartInspectionRequest.js +1 -3
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +4 -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/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -0
- package/dist/models/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -0
- package/dist/models/StartInspectionRequest.d.ts +1 -1
- package/dist/models/StartInspectionRequest.js +1 -3
- package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/models/VMFilterOptionsResponse.js +4 -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/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/runtime.js +2 -1
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CredentialStatus.md +38 -0
- package/docs/DefaultApi.md +391 -7
- package/docs/OperationCapability.md +36 -0
- package/docs/VMFilterOptionsResponse.md +2 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +408 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CredentialStatus.ts +84 -0
- package/src/models/OperationCapability.ts +74 -0
- package/src/models/StartInspectionRequest.ts +2 -3
- package/src/models/VMFilterOptionsResponse.ts +9 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/index.ts +7 -0
- package/src/runtime.ts +1 -1
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,10 +26,13 @@ exports.DefaultApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
29
30
|
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
31
|
+
const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
|
|
30
32
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
33
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
34
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
35
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
33
36
|
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
37
|
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
35
38
|
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
@@ -107,6 +110,42 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
107
110
|
return yield response.value();
|
|
108
111
|
});
|
|
109
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for deleteCredentials without sending the request
|
|
115
|
+
*/
|
|
116
|
+
deleteCredentialsRequestOpts() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
let urlPath = `/credentials`;
|
|
121
|
+
return {
|
|
122
|
+
path: urlPath,
|
|
123
|
+
method: 'DELETE',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Removes all stored vCenter credentials from the database.
|
|
131
|
+
* Delete stored credentials
|
|
132
|
+
*/
|
|
133
|
+
deleteCredentialsRaw(initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
136
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
137
|
+
return new runtime.VoidApiResponse(response);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Removes all stored vCenter credentials from the database.
|
|
142
|
+
* Delete stored credentials
|
|
143
|
+
*/
|
|
144
|
+
deleteCredentials(initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
110
149
|
/**
|
|
111
150
|
* Creates request options for deleteForecasterRun without sending the request
|
|
112
151
|
*/
|
|
@@ -257,6 +296,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
257
296
|
return yield response.value();
|
|
258
297
|
});
|
|
259
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getApplications without sending the request
|
|
301
|
+
*/
|
|
302
|
+
getApplicationsRequestOpts() {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
let urlPath = `/applications`;
|
|
307
|
+
return {
|
|
308
|
+
path: urlPath,
|
|
309
|
+
method: 'GET',
|
|
310
|
+
headers: headerParameters,
|
|
311
|
+
query: queryParameters,
|
|
312
|
+
};
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* List detected applications running on VMs
|
|
317
|
+
*/
|
|
318
|
+
getApplicationsRaw(initOverrides) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
321
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
322
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* List detected applications running on VMs
|
|
327
|
+
*/
|
|
328
|
+
getApplications(initOverrides) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
331
|
+
return yield response.value();
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
336
|
+
*/
|
|
337
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
if (requestParameters['clusterId'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
341
|
+
}
|
|
342
|
+
const queryParameters = {};
|
|
343
|
+
const headerParameters = {};
|
|
344
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
345
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
346
|
+
return {
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Get latest cluster utilization by cluster ID
|
|
356
|
+
*/
|
|
357
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
360
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
361
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get latest cluster utilization by cluster ID
|
|
366
|
+
*/
|
|
367
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
370
|
+
return yield response.value();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
260
373
|
/**
|
|
261
374
|
* Creates request options for getCollectorStatus without sending the request
|
|
262
375
|
*/
|
|
@@ -292,6 +405,80 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
292
405
|
return yield response.value();
|
|
293
406
|
});
|
|
294
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
410
|
+
*/
|
|
411
|
+
getCredentialCapabilitiesRequestOpts() {
|
|
412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
+
const queryParameters = {};
|
|
414
|
+
const headerParameters = {};
|
|
415
|
+
let urlPath = `/credentials/capabilities`;
|
|
416
|
+
return {
|
|
417
|
+
path: urlPath,
|
|
418
|
+
method: 'GET',
|
|
419
|
+
headers: headerParameters,
|
|
420
|
+
query: queryParameters,
|
|
421
|
+
};
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
426
|
+
* Check vSphere operation capabilities
|
|
427
|
+
*/
|
|
428
|
+
getCredentialCapabilitiesRaw(initOverrides) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
|
|
431
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
432
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CapabilityStatus_js_1.CapabilityStatusFromJSON)(jsonValue));
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
437
|
+
* Check vSphere operation capabilities
|
|
438
|
+
*/
|
|
439
|
+
getCredentialCapabilities(initOverrides) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
|
|
442
|
+
return yield response.value();
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Creates request options for getCredentials without sending the request
|
|
447
|
+
*/
|
|
448
|
+
getCredentialsRequestOpts() {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
const queryParameters = {};
|
|
451
|
+
const headerParameters = {};
|
|
452
|
+
let urlPath = `/credentials`;
|
|
453
|
+
return {
|
|
454
|
+
path: urlPath,
|
|
455
|
+
method: 'GET',
|
|
456
|
+
headers: headerParameters,
|
|
457
|
+
query: queryParameters,
|
|
458
|
+
};
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
463
|
+
* Get stored credential status
|
|
464
|
+
*/
|
|
465
|
+
getCredentialsRaw(initOverrides) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
468
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
474
|
+
* Get stored credential status
|
|
475
|
+
*/
|
|
476
|
+
getCredentials(initOverrides) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
479
|
+
return yield response.value();
|
|
480
|
+
});
|
|
481
|
+
}
|
|
295
482
|
/**
|
|
296
483
|
* Creates request options for getForecasterDatastores without sending the request
|
|
297
484
|
*/
|
|
@@ -1174,6 +1361,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1174
1361
|
return yield response.value();
|
|
1175
1362
|
});
|
|
1176
1363
|
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Creates request options for putCredentials without sending the request
|
|
1366
|
+
*/
|
|
1367
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
1368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1369
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1370
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
1371
|
+
}
|
|
1372
|
+
const queryParameters = {};
|
|
1373
|
+
const headerParameters = {};
|
|
1374
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1375
|
+
let urlPath = `/credentials`;
|
|
1376
|
+
return {
|
|
1377
|
+
path: urlPath,
|
|
1378
|
+
method: 'PUT',
|
|
1379
|
+
headers: headerParameters,
|
|
1380
|
+
query: queryParameters,
|
|
1381
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1382
|
+
};
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1387
|
+
* Store vCenter credentials
|
|
1388
|
+
*/
|
|
1389
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
1390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
1392
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1398
|
+
* Store vCenter credentials
|
|
1399
|
+
*/
|
|
1400
|
+
putCredentials(requestParameters, initOverrides) {
|
|
1401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1403
|
+
return yield response.value();
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1177
1406
|
/**
|
|
1178
1407
|
* Creates request options for putForecasterCredentials without sending the request
|
|
1179
1408
|
*/
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type AgentModeRequest } from '../models/AgentModeRequest.js';
|
|
14
14
|
import { type AgentStatus } from '../models/AgentStatus.js';
|
|
15
|
+
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
15
16
|
import { type BenchmarkRun } from '../models/BenchmarkRun.js';
|
|
17
|
+
import { type CapabilityStatus } from '../models/CapabilityStatus.js';
|
|
16
18
|
import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
|
|
17
19
|
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
18
20
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
21
|
+
import { type CredentialStatus } from '../models/CredentialStatus.js';
|
|
19
22
|
import { type DatastoreDetail } from '../models/DatastoreDetail.js';
|
|
20
23
|
import { type DeleteLabelGloballyResponse } from '../models/DeleteLabelGloballyResponse.js';
|
|
21
24
|
import { type ForecastStats } from '../models/ForecastStats.js';
|
|
@@ -61,6 +64,9 @@ export interface DeleteGroupRequest {
|
|
|
61
64
|
export interface DeleteLabelGloballyRequest {
|
|
62
65
|
label: string;
|
|
63
66
|
}
|
|
67
|
+
export interface GetClusterUtilizationRequest {
|
|
68
|
+
clusterId: string;
|
|
69
|
+
}
|
|
64
70
|
export interface GetForecasterDatastoresRequest {
|
|
65
71
|
forecasterDatastoresRequest?: ForecasterDatastoresRequest;
|
|
66
72
|
}
|
|
@@ -121,6 +127,9 @@ export interface ListRightsizingReportClustersRequest {
|
|
|
121
127
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
122
128
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
123
129
|
}
|
|
130
|
+
export interface PutCredentialsRequest {
|
|
131
|
+
vcenterCredentials: VcenterCredentials;
|
|
132
|
+
}
|
|
124
133
|
export interface PutForecasterCredentialsRequest {
|
|
125
134
|
vcenterCredentials: VcenterCredentials;
|
|
126
135
|
}
|
|
@@ -190,6 +199,25 @@ export interface DefaultApiInterface {
|
|
|
190
199
|
* Create a new group
|
|
191
200
|
*/
|
|
192
201
|
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
202
|
+
/**
|
|
203
|
+
* Creates request options for deleteCredentials without sending the request
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
* @memberof DefaultApiInterface
|
|
206
|
+
*/
|
|
207
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
208
|
+
/**
|
|
209
|
+
* Removes all stored vCenter credentials from the database.
|
|
210
|
+
* @summary Delete stored credentials
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
* @memberof DefaultApiInterface
|
|
214
|
+
*/
|
|
215
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
|
+
/**
|
|
217
|
+
* Removes all stored vCenter credentials from the database.
|
|
218
|
+
* Delete stored credentials
|
|
219
|
+
*/
|
|
220
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
193
221
|
/**
|
|
194
222
|
* Creates request options for deleteForecasterRun without sending the request
|
|
195
223
|
* @param {number} id Run ID
|
|
@@ -268,6 +296,44 @@ export interface DefaultApiInterface {
|
|
|
268
296
|
* Get agent status
|
|
269
297
|
*/
|
|
270
298
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getApplications without sending the request
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
* @memberof DefaultApiInterface
|
|
303
|
+
*/
|
|
304
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @summary List detected applications running on VMs
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
* @memberof DefaultApiInterface
|
|
311
|
+
*/
|
|
312
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
313
|
+
/**
|
|
314
|
+
* List detected applications running on VMs
|
|
315
|
+
*/
|
|
316
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
317
|
+
/**
|
|
318
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
319
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
* @memberof DefaultApiInterface
|
|
322
|
+
*/
|
|
323
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
327
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
* @memberof DefaultApiInterface
|
|
331
|
+
*/
|
|
332
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
333
|
+
/**
|
|
334
|
+
* Get latest cluster utilization by cluster ID
|
|
335
|
+
*/
|
|
336
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
271
337
|
/**
|
|
272
338
|
* Creates request options for getCollectorStatus without sending the request
|
|
273
339
|
* @throws {RequiredError}
|
|
@@ -286,6 +352,44 @@ export interface DefaultApiInterface {
|
|
|
286
352
|
* Get collector status
|
|
287
353
|
*/
|
|
288
354
|
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
355
|
+
/**
|
|
356
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof DefaultApiInterface
|
|
359
|
+
*/
|
|
360
|
+
getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
361
|
+
/**
|
|
362
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
363
|
+
* @summary Check vSphere operation capabilities
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
* @memberof DefaultApiInterface
|
|
367
|
+
*/
|
|
368
|
+
getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>>;
|
|
369
|
+
/**
|
|
370
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
371
|
+
* Check vSphere operation capabilities
|
|
372
|
+
*/
|
|
373
|
+
getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus>;
|
|
374
|
+
/**
|
|
375
|
+
* Creates request options for getCredentials without sending the request
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof DefaultApiInterface
|
|
378
|
+
*/
|
|
379
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
380
|
+
/**
|
|
381
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
382
|
+
* @summary Get stored credential status
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
* @memberof DefaultApiInterface
|
|
386
|
+
*/
|
|
387
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
388
|
+
/**
|
|
389
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
390
|
+
* Get stored credential status
|
|
391
|
+
*/
|
|
392
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
289
393
|
/**
|
|
290
394
|
* Creates request options for getForecasterDatastores without sending the request
|
|
291
395
|
* @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
|
|
@@ -371,7 +475,7 @@ export interface DefaultApiInterface {
|
|
|
371
475
|
/**
|
|
372
476
|
* Creates request options for getGroup without sending the request
|
|
373
477
|
* @param {string} id Group ID
|
|
374
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
478
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
375
479
|
* @param {number} [page] Page number for pagination
|
|
376
480
|
* @param {number} [pageSize] Number of items per page
|
|
377
481
|
* @throws {RequiredError}
|
|
@@ -382,7 +486,7 @@ export interface DefaultApiInterface {
|
|
|
382
486
|
*
|
|
383
487
|
* @summary Get group by ID with its VMs
|
|
384
488
|
* @param {string} id Group ID
|
|
385
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
489
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
386
490
|
* @param {number} [page] Page number for pagination
|
|
387
491
|
* @param {number} [pageSize] Number of items per page
|
|
388
492
|
* @param {*} [options] Override http request option.
|
|
@@ -605,7 +709,7 @@ export interface DefaultApiInterface {
|
|
|
605
709
|
/**
|
|
606
710
|
* Creates request options for getVMs without sending the request
|
|
607
711
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
608
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
712
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
609
713
|
* @param {number} [page] Page number for pagination
|
|
610
714
|
* @param {number} [pageSize] Number of items per page
|
|
611
715
|
* @throws {RequiredError}
|
|
@@ -616,7 +720,7 @@ export interface DefaultApiInterface {
|
|
|
616
720
|
*
|
|
617
721
|
* @summary Get list of VMs with filtering and pagination
|
|
618
722
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
619
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
723
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
620
724
|
* @param {number} [page] Page number for pagination
|
|
621
725
|
* @param {number} [pageSize] Number of items per page
|
|
622
726
|
* @param {*} [options] Override http request option.
|
|
@@ -749,6 +853,27 @@ export interface DefaultApiInterface {
|
|
|
749
853
|
* Compute pair capabilities
|
|
750
854
|
*/
|
|
751
855
|
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
856
|
+
/**
|
|
857
|
+
* Creates request options for putCredentials without sending the request
|
|
858
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
* @memberof DefaultApiInterface
|
|
861
|
+
*/
|
|
862
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
863
|
+
/**
|
|
864
|
+
* 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.
|
|
865
|
+
* @summary Store vCenter credentials
|
|
866
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
867
|
+
* @param {*} [options] Override http request option.
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
* @memberof DefaultApiInterface
|
|
870
|
+
*/
|
|
871
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
872
|
+
/**
|
|
873
|
+
* 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.
|
|
874
|
+
* Store vCenter credentials
|
|
875
|
+
*/
|
|
876
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
752
877
|
/**
|
|
753
878
|
* Creates request options for putForecasterCredentials without sending the request
|
|
754
879
|
* @param {VcenterCredentials} vcenterCredentials
|
|
@@ -1090,6 +1215,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1090
1215
|
* Create a new group
|
|
1091
1216
|
*/
|
|
1092
1217
|
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1218
|
+
/**
|
|
1219
|
+
* Creates request options for deleteCredentials without sending the request
|
|
1220
|
+
*/
|
|
1221
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Removes all stored vCenter credentials from the database.
|
|
1224
|
+
* Delete stored credentials
|
|
1225
|
+
*/
|
|
1226
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Removes all stored vCenter credentials from the database.
|
|
1229
|
+
* Delete stored credentials
|
|
1230
|
+
*/
|
|
1231
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1093
1232
|
/**
|
|
1094
1233
|
* Creates request options for deleteForecasterRun without sending the request
|
|
1095
1234
|
*/
|
|
@@ -1138,6 +1277,30 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1138
1277
|
* Get agent status
|
|
1139
1278
|
*/
|
|
1140
1279
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Creates request options for getApplications without sending the request
|
|
1282
|
+
*/
|
|
1283
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1284
|
+
/**
|
|
1285
|
+
* List detected applications running on VMs
|
|
1286
|
+
*/
|
|
1287
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
1288
|
+
/**
|
|
1289
|
+
* List detected applications running on VMs
|
|
1290
|
+
*/
|
|
1291
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
1294
|
+
*/
|
|
1295
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Get latest cluster utilization by cluster ID
|
|
1298
|
+
*/
|
|
1299
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Get latest cluster utilization by cluster ID
|
|
1302
|
+
*/
|
|
1303
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
1141
1304
|
/**
|
|
1142
1305
|
* Creates request options for getCollectorStatus without sending the request
|
|
1143
1306
|
*/
|
|
@@ -1150,6 +1313,34 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1150
1313
|
* Get collector status
|
|
1151
1314
|
*/
|
|
1152
1315
|
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
1316
|
+
/**
|
|
1317
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
1318
|
+
*/
|
|
1319
|
+
getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
1322
|
+
* Check vSphere operation capabilities
|
|
1323
|
+
*/
|
|
1324
|
+
getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
1327
|
+
* Check vSphere operation capabilities
|
|
1328
|
+
*/
|
|
1329
|
+
getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Creates request options for getCredentials without sending the request
|
|
1332
|
+
*/
|
|
1333
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1336
|
+
* Get stored credential status
|
|
1337
|
+
*/
|
|
1338
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1341
|
+
* Get stored credential status
|
|
1342
|
+
*/
|
|
1343
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
1153
1344
|
/**
|
|
1154
1345
|
* Creates request options for getForecasterDatastores without sending the request
|
|
1155
1346
|
*/
|
|
@@ -1430,6 +1621,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1430
1621
|
* Compute pair capabilities
|
|
1431
1622
|
*/
|
|
1432
1623
|
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Creates request options for putCredentials without sending the request
|
|
1626
|
+
*/
|
|
1627
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1628
|
+
/**
|
|
1629
|
+
* 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.
|
|
1630
|
+
* Store vCenter credentials
|
|
1631
|
+
*/
|
|
1632
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
1633
|
+
/**
|
|
1634
|
+
* 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.
|
|
1635
|
+
* Store vCenter credentials
|
|
1636
|
+
*/
|
|
1637
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
1433
1638
|
/**
|
|
1434
1639
|
* Creates request options for putForecasterCredentials without sending the request
|
|
1435
1640
|
*/
|