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

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 (274) hide show
  1. package/.openapi-generator/FILES +52 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +52 -5
  4. package/dist/apis/DefaultApi.d.ts +798 -20
  5. package/dist/apis/DefaultApi.js +878 -24
  6. package/dist/esm/apis/DefaultApi.d.ts +798 -20
  7. package/dist/esm/apis/DefaultApi.js +878 -24
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  17. package/dist/esm/models/BenchmarkRun.js +85 -0
  18. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  19. package/dist/esm/models/ClusterFeatures.js +54 -0
  20. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  21. package/dist/esm/models/ClusterUtilization.js +67 -0
  22. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  23. package/dist/esm/models/CreateGroupRequest.js +0 -2
  24. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  25. package/dist/esm/models/DatastoreDetail.js +74 -0
  26. package/dist/esm/models/DatastorePair.d.ts +50 -0
  27. package/dist/esm/models/DatastorePair.js +53 -0
  28. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  29. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  30. package/dist/esm/models/EstimateRange.d.ts +44 -0
  31. package/dist/esm/models/EstimateRange.js +45 -0
  32. package/dist/esm/models/ForecastStats.d.ts +87 -0
  33. package/dist/esm/models/ForecastStats.js +64 -0
  34. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  35. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  36. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  37. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  38. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  39. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  40. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  41. package/dist/esm/models/ForecasterStatus.js +53 -0
  42. package/dist/esm/models/Group.d.ts +0 -6
  43. package/dist/esm/models/Group.js +0 -2
  44. package/dist/esm/models/GroupResponse.d.ts +7 -0
  45. package/dist/esm/models/GroupResponse.js +3 -0
  46. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  47. package/dist/esm/models/InspectorStatus.js +1 -10
  48. package/dist/esm/models/Inventory.d.ts +7 -1
  49. package/dist/esm/models/Inventory.js +5 -3
  50. package/dist/esm/models/InventoryData.d.ts +14 -0
  51. package/dist/esm/models/InventoryData.js +6 -0
  52. package/dist/esm/models/PairCapability.d.ts +60 -0
  53. package/dist/esm/models/PairCapability.js +64 -0
  54. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  55. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  56. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  57. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  58. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  59. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  60. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  61. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  62. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  63. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  64. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  65. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  66. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  67. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  68. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  69. package/dist/esm/models/RightsizingReport.js +18 -18
  70. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  71. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  72. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  73. package/dist/esm/models/StartInspectionRequest.js +5 -0
  74. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  75. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  76. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  77. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  78. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  79. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  80. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  81. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  82. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  83. package/dist/esm/models/VMLabelsResponse.js +47 -0
  84. package/dist/esm/models/VMNIC.d.ts +12 -0
  85. package/dist/esm/models/VMNIC.js +4 -0
  86. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  87. package/dist/esm/models/VirtualMachine.js +18 -10
  88. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  89. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  90. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  91. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  92. package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
  93. package/dist/esm/models/VmUtilizationDetails.js +39 -27
  94. package/dist/esm/models/index.d.ts +26 -0
  95. package/dist/esm/models/index.js +26 -0
  96. package/dist/models/AgentStatus.d.ts +1 -1
  97. package/dist/models/AgentStatus.js +3 -3
  98. package/dist/models/ApplicationListResponse.d.ts +33 -0
  99. package/dist/models/ApplicationListResponse.js +51 -0
  100. package/dist/models/ApplicationOverview.d.ts +51 -0
  101. package/dist/models/ApplicationOverview.js +63 -0
  102. package/dist/models/ApplicationVM.d.ts +38 -0
  103. package/dist/models/ApplicationVM.js +54 -0
  104. package/dist/models/BenchmarkRun.d.ts +104 -0
  105. package/dist/models/BenchmarkRun.js +92 -0
  106. package/dist/models/ClusterFeatures.d.ts +54 -0
  107. package/dist/models/ClusterFeatures.js +62 -0
  108. package/dist/models/ClusterUtilization.d.ts +68 -0
  109. package/dist/models/ClusterUtilization.js +74 -0
  110. package/dist/models/CreateGroupRequest.d.ts +0 -6
  111. package/dist/models/CreateGroupRequest.js +0 -2
  112. package/dist/models/DatastoreDetail.d.ts +90 -0
  113. package/dist/models/DatastoreDetail.js +82 -0
  114. package/dist/models/DatastorePair.d.ts +50 -0
  115. package/dist/models/DatastorePair.js +60 -0
  116. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  117. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  118. package/dist/models/EstimateRange.d.ts +44 -0
  119. package/dist/models/EstimateRange.js +52 -0
  120. package/dist/models/ForecastStats.d.ts +87 -0
  121. package/dist/models/ForecastStats.js +71 -0
  122. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  123. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  124. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  125. package/dist/models/ForecasterPairStatus.js +90 -0
  126. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  127. package/dist/models/ForecasterStartRequest.js +60 -0
  128. package/dist/models/ForecasterStatus.d.ts +47 -0
  129. package/dist/models/ForecasterStatus.js +61 -0
  130. package/dist/models/Group.d.ts +0 -6
  131. package/dist/models/Group.js +0 -2
  132. package/dist/models/GroupResponse.d.ts +7 -0
  133. package/dist/models/GroupResponse.js +3 -0
  134. package/dist/models/InspectorStatus.d.ts +0 -17
  135. package/dist/models/InspectorStatus.js +1 -10
  136. package/dist/models/Inventory.d.ts +7 -1
  137. package/dist/models/Inventory.js +5 -3
  138. package/dist/models/InventoryData.d.ts +14 -0
  139. package/dist/models/InventoryData.js +6 -0
  140. package/dist/models/PairCapability.d.ts +60 -0
  141. package/dist/models/PairCapability.js +72 -0
  142. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  143. package/dist/models/PairCapabilityRequest.js +54 -0
  144. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  145. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  146. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  147. package/dist/models/RightsizingClusterListResponse.js +55 -0
  148. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  149. package/dist/models/RightsizingClusterResponse.js +55 -0
  150. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  151. package/dist/models/RightsizingClusterUtilization.js +102 -0
  152. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  153. package/dist/models/RightsizingCollectRequest.js +12 -12
  154. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  155. package/dist/models/RightsizingMetricStats.js +3 -3
  156. package/dist/models/RightsizingReport.d.ts +6 -6
  157. package/dist/models/RightsizingReport.js +18 -18
  158. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  159. package/dist/models/RightsizingReportSummary.js +18 -18
  160. package/dist/models/StartInspectionRequest.d.ts +8 -1
  161. package/dist/models/StartInspectionRequest.js +5 -0
  162. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  163. package/dist/models/StopForecasterPair202Response.js +57 -0
  164. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  165. package/dist/models/UpdateGroupRequest.js +0 -2
  166. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  167. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  168. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  169. package/dist/models/VMFilterOptionsResponse.js +66 -0
  170. package/dist/models/VMLabelsResponse.d.ts +38 -0
  171. package/dist/models/VMLabelsResponse.js +54 -0
  172. package/dist/models/VMNIC.d.ts +12 -0
  173. package/dist/models/VMNIC.js +4 -0
  174. package/dist/models/VirtualMachine.d.ts +30 -6
  175. package/dist/models/VirtualMachine.js +18 -10
  176. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  177. package/dist/models/VirtualMachineDetail.js +7 -0
  178. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  179. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  180. package/dist/models/VmUtilizationDetails.d.ts +27 -9
  181. package/dist/models/VmUtilizationDetails.js +39 -27
  182. package/dist/models/index.d.ts +26 -0
  183. package/dist/models/index.js +26 -0
  184. package/docs/AgentStatus.md +2 -2
  185. package/docs/ApplicationListResponse.md +34 -0
  186. package/docs/ApplicationOverview.md +40 -0
  187. package/docs/ApplicationVM.md +36 -0
  188. package/docs/BenchmarkRun.md +58 -0
  189. package/docs/ClusterFeatures.md +38 -0
  190. package/docs/ClusterUtilization.md +46 -0
  191. package/docs/CreateGroupRequest.md +0 -2
  192. package/docs/DatastoreDetail.md +50 -0
  193. package/docs/DatastorePair.md +40 -0
  194. package/docs/DefaultApi.md +1725 -308
  195. package/docs/DeleteLabelGloballyResponse.md +36 -0
  196. package/docs/EstimateRange.md +39 -0
  197. package/docs/ForecastStats.md +52 -0
  198. package/docs/ForecasterDatastoresRequest.md +34 -0
  199. package/docs/ForecasterPairStatus.md +52 -0
  200. package/docs/ForecasterStartRequest.md +42 -0
  201. package/docs/ForecasterStatus.md +36 -0
  202. package/docs/GetInventory200Response.md +4 -2
  203. package/docs/Group.md +0 -2
  204. package/docs/GroupResponse.md +2 -0
  205. package/docs/InspectorStatus.md +0 -4
  206. package/docs/Inventory.md +4 -2
  207. package/docs/InventoryData.md +4 -0
  208. package/docs/PairCapability.md +40 -0
  209. package/docs/PairCapabilityRequest.md +36 -0
  210. package/docs/PutForecasterCredentials403Response.md +36 -0
  211. package/docs/RightsizingClusterListResponse.md +36 -0
  212. package/docs/RightsizingClusterResponse.md +36 -0
  213. package/docs/RightsizingClusterUtilization.md +60 -0
  214. package/docs/RightsizingCollectRequest.md +12 -12
  215. package/docs/RightsizingMetricStats.md +2 -2
  216. package/docs/RightsizingReport.md +12 -12
  217. package/docs/RightsizingReportSummary.md +12 -12
  218. package/docs/StartInspectionRequest.md +3 -1
  219. package/docs/StopForecasterPair202Response.md +36 -0
  220. package/docs/UpdateGroupRequest.md +0 -2
  221. package/docs/UpdateLabelVMsRequest.md +36 -0
  222. package/docs/VMFilterOptionsResponse.md +42 -0
  223. package/docs/VMLabelsResponse.md +36 -0
  224. package/docs/VMNIC.md +4 -0
  225. package/docs/VirtualMachine.md +18 -10
  226. package/docs/VirtualMachineDetail.md +6 -0
  227. package/docs/VirtualMachineUpdateRequest.md +36 -0
  228. package/docs/VmUtilizationDetails.md +24 -18
  229. package/package.json +1 -1
  230. package/src/apis/DefaultApi.ts +1700 -93
  231. package/src/models/AgentStatus.ts +4 -4
  232. package/src/models/ApplicationListResponse.ts +74 -0
  233. package/src/models/ApplicationOverview.ts +101 -0
  234. package/src/models/ApplicationVM.ts +75 -0
  235. package/src/models/BenchmarkRun.ts +171 -0
  236. package/src/models/ClusterFeatures.ts +94 -0
  237. package/src/models/ClusterUtilization.ts +120 -0
  238. package/src/models/CreateGroupRequest.ts +0 -8
  239. package/src/models/DatastoreDetail.ts +146 -0
  240. package/src/models/DatastorePair.ts +92 -0
  241. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  242. package/src/models/EstimateRange.ts +81 -0
  243. package/src/models/ForecastStats.ts +147 -0
  244. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  245. package/src/models/ForecasterPairStatus.ts +158 -0
  246. package/src/models/ForecasterStartRequest.ts +113 -0
  247. package/src/models/ForecasterStatus.ts +93 -0
  248. package/src/models/Group.ts +0 -8
  249. package/src/models/GroupResponse.ts +15 -0
  250. package/src/models/InspectorStatus.ts +1 -28
  251. package/src/models/Inventory.ts +12 -4
  252. package/src/models/InventoryData.ts +30 -0
  253. package/src/models/PairCapability.ts +106 -0
  254. package/src/models/PairCapabilityRequest.ts +89 -0
  255. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  256. package/src/models/RightsizingClusterListResponse.ts +83 -0
  257. package/src/models/RightsizingClusterResponse.ts +83 -0
  258. package/src/models/RightsizingClusterUtilization.ts +185 -0
  259. package/src/models/RightsizingCollectRequest.ts +18 -18
  260. package/src/models/RightsizingMetricStats.ts +4 -4
  261. package/src/models/RightsizingReport.ts +24 -24
  262. package/src/models/RightsizingReportSummary.ts +24 -24
  263. package/src/models/StartInspectionRequest.ts +18 -1
  264. package/src/models/StopForecasterPair202Response.ts +83 -0
  265. package/src/models/UpdateGroupRequest.ts +0 -8
  266. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  267. package/src/models/VMFilterOptionsResponse.ts +102 -0
  268. package/src/models/VMLabelsResponse.ts +75 -0
  269. package/src/models/VMNIC.ts +16 -0
  270. package/src/models/VirtualMachine.ts +48 -16
  271. package/src/models/VirtualMachineDetail.ts +31 -0
  272. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  273. package/src/models/VmUtilizationDetails.ts +63 -36
  274. package/src/models/index.ts +26 -0
