@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-d5edcd6935f2

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.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +29 -2
  3. package/dist/apis/DefaultApi.d.ts +450 -3
  4. package/dist/apis/DefaultApi.js +490 -3
  5. package/dist/esm/apis/DefaultApi.d.ts +450 -3
  6. package/dist/esm/apis/DefaultApi.js +490 -3
  7. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  8. package/dist/esm/models/BenchmarkRun.js +85 -0
  9. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  10. package/dist/esm/models/DatastoreDetail.js +74 -0
  11. package/dist/esm/models/DatastorePair.d.ts +50 -0
  12. package/dist/esm/models/DatastorePair.js +53 -0
  13. package/dist/esm/models/EstimateRange.d.ts +44 -0
  14. package/dist/esm/models/EstimateRange.js +45 -0
  15. package/dist/esm/models/ForecastStats.d.ts +87 -0
  16. package/dist/esm/models/ForecastStats.js +64 -0
  17. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  18. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  19. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  20. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  21. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  22. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  23. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  24. package/dist/esm/models/ForecasterStatus.js +53 -0
  25. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  26. package/dist/esm/models/InspectorStatus.js +1 -10
  27. package/dist/esm/models/PairCapability.d.ts +60 -0
  28. package/dist/esm/models/PairCapability.js +64 -0
  29. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  30. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  31. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  32. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  33. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  34. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  35. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  37. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  38. package/dist/esm/models/StartInspectionRequest.js +5 -0
  39. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  40. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  41. package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
  42. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  43. package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
  44. package/dist/esm/models/VmUtilizationDetails.js +12 -0
  45. package/dist/esm/models/index.d.ts +15 -0
  46. package/dist/esm/models/index.js +15 -0
  47. package/dist/models/BenchmarkRun.d.ts +104 -0
  48. package/dist/models/BenchmarkRun.js +92 -0
  49. package/dist/models/DatastoreDetail.d.ts +90 -0
  50. package/dist/models/DatastoreDetail.js +82 -0
  51. package/dist/models/DatastorePair.d.ts +50 -0
  52. package/dist/models/DatastorePair.js +60 -0
  53. package/dist/models/EstimateRange.d.ts +44 -0
  54. package/dist/models/EstimateRange.js +52 -0
  55. package/dist/models/ForecastStats.d.ts +87 -0
  56. package/dist/models/ForecastStats.js +71 -0
  57. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  58. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  59. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  60. package/dist/models/ForecasterPairStatus.js +90 -0
  61. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  62. package/dist/models/ForecasterStartRequest.js +60 -0
  63. package/dist/models/ForecasterStatus.d.ts +47 -0
  64. package/dist/models/ForecasterStatus.js +61 -0
  65. package/dist/models/InspectorStatus.d.ts +0 -17
  66. package/dist/models/InspectorStatus.js +1 -10
  67. package/dist/models/PairCapability.d.ts +60 -0
  68. package/dist/models/PairCapability.js +72 -0
  69. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  70. package/dist/models/PairCapabilityRequest.js +54 -0
  71. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  72. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  73. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  74. package/dist/models/RightsizingClusterListResponse.js +55 -0
  75. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  76. package/dist/models/RightsizingClusterUtilization.js +102 -0
  77. package/dist/models/StartInspectionRequest.d.ts +8 -1
  78. package/dist/models/StartInspectionRequest.js +5 -0
  79. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  80. package/dist/models/StopForecasterPair202Response.js +57 -0
  81. package/dist/models/VirtualMachineDetail.d.ts +7 -0
  82. package/dist/models/VirtualMachineDetail.js +3 -0
  83. package/dist/models/VmUtilizationDetails.d.ts +18 -0
  84. package/dist/models/VmUtilizationDetails.js +12 -0
  85. package/dist/models/index.d.ts +15 -0
  86. package/dist/models/index.js +15 -0
  87. package/docs/BenchmarkRun.md +58 -0
  88. package/docs/DatastoreDetail.md +50 -0
  89. package/docs/DatastorePair.md +40 -0
  90. package/docs/DefaultApi.md +977 -160
  91. package/docs/EstimateRange.md +39 -0
  92. package/docs/ForecastStats.md +52 -0
  93. package/docs/ForecasterDatastoresRequest.md +34 -0
  94. package/docs/ForecasterPairStatus.md +52 -0
  95. package/docs/ForecasterStartRequest.md +42 -0
  96. package/docs/ForecasterStatus.md +36 -0
  97. package/docs/InspectorStatus.md +0 -4
  98. package/docs/PairCapability.md +40 -0
  99. package/docs/PairCapabilityRequest.md +36 -0
  100. package/docs/PutForecasterCredentials403Response.md +36 -0
  101. package/docs/RightsizingClusterListResponse.md +36 -0
  102. package/docs/RightsizingClusterUtilization.md +60 -0
  103. package/docs/StartInspectionRequest.md +3 -1
  104. package/docs/StopForecasterPair202Response.md +36 -0
  105. package/docs/VirtualMachineDetail.md +2 -0
  106. package/docs/VmUtilizationDetails.md +6 -0
  107. package/package.json +1 -1
  108. package/src/apis/DefaultApi.ts +933 -21
  109. package/src/models/BenchmarkRun.ts +171 -0
  110. package/src/models/DatastoreDetail.ts +146 -0
  111. package/src/models/DatastorePair.ts +92 -0
  112. package/src/models/EstimateRange.ts +81 -0
  113. package/src/models/ForecastStats.ts +147 -0
  114. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  115. package/src/models/ForecasterPairStatus.ts +158 -0
  116. package/src/models/ForecasterStartRequest.ts +113 -0
  117. package/src/models/ForecasterStatus.ts +93 -0
  118. package/src/models/InspectorStatus.ts +1 -28
  119. package/src/models/PairCapability.ts +106 -0
  120. package/src/models/PairCapabilityRequest.ts +89 -0
  121. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  122. package/src/models/RightsizingClusterListResponse.ts +83 -0
  123. package/src/models/RightsizingClusterUtilization.ts +185 -0
  124. package/src/models/StartInspectionRequest.ts +18 -1
  125. package/src/models/StopForecasterPair202Response.ts +83 -0
  126. package/src/models/VirtualMachineDetail.ts +15 -0
  127. package/src/models/VmUtilizationDetails.ts +27 -0
  128. package/src/models/index.ts +15 -0
