@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e6e9d25bdc36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +30 -0
- package/README.md +29 -2
- package/dist/apis/DefaultApi.d.ts +442 -0
- package/dist/apis/DefaultApi.js +484 -0
- package/dist/esm/apis/DefaultApi.d.ts +442 -0
- package/dist/esm/apis/DefaultApi.js +484 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +106 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +91 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/esm/models/VmUtilizationDetails.js +12 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +106 -0
- package/dist/models/RightsizingClusterUtilization.js +98 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/models/VmUtilizationDetails.js +12 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +875 -66
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +58 -0
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VmUtilizationDetails.md +6 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +919 -17
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +176 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VmUtilizationDetails.ts +27 -0
- package/src/models/index.ts +15 -0
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,19 +26,29 @@ 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 BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
29
30
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
30
31
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
31
32
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
33
|
+
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
|
+
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
35
|
+
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
36
|
+
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
37
|
+
const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
|
|
32
38
|
const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
|
|
33
39
|
const Group_js_1 = require("../models/Group.js");
|
|
34
40
|
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
35
41
|
const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
36
42
|
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
43
|
+
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
44
|
+
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
45
|
+
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
37
46
|
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
38
47
|
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
39
48
|
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
40
49
|
const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
|
|
41
50
|
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
51
|
+
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
42
52
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
43
53
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
44
54
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
@@ -91,6 +101,44 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
91
101
|
return yield response.value();
|
|
92
102
|
});
|
|
93
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
106
|
+
*/
|
|
107
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
if (requestParameters['id'] == null) {
|
|
110
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
111
|
+
}
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
115
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
116
|
+
return {
|
|
117
|
+
path: urlPath,
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Delete a benchmark run
|
|
126
|
+
*/
|
|
127
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
130
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
131
|
+
return new runtime.VoidApiResponse(response);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Delete a benchmark run
|
|
136
|
+
*/
|
|
137
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
94
142
|
/**
|
|
95
143
|
* Creates request options for deleteGroup without sending the request
|
|
96
144
|
*/
|
|
@@ -199,6 +247,165 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
199
247
|
return yield response.value();
|
|
200
248
|
});
|
|
201
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
252
|
+
*/
|
|
253
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
const queryParameters = {};
|
|
256
|
+
const headerParameters = {};
|
|
257
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
258
|
+
let urlPath = `/forecaster/datastores`;
|
|
259
|
+
return {
|
|
260
|
+
path: urlPath,
|
|
261
|
+
method: 'POST',
|
|
262
|
+
headers: headerParameters,
|
|
263
|
+
query: queryParameters,
|
|
264
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
265
|
+
};
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
270
|
+
* List available datastores
|
|
271
|
+
*/
|
|
272
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
275
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
276
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
281
|
+
* List available datastores
|
|
282
|
+
*/
|
|
283
|
+
getForecasterDatastores() {
|
|
284
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
285
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
286
|
+
return yield response.value();
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
291
|
+
*/
|
|
292
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
const queryParameters = {};
|
|
295
|
+
if (requestParameters['pairName'] != null) {
|
|
296
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
297
|
+
}
|
|
298
|
+
const headerParameters = {};
|
|
299
|
+
let urlPath = `/forecaster/runs`;
|
|
300
|
+
return {
|
|
301
|
+
path: urlPath,
|
|
302
|
+
method: 'GET',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
};
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
310
|
+
* List benchmark runs
|
|
311
|
+
*/
|
|
312
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
315
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
316
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
321
|
+
* List benchmark runs
|
|
322
|
+
*/
|
|
323
|
+
getForecasterRuns() {
|
|
324
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
325
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
326
|
+
return yield response.value();
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Creates request options for getForecasterStats without sending the request
|
|
331
|
+
*/
|
|
332
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
if (requestParameters['pairName'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
336
|
+
}
|
|
337
|
+
const queryParameters = {};
|
|
338
|
+
if (requestParameters['pairName'] != null) {
|
|
339
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
340
|
+
}
|
|
341
|
+
const headerParameters = {};
|
|
342
|
+
let urlPath = `/forecaster/stats`;
|
|
343
|
+
return {
|
|
344
|
+
path: urlPath,
|
|
345
|
+
method: 'GET',
|
|
346
|
+
headers: headerParameters,
|
|
347
|
+
query: queryParameters,
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
353
|
+
* Get throughput statistics
|
|
354
|
+
*/
|
|
355
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
358
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
359
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
364
|
+
* Get throughput statistics
|
|
365
|
+
*/
|
|
366
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
369
|
+
return yield response.value();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
374
|
+
*/
|
|
375
|
+
getForecasterStatusRequestOpts() {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
const queryParameters = {};
|
|
378
|
+
const headerParameters = {};
|
|
379
|
+
let urlPath = `/forecaster`;
|
|
380
|
+
return {
|
|
381
|
+
path: urlPath,
|
|
382
|
+
method: 'GET',
|
|
383
|
+
headers: headerParameters,
|
|
384
|
+
query: queryParameters,
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Returns current service state with per-pair progress details.
|
|
390
|
+
* Poll forecaster status
|
|
391
|
+
*/
|
|
392
|
+
getForecasterStatusRaw(initOverrides) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
395
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Returns current service state with per-pair progress details.
|
|
401
|
+
* Poll forecaster status
|
|
402
|
+
*/
|
|
403
|
+
getForecasterStatus(initOverrides) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
406
|
+
return yield response.value();
|
|
407
|
+
});
|
|
408
|
+
}
|
|
202
409
|
/**
|
|
203
410
|
* Creates request options for getGroup without sending the request
|
|
204
411
|
*/
|
|
@@ -364,6 +571,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
364
571
|
return yield response.value();
|
|
365
572
|
});
|
|
366
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
576
|
+
*/
|
|
577
|
+
getLatestRightsizingClustersRequestOpts() {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
+
const queryParameters = {};
|
|
580
|
+
const headerParameters = {};
|
|
581
|
+
let urlPath = `/cluster_rightsizing`;
|
|
582
|
+
return {
|
|
583
|
+
path: urlPath,
|
|
584
|
+
method: 'GET',
|
|
585
|
+
headers: headerParameters,
|
|
586
|
+
query: queryParameters,
|
|
587
|
+
};
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
592
|
+
*/
|
|
593
|
+
getLatestRightsizingClustersRaw(initOverrides) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts();
|
|
596
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
597
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
602
|
+
*/
|
|
603
|
+
getLatestRightsizingClusters(initOverrides) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
const response = yield this.getLatestRightsizingClustersRaw(initOverrides);
|
|
606
|
+
return yield response.value();
|
|
607
|
+
});
|
|
608
|
+
}
|
|
367
609
|
/**
|
|
368
610
|
* Creates request options for getRightsizingReport without sending the request
|
|
369
611
|
*/
|
|
@@ -403,6 +645,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
403
645
|
return yield response.value();
|
|
404
646
|
});
|
|
405
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
650
|
+
*/
|
|
651
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
653
|
+
if (requestParameters['reportId'] == null) {
|
|
654
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
655
|
+
}
|
|
656
|
+
const queryParameters = {};
|
|
657
|
+
const headerParameters = {};
|
|
658
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
659
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
660
|
+
return {
|
|
661
|
+
path: urlPath,
|
|
662
|
+
method: 'GET',
|
|
663
|
+
headers: headerParameters,
|
|
664
|
+
query: queryParameters,
|
|
665
|
+
};
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
670
|
+
*/
|
|
671
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
674
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
675
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
680
|
+
*/
|
|
681
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
684
|
+
return yield response.value();
|
|
685
|
+
});
|
|
686
|
+
}
|
|
406
687
|
/**
|
|
407
688
|
* Creates request options for getVM without sending the request
|
|
408
689
|
*/
|
|
@@ -642,6 +923,89 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
642
923
|
return yield response.value();
|
|
643
924
|
});
|
|
644
925
|
}
|
|
926
|
+
/**
|
|
927
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
928
|
+
*/
|
|
929
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
932
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
933
|
+
}
|
|
934
|
+
const queryParameters = {};
|
|
935
|
+
const headerParameters = {};
|
|
936
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
937
|
+
let urlPath = `/forecaster/capabilities`;
|
|
938
|
+
return {
|
|
939
|
+
path: urlPath,
|
|
940
|
+
method: 'POST',
|
|
941
|
+
headers: headerParameters,
|
|
942
|
+
query: queryParameters,
|
|
943
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
944
|
+
};
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
949
|
+
* Compute pair capabilities
|
|
950
|
+
*/
|
|
951
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
952
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
953
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
954
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
955
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
960
|
+
* Compute pair capabilities
|
|
961
|
+
*/
|
|
962
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
964
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
965
|
+
return yield response.value();
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
970
|
+
*/
|
|
971
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
974
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
975
|
+
}
|
|
976
|
+
const queryParameters = {};
|
|
977
|
+
const headerParameters = {};
|
|
978
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
979
|
+
let urlPath = `/forecaster/credentials`;
|
|
980
|
+
return {
|
|
981
|
+
path: urlPath,
|
|
982
|
+
method: 'PUT',
|
|
983
|
+
headers: headerParameters,
|
|
984
|
+
query: queryParameters,
|
|
985
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
986
|
+
};
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* 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.
|
|
991
|
+
* Verify vCenter credentials and permissions
|
|
992
|
+
*/
|
|
993
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
995
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
996
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
997
|
+
return new runtime.VoidApiResponse(response);
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* 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.
|
|
1002
|
+
* Verify vCenter credentials and permissions
|
|
1003
|
+
*/
|
|
1004
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
1005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
645
1009
|
/**
|
|
646
1010
|
* Creates request options for putInspectorCredentials without sending the request
|
|
647
1011
|
*/
|
|
@@ -857,6 +1221,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
857
1221
|
return yield response.value();
|
|
858
1222
|
});
|
|
859
1223
|
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Creates request options for startForecaster without sending the request
|
|
1226
|
+
*/
|
|
1227
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1229
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1230
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1231
|
+
}
|
|
1232
|
+
const queryParameters = {};
|
|
1233
|
+
const headerParameters = {};
|
|
1234
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1235
|
+
let urlPath = `/forecaster`;
|
|
1236
|
+
return {
|
|
1237
|
+
path: urlPath,
|
|
1238
|
+
method: 'POST',
|
|
1239
|
+
headers: headerParameters,
|
|
1240
|
+
query: queryParameters,
|
|
1241
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1242
|
+
};
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1247
|
+
* Start benchmark
|
|
1248
|
+
*/
|
|
1249
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1251
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1252
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1253
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1258
|
+
* Start benchmark
|
|
1259
|
+
*/
|
|
1260
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1262
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1263
|
+
return yield response.value();
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
860
1266
|
/**
|
|
861
1267
|
* Creates request options for startInspection without sending the request
|
|
862
1268
|
*/
|
|
@@ -931,6 +1337,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
931
1337
|
yield this.stopCollectorRaw(initOverrides);
|
|
932
1338
|
});
|
|
933
1339
|
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Creates request options for stopForecaster without sending the request
|
|
1342
|
+
*/
|
|
1343
|
+
stopForecasterRequestOpts() {
|
|
1344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1345
|
+
const queryParameters = {};
|
|
1346
|
+
const headerParameters = {};
|
|
1347
|
+
let urlPath = `/forecaster`;
|
|
1348
|
+
return {
|
|
1349
|
+
path: urlPath,
|
|
1350
|
+
method: 'DELETE',
|
|
1351
|
+
headers: headerParameters,
|
|
1352
|
+
query: queryParameters,
|
|
1353
|
+
};
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1358
|
+
* Cancel benchmark
|
|
1359
|
+
*/
|
|
1360
|
+
stopForecasterRaw(initOverrides) {
|
|
1361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1362
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1363
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1369
|
+
* Cancel benchmark
|
|
1370
|
+
*/
|
|
1371
|
+
stopForecaster(initOverrides) {
|
|
1372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1373
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1374
|
+
return yield response.value();
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1379
|
+
*/
|
|
1380
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1382
|
+
if (requestParameters['name'] == null) {
|
|
1383
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1384
|
+
}
|
|
1385
|
+
const queryParameters = {};
|
|
1386
|
+
const headerParameters = {};
|
|
1387
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1388
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1389
|
+
return {
|
|
1390
|
+
path: urlPath,
|
|
1391
|
+
method: 'DELETE',
|
|
1392
|
+
headers: headerParameters,
|
|
1393
|
+
query: queryParameters,
|
|
1394
|
+
};
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1399
|
+
* Cancel a single pair
|
|
1400
|
+
*/
|
|
1401
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1403
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1404
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1405
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1410
|
+
* Cancel a single pair
|
|
1411
|
+
*/
|
|
1412
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1414
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1415
|
+
return yield response.value();
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
934
1418
|
/**
|
|
935
1419
|
* Creates request options for stopInspection without sending the request
|
|
936
1420
|
*/
|