@@ -26,25 +26,42 @@ exports.DefaultApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
27
  const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
28
28
  const AgentStatus_js_1 = require("../models/AgentStatus.js");
29
+ const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
30
+ const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
29
31
  const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
30
32
  const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
31
33
  const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
34
+ const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
35
+ const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
36
+ const ForecastStats_js_1 = require("../models/ForecastStats.js");
37
+ const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
38
+ const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
39
+ const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
32
40
  const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
33
41
  const Group_js_1 = require("../models/Group.js");
34
42
  const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
35
43
  const GroupResponse_js_1 = require("../models/GroupResponse.js");
36
44
  const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
45
+ const PairCapability_js_1 = require("../models/PairCapability.js");
46
+ const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
47
+ const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
48
+ const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
37
49
  const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
38
50
  const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
39
51
  const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
40
52
  const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
41
53
  const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
54
+ const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
42
55
  const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
56
+ const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
57
+ const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
58
+ const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
43
59
  const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
44
60
  const VddkProperties_js_1 = require("../models/VddkProperties.js");
45
61
  const VersionInfo_js_1 = require("../models/VersionInfo.js");
46
62
  const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
47
63
  const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
64
+ const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
48
65
  const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
49
66
  const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
50
67
  /**
@@ -91,6 +108,44 @@ class DefaultApi extends runtime.BaseAPI {
91
108
  return yield response.value();
92
109
  });
93
110
  }
111
+ /**
112
+ * Creates request options for deleteForecasterRun without sending the request
113
+ */
114
+ deleteForecasterRunRequestOpts(requestParameters) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ if (requestParameters['id'] == null) {
117
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
118
+ }
119
+ const queryParameters = {};
120
+ const headerParameters = {};
121
+ let urlPath = `/forecaster/runs/{id}`;
122
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
123
+ return {
124
+ path: urlPath,
125
+ method: 'DELETE',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ };
129
+ });
130
+ }
131
+ /**
132
+ * Delete a benchmark run
133
+ */
134
+ deleteForecasterRunRaw(requestParameters, initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
137
+ const response = yield this.request(requestOptions, initOverrides);
138
+ return new runtime.VoidApiResponse(response);
139
+ });
140
+ }
141
+ /**
142
+ * Delete a benchmark run
143
+ */
144
+ deleteForecasterRun(requestParameters, initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
147
+ });
148
+ }
94
149
  /**
95
150
  * Creates request options for deleteGroup without sending the request
96
151
  */