@@ -23,6 +23,11 @@ import {
23
23
  AgentStatusFromJSON,
24
24
  AgentStatusToJSON,
25
25
  } from '../models/AgentStatus.js';
26
+ import {
27
+ type BenchmarkRun,
28
+ BenchmarkRunFromJSON,
29
+ BenchmarkRunToJSON,
30
+ } from '../models/BenchmarkRun.js';
26
31
  import {
27
32
  type CollectorStartRequest,
28
33
  CollectorStartRequestFromJSON,
@@ -38,6 +43,31 @@ import {
38
43
  CreateGroupRequestFromJSON,
39
44
  CreateGroupRequestToJSON,
40
45
  } from '../models/CreateGroupRequest.js';
46
+ import {
47
+ type DatastoreDetail,
48
+ DatastoreDetailFromJSON,
49
+ DatastoreDetailToJSON,
50
+ } from '../models/DatastoreDetail.js';
51
+ import {
52
+ type ForecastStats,
53
+ ForecastStatsFromJSON,
54
+ ForecastStatsToJSON,
55
+ } from '../models/ForecastStats.js';
56
+ import {
57
+ type ForecasterDatastoresRequest,
58
+ ForecasterDatastoresRequestFromJSON,
59
+ ForecasterDatastoresRequestToJSON,
60
+ } from '../models/ForecasterDatastoresRequest.js';
61
+ import {
62
+ type ForecasterStartRequest,
63
+ ForecasterStartRequestFromJSON,
64
+ ForecasterStartRequestToJSON,
65
+ } from '../models/ForecasterStartRequest.js';
66
+ import {
67
+ type ForecasterStatus,
68
+ ForecasterStatusFromJSON,
69
+ ForecasterStatusToJSON,
70
+ } from '../models/ForecasterStatus.js';
41
71
  import {
42
72
  type GetInventory200Response,
43
73
  GetInventory200ResponseFromJSON,
@@ -63,6 +93,26 @@ import {
63
93
  InspectorStatusFromJSON,
64
94
  InspectorStatusToJSON,
65
95
  } from '../models/InspectorStatus.js';
96
+ import {
97
+ type PairCapability,
98
+ PairCapabilityFromJSON,
99
+ PairCapabilityToJSON,
100
+ } from '../models/PairCapability.js';
101
+ import {
102
+ type PairCapabilityRequest,
103
+ PairCapabilityRequestFromJSON,
104
+ PairCapabilityRequestToJSON,
105
+ } from '../models/PairCapabilityRequest.js';
106
+ import {
107
+ type PutForecasterCredentials403Response,
108
+ PutForecasterCredentials403ResponseFromJSON,
109
+ PutForecasterCredentials403ResponseToJSON,
110
+ } from '../models/PutForecasterCredentials403Response.js';
111
+ import {
112
+ type RightsizingClusterListResponse,
113
+ RightsizingClusterListResponseFromJSON,
114
+ RightsizingClusterListResponseToJSON,
115
+ } from '../models/RightsizingClusterListResponse.js';
66
116
  import {
67
117
  type RightsizingCollectRequest,
68
118
  RightsizingCollectRequestFromJSON,
@@ -88,6 +138,11 @@ import {
88
138
  StartInspectionRequestFromJSON,
89
139
  StartInspectionRequestToJSON,
90
140
  } from '../models/StartInspectionRequest.js';
141
+ import {
142
+ type StopForecasterPair202Response,
143
+ StopForecasterPair202ResponseFromJSON,
144
+ StopForecasterPair202ResponseToJSON,
145
+ } from '../models/StopForecasterPair202Response.js';
91
146
  import {
92
147
  type UpdateGroupRequest,
93
148
  UpdateGroupRequestFromJSON,
@@ -133,10 +188,26 @@ export interface CreateGroupOperationRequest {
133
188
  createGroupRequest: CreateGroupRequest;
134
189
  }
135
190
 
191
+ export interface DeleteForecasterRunRequest {
192
+ id: number;
193
+ }
194
+
136
195
  export interface DeleteGroupRequest {
137
196
  id: string;
138
197
  }
139
198
 
199
+ export interface GetForecasterDatastoresRequest {
200
+ forecasterDatastoresRequest?: ForecasterDatastoresRequest;
201
+ }
202
+
203
+ export interface GetForecasterRunsRequest {
204
+ pairName?: string;
205
+ }
206
+
207
+ export interface GetForecasterStatsRequest {
208
+ pairName: string;
209
+ }
210
+
140
211
  export interface GetGroupRequest {
141
212
  id: string;
142
213
  sort?: Array<string>;
@@ -146,7 +217,6 @@ export interface GetGroupRequest {
146
217
 
147
218
  export interface GetInspectorStatusRequest {
148
219
  includeVddk?: boolean;
149
- includeCredentials?: boolean;
150
220
  }
151
221
 
152
222
  export interface GetInventoryRequest {
@@ -154,10 +224,19 @@ export interface GetInventoryRequest {
154
224
  groupId?: string;
155
225
  }
156
226
 
227
+ export interface GetLatestRightsizingClustersRequest {
228
+ byExpression?: string;
229
+ }
230
+
157
231
  export interface GetRightsizingReportRequest {
158
232
  id: string;
159
233
  }
160
234
 
235
+ export interface GetRightsizingReportClustersRequest {
236
+ reportId: string;
237
+ byExpression?: string;
238
+ }
239
+
161
240
  export interface GetVMRequest {
162
241
  id: string;
163
242
  }
@@ -179,6 +258,14 @@ export interface ListGroupsRequest {
179
258
  pageSize?: number;
180
259
  }
181
260
 
261
+ export interface PostForecasterPairCapabilitiesRequest {
262
+ pairCapabilityRequest: PairCapabilityRequest;
263
+ }
264
+
265
+ export interface PutForecasterCredentialsRequest {
266
+ vcenterCredentials: VcenterCredentials;
267
+ }
268
+
182
269
  export interface PutInspectorCredentialsRequest {
183
270
  vcenterCredentials: VcenterCredentials;
184
271
  }
@@ -199,10 +286,18 @@ export interface StartCollectorRequest {
199
286
  collectorStartRequest: CollectorStartRequest;
200
287
  }
201
288
 
289
+ export interface StartForecasterRequest {
290
+ forecasterStartRequest: ForecasterStartRequest;
291
+ }
292
+
202
293
  export interface StartInspectionOperationRequest {
203
294
  startInspectionRequest: StartInspectionRequest;
204
295
  }
205
296
 
297
+ export interface StopForecasterPairRequest {
298
+ name: string;
299
+ }
300
+
206
301
  export interface TriggerRightsizingCollectionRequest {
207
302
  rightsizingCollectRequest: RightsizingCollectRequest;
208
303
  }
@@ -242,6 +337,29 @@ export interface DefaultApiInterface {
242
337
  */
243
338
  createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
244
339
 
340
+ /**
341
+ * Creates request options for deleteForecasterRun without sending the request
342
+ * @param {number} id Run ID
343
+ * @throws {RequiredError}
344
+ * @memberof DefaultApiInterface
345
+ */
346
+ deleteForecasterRunRequestOpts(requestParameters: DeleteForecasterRunRequest): Promise<runtime.RequestOpts>;
347
+
348
+ /**
349
+ *
350
+ * @summary Delete a benchmark run
351
+ * @param {number} id Run ID
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ * @memberof DefaultApiInterface
355
+ */
356
+ deleteForecasterRunRaw(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
357
+
358
+ /**
359
+ * Delete a benchmark run
360
+ */
361
+ deleteForecasterRun(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
362
+
245
363
  /**
246
364
  * Creates request options for deleteGroup without sending the request
247
365
  * @param {string} id Group ID
@@ -307,6 +425,100 @@ export interface DefaultApiInterface {
307
425
  */
308
426
  getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
309
427
 
428
+ /**
429
+ * Creates request options for getForecasterDatastores without sending the request
430
+ * @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
431
+ * @throws {RequiredError}
432
+ * @memberof DefaultApiInterface
433
+ */
434
+ getForecasterDatastoresRequestOpts(requestParameters: GetForecasterDatastoresRequest): Promise<runtime.RequestOpts>;
435
+
436
+ /**
437
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
438
+ * @summary List available datastores
439
+ * @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ * @memberof DefaultApiInterface
443
+ */
444
+ getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>>;
445
+
446
+ /**
447
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
448
+ * List available datastores
449
+ */
450
+ getForecasterDatastores(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DatastoreDetail>>;
451
+
452
+ /**
453
+ * Creates request options for getForecasterRuns without sending the request
454
+ * @param {string} [pairName] Filter runs by pair name
455
+ * @throws {RequiredError}
456
+ * @memberof DefaultApiInterface
457
+ */
458
+ getForecasterRunsRequestOpts(requestParameters: GetForecasterRunsRequest): Promise<runtime.RequestOpts>;
459
+
460
+ /**
461
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
462
+ * @summary List benchmark runs
463
+ * @param {string} [pairName] Filter runs by pair name
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ * @memberof DefaultApiInterface
467
+ */
468
+ getForecasterRunsRaw(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BenchmarkRun>>>;
469
+
470
+ /**
471
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
472
+ * List benchmark runs
473
+ */
474
+ getForecasterRuns(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BenchmarkRun>>;
475
+
476
+ /**
477
+ * Creates request options for getForecasterStats without sending the request
478
+ * @param {string} pairName Pair name to get statistics for
479
+ * @throws {RequiredError}
480
+ * @memberof DefaultApiInterface
481
+ */
482
+ getForecasterStatsRequestOpts(requestParameters: GetForecasterStatsRequest): Promise<runtime.RequestOpts>;
483
+
484
+ /**
485
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
486
+ * @summary Get throughput statistics
487
+ * @param {string} pairName Pair name to get statistics for
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ * @memberof DefaultApiInterface
491
+ */
492
+ getForecasterStatsRaw(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecastStats>>;
493
+
494
+ /**
495
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
496
+ * Get throughput statistics
497
+ */
498
+ getForecasterStats(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecastStats>;
499
+
500
+ /**
501
+ * Creates request options for getForecasterStatus without sending the request
502
+ * @throws {RequiredError}
503
+ * @memberof DefaultApiInterface
504
+ */
505
+ getForecasterStatusRequestOpts(): Promise<runtime.RequestOpts>;
506
+
507
+ /**
508
+ * Returns current service state with per-pair progress details.
509
+ * @summary Poll forecaster status
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ * @memberof DefaultApiInterface
513
+ */
514
+ getForecasterStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
515
+
516
+ /**
517
+ * Returns current service state with per-pair progress details.
518
+ * Poll forecaster status
519
+ */
520
+ getForecasterStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
521
+
310
522
  /**
311
523
  * Creates request options for getGroup without sending the request
312
524
  * @param {string} id Group ID
@@ -339,7 +551,6 @@ export interface DefaultApiInterface {
339
551
  /**
340
552
  * Creates request options for getInspectorStatus without sending the request
341
553
  * @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (&#x60;version&#x60;, &#x60;md5&#x60;) when present. omitted if VDDK was never uploaded.
342
- * @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
343
554
  * @throws {RequiredError}
344
555
  * @memberof DefaultApiInterface
345
556
  */
@@ -349,7 +560,6 @@ export interface DefaultApiInterface {
349
560
  *
350
561
  * @summary Get inspector status
351
562
  * @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (&#x60;version&#x60;, &#x60;md5&#x60;) when present. omitted if VDDK was never uploaded.
352
- * @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
353
563
  * @param {*} [options] Override http request option.
354
564
  * @throws {RequiredError}
355
565
  * @memberof DefaultApiInterface
@@ -407,6 +617,29 @@ export interface DefaultApiInterface {
407
617
  */
408
618
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
409
619
 
620
+ /**
621
+ * Creates request options for getLatestRightsizingClusters without sending the request
622
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
623
+ * @throws {RequiredError}
624
+ * @memberof DefaultApiInterface
625
+ */
626
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
627
+
628
+ /**
629
+ *
630
+ * @summary Get cluster-level utilization aggregates for the latest completed report
631
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof DefaultApiInterface
635
+ */
636
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
637
+
638
+ /**
639
+ * Get cluster-level utilization aggregates for the latest completed report
640
+ */
641
+ getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
642
+
410
643
  /**
411
644
  * Creates request options for getRightsizingReport without sending the request
412
645
  * @param {string} id Report UUID
@@ -430,6 +663,31 @@ export interface DefaultApiInterface {
430
663
  */
431
664
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
432
665
 
666
+ /**
667
+ * Creates request options for getRightsizingReportClusters without sending the request
668
+ * @param {string} reportId Rightsizing report UUID
669
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
670
+ * @throws {RequiredError}
671
+ * @memberof DefaultApiInterface
672
+ */
673
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
674
+
675
+ /**
676
+ *
677
+ * @summary Get cluster-level utilization aggregates for a specific report
678
+ * @param {string} reportId Rightsizing report UUID
679
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof DefaultApiInterface
683
+ */
684
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
685
+
686
+ /**
687
+ * Get cluster-level utilization aggregates for a specific report
688
+ */
689
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
690
+
433
691
  /**
434
692
  * Creates request options for getVM without sending the request
435
693
  * @param {string} id VirtualMachine id
@@ -574,6 +832,54 @@ export interface DefaultApiInterface {
574
832
  */
575
833
  listRightsizingReports(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportListResponse>;
576
834
 
835
+ /**
836
+ * Creates request options for postForecasterPairCapabilities without sending the request
837
+ * @param {PairCapabilityRequest} pairCapabilityRequest
838
+ * @throws {RequiredError}
839
+ * @memberof DefaultApiInterface
840
+ */
841
+ postForecasterPairCapabilitiesRequestOpts(requestParameters: PostForecasterPairCapabilitiesRequest): Promise<runtime.RequestOpts>;
842
+
843
+ /**
844
+ * 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.
845
+ * @summary Compute pair capabilities
846
+ * @param {PairCapabilityRequest} pairCapabilityRequest
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ * @memberof DefaultApiInterface
850
+ */
851
+ postForecasterPairCapabilitiesRaw(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PairCapability>>>;
852
+
853
+ /**
854
+ * 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.
855
+ * Compute pair capabilities
856
+ */
857
+ postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
858
+
859
+ /**
860
+ * Creates request options for putForecasterCredentials without sending the request
861
+ * @param {VcenterCredentials} vcenterCredentials
862
+ * @throws {RequiredError}
863
+ * @memberof DefaultApiInterface
864
+ */
865
+ putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts>;
866
+
867
+ /**
868
+ * 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.
869
+ * @summary Verify vCenter credentials and permissions
870
+ * @param {VcenterCredentials} vcenterCredentials
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ * @memberof DefaultApiInterface
874
+ */
875
+ putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
876
+
877
+ /**
878
+ * 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.
879
+ * Verify vCenter credentials and permissions
880
+ */
881
+ putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
882
+
577
883
  /**
578
884
  * Creates request options for putInspectorCredentials without sending the request
579
885
  * @param {VcenterCredentials} vcenterCredentials
@@ -689,6 +995,30 @@ export interface DefaultApiInterface {
689
995
  */
690
996
  startCollector(requestParameters: StartCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
691
997
 
998
+ /**
999
+ * Creates request options for startForecaster without sending the request
1000
+ * @param {ForecasterStartRequest} forecasterStartRequest
1001
+ * @throws {RequiredError}
1002
+ * @memberof DefaultApiInterface
1003
+ */
1004
+ startForecasterRequestOpts(requestParameters: StartForecasterRequest): Promise<runtime.RequestOpts>;
1005
+
1006
+ /**
1007
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1008
+ * @summary Start benchmark
1009
+ * @param {ForecasterStartRequest} forecasterStartRequest
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ * @memberof DefaultApiInterface
1013
+ */
1014
+ startForecasterRaw(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
1015
+
1016
+ /**
1017
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1018
+ * Start benchmark
1019
+ */
1020
+ startForecaster(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
1021
+
692
1022
  /**
693
1023
  * Creates request options for startInspection without sending the request
694
1024
  * @param {StartInspectionRequest} startInspectionRequest
@@ -733,6 +1063,52 @@ export interface DefaultApiInterface {
733
1063
  */
734
1064
  stopCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
735
1065
 
1066
+ /**
1067
+ * Creates request options for stopForecaster without sending the request
1068
+ * @throws {RequiredError}
1069
+ * @memberof DefaultApiInterface
1070
+ */
1071
+ stopForecasterRequestOpts(): Promise<runtime.RequestOpts>;
1072
+
1073
+ /**
1074
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1075
+ * @summary Cancel benchmark
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ * @memberof DefaultApiInterface
1079
+ */
1080
+ stopForecasterRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>>;
1081
+
1082
+ /**
1083
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1084
+ * Cancel benchmark
1085
+ */
1086
+ stopForecaster(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus>;
1087
+
1088
+ /**
1089
+ * Creates request options for stopForecasterPair without sending the request
1090
+ * @param {string} name Pair name as specified in the start request
1091
+ * @throws {RequiredError}
1092
+ * @memberof DefaultApiInterface
1093
+ */
1094
+ stopForecasterPairRequestOpts(requestParameters: StopForecasterPairRequest): Promise<runtime.RequestOpts>;
1095
+
1096
+ /**
1097
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1098
+ * @summary Cancel a single pair
1099
+ * @param {string} name Pair name as specified in the start request
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ * @memberof DefaultApiInterface
1103
+ */
1104
+ stopForecasterPairRaw(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StopForecasterPair202Response>>;
1105
+
1106
+ /**
1107
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1108
+ * Cancel a single pair
1109
+ */
1110
+ stopForecasterPair(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StopForecasterPair202Response>;
1111
+
736
1112
  /**
737
1113
  * Creates request options for stopInspection without sending the request
738
1114
  * @throws {RequiredError}
@@ -856,6 +1232,50 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
856
1232
  return await response.value();
857
1233
  }
858
1234
 
1235
+ /**
1236
+ * Creates request options for deleteForecasterRun without sending the request
1237
+ */
1238
+ async deleteForecasterRunRequestOpts(requestParameters: DeleteForecasterRunRequest): Promise<runtime.RequestOpts> {
1239
+ if (requestParameters['id'] == null) {
1240
+ throw new runtime.RequiredError(
1241
+ 'id',
1242
+ 'Required parameter "id" was null or undefined when calling deleteForecasterRun().'
1243
+ );
1244
+ }
1245
+
1246
+ const queryParameters: any = {};
1247
+
1248
+ const headerParameters: runtime.HTTPHeaders = {};
1249
+
1250
+
1251
+ let urlPath = `/forecaster/runs/{id}`;
1252
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1253
+
1254
+ return {
1255
+ path: urlPath,
1256
+ method: 'DELETE',
1257
+ headers: headerParameters,
1258
+ query: queryParameters,
1259
+ };
1260
+ }
1261
+
1262
+ /**
1263
+ * Delete a benchmark run
1264
+ */
1265
+ async deleteForecasterRunRaw(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1266
+ const requestOptions = await this.deleteForecasterRunRequestOpts(requestParameters);
1267
+ const response = await this.request(requestOptions, initOverrides);
1268
+
1269
+ return new runtime.VoidApiResponse(response);
1270
+ }
1271
+
1272
+ /**
1273
+ * Delete a benchmark run
1274
+ */
1275
+ async deleteForecasterRun(requestParameters: DeleteForecasterRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1276
+ await this.deleteForecasterRunRaw(requestParameters, initOverrides);
1277
+ }
1278
+
859
1279
  /**
860
1280
  * Creates request options for deleteGroup without sending the request
861
1281
  */
@@ -975,24 +1395,198 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
975
1395
  }
976
1396
 
977
1397
  /**
978
- * Creates request options for getGroup without sending the request
1398
+ * Creates request options for getForecasterDatastores without sending the request
979
1399
  */
980
- async getGroupRequestOpts(requestParameters: GetGroupRequest): Promise<runtime.RequestOpts> {
981
- if (requestParameters['id'] == null) {
982
- throw new runtime.RequiredError(
983
- 'id',
984
- 'Required parameter "id" was null or undefined when calling getGroup().'
985
- );
986
- }
987
-
1400
+ async getForecasterDatastoresRequestOpts(requestParameters: GetForecasterDatastoresRequest): Promise<runtime.RequestOpts> {
988
1401
  const queryParameters: any = {};
989
1402
 
990
- if (requestParameters['sort'] != null) {
991
- queryParameters['sort'] = requestParameters['sort'];
992
- }
1403
+ const headerParameters: runtime.HTTPHeaders = {};
993
1404
 
994
- if (requestParameters['page'] != null) {
995
- queryParameters['page'] = requestParameters['page'];
1405
+ headerParameters['Content-Type'] = 'application/json';
1406
+
1407
+
1408
+ let urlPath = `/forecaster/datastores`;
1409
+
1410
+ return {
1411
+ path: urlPath,
1412
+ method: 'POST',
1413
+ headers: headerParameters,
1414
+ query: queryParameters,
1415
+ body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
1416
+ };
1417
+ }
1418
+
1419
+ /**
1420
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
1421
+ * List available datastores
1422
+ */
1423
+ async getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>> {
1424
+ const requestOptions = await this.getForecasterDatastoresRequestOpts(requestParameters);
1425
+ const response = await this.request(requestOptions, initOverrides);
1426
+
1427
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetailFromJSON));
1428
+ }
1429
+
1430
+ /**
1431
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
1432
+ * List available datastores
1433
+ */
1434
+ async getForecasterDatastores(requestParameters: GetForecasterDatastoresRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DatastoreDetail>> {
1435
+ const response = await this.getForecasterDatastoresRaw(requestParameters, initOverrides);
1436
+ return await response.value();
1437
+ }
1438
+
1439
+ /**
1440
+ * Creates request options for getForecasterRuns without sending the request
1441
+ */
1442
+ async getForecasterRunsRequestOpts(requestParameters: GetForecasterRunsRequest): Promise<runtime.RequestOpts> {
1443
+ const queryParameters: any = {};
1444
+
1445
+ if (requestParameters['pairName'] != null) {
1446
+ queryParameters['pairName'] = requestParameters['pairName'];
1447
+ }
1448
+
1449
+ const headerParameters: runtime.HTTPHeaders = {};
1450
+
1451
+
1452
+ let urlPath = `/forecaster/runs`;
1453
+
1454
+ return {
1455
+ path: urlPath,
1456
+ method: 'GET',
1457
+ headers: headerParameters,
1458
+ query: queryParameters,
1459
+ };
1460
+ }
1461
+
1462
+ /**
1463
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
1464
+ * List benchmark runs
1465
+ */
1466
+ async getForecasterRunsRaw(requestParameters: GetForecasterRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BenchmarkRun>>> {
1467
+ const requestOptions = await this.getForecasterRunsRequestOpts(requestParameters);
1468
+ const response = await this.request(requestOptions, initOverrides);
1469
+
1470
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRunFromJSON));
1471
+ }
1472
+
1473
+ /**
1474
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
1475
+ * List benchmark runs
1476
+ */
1477
+ async getForecasterRuns(requestParameters: GetForecasterRunsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BenchmarkRun>> {
1478
+ const response = await this.getForecasterRunsRaw(requestParameters, initOverrides);
1479
+ return await response.value();
1480
+ }
1481
+
1482
+ /**
1483
+ * Creates request options for getForecasterStats without sending the request
1484
+ */
1485
+ async getForecasterStatsRequestOpts(requestParameters: GetForecasterStatsRequest): Promise<runtime.RequestOpts> {
1486
+ if (requestParameters['pairName'] == null) {
1487
+ throw new runtime.RequiredError(
1488
+ 'pairName',
1489
+ 'Required parameter "pairName" was null or undefined when calling getForecasterStats().'
1490
+ );
1491
+ }
1492
+
1493
+ const queryParameters: any = {};
1494
+
1495
+ if (requestParameters['pairName'] != null) {
1496
+ queryParameters['pairName'] = requestParameters['pairName'];
1497
+ }
1498
+
1499
+ const headerParameters: runtime.HTTPHeaders = {};
1500
+
1501
+
1502
+ let urlPath = `/forecaster/stats`;
1503
+
1504
+ return {
1505
+ path: urlPath,
1506
+ method: 'GET',
1507
+ headers: headerParameters,
1508
+ query: queryParameters,
1509
+ };
1510
+ }
1511
+
1512
+ /**
1513
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
1514
+ * Get throughput statistics
1515
+ */
1516
+ async getForecasterStatsRaw(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecastStats>> {
1517
+ const requestOptions = await this.getForecasterStatsRequestOpts(requestParameters);
1518
+ const response = await this.request(requestOptions, initOverrides);
1519
+
1520
+ return new runtime.JSONApiResponse(response, (jsonValue) => ForecastStatsFromJSON(jsonValue));
1521
+ }
1522
+
1523
+ /**
1524
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
1525
+ * Get throughput statistics
1526
+ */
1527
+ async getForecasterStats(requestParameters: GetForecasterStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecastStats> {
1528
+ const response = await this.getForecasterStatsRaw(requestParameters, initOverrides);
1529
+ return await response.value();
1530
+ }
1531
+
1532
+ /**
1533
+ * Creates request options for getForecasterStatus without sending the request
1534
+ */
1535
+ async getForecasterStatusRequestOpts(): Promise<runtime.RequestOpts> {
1536
+ const queryParameters: any = {};
1537
+
1538
+ const headerParameters: runtime.HTTPHeaders = {};
1539
+
1540
+
1541
+ let urlPath = `/forecaster`;
1542
+
1543
+ return {
1544
+ path: urlPath,
1545
+ method: 'GET',
1546
+ headers: headerParameters,
1547
+ query: queryParameters,
1548
+ };
1549
+ }
1550
+
1551
+ /**
1552
+ * Returns current service state with per-pair progress details.
1553
+ * Poll forecaster status
1554
+ */
1555
+ async getForecasterStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
1556
+ const requestOptions = await this.getForecasterStatusRequestOpts();
1557
+ const response = await this.request(requestOptions, initOverrides);
1558
+
1559
+ return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
1560
+ }
1561
+
1562
+ /**
1563
+ * Returns current service state with per-pair progress details.
1564
+ * Poll forecaster status
1565
+ */
1566
+ async getForecasterStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
1567
+ const response = await this.getForecasterStatusRaw(initOverrides);
1568
+ return await response.value();
1569
+ }
1570
+
1571
+ /**
1572
+ * Creates request options for getGroup without sending the request
1573
+ */
1574
+ async getGroupRequestOpts(requestParameters: GetGroupRequest): Promise<runtime.RequestOpts> {
1575
+ if (requestParameters['id'] == null) {
1576
+ throw new runtime.RequiredError(
1577
+ 'id',
1578
+ 'Required parameter "id" was null or undefined when calling getGroup().'
1579
+ );
1580
+ }
1581
+
1582
+ const queryParameters: any = {};
1583
+
1584
+ if (requestParameters['sort'] != null) {
1585
+ queryParameters['sort'] = requestParameters['sort'];
1586
+ }
1587
+
1588
+ if (requestParameters['page'] != null) {
1589
+ queryParameters['page'] = requestParameters['page'];
996
1590
  }
997
1591
 
998
1592
  if (requestParameters['pageSize'] != null) {
@@ -1041,10 +1635,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1041
1635
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
1042
1636
  }
1043
1637
 
1044
- if (requestParameters['includeCredentials'] != null) {
1045
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
1046
- }
1047
-
1048
1638
  const headerParameters: runtime.HTTPHeaders = {};
1049
1639
 
1050
1640
 
@@ -1158,6 +1748,47 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1158
1748
  return await response.value();
1159
1749
  }
1160
1750
 
1751
+ /**
1752
+ * Creates request options for getLatestRightsizingClusters without sending the request
1753
+ */
1754
+ async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
1755
+ const queryParameters: any = {};
1756
+
1757
+ if (requestParameters['byExpression'] != null) {
1758
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1759
+ }
1760
+
1761
+ const headerParameters: runtime.HTTPHeaders = {};
1762
+
1763
+
1764
+ let urlPath = `/cluster_rightsizing`;
1765
+
1766
+ return {
1767
+ path: urlPath,
1768
+ method: 'GET',
1769
+ headers: headerParameters,
1770
+ query: queryParameters,
1771
+ };
1772
+ }
1773
+
1774
+ /**
1775
+ * Get cluster-level utilization aggregates for the latest completed report
1776
+ */
1777
+ async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
1778
+ const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
1779
+ const response = await this.request(requestOptions, initOverrides);
1780
+
1781
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1782
+ }
1783
+
1784
+ /**
1785
+ * Get cluster-level utilization aggregates for the latest completed report
1786
+ */
1787
+ async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
1788
+ const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
1789
+ return await response.value();
1790
+ }
1791
+
1161
1792
  /**
1162
1793
  * Creates request options for getRightsizingReport without sending the request
1163
1794
  */
@@ -1203,6 +1834,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1203
1834
  return await response.value();
1204
1835
  }
1205
1836
 
1837
+ /**
1838
+ * Creates request options for getRightsizingReportClusters without sending the request
1839
+ */
1840
+ async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
1841
+ if (requestParameters['reportId'] == null) {
1842
+ throw new runtime.RequiredError(
1843
+ 'reportId',
1844
+ 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
1845
+ );
1846
+ }
1847
+
1848
+ const queryParameters: any = {};
1849
+
1850
+ if (requestParameters['byExpression'] != null) {
1851
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1852
+ }
1853
+
1854
+ const headerParameters: runtime.HTTPHeaders = {};
1855
+
1856
+
1857
+ let urlPath = `/cluster_rightsizing/{report_id}`;
1858
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1859
+
1860
+ return {
1861
+ path: urlPath,
1862
+ method: 'GET',
1863
+ headers: headerParameters,
1864
+ query: queryParameters,
1865
+ };
1866
+ }
1867
+
1868
+ /**
1869
+ * Get cluster-level utilization aggregates for a specific report
1870
+ */
1871
+ async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
1872
+ const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
1873
+ const response = await this.request(requestOptions, initOverrides);
1874
+
1875
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1876
+ }
1877
+
1878
+ /**
1879
+ * Get cluster-level utilization aggregates for a specific report
1880
+ */
1881
+ async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
1882
+ const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
1883
+ return await response.value();
1884
+ }
1885
+
1206
1886
  /**
1207
1887
  * Creates request options for getVM without sending the request
1208
1888
  */
@@ -1469,6 +2149,103 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1469
2149
  return await response.value();
1470
2150
  }
1471
2151
 
2152
+ /**
2153
+ * Creates request options for postForecasterPairCapabilities without sending the request
2154
+ */
2155
+ async postForecasterPairCapabilitiesRequestOpts(requestParameters: PostForecasterPairCapabilitiesRequest): Promise<runtime.RequestOpts> {
2156
+ if (requestParameters['pairCapabilityRequest'] == null) {
2157
+ throw new runtime.RequiredError(
2158
+ 'pairCapabilityRequest',
2159
+ 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().'
2160
+ );
2161
+ }
2162
+
2163
+ const queryParameters: any = {};
2164
+
2165
+ const headerParameters: runtime.HTTPHeaders = {};
2166
+
2167
+ headerParameters['Content-Type'] = 'application/json';
2168
+
2169
+
2170
+ let urlPath = `/forecaster/capabilities`;
2171
+
2172
+ return {
2173
+ path: urlPath,
2174
+ method: 'POST',
2175
+ headers: headerParameters,
2176
+ query: queryParameters,
2177
+ body: PairCapabilityRequestToJSON(requestParameters['pairCapabilityRequest']),
2178
+ };
2179
+ }
2180
+
2181
+ /**
2182
+ * 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.
2183
+ * Compute pair capabilities
2184
+ */
2185
+ async postForecasterPairCapabilitiesRaw(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PairCapability>>> {
2186
+ const requestOptions = await this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
2187
+ const response = await this.request(requestOptions, initOverrides);
2188
+
2189
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapabilityFromJSON));
2190
+ }
2191
+
2192
+ /**
2193
+ * 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.
2194
+ * Compute pair capabilities
2195
+ */
2196
+ async postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>> {
2197
+ const response = await this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
2198
+ return await response.value();
2199
+ }
2200
+
2201
+ /**
2202
+ * Creates request options for putForecasterCredentials without sending the request
2203
+ */
2204
+ async putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts> {
2205
+ if (requestParameters['vcenterCredentials'] == null) {
2206
+ throw new runtime.RequiredError(
2207
+ 'vcenterCredentials',
2208
+ 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().'
2209
+ );
2210
+ }
2211
+
2212
+ const queryParameters: any = {};
2213
+
2214
+ const headerParameters: runtime.HTTPHeaders = {};
2215
+
2216
+ headerParameters['Content-Type'] = 'application/json';
2217
+
2218
+
2219
+ let urlPath = `/forecaster/credentials`;
2220
+
2221
+ return {
2222
+ path: urlPath,
2223
+ method: 'PUT',
2224
+ headers: headerParameters,
2225
+ query: queryParameters,
2226
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
2227
+ };
2228
+ }
2229
+
2230
+ /**
2231
+ * 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.
2232
+ * Verify vCenter credentials and permissions
2233
+ */
2234
+ async putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2235
+ const requestOptions = await this.putForecasterCredentialsRequestOpts(requestParameters);
2236
+ const response = await this.request(requestOptions, initOverrides);
2237
+
2238
+ return new runtime.VoidApiResponse(response);
2239
+ }
2240
+
2241
+ /**
2242
+ * 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.
2243
+ * Verify vCenter credentials and permissions
2244
+ */
2245
+ async putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2246
+ await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
2247
+ }
2248
+
1472
2249
  /**
1473
2250
  * Creates request options for putInspectorCredentials without sending the request
1474
2251
  */
@@ -1719,6 +2496,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1719
2496
  return await response.value();
1720
2497
  }
1721
2498
 
2499
+ /**
2500
+ * Creates request options for startForecaster without sending the request
2501
+ */
2502
+ async startForecasterRequestOpts(requestParameters: StartForecasterRequest): Promise<runtime.RequestOpts> {
2503
+ if (requestParameters['forecasterStartRequest'] == null) {
2504
+ throw new runtime.RequiredError(
2505
+ 'forecasterStartRequest',
2506
+ 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().'
2507
+ );
2508
+ }
2509
+
2510
+ const queryParameters: any = {};
2511
+
2512
+ const headerParameters: runtime.HTTPHeaders = {};
2513
+
2514
+ headerParameters['Content-Type'] = 'application/json';
2515
+
2516
+
2517
+ let urlPath = `/forecaster`;
2518
+
2519
+ return {
2520
+ path: urlPath,
2521
+ method: 'POST',
2522
+ headers: headerParameters,
2523
+ query: queryParameters,
2524
+ body: ForecasterStartRequestToJSON(requestParameters['forecasterStartRequest']),
2525
+ };
2526
+ }
2527
+
2528
+ /**
2529
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
2530
+ * Start benchmark
2531
+ */
2532
+ async startForecasterRaw(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
2533
+ const requestOptions = await this.startForecasterRequestOpts(requestParameters);
2534
+ const response = await this.request(requestOptions, initOverrides);
2535
+
2536
+ return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
2537
+ }
2538
+
2539
+ /**
2540
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
2541
+ * Start benchmark
2542
+ */
2543
+ async startForecaster(requestParameters: StartForecasterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
2544
+ const response = await this.startForecasterRaw(requestParameters, initOverrides);
2545
+ return await response.value();
2546
+ }
2547
+
1722
2548
  /**
1723
2549
  * Creates request options for startInspection without sending the request
1724
2550
  */
@@ -1802,6 +2628,92 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1802
2628
  await this.stopCollectorRaw(initOverrides);
1803
2629
  }
1804
2630
 
2631
+ /**
2632
+ * Creates request options for stopForecaster without sending the request
2633
+ */
2634
+ async stopForecasterRequestOpts(): Promise<runtime.RequestOpts> {
2635
+ const queryParameters: any = {};
2636
+
2637
+ const headerParameters: runtime.HTTPHeaders = {};
2638
+
2639
+
2640
+ let urlPath = `/forecaster`;
2641
+
2642
+ return {
2643
+ path: urlPath,
2644
+ method: 'DELETE',
2645
+ headers: headerParameters,
2646
+ query: queryParameters,
2647
+ };
2648
+ }
2649
+
2650
+ /**
2651
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
2652
+ * Cancel benchmark
2653
+ */
2654
+ async stopForecasterRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForecasterStatus>> {
2655
+ const requestOptions = await this.stopForecasterRequestOpts();
2656
+ const response = await this.request(requestOptions, initOverrides);
2657
+
2658
+ return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
2659
+ }
2660
+
2661
+ /**
2662
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
2663
+ * Cancel benchmark
2664
+ */
2665
+ async stopForecaster(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForecasterStatus> {
2666
+ const response = await this.stopForecasterRaw(initOverrides);
2667
+ return await response.value();
2668
+ }
2669
+
2670
+ /**
2671
+ * Creates request options for stopForecasterPair without sending the request
2672
+ */
2673
+ async stopForecasterPairRequestOpts(requestParameters: StopForecasterPairRequest): Promise<runtime.RequestOpts> {
2674
+ if (requestParameters['name'] == null) {
2675
+ throw new runtime.RequiredError(
2676
+ 'name',
2677
+ 'Required parameter "name" was null or undefined when calling stopForecasterPair().'
2678
+ );
2679
+ }
2680
+
2681
+ const queryParameters: any = {};
2682
+
2683
+ const headerParameters: runtime.HTTPHeaders = {};
2684
+
2685
+
2686
+ let urlPath = `/forecaster/pairs/{name}`;
2687
+ urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
2688
+
2689
+ return {
2690
+ path: urlPath,
2691
+ method: 'DELETE',
2692
+ headers: headerParameters,
2693
+ query: queryParameters,
2694
+ };
2695
+ }
2696
+
2697
+ /**
2698
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
2699
+ * Cancel a single pair
2700
+ */
2701
+ async stopForecasterPairRaw(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StopForecasterPair202Response>> {
2702
+ const requestOptions = await this.stopForecasterPairRequestOpts(requestParameters);
2703
+ const response = await this.request(requestOptions, initOverrides);
2704
+
2705
+ return new runtime.JSONApiResponse(response, (jsonValue) => StopForecasterPair202ResponseFromJSON(jsonValue));
2706
+ }
2707
+
2708
+ /**
2709
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
2710
+ * Cancel a single pair
2711
+ */
2712
+ async stopForecasterPair(requestParameters: StopForecasterPairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StopForecasterPair202Response> {
2713
+ const response = await this.stopForecasterPairRaw(requestParameters, initOverrides);
2714
+ return await response.value();
2715
+ }
2716
+
1805
2717
  /**
1806
2718
  * Creates request options for stopInspection without sending the request
1807
2719
  */