@@ -129,6 +184,45 @@ class DefaultApi extends runtime.BaseAPI {
129
184
  yield this.deleteGroupRaw(requestParameters, initOverrides);
130
185
  });
131
186
  }
187
+ /**
188
+ * Creates request options for deleteLabelGlobally without sending the request
189
+ */
190
+ deleteLabelGloballyRequestOpts(requestParameters) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ if (requestParameters['label'] == null) {
193
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
194
+ }
195
+ const queryParameters = {};
196
+ const headerParameters = {};
197
+ let urlPath = `/vms/labels/{label}`;
198
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
199
+ return {
200
+ path: urlPath,
201
+ method: 'DELETE',
202
+ headers: headerParameters,
203
+ query: queryParameters,
204
+ };
205
+ });
206
+ }
207
+ /**
208
+ * Delete label from all VMs
209
+ */
210
+ deleteLabelGloballyRaw(requestParameters, initOverrides) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
213
+ const response = yield this.request(requestOptions, initOverrides);
214
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
215
+ });
216
+ }
217
+ /**
218
+ * Delete label from all VMs
219
+ */
220
+ deleteLabelGlobally(requestParameters, initOverrides) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
223
+ return yield response.value();
224
+ });
225
+ }
132
226
  /**
133
227
  * Creates request options for getAgentStatus without sending the request
134
228
  */
@@ -164,6 +258,80 @@ class DefaultApi extends runtime.BaseAPI {
164
258
  return yield response.value();
165
259
  });
166
260
  }
261
+ /**
262
+ * Creates request options for getApplications without sending the request
263
+ */
264
+ getApplicationsRequestOpts() {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ const queryParameters = {};
267
+ const headerParameters = {};
268
+ let urlPath = `/applications`;
269
+ return {
270
+ path: urlPath,
271
+ method: 'GET',
272
+ headers: headerParameters,
273
+ query: queryParameters,
274
+ };
275
+ });
276
+ }
277
+ /**
278
+ * List detected applications running on VMs
279
+ */
280
+ getApplicationsRaw(initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const requestOptions = yield this.getApplicationsRequestOpts();
283
+ const response = yield this.request(requestOptions, initOverrides);
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
285
+ });
286
+ }
287
+ /**
288
+ * List detected applications running on VMs
289
+ */
290
+ getApplications(initOverrides) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const response = yield this.getApplicationsRaw(initOverrides);
293
+ return yield response.value();
294
+ });
295
+ }
296
+ /**
297
+ * Creates request options for getClusterUtilization without sending the request
298
+ */
299
+ getClusterUtilizationRequestOpts(requestParameters) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ if (requestParameters['clusterId'] == null) {
302
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
303
+ }
304
+ const queryParameters = {};
305
+ const headerParameters = {};
306
+ let urlPath = `/clusters/{cluster_id}/utilization`;
307
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
308
+ return {
309
+ path: urlPath,
310
+ method: 'GET',
311
+ headers: headerParameters,
312
+ query: queryParameters,
313
+ };
314
+ });
315
+ }
316
+ /**
317
+ * Get latest cluster utilization by cluster ID
318
+ */
319
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
322
+ const response = yield this.request(requestOptions, initOverrides);
323
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
324
+ });
325
+ }
326
+ /**
327
+ * Get latest cluster utilization by cluster ID
328
+ */
329
+ getClusterUtilization(requestParameters, initOverrides) {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
332
+ return yield response.value();
333
+ });
334
+ }
167
335
  /**
168
336
  * Creates request options for getCollectorStatus without sending the request
169
337
  */
@@ -199,6 +367,165 @@ class DefaultApi extends runtime.BaseAPI {
199
367
  return yield response.value();
200
368
  });
201
369
  }
370
+ /**
371
+ * Creates request options for getForecasterDatastores without sending the request
372
+ */
373
+ getForecasterDatastoresRequestOpts(requestParameters) {
374
+ return __awaiter(this, void 0, void 0, function* () {
375
+ const queryParameters = {};
376
+ const headerParameters = {};
377
+ headerParameters['Content-Type'] = 'application/json';
378
+ let urlPath = `/forecaster/datastores`;
379
+ return {
380
+ path: urlPath,
381
+ method: 'POST',
382
+ headers: headerParameters,
383
+ query: queryParameters,
384
+ body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
385
+ };
386
+ });
387
+ }
388
+ /**
389
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
390
+ * List available datastores
391
+ */
392
+ getForecasterDatastoresRaw(requestParameters, initOverrides) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
395
+ const response = yield this.request(requestOptions, initOverrides);
396
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
397
+ });
398
+ }
399
+ /**
400
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
401
+ * List available datastores
402
+ */
403
+ getForecasterDatastores() {
404
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
405
+ const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
406
+ return yield response.value();
407
+ });
408
+ }
409
+ /**
410
+ * Creates request options for getForecasterRuns without sending the request
411
+ */
412
+ getForecasterRunsRequestOpts(requestParameters) {
413
+ return __awaiter(this, void 0, void 0, function* () {
414
+ const queryParameters = {};
415
+ if (requestParameters['pairName'] != null) {
416
+ queryParameters['pairName'] = requestParameters['pairName'];
417
+ }
418
+ const headerParameters = {};
419
+ let urlPath = `/forecaster/runs`;
420
+ return {
421
+ path: urlPath,
422
+ method: 'GET',
423
+ headers: headerParameters,
424
+ query: queryParameters,
425
+ };
426
+ });
427
+ }
428
+ /**
429
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
430
+ * List benchmark runs
431
+ */
432
+ getForecasterRunsRaw(requestParameters, initOverrides) {
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
435
+ const response = yield this.request(requestOptions, initOverrides);
436
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
437
+ });
438
+ }
439
+ /**
440
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
441
+ * List benchmark runs
442
+ */
443
+ getForecasterRuns() {
444
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
445
+ const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
446
+ return yield response.value();
447
+ });
448
+ }
449
+ /**
450
+ * Creates request options for getForecasterStats without sending the request
451
+ */
452
+ getForecasterStatsRequestOpts(requestParameters) {
453
+ return __awaiter(this, void 0, void 0, function* () {
454
+ if (requestParameters['pairName'] == null) {
455
+ throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
456
+ }
457
+ const queryParameters = {};
458
+ if (requestParameters['pairName'] != null) {
459
+ queryParameters['pairName'] = requestParameters['pairName'];
460
+ }
461
+ const headerParameters = {};
462
+ let urlPath = `/forecaster/stats`;
463
+ return {
464
+ path: urlPath,
465
+ method: 'GET',
466
+ headers: headerParameters,
467
+ query: queryParameters,
468
+ };
469
+ });
470
+ }
471
+ /**
472
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
473
+ * Get throughput statistics
474
+ */
475
+ getForecasterStatsRaw(requestParameters, initOverrides) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
478
+ const response = yield this.request(requestOptions, initOverrides);
479
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
480
+ });
481
+ }
482
+ /**
483
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
484
+ * Get throughput statistics
485
+ */
486
+ getForecasterStats(requestParameters, initOverrides) {
487
+ return __awaiter(this, void 0, void 0, function* () {
488
+ const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
489
+ return yield response.value();
490
+ });
491
+ }
492
+ /**
493
+ * Creates request options for getForecasterStatus without sending the request
494
+ */
495
+ getForecasterStatusRequestOpts() {
496
+ return __awaiter(this, void 0, void 0, function* () {
497
+ const queryParameters = {};
498
+ const headerParameters = {};
499
+ let urlPath = `/forecaster`;
500
+ return {
501
+ path: urlPath,
502
+ method: 'GET',
503
+ headers: headerParameters,
504
+ query: queryParameters,
505
+ };
506
+ });
507
+ }
508
+ /**
509
+ * Returns current service state with per-pair progress details.
510
+ * Poll forecaster status
511
+ */
512
+ getForecasterStatusRaw(initOverrides) {
513
+ return __awaiter(this, void 0, void 0, function* () {
514
+ const requestOptions = yield this.getForecasterStatusRequestOpts();
515
+ const response = yield this.request(requestOptions, initOverrides);
516
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
517
+ });
518
+ }
519
+ /**
520
+ * Returns current service state with per-pair progress details.
521
+ * Poll forecaster status
522
+ */
523
+ getForecasterStatus(initOverrides) {
524
+ return __awaiter(this, void 0, void 0, function* () {
525
+ const response = yield this.getForecasterStatusRaw(initOverrides);
526
+ return yield response.value();
527
+ });
528
+ }
202
529
  /**
203
530
  * Creates request options for getGroup without sending the request
204
531
  */
@@ -256,9 +583,6 @@ class DefaultApi extends runtime.BaseAPI {
256
583
  if (requestParameters['includeVddk'] != null) {
257
584
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
258
585
  }
259
- if (requestParameters['includeCredentials'] != null) {
260
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
261
- }
262
586
  const headerParameters = {};
263
587
  let urlPath = `/inspector`;
264
588
  return {
@@ -364,18 +688,59 @@ class DefaultApi extends runtime.BaseAPI {
364
688
  return yield response.value();
365
689
  });
366
690
  }
691
+ /**
692
+ * Creates request options for getLatestRightsizingClusters without sending the request
693
+ * @deprecated
694
+ */
695
+ getLatestRightsizingClustersRequestOpts(requestParameters) {
696
+ return __awaiter(this, void 0, void 0, function* () {
697
+ const queryParameters = {};
698
+ if (requestParameters['byExpression'] != null) {
699
+ queryParameters['byExpression'] = requestParameters['byExpression'];
700
+ }
701
+ const headerParameters = {};
702
+ let urlPath = `/cluster_rightsizing`;
703
+ return {
704
+ path: urlPath,
705
+ method: 'GET',
706
+ headers: headerParameters,
707
+ query: queryParameters,
708
+ };
709
+ });
710
+ }
711
+ /**
712
+ * Get cluster-level utilization aggregates for the latest completed report
713
+ * @deprecated
714
+ */
715
+ getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
716
+ return __awaiter(this, void 0, void 0, function* () {
717
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
718
+ const response = yield this.request(requestOptions, initOverrides);
719
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
720
+ });
721
+ }
722
+ /**
723
+ * Get cluster-level utilization aggregates for the latest completed report
724
+ * @deprecated
725
+ */
726
+ getLatestRightsizingClusters() {
727
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
728
+ const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
729
+ return yield response.value();
730
+ });
731
+ }
367
732
  /**
368
733
  * Creates request options for getRightsizingReport without sending the request
369
734
  */
370
735
  getRightsizingReportRequestOpts(requestParameters) {
371
736
  return __awaiter(this, void 0, void 0, function* () {
372
- if (requestParameters['id'] == null) {
373
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRightsizingReport().');
737
+ if (requestParameters['reportId'] == null) {
738
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
374
739
  }
375
740
  const queryParameters = {};
376
741
  const headerParameters = {};
377
- let urlPath = `/rightsizing/{id}`;
378
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
742
+ let urlPath = `/rightsizing/{report_id}`;
743
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
379
744
  return {
380
745
  path: urlPath,
381
746
  method: 'GET',
@@ -403,6 +768,94 @@ class DefaultApi extends runtime.BaseAPI {
403
768
  return yield response.value();
404
769
  });
405
770
  }
771
+ /**
772
+ * Creates request options for getRightsizingReportCluster without sending the request
773
+ */
774
+ getRightsizingReportClusterRequestOpts(requestParameters) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ if (requestParameters['reportId'] == null) {
777
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
778
+ }
779
+ if (requestParameters['clusterId'] == null) {
780
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
781
+ }
782
+ const queryParameters = {};
783
+ const headerParameters = {};
784
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
785
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
786
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
787
+ return {
788
+ path: urlPath,
789
+ method: 'GET',
790
+ headers: headerParameters,
791
+ query: queryParameters,
792
+ };
793
+ });
794
+ }
795
+ /**
796
+ * Get utilization for a specific cluster from a specific report
797
+ */
798
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
799
+ return __awaiter(this, void 0, void 0, function* () {
800
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
801
+ const response = yield this.request(requestOptions, initOverrides);
802
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
803
+ });
804
+ }
805
+ /**
806
+ * Get utilization for a specific cluster from a specific report
807
+ */
808
+ getRightsizingReportCluster(requestParameters, initOverrides) {
809
+ return __awaiter(this, void 0, void 0, function* () {
810
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
811
+ return yield response.value();
812
+ });
813
+ }
814
+ /**
815
+ * Creates request options for getRightsizingReportClusters without sending the request
816
+ * @deprecated
817
+ */
818
+ getRightsizingReportClustersRequestOpts(requestParameters) {
819
+ return __awaiter(this, void 0, void 0, function* () {
820
+ if (requestParameters['reportId'] == null) {
821
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
822
+ }
823
+ const queryParameters = {};
824
+ if (requestParameters['byExpression'] != null) {
825
+ queryParameters['byExpression'] = requestParameters['byExpression'];
826
+ }
827
+ const headerParameters = {};
828
+ let urlPath = `/cluster_rightsizing/{report_id}`;
829
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
830
+ return {
831
+ path: urlPath,
832
+ method: 'GET',
833
+ headers: headerParameters,
834
+ query: queryParameters,
835
+ };
836
+ });
837
+ }
838
+ /**
839
+ * Get cluster-level utilization aggregates for a specific report
840
+ * @deprecated
841
+ */
842
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
843
+ return __awaiter(this, void 0, void 0, function* () {
844
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
845
+ const response = yield this.request(requestOptions, initOverrides);
846
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
847
+ });
848
+ }
849
+ /**
850
+ * Get cluster-level utilization aggregates for a specific report
851
+ * @deprecated
852
+ */
853
+ getRightsizingReportClusters(requestParameters, initOverrides) {
854
+ return __awaiter(this, void 0, void 0, function* () {
855
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
856
+ return yield response.value();
857
+ });
858
+ }
406
859
  /**
407
860
  * Creates request options for getVM without sending the request
408
861
  */
@@ -424,21 +877,56 @@ class DefaultApi extends runtime.BaseAPI {
424
877
  });
425
878
  }
426
879
  /**
427
- * Get details about a vm
880
+ * Get details about a vm
881
+ */
882
+ getVMRaw(requestParameters, initOverrides) {
883
+ return __awaiter(this, void 0, void 0, function* () {
884
+ const requestOptions = yield this.getVMRequestOpts(requestParameters);
885
+ const response = yield this.request(requestOptions, initOverrides);
886
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
887
+ });
888
+ }
889
+ /**
890
+ * Get details about a vm
891
+ */
892
+ getVM(requestParameters, initOverrides) {
893
+ return __awaiter(this, void 0, void 0, function* () {
894
+ const response = yield this.getVMRaw(requestParameters, initOverrides);
895
+ return yield response.value();
896
+ });
897
+ }
898
+ /**
899
+ * Creates request options for getVMLabels without sending the request
900
+ */
901
+ getVMLabelsRequestOpts() {
902
+ return __awaiter(this, void 0, void 0, function* () {
903
+ const queryParameters = {};
904
+ const headerParameters = {};
905
+ let urlPath = `/vms/labels`;
906
+ return {
907
+ path: urlPath,
908
+ method: 'GET',
909
+ headers: headerParameters,
910
+ query: queryParameters,
911
+ };
912
+ });
913
+ }
914
+ /**
915
+ * Get all distinct labels in use across VMs
428
916
  */
429
- getVMRaw(requestParameters, initOverrides) {
917
+ getVMLabelsRaw(initOverrides) {
430
918
  return __awaiter(this, void 0, void 0, function* () {
431
- const requestOptions = yield this.getVMRequestOpts(requestParameters);
919
+ const requestOptions = yield this.getVMLabelsRequestOpts();
432
920
  const response = yield this.request(requestOptions, initOverrides);
433
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
921
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
434
922
  });
435
923
  }
436
924
  /**
437
- * Get details about a vm
925
+ * Get all distinct labels in use across VMs
438
926
  */
439
- getVM(requestParameters, initOverrides) {
927
+ getVMLabels(initOverrides) {
440
928
  return __awaiter(this, void 0, void 0, function* () {
441
- const response = yield this.getVMRaw(requestParameters, initOverrides);
929
+ const response = yield this.getVMLabelsRaw(initOverrides);
442
930
  return yield response.value();
443
931
  });
444
932
  }
@@ -528,6 +1016,41 @@ class DefaultApi extends runtime.BaseAPI {
528
1016
  return yield response.value();
529
1017
  });
530
1018
  }
1019
+ /**
1020
+ * Creates request options for getVMsFilterOptions without sending the request
1021
+ */
1022
+ getVMsFilterOptionsRequestOpts() {
1023
+ return __awaiter(this, void 0, void 0, function* () {
1024
+ const queryParameters = {};
1025
+ const headerParameters = {};
1026
+ let urlPath = `/vms/filter-options`;
1027
+ return {
1028
+ path: urlPath,
1029
+ method: 'GET',
1030
+ headers: headerParameters,
1031
+ query: queryParameters,
1032
+ };
1033
+ });
1034
+ }
1035
+ /**
1036
+ * Get distinct filter option values for VMs
1037
+ */
1038
+ getVMsFilterOptionsRaw(initOverrides) {
1039
+ return __awaiter(this, void 0, void 0, function* () {
1040
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1041
+ const response = yield this.request(requestOptions, initOverrides);
1042
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
1043
+ });
1044
+ }
1045
+ /**
1046
+ * Get distinct filter option values for VMs
1047
+ */
1048
+ getVMsFilterOptions(initOverrides) {
1049
+ return __awaiter(this, void 0, void 0, function* () {
1050
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1051
+ return yield response.value();
1052
+ });
1053
+ }
531
1054
  /**
532
1055
  * Creates request options for getVersion without sending the request
533
1056
  */
@@ -607,6 +1130,48 @@ class DefaultApi extends runtime.BaseAPI {
607
1130
  return yield response.value();
608
1131
  });
609
1132
  }
1133
+ /**
1134
+ * Creates request options for listRightsizingReportClusters without sending the request
1135
+ */
1136
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1137
+ return __awaiter(this, void 0, void 0, function* () {
1138
+ if (requestParameters['reportId'] == null) {
1139
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1140
+ }
1141
+ const queryParameters = {};
1142
+ if (requestParameters['byExpression'] != null) {
1143
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1144
+ }
1145
+ const headerParameters = {};
1146
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1147
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1148
+ return {
1149
+ path: urlPath,
1150
+ method: 'GET',
1151
+ headers: headerParameters,
1152
+ query: queryParameters,
1153
+ };
1154
+ });
1155
+ }
1156
+ /**
1157
+ * Get cluster-level utilization aggregates for a specific report
1158
+ */
1159
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1160
+ return __awaiter(this, void 0, void 0, function* () {
1161
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1162
+ const response = yield this.request(requestOptions, initOverrides);
1163
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
1164
+ });
1165
+ }
1166
+ /**
1167
+ * Get cluster-level utilization aggregates for a specific report
1168
+ */
1169
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1170
+ return __awaiter(this, void 0, void 0, function* () {
1171
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1172
+ return yield response.value();
1173
+ });
1174
+ }
610
1175
  /**
611
1176
  * Creates request options for listRightsizingReports without sending the request
612
1177
  */
@@ -643,17 +1208,59 @@ class DefaultApi extends runtime.BaseAPI {
643
1208
  });
644
1209
  }
645
1210
  /**
646
- * Creates request options for putInspectorCredentials without sending the request
1211
+ * Creates request options for postForecasterPairCapabilities without sending the request
1212
+ */
1213
+ postForecasterPairCapabilitiesRequestOpts(requestParameters) {
1214
+ return __awaiter(this, void 0, void 0, function* () {
1215
+ if (requestParameters['pairCapabilityRequest'] == null) {
1216
+ throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
1217
+ }
1218
+ const queryParameters = {};
1219
+ const headerParameters = {};
1220
+ headerParameters['Content-Type'] = 'application/json';
1221
+ let urlPath = `/forecaster/capabilities`;
1222
+ return {
1223
+ path: urlPath,
1224
+ method: 'POST',
1225
+ headers: headerParameters,
1226
+ query: queryParameters,
1227
+ body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
1228
+ };
1229
+ });
1230
+ }
1231
+ /**
1232
+ * 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.
1233
+ * Compute pair capabilities
1234
+ */
1235
+ postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
1236
+ return __awaiter(this, void 0, void 0, function* () {
1237
+ const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
1238
+ const response = yield this.request(requestOptions, initOverrides);
1239
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
1240
+ });
1241
+ }
1242
+ /**
1243
+ * 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.
1244
+ * Compute pair capabilities
1245
+ */
1246
+ postForecasterPairCapabilities(requestParameters, initOverrides) {
1247
+ return __awaiter(this, void 0, void 0, function* () {
1248
+ const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
1249
+ return yield response.value();
1250
+ });
1251
+ }
1252
+ /**
1253
+ * Creates request options for putForecasterCredentials without sending the request
647
1254
  */
648
- putInspectorCredentialsRequestOpts(requestParameters) {
1255
+ putForecasterCredentialsRequestOpts(requestParameters) {
649
1256
  return __awaiter(this, void 0, void 0, function* () {
650
1257
  if (requestParameters['vcenterCredentials'] == null) {
651
- throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
1258
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
652
1259
  }
653
1260
  const queryParameters = {};
654
1261
  const headerParameters = {};
655
1262
  headerParameters['Content-Type'] = 'application/json';
656
- let urlPath = `/inspector/credentials`;
1263
+ let urlPath = `/forecaster/credentials`;
657
1264
  return {
658
1265
  path: urlPath,
659
1266
  method: 'PUT',
@@ -664,21 +1271,23 @@ class DefaultApi extends runtime.BaseAPI {
664
1271
  });
665
1272
  }
666
1273
  /**
667
- * Set or replace inspector credentials
1274
+ * 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.
1275
+ * Verify vCenter credentials and permissions
668
1276
  */
669
- putInspectorCredentialsRaw(requestParameters, initOverrides) {
1277
+ putForecasterCredentialsRaw(requestParameters, initOverrides) {
670
1278
  return __awaiter(this, void 0, void 0, function* () {
671
- const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
1279
+ const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
672
1280
  const response = yield this.request(requestOptions, initOverrides);
673
1281
  return new runtime.VoidApiResponse(response);
674
1282
  });
675
1283
  }
676
1284
  /**
677
- * Set or replace inspector credentials
1285
+ * 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.
1286
+ * Verify vCenter credentials and permissions
678
1287
  */
679
- putInspectorCredentials(requestParameters, initOverrides) {
1288
+ putForecasterCredentials(requestParameters, initOverrides) {
680
1289
  return __awaiter(this, void 0, void 0, function* () {
681
- yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
1290
+ yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
682
1291
  });
683
1292
  }
684
1293
  /**
@@ -857,6 +1466,48 @@ class DefaultApi extends runtime.BaseAPI {
857
1466
  return yield response.value();
858
1467
  });
859
1468
  }
1469
+ /**
1470
+ * Creates request options for startForecaster without sending the request
1471
+ */
1472
+ startForecasterRequestOpts(requestParameters) {
1473
+ return __awaiter(this, void 0, void 0, function* () {
1474
+ if (requestParameters['forecasterStartRequest'] == null) {
1475
+ throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
1476
+ }
1477
+ const queryParameters = {};
1478
+ const headerParameters = {};
1479
+ headerParameters['Content-Type'] = 'application/json';
1480
+ let urlPath = `/forecaster`;
1481
+ return {
1482
+ path: urlPath,
1483
+ method: 'POST',
1484
+ headers: headerParameters,
1485
+ query: queryParameters,
1486
+ body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
1487
+ };
1488
+ });
1489
+ }
1490
+ /**
1491
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1492
+ * Start benchmark
1493
+ */
1494
+ startForecasterRaw(requestParameters, initOverrides) {
1495
+ return __awaiter(this, void 0, void 0, function* () {
1496
+ const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
1497
+ const response = yield this.request(requestOptions, initOverrides);
1498
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
1499
+ });
1500
+ }
1501
+ /**
1502
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1503
+ * Start benchmark
1504
+ */
1505
+ startForecaster(requestParameters, initOverrides) {
1506
+ return __awaiter(this, void 0, void 0, function* () {
1507
+ const response = yield this.startForecasterRaw(requestParameters, initOverrides);
1508
+ return yield response.value();
1509
+ });
1510
+ }
860
1511
  /**
861
1512
  * Creates request options for startInspection without sending the request
862
1513
  */
@@ -931,6 +1582,84 @@ class DefaultApi extends runtime.BaseAPI {
931
1582
  yield this.stopCollectorRaw(initOverrides);
932
1583
  });
933
1584
  }
1585
+ /**
1586
+ * Creates request options for stopForecaster without sending the request
1587
+ */
1588
+ stopForecasterRequestOpts() {
1589
+ return __awaiter(this, void 0, void 0, function* () {
1590
+ const queryParameters = {};
1591
+ const headerParameters = {};
1592
+ let urlPath = `/forecaster`;
1593
+ return {
1594
+ path: urlPath,
1595
+ method: 'DELETE',
1596
+ headers: headerParameters,
1597
+ query: queryParameters,
1598
+ };
1599
+ });
1600
+ }
1601
+ /**
1602
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1603
+ * Cancel benchmark
1604
+ */
1605
+ stopForecasterRaw(initOverrides) {
1606
+ return __awaiter(this, void 0, void 0, function* () {
1607
+ const requestOptions = yield this.stopForecasterRequestOpts();
1608
+ const response = yield this.request(requestOptions, initOverrides);
1609
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
1610
+ });
1611
+ }
1612
+ /**
1613
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1614
+ * Cancel benchmark
1615
+ */
1616
+ stopForecaster(initOverrides) {
1617
+ return __awaiter(this, void 0, void 0, function* () {
1618
+ const response = yield this.stopForecasterRaw(initOverrides);
1619
+ return yield response.value();
1620
+ });
1621
+ }
1622
+ /**
1623
+ * Creates request options for stopForecasterPair without sending the request
1624
+ */
1625
+ stopForecasterPairRequestOpts(requestParameters) {
1626
+ return __awaiter(this, void 0, void 0, function* () {
1627
+ if (requestParameters['name'] == null) {
1628
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
1629
+ }
1630
+ const queryParameters = {};
1631
+ const headerParameters = {};
1632
+ let urlPath = `/forecaster/pairs/{name}`;
1633
+ urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
1634
+ return {
1635
+ path: urlPath,
1636
+ method: 'DELETE',
1637
+ headers: headerParameters,
1638
+ query: queryParameters,
1639
+ };
1640
+ });
1641
+ }
1642
+ /**
1643
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1644
+ * Cancel a single pair
1645
+ */
1646
+ stopForecasterPairRaw(requestParameters, initOverrides) {
1647
+ return __awaiter(this, void 0, void 0, function* () {
1648
+ const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
1649
+ const response = yield this.request(requestOptions, initOverrides);
1650
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
1651
+ });
1652
+ }
1653
+ /**
1654
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1655
+ * Cancel a single pair
1656
+ */
1657
+ stopForecasterPair(requestParameters, initOverrides) {
1658
+ return __awaiter(this, void 0, void 0, function* () {
1659
+ const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
1660
+ return yield response.value();
1661
+ });
1662
+ }
934
1663
  /**
935
1664
  * Creates request options for stopInspection without sending the request
936
1665
  */
@@ -1050,5 +1779,130 @@ class DefaultApi extends runtime.BaseAPI {
1050
1779
  return yield response.value();
1051
1780
  });
1052
1781
  }
1782
+ /**
1783
+ * Creates request options for updateLabelVMs without sending the request
1784
+ */
1785
+ updateLabelVMsRequestOpts(requestParameters) {
1786
+ return __awaiter(this, void 0, void 0, function* () {
1787
+ if (requestParameters['label'] == null) {
1788
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1789
+ }
1790
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1791
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1792
+ }
1793
+ const queryParameters = {};
1794
+ const headerParameters = {};
1795
+ headerParameters['Content-Type'] = 'application/json';
1796
+ let urlPath = `/vms/labels/{label}`;
1797
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1798
+ return {
1799
+ path: urlPath,
1800
+ method: 'PATCH',
1801
+ headers: headerParameters,
1802
+ query: queryParameters,
1803
+ body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
1804
+ };
1805
+ });
1806
+ }
1807
+ /**
1808
+ * Modify label VM membership (add/remove label to/from VMs)
1809
+ */
1810
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1811
+ return __awaiter(this, void 0, void 0, function* () {
1812
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1813
+ const response = yield this.request(requestOptions, initOverrides);
1814
+ return new runtime.VoidApiResponse(response);
1815
+ });
1816
+ }
1817
+ /**
1818
+ * Modify label VM membership (add/remove label to/from VMs)
1819
+ */
1820
+ updateLabelVMs(requestParameters, initOverrides) {
1821
+ return __awaiter(this, void 0, void 0, function* () {
1822
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1823
+ });
1824
+ }
1825
+ /**
1826
+ * Creates request options for updateVM without sending the request
1827
+ */
1828
+ updateVMRequestOpts(requestParameters) {
1829
+ return __awaiter(this, void 0, void 0, function* () {
1830
+ if (requestParameters['id'] == null) {
1831
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1832
+ }
1833
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1834
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1835
+ }
1836
+ const queryParameters = {};
1837
+ const headerParameters = {};
1838
+ headerParameters['Content-Type'] = 'application/json';
1839
+ let urlPath = `/vms/{id}`;
1840
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1841
+ return {
1842
+ path: urlPath,
1843
+ method: 'PATCH',
1844
+ headers: headerParameters,
1845
+ query: queryParameters,
1846
+ body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
1847
+ };
1848
+ });
1849
+ }
1850
+ /**
1851
+ * Update VM properties
1852
+ */
1853
+ updateVMRaw(requestParameters, initOverrides) {
1854
+ return __awaiter(this, void 0, void 0, function* () {
1855
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
1856
+ const response = yield this.request(requestOptions, initOverrides);
1857
+ return new runtime.VoidApiResponse(response);
1858
+ });
1859
+ }
1860
+ /**
1861
+ * Update VM properties
1862
+ */
1863
+ updateVM(requestParameters, initOverrides) {
1864
+ return __awaiter(this, void 0, void 0, function* () {
1865
+ yield this.updateVMRaw(requestParameters, initOverrides);
1866
+ });
1867
+ }
1868
+ /**
1869
+ * Creates request options for validateInspectorCredentials without sending the request
1870
+ */
1871
+ validateInspectorCredentialsRequestOpts(requestParameters) {
1872
+ return __awaiter(this, void 0, void 0, function* () {
1873
+ if (requestParameters['vcenterCredentials'] == null) {
1874
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
1875
+ }
1876
+ const queryParameters = {};
1877
+ const headerParameters = {};
1878
+ headerParameters['Content-Type'] = 'application/json';
1879
+ let urlPath = `/inspector/credentials`;
1880
+ return {
1881
+ path: urlPath,
1882
+ method: 'POST',
1883
+ headers: headerParameters,
1884
+ query: queryParameters,
1885
+ body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
1886
+ };
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Validate vCenter credentials for inspector
1891
+ */
1892
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
1893
+ return __awaiter(this, void 0, void 0, function* () {
1894
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
1895
+ const response = yield this.request(requestOptions, initOverrides);
1896
+ return new runtime.VoidApiResponse(response);
1897
+ });
1898
+ }
1899
+ /**
1900
+ * Validate vCenter credentials for inspector
1901
+ */
1902
+ validateInspectorCredentials(requestParameters, initOverrides) {
1903
+ return __awaiter(this, void 0, void 0, function* () {
1904
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
1905
+ });
1906
+ }
1053
1907
  }
1054
1908
  exports.DefaultApi = DefaultApi;