@openshift-migration-advisor/agent-sdk 0.19.0-ad34f3b0c020 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/.openapi-generator/FILES +64 -56
  2. package/README.md +94 -69
  3. package/dist/apis/DefaultApi.d.ts +1988 -0
  4. package/dist/apis/DefaultApi.js +2066 -0
  5. package/dist/apis/index.d.ts +1 -11
  6. package/dist/apis/index.js +1 -11
  7. package/dist/esm/apis/DefaultApi.d.ts +1988 -0
  8. package/dist/esm/apis/DefaultApi.js +2062 -0
  9. package/dist/esm/apis/index.d.ts +1 -11
  10. package/dist/esm/apis/index.js +1 -11
  11. package/dist/esm/models/AgentModeRequest.d.ts +1 -1
  12. package/dist/esm/models/AgentModeRequest.js +1 -1
  13. package/dist/esm/models/AgentStatus.d.ts +15 -4
  14. package/dist/esm/models/AgentStatus.js +13 -5
  15. package/dist/esm/models/ApplicationListResponse.d.ts +1 -1
  16. package/dist/esm/models/ApplicationListResponse.js +1 -1
  17. package/dist/esm/models/ApplicationOverview.d.ts +4 -4
  18. package/dist/esm/models/ApplicationOverview.js +1 -1
  19. package/dist/esm/models/ApplicationVM.d.ts +3 -3
  20. package/dist/esm/models/ApplicationVM.js +1 -1
  21. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +1 -1
  22. package/dist/esm/models/BatchUpdateExclusionRequest.js +1 -1
  23. package/dist/esm/models/BenchmarkRun.d.ts +78 -0
  24. package/dist/esm/models/BenchmarkRun.js +85 -0
  25. package/dist/esm/models/CapabilityStatus.d.ts +1 -1
  26. package/dist/esm/models/CapabilityStatus.js +1 -1
  27. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +1 -1
  28. package/dist/esm/models/CapabilityStatusCapabilities.js +1 -1
  29. package/dist/esm/models/ClusterFeatures.d.ts +1 -1
  30. package/dist/esm/models/ClusterFeatures.js +1 -1
  31. package/dist/esm/models/ClusterUtilization.d.ts +1 -1
  32. package/dist/esm/models/ClusterUtilization.js +1 -1
  33. package/dist/esm/models/CollectorStartRequest.d.ts +46 -0
  34. package/dist/esm/models/CollectorStartRequest.js +49 -0
  35. package/dist/esm/models/CollectorStatus.d.ts +1 -2
  36. package/dist/esm/models/CollectorStatus.js +1 -2
  37. package/dist/esm/models/CreateGroupRequest.d.ts +4 -4
  38. package/dist/esm/models/CreateGroupRequest.js +1 -1
  39. package/dist/esm/models/CredentialStatus.d.ts +1 -1
  40. package/dist/esm/models/CredentialStatus.js +1 -1
  41. package/dist/esm/models/Datastore.d.ts +1 -1
  42. package/dist/esm/models/Datastore.js +1 -1
  43. package/dist/esm/models/DatastoreDetail.d.ts +72 -0
  44. package/dist/esm/models/DatastoreDetail.js +74 -0
  45. package/dist/esm/models/DatastorePair.d.ts +42 -0
  46. package/dist/esm/models/DatastorePair.js +53 -0
  47. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +5 -5
  48. package/dist/esm/models/DeleteLabelGloballyResponse.js +5 -5
  49. package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -1
  50. package/dist/esm/models/DiskSizeTierSummary.js +1 -1
  51. package/dist/esm/models/DiskTypeSummary.d.ts +1 -1
  52. package/dist/esm/models/DiskTypeSummary.js +1 -1
  53. package/dist/esm/models/EstimateRange.d.ts +38 -0
  54. package/dist/esm/models/EstimateRange.js +45 -0
  55. package/dist/esm/models/ExportInventory400Response.d.ts +30 -0
  56. package/dist/esm/models/ExportInventory400Response.js +41 -0
  57. package/dist/esm/models/ExportInventory500Response.d.ts +30 -0
  58. package/dist/esm/models/ExportInventory500Response.js +41 -0
  59. package/dist/esm/models/ForecastStats.d.ts +67 -0
  60. package/dist/esm/models/ForecastStats.js +64 -0
  61. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +31 -0
  62. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  63. package/dist/esm/models/ForecasterPairStatus.d.ts +78 -0
  64. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  65. package/dist/esm/models/ForecasterStartRequest.d.ts +48 -0
  66. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  67. package/dist/esm/models/ForecasterStatus.d.ts +43 -0
  68. package/dist/esm/models/ForecasterStatus.js +53 -0
  69. package/dist/esm/models/GetInventory200Response.d.ts +23 -0
  70. package/dist/esm/models/GetInventory200Response.js +51 -0
  71. package/dist/esm/models/Group.d.ts +4 -4
  72. package/dist/esm/models/Group.js +1 -1
  73. package/dist/esm/models/GroupListResponse.d.ts +4 -4
  74. package/dist/esm/models/GroupListResponse.js +1 -1
  75. package/dist/esm/models/GroupResponse.d.ts +6 -6
  76. package/dist/esm/models/GroupResponse.js +4 -4
  77. package/dist/esm/models/GuestNetwork.d.ts +6 -6
  78. package/dist/esm/models/GuestNetwork.js +1 -1
  79. package/dist/esm/models/Histogram.d.ts +1 -1
  80. package/dist/esm/models/Histogram.js +1 -1
  81. package/dist/esm/models/Host.d.ts +1 -1
  82. package/dist/esm/models/Host.js +1 -1
  83. package/dist/esm/models/Infra.d.ts +1 -1
  84. package/dist/esm/models/Infra.js +1 -1
  85. package/dist/esm/models/InspectorStatus.d.ts +1 -1
  86. package/dist/esm/models/InspectorStatus.js +1 -1
  87. package/dist/esm/models/Inventory.d.ts +17 -3
  88. package/dist/esm/models/Inventory.js +14 -5
  89. package/dist/esm/models/InventoryData.d.ts +1 -1
  90. package/dist/esm/models/InventoryData.js +1 -1
  91. package/dist/esm/models/IssuesBreakdown.d.ts +1 -1
  92. package/dist/esm/models/IssuesBreakdown.js +1 -1
  93. package/dist/esm/models/MigrationIssue.d.ts +1 -1
  94. package/dist/esm/models/MigrationIssue.js +1 -1
  95. package/dist/esm/models/Network.d.ts +1 -1
  96. package/dist/esm/models/Network.js +1 -1
  97. package/dist/esm/models/OperationCapability.d.ts +1 -1
  98. package/dist/esm/models/OperationCapability.js +1 -1
  99. package/dist/esm/models/OsInfo.d.ts +1 -1
  100. package/dist/esm/models/OsInfo.js +1 -1
  101. package/dist/esm/models/PairCapability.d.ts +52 -0
  102. package/dist/esm/models/PairCapability.js +64 -0
  103. package/dist/esm/models/PairCapabilityRequest.d.ts +36 -0
  104. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  105. package/dist/esm/models/Process.d.ts +1 -1
  106. package/dist/esm/models/Process.js +1 -1
  107. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +34 -0
  108. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  109. package/dist/esm/models/RightsizingClusterListResponse.d.ts +35 -0
  110. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  111. package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -2
  112. package/dist/esm/models/RightsizingClusterResponse.js +1 -1
  113. package/dist/esm/models/RightsizingClusterUtilization.d.ts +15 -13
  114. package/dist/esm/models/RightsizingClusterUtilization.js +1 -1
  115. package/dist/esm/models/RightsizingCollectRequest.d.ts +56 -0
  116. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  117. package/dist/esm/models/RightsizingMetricStats.d.ts +50 -0
  118. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  119. package/dist/esm/models/RightsizingReport.d.ts +63 -0
  120. package/dist/esm/models/RightsizingReport.js +76 -0
  121. package/dist/esm/models/RightsizingReportListResponse.d.ts +35 -0
  122. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  123. package/dist/esm/models/RightsizingReportSummary.d.ts +58 -0
  124. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  125. package/dist/esm/models/RightsizingVMReport.d.ts +45 -0
  126. package/dist/esm/models/RightsizingVMReport.js +57 -0
  127. package/dist/esm/models/StartInspectionRequest.d.ts +8 -3
  128. package/dist/esm/models/StartInspectionRequest.js +4 -1
  129. package/dist/esm/models/StopForecasterPair202Response.d.ts +41 -0
  130. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  131. package/dist/esm/models/StorageIoConfiguration.d.ts +1 -1
  132. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  133. package/dist/esm/models/UpdateGroupRequest.d.ts +4 -4
  134. package/dist/esm/models/UpdateGroupRequest.js +1 -1
  135. package/dist/esm/models/UpdateInventory.d.ts +3 -3
  136. package/dist/esm/models/UpdateInventory.js +4 -4
  137. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +1 -1
  138. package/dist/esm/models/UpdateLabelVMsRequest.js +1 -1
  139. package/dist/esm/models/VCenter.d.ts +1 -1
  140. package/dist/esm/models/VCenter.js +1 -1
  141. package/dist/esm/models/VMDevice.d.ts +30 -0
  142. package/dist/esm/models/{VirtualMachineDevice.js → VMDevice.js} +9 -9
  143. package/dist/esm/models/VMDisk.d.ts +54 -0
  144. package/dist/esm/models/{VirtualMachineDisk.js → VMDisk.js} +9 -9
  145. package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -1
  146. package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
  147. package/dist/esm/models/VMIssue.d.ts +50 -0
  148. package/dist/esm/models/{VirtualMachineIssue.js → VMIssue.js} +16 -16
  149. package/dist/esm/models/VMLabelsResponse.d.ts +1 -1
  150. package/dist/esm/models/VMLabelsResponse.js +1 -1
  151. package/dist/esm/models/VMNIC.d.ts +46 -0
  152. package/dist/esm/models/{VirtualMachineNIC.js → VMNIC.js} +13 -9
  153. package/dist/esm/models/VMResourceBreakdown.d.ts +1 -1
  154. package/dist/esm/models/VMResourceBreakdown.js +1 -1
  155. package/dist/esm/models/VMs.d.ts +1 -1
  156. package/dist/esm/models/VMs.js +1 -1
  157. package/dist/esm/models/VcenterCredentials.d.ts +1 -1
  158. package/dist/esm/models/VcenterCredentials.js +1 -1
  159. package/dist/esm/models/VddkProperties.d.ts +2 -2
  160. package/dist/esm/models/VddkProperties.js +1 -1
  161. package/dist/esm/models/VersionInfo.d.ts +4 -4
  162. package/dist/esm/models/VersionInfo.js +1 -1
  163. package/dist/esm/models/VirtualMachine.d.ts +11 -15
  164. package/dist/esm/models/VirtualMachine.js +6 -10
  165. package/dist/esm/models/VirtualMachineDetail.d.ts +38 -42
  166. package/dist/esm/models/VirtualMachineDetail.js +16 -20
  167. package/dist/esm/models/VirtualMachineListResponse.d.ts +3 -3
  168. package/dist/esm/models/VirtualMachineListResponse.js +4 -4
  169. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +1 -1
  170. package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
  171. package/dist/esm/models/VmInspectionConcern.d.ts +38 -0
  172. package/dist/esm/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +9 -9
  173. package/dist/esm/models/VmInspectionResults.d.ts +31 -0
  174. package/dist/esm/models/VmInspectionResults.js +42 -0
  175. package/dist/esm/models/VmInspectionStatus.d.ts +53 -0
  176. package/dist/esm/models/VmInspectionStatus.js +61 -0
  177. package/dist/esm/models/VmUtilizationDetails.d.ts +8 -8
  178. package/dist/esm/models/VmUtilizationDetails.js +1 -1
  179. package/dist/esm/models/index.d.ts +31 -17
  180. package/dist/esm/models/index.js +31 -17
  181. package/dist/esm/runtime.d.ts +1 -1
  182. package/dist/esm/runtime.js +2 -2
  183. package/dist/models/AgentModeRequest.d.ts +1 -1
  184. package/dist/models/AgentModeRequest.js +1 -1
  185. package/dist/models/AgentStatus.d.ts +15 -4
  186. package/dist/models/AgentStatus.js +14 -6
  187. package/dist/models/ApplicationListResponse.d.ts +1 -1
  188. package/dist/models/ApplicationListResponse.js +1 -1
  189. package/dist/models/ApplicationOverview.d.ts +4 -4
  190. package/dist/models/ApplicationOverview.js +1 -1
  191. package/dist/models/ApplicationVM.d.ts +3 -3
  192. package/dist/models/ApplicationVM.js +1 -1
  193. package/dist/models/BatchUpdateExclusionRequest.d.ts +1 -1
  194. package/dist/models/BatchUpdateExclusionRequest.js +1 -1
  195. package/dist/models/BenchmarkRun.d.ts +78 -0
  196. package/dist/models/BenchmarkRun.js +92 -0
  197. package/dist/models/CapabilityStatus.d.ts +1 -1
  198. package/dist/models/CapabilityStatus.js +1 -1
  199. package/dist/models/CapabilityStatusCapabilities.d.ts +1 -1
  200. package/dist/models/CapabilityStatusCapabilities.js +1 -1
  201. package/dist/models/ClusterFeatures.d.ts +1 -1
  202. package/dist/models/ClusterFeatures.js +1 -1
  203. package/dist/models/ClusterUtilization.d.ts +1 -1
  204. package/dist/models/ClusterUtilization.js +1 -1
  205. package/dist/models/CollectorStartRequest.d.ts +46 -0
  206. package/dist/models/CollectorStartRequest.js +56 -0
  207. package/dist/models/CollectorStatus.d.ts +1 -2
  208. package/dist/models/CollectorStatus.js +1 -2
  209. package/dist/models/CreateGroupRequest.d.ts +4 -4
  210. package/dist/models/CreateGroupRequest.js +1 -1
  211. package/dist/models/CredentialStatus.d.ts +1 -1
  212. package/dist/models/CredentialStatus.js +1 -1
  213. package/dist/models/Datastore.d.ts +1 -1
  214. package/dist/models/Datastore.js +1 -1
  215. package/dist/models/DatastoreDetail.d.ts +72 -0
  216. package/dist/models/DatastoreDetail.js +82 -0
  217. package/dist/models/DatastorePair.d.ts +42 -0
  218. package/dist/models/DatastorePair.js +60 -0
  219. package/dist/models/DeleteLabelGloballyResponse.d.ts +5 -5
  220. package/dist/models/DeleteLabelGloballyResponse.js +5 -5
  221. package/dist/models/DiskSizeTierSummary.d.ts +1 -1
  222. package/dist/models/DiskSizeTierSummary.js +1 -1
  223. package/dist/models/DiskTypeSummary.d.ts +1 -1
  224. package/dist/models/DiskTypeSummary.js +1 -1
  225. package/dist/models/EstimateRange.d.ts +38 -0
  226. package/dist/models/EstimateRange.js +52 -0
  227. package/dist/models/ExportInventory400Response.d.ts +30 -0
  228. package/dist/models/ExportInventory400Response.js +48 -0
  229. package/dist/models/ExportInventory500Response.d.ts +30 -0
  230. package/dist/models/ExportInventory500Response.js +48 -0
  231. package/dist/models/ForecastStats.d.ts +67 -0
  232. package/dist/models/ForecastStats.js +71 -0
  233. package/dist/models/ForecasterDatastoresRequest.d.ts +31 -0
  234. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  235. package/dist/models/ForecasterPairStatus.d.ts +78 -0
  236. package/dist/models/ForecasterPairStatus.js +90 -0
  237. package/dist/models/ForecasterStartRequest.d.ts +48 -0
  238. package/dist/models/ForecasterStartRequest.js +60 -0
  239. package/dist/models/ForecasterStatus.d.ts +43 -0
  240. package/dist/models/ForecasterStatus.js +61 -0
  241. package/dist/models/GetInventory200Response.d.ts +23 -0
  242. package/dist/models/GetInventory200Response.js +57 -0
  243. package/dist/models/Group.d.ts +4 -4
  244. package/dist/models/Group.js +1 -1
  245. package/dist/models/GroupListResponse.d.ts +4 -4
  246. package/dist/models/GroupListResponse.js +1 -1
  247. package/dist/models/GroupResponse.d.ts +6 -6
  248. package/dist/models/GroupResponse.js +4 -4
  249. package/dist/models/GuestNetwork.d.ts +6 -6
  250. package/dist/models/GuestNetwork.js +1 -1
  251. package/dist/models/Histogram.d.ts +1 -1
  252. package/dist/models/Histogram.js +1 -1
  253. package/dist/models/Host.d.ts +1 -1
  254. package/dist/models/Host.js +1 -1
  255. package/dist/models/Infra.d.ts +1 -1
  256. package/dist/models/Infra.js +1 -1
  257. package/dist/models/InspectorStatus.d.ts +1 -1
  258. package/dist/models/InspectorStatus.js +1 -1
  259. package/dist/models/Inventory.d.ts +17 -3
  260. package/dist/models/Inventory.js +14 -5
  261. package/dist/models/InventoryData.d.ts +1 -1
  262. package/dist/models/InventoryData.js +1 -1
  263. package/dist/models/IssuesBreakdown.d.ts +1 -1
  264. package/dist/models/IssuesBreakdown.js +1 -1
  265. package/dist/models/MigrationIssue.d.ts +1 -1
  266. package/dist/models/MigrationIssue.js +1 -1
  267. package/dist/models/Network.d.ts +1 -1
  268. package/dist/models/Network.js +1 -1
  269. package/dist/models/OperationCapability.d.ts +1 -1
  270. package/dist/models/OperationCapability.js +1 -1
  271. package/dist/models/OsInfo.d.ts +1 -1
  272. package/dist/models/OsInfo.js +1 -1
  273. package/dist/models/PairCapability.d.ts +52 -0
  274. package/dist/models/PairCapability.js +72 -0
  275. package/dist/models/PairCapabilityRequest.d.ts +36 -0
  276. package/dist/models/PairCapabilityRequest.js +54 -0
  277. package/dist/models/Process.d.ts +1 -1
  278. package/dist/models/Process.js +1 -1
  279. package/dist/models/PutForecasterCredentials403Response.d.ts +34 -0
  280. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  281. package/dist/models/RightsizingClusterListResponse.d.ts +35 -0
  282. package/dist/models/RightsizingClusterListResponse.js +55 -0
  283. package/dist/models/RightsizingClusterResponse.d.ts +2 -2
  284. package/dist/models/RightsizingClusterResponse.js +1 -1
  285. package/dist/models/RightsizingClusterUtilization.d.ts +15 -13
  286. package/dist/models/RightsizingClusterUtilization.js +1 -1
  287. package/dist/models/RightsizingCollectRequest.d.ts +56 -0
  288. package/dist/models/RightsizingCollectRequest.js +63 -0
  289. package/dist/models/RightsizingMetricStats.d.ts +50 -0
  290. package/dist/models/RightsizingMetricStats.js +70 -0
  291. package/dist/models/RightsizingReport.d.ts +63 -0
  292. package/dist/models/RightsizingReport.js +83 -0
  293. package/dist/models/RightsizingReportListResponse.d.ts +35 -0
  294. package/dist/models/RightsizingReportListResponse.js +55 -0
  295. package/dist/models/RightsizingReportSummary.d.ts +58 -0
  296. package/dist/models/RightsizingReportSummary.js +78 -0
  297. package/dist/models/RightsizingVMReport.d.ts +45 -0
  298. package/dist/models/RightsizingVMReport.js +64 -0
  299. package/dist/models/StartInspectionRequest.d.ts +8 -3
  300. package/dist/models/StartInspectionRequest.js +4 -1
  301. package/dist/models/StopForecasterPair202Response.d.ts +41 -0
  302. package/dist/models/StopForecasterPair202Response.js +57 -0
  303. package/dist/models/StorageIoConfiguration.d.ts +1 -1
  304. package/dist/models/StorageIoConfiguration.js +1 -1
  305. package/dist/models/UpdateGroupRequest.d.ts +4 -4
  306. package/dist/models/UpdateGroupRequest.js +1 -1
  307. package/dist/models/UpdateInventory.d.ts +3 -3
  308. package/dist/models/UpdateInventory.js +4 -4
  309. package/dist/models/UpdateLabelVMsRequest.d.ts +1 -1
  310. package/dist/models/UpdateLabelVMsRequest.js +1 -1
  311. package/dist/models/VCenter.d.ts +1 -1
  312. package/dist/models/VCenter.js +1 -1
  313. package/dist/models/VMDevice.d.ts +30 -0
  314. package/dist/models/VMDevice.js +48 -0
  315. package/dist/models/VMDisk.d.ts +54 -0
  316. package/dist/models/{VirtualMachineDisk.js → VMDisk.js} +14 -14
  317. package/dist/models/VMFilterOptionsResponse.d.ts +1 -1
  318. package/dist/models/VMFilterOptionsResponse.js +1 -1
  319. package/dist/models/VMIssue.d.ts +50 -0
  320. package/dist/models/VMIssue.js +70 -0
  321. package/dist/models/VMLabelsResponse.d.ts +1 -1
  322. package/dist/models/VMLabelsResponse.js +1 -1
  323. package/dist/models/VMNIC.d.ts +46 -0
  324. package/dist/models/{VirtualMachineNIC.js → VMNIC.js} +18 -14
  325. package/dist/models/VMResourceBreakdown.d.ts +1 -1
  326. package/dist/models/VMResourceBreakdown.js +1 -1
  327. package/dist/models/VMs.d.ts +1 -1
  328. package/dist/models/VMs.js +1 -1
  329. package/dist/models/VcenterCredentials.d.ts +1 -1
  330. package/dist/models/VcenterCredentials.js +1 -1
  331. package/dist/models/VddkProperties.d.ts +2 -2
  332. package/dist/models/VddkProperties.js +1 -1
  333. package/dist/models/VersionInfo.d.ts +4 -4
  334. package/dist/models/VersionInfo.js +1 -1
  335. package/dist/models/VirtualMachine.d.ts +11 -15
  336. package/dist/models/VirtualMachine.js +6 -10
  337. package/dist/models/VirtualMachineDetail.d.ts +38 -42
  338. package/dist/models/VirtualMachineDetail.js +16 -20
  339. package/dist/models/VirtualMachineListResponse.d.ts +3 -3
  340. package/dist/models/VirtualMachineListResponse.js +4 -4
  341. package/dist/models/VirtualMachineUpdateRequest.d.ts +1 -1
  342. package/dist/models/VirtualMachineUpdateRequest.js +1 -1
  343. package/dist/models/VmInspectionConcern.d.ts +38 -0
  344. package/dist/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +14 -14
  345. package/dist/models/VmInspectionResults.d.ts +31 -0
  346. package/dist/models/VmInspectionResults.js +49 -0
  347. package/dist/models/VmInspectionStatus.d.ts +53 -0
  348. package/dist/models/VmInspectionStatus.js +69 -0
  349. package/dist/models/VmUtilizationDetails.d.ts +8 -8
  350. package/dist/models/VmUtilizationDetails.js +1 -1
  351. package/dist/models/index.d.ts +31 -17
  352. package/dist/models/index.js +31 -17
  353. package/dist/runtime.d.ts +1 -1
  354. package/dist/runtime.js +2 -2
  355. package/docs/AgentStatus.md +4 -2
  356. package/docs/BenchmarkRun.md +58 -0
  357. package/docs/CollectorStartRequest.md +43 -0
  358. package/docs/DatastoreDetail.md +50 -0
  359. package/docs/{Collection.md → DatastorePair.md} +10 -8
  360. package/docs/DefaultApi.md +3361 -0
  361. package/docs/DeleteLabelGloballyResponse.md +2 -2
  362. package/docs/EstimateRange.md +39 -0
  363. package/docs/{AgentStatusConsoleConnection.md → ExportInventory400Response.md} +5 -7
  364. package/docs/{InspectionStatus.md → ExportInventory500Response.md} +4 -6
  365. package/docs/ForecastStats.md +52 -0
  366. package/docs/ForecasterDatastoresRequest.md +34 -0
  367. package/docs/ForecasterPairStatus.md +52 -0
  368. package/docs/ForecasterStartRequest.md +42 -0
  369. package/docs/{CollectionListResponse.md → ForecasterStatus.md} +8 -6
  370. package/docs/{Inventory1.md → GetInventory200Response.md} +8 -4
  371. package/docs/GroupResponse.md +1 -1
  372. package/docs/Inventory.md +8 -2
  373. package/docs/PairCapability.md +40 -0
  374. package/docs/PairCapabilityRequest.md +36 -0
  375. package/docs/PutForecasterCredentials403Response.md +36 -0
  376. package/docs/RightsizingClusterListResponse.md +36 -0
  377. package/docs/RightsizingCollectRequest.md +46 -0
  378. package/docs/{CollectionComparisonDiff.md → RightsizingMetricStats.md} +16 -10
  379. package/docs/RightsizingReport.md +50 -0
  380. package/docs/{ComparisonDiffPage.md → RightsizingReportListResponse.md} +6 -10
  381. package/docs/RightsizingReportSummary.md +49 -0
  382. package/docs/{CollectionAggregate.md → RightsizingVMReport.md} +12 -16
  383. package/docs/StartInspectionRequest.md +3 -0
  384. package/docs/StopForecasterPair202Response.md +36 -0
  385. package/docs/UpdateInventory.md +1 -1
  386. package/docs/{VirtualMachineDevice.md → VMDevice.md} +4 -4
  387. package/docs/{VirtualMachineDisk.md → VMDisk.md} +4 -4
  388. package/docs/{VirtualMachineIssue.md → VMIssue.md} +4 -4
  389. package/docs/VMLabelsResponse.md +2 -2
  390. package/docs/{VirtualMachineNIC.md → VMNIC.md} +8 -4
  391. package/docs/VirtualMachine.md +3 -5
  392. package/docs/VirtualMachineDetail.md +5 -7
  393. package/docs/VirtualMachineListResponse.md +2 -2
  394. package/docs/VirtualMachineUpdateRequest.md +2 -2
  395. package/docs/{VirtualMachineInspectionConcern.md → VmInspectionConcern.md} +5 -4
  396. package/docs/{ComparisonDiffEntry.md → VmInspectionResults.md} +7 -10
  397. package/docs/VmInspectionStatus.md +40 -0
  398. package/package.json +1 -1
  399. package/src/apis/DefaultApi.ts +3986 -0
  400. package/src/apis/index.ts +1 -11
  401. package/src/models/AgentModeRequest.ts +1 -1
  402. package/src/models/AgentStatus.ts +21 -14
  403. package/src/models/ApplicationListResponse.ts +1 -1
  404. package/src/models/ApplicationOverview.ts +4 -4
  405. package/src/models/ApplicationVM.ts +3 -3
  406. package/src/models/BatchUpdateExclusionRequest.ts +1 -1
  407. package/src/models/BenchmarkRun.ts +145 -0
  408. package/src/models/CapabilityStatus.ts +1 -1
  409. package/src/models/CapabilityStatusCapabilities.ts +1 -1
  410. package/src/models/ClusterFeatures.ts +1 -1
  411. package/src/models/ClusterUtilization.ts +1 -1
  412. package/src/models/CollectorStartRequest.ts +87 -0
  413. package/src/models/CollectorStatus.ts +1 -2
  414. package/src/models/CreateGroupRequest.ts +4 -4
  415. package/src/models/CredentialStatus.ts +1 -1
  416. package/src/models/Datastore.ts +1 -1
  417. package/src/models/DatastoreDetail.ts +128 -0
  418. package/src/models/DatastorePair.ts +84 -0
  419. package/src/models/DeleteLabelGloballyResponse.ts +8 -8
  420. package/src/models/DiskSizeTierSummary.ts +1 -1
  421. package/src/models/DiskTypeSummary.ts +1 -1
  422. package/src/models/EstimateRange.ts +75 -0
  423. package/src/models/ExportInventory400Response.ts +63 -0
  424. package/src/models/ExportInventory500Response.ts +63 -0
  425. package/src/models/ForecastStats.ts +127 -0
  426. package/src/models/ForecasterDatastoresRequest.ts +71 -0
  427. package/src/models/ForecasterPairStatus.ts +138 -0
  428. package/src/models/ForecasterStartRequest.ts +103 -0
  429. package/src/models/ForecasterStatus.ts +89 -0
  430. package/src/models/GetInventory200Response.ts +76 -0
  431. package/src/models/Group.ts +4 -4
  432. package/src/models/GroupListResponse.ts +4 -4
  433. package/src/models/GroupResponse.ts +13 -13
  434. package/src/models/GuestNetwork.ts +6 -6
  435. package/src/models/Histogram.ts +1 -1
  436. package/src/models/Host.ts +1 -1
  437. package/src/models/Infra.ts +1 -1
  438. package/src/models/InspectorStatus.ts +1 -1
  439. package/src/models/Inventory.ts +30 -11
  440. package/src/models/InventoryData.ts +1 -1
  441. package/src/models/IssuesBreakdown.ts +1 -1
  442. package/src/models/MigrationIssue.ts +1 -1
  443. package/src/models/Network.ts +1 -1
  444. package/src/models/OperationCapability.ts +1 -1
  445. package/src/models/OsInfo.ts +1 -1
  446. package/src/models/PairCapability.ts +98 -0
  447. package/src/models/PairCapabilityRequest.ts +85 -0
  448. package/src/models/Process.ts +1 -1
  449. package/src/models/PutForecasterCredentials403Response.ts +69 -0
  450. package/src/models/RightsizingClusterListResponse.ts +79 -0
  451. package/src/models/RightsizingClusterResponse.ts +2 -2
  452. package/src/models/RightsizingClusterUtilization.ts +15 -13
  453. package/src/models/RightsizingCollectRequest.ts +109 -0
  454. package/src/models/RightsizingMetricStats.ts +99 -0
  455. package/src/models/RightsizingReport.ts +128 -0
  456. package/src/models/RightsizingReportListResponse.ts +79 -0
  457. package/src/models/RightsizingReportSummary.ts +113 -0
  458. package/src/models/RightsizingVMReport.ts +93 -0
  459. package/src/models/StartInspectionRequest.ts +17 -3
  460. package/src/models/StopForecasterPair202Response.ts +79 -0
  461. package/src/models/StorageIoConfiguration.ts +1 -1
  462. package/src/models/UpdateGroupRequest.ts +4 -4
  463. package/src/models/UpdateInventory.ts +10 -10
  464. package/src/models/UpdateLabelVMsRequest.ts +1 -1
  465. package/src/models/VCenter.ts +1 -1
  466. package/src/models/VMDevice.ts +63 -0
  467. package/src/models/{VirtualMachineDisk.ts → VMDisk.ts} +17 -17
  468. package/src/models/VMFilterOptionsResponse.ts +1 -1
  469. package/src/models/VMIssue.ts +93 -0
  470. package/src/models/VMLabelsResponse.ts +1 -1
  471. package/src/models/VMNIC.ts +87 -0
  472. package/src/models/VMResourceBreakdown.ts +1 -1
  473. package/src/models/VMs.ts +1 -1
  474. package/src/models/VcenterCredentials.ts +1 -1
  475. package/src/models/VddkProperties.ts +2 -2
  476. package/src/models/VersionInfo.ts +4 -4
  477. package/src/models/VirtualMachine.ts +20 -27
  478. package/src/models/VirtualMachineDetail.ts +73 -80
  479. package/src/models/VirtualMachineListResponse.ts +6 -6
  480. package/src/models/VirtualMachineUpdateRequest.ts +1 -1
  481. package/src/models/{VirtualMachineInspectionConcern.ts → VmInspectionConcern.ts} +12 -12
  482. package/src/models/VmInspectionResults.ts +71 -0
  483. package/src/models/VmInspectionStatus.ts +97 -0
  484. package/src/models/VmUtilizationDetails.ts +8 -8
  485. package/src/models/index.ts +31 -17
  486. package/src/runtime.ts +2 -2
  487. package/dist/apis/AgentApi.d.ts +0 -95
  488. package/dist/apis/AgentApi.js +0 -109
  489. package/dist/apis/ApplicationsApi.d.ts +0 -64
  490. package/dist/apis/ApplicationsApi.js +0 -72
  491. package/dist/apis/CollectionsApi.d.ts +0 -217
  492. package/dist/apis/CollectionsApi.js +0 -216
  493. package/dist/apis/CollectorApi.d.ts +0 -116
  494. package/dist/apis/CollectorApi.js +0 -137
  495. package/dist/apis/CredentialsApi.d.ts +0 -168
  496. package/dist/apis/CredentialsApi.js +0 -187
  497. package/dist/apis/GroupsApi.d.ts +0 -374
  498. package/dist/apis/GroupsApi.js +0 -351
  499. package/dist/apis/InspectorApi.d.ts +0 -202
  500. package/dist/apis/InspectorApi.js +0 -240
  501. package/dist/apis/InventoriesApi.d.ts +0 -94
  502. package/dist/apis/InventoriesApi.js +0 -107
  503. package/dist/apis/RightsizingApi.d.ts +0 -109
  504. package/dist/apis/RightsizingApi.js +0 -116
  505. package/dist/apis/VersionApi.d.ts +0 -56
  506. package/dist/apis/VersionApi.js +0 -68
  507. package/dist/apis/VirtualMachinesApi.d.ts +0 -578
  508. package/dist/apis/VirtualMachinesApi.js +0 -576
  509. package/dist/esm/apis/AgentApi.d.ts +0 -95
  510. package/dist/esm/apis/AgentApi.js +0 -105
  511. package/dist/esm/apis/ApplicationsApi.d.ts +0 -64
  512. package/dist/esm/apis/ApplicationsApi.js +0 -68
  513. package/dist/esm/apis/CollectionsApi.d.ts +0 -217
  514. package/dist/esm/apis/CollectionsApi.js +0 -212
  515. package/dist/esm/apis/CollectorApi.d.ts +0 -116
  516. package/dist/esm/apis/CollectorApi.js +0 -133
  517. package/dist/esm/apis/CredentialsApi.d.ts +0 -168
  518. package/dist/esm/apis/CredentialsApi.js +0 -183
  519. package/dist/esm/apis/GroupsApi.d.ts +0 -374
  520. package/dist/esm/apis/GroupsApi.js +0 -347
  521. package/dist/esm/apis/InspectorApi.d.ts +0 -202
  522. package/dist/esm/apis/InspectorApi.js +0 -236
  523. package/dist/esm/apis/InventoriesApi.d.ts +0 -94
  524. package/dist/esm/apis/InventoriesApi.js +0 -103
  525. package/dist/esm/apis/RightsizingApi.d.ts +0 -109
  526. package/dist/esm/apis/RightsizingApi.js +0 -112
  527. package/dist/esm/apis/VersionApi.d.ts +0 -56
  528. package/dist/esm/apis/VersionApi.js +0 -64
  529. package/dist/esm/apis/VirtualMachinesApi.d.ts +0 -578
  530. package/dist/esm/apis/VirtualMachinesApi.js +0 -572
  531. package/dist/esm/models/AgentStatusConsoleConnection.d.ts +0 -42
  532. package/dist/esm/models/AgentStatusConsoleConnection.js +0 -52
  533. package/dist/esm/models/Collection.d.ts +0 -38
  534. package/dist/esm/models/Collection.js +0 -51
  535. package/dist/esm/models/CollectionAggregate.d.ts +0 -50
  536. package/dist/esm/models/CollectionAggregate.js +0 -63
  537. package/dist/esm/models/CollectionComparisonDiff.d.ts +0 -48
  538. package/dist/esm/models/CollectionComparisonDiff.js +0 -60
  539. package/dist/esm/models/CollectionComparisonSummary.d.ts +0 -36
  540. package/dist/esm/models/CollectionComparisonSummary.js +0 -49
  541. package/dist/esm/models/CollectionComparisonSummaryDiff.d.ts +0 -43
  542. package/dist/esm/models/CollectionComparisonSummaryDiff.js +0 -56
  543. package/dist/esm/models/CollectionListResponse.d.ts +0 -31
  544. package/dist/esm/models/CollectionListResponse.js +0 -44
  545. package/dist/esm/models/ComparisonDiffEntry.d.ts +0 -38
  546. package/dist/esm/models/ComparisonDiffEntry.js +0 -47
  547. package/dist/esm/models/ComparisonDiffPage.d.ts +0 -42
  548. package/dist/esm/models/ComparisonDiffPage.js +0 -55
  549. package/dist/esm/models/InspectionStatus.d.ts +0 -45
  550. package/dist/esm/models/InspectionStatus.js +0 -55
  551. package/dist/esm/models/Inventory1.d.ts +0 -45
  552. package/dist/esm/models/Inventory1.js +0 -53
  553. package/dist/esm/models/VirtualMachineDevice.d.ts +0 -30
  554. package/dist/esm/models/VirtualMachineDisk.d.ts +0 -54
  555. package/dist/esm/models/VirtualMachineInspectionConcern.d.ts +0 -38
  556. package/dist/esm/models/VirtualMachineInspectionResults.d.ts +0 -31
  557. package/dist/esm/models/VirtualMachineInspectionResults.js +0 -42
  558. package/dist/esm/models/VirtualMachineIssue.d.ts +0 -50
  559. package/dist/esm/models/VirtualMachineNIC.d.ts +0 -38
  560. package/dist/models/AgentStatusConsoleConnection.d.ts +0 -42
  561. package/dist/models/AgentStatusConsoleConnection.js +0 -60
  562. package/dist/models/Collection.d.ts +0 -38
  563. package/dist/models/Collection.js +0 -58
  564. package/dist/models/CollectionAggregate.d.ts +0 -50
  565. package/dist/models/CollectionAggregate.js +0 -70
  566. package/dist/models/CollectionComparisonDiff.d.ts +0 -48
  567. package/dist/models/CollectionComparisonDiff.js +0 -68
  568. package/dist/models/CollectionComparisonSummary.d.ts +0 -36
  569. package/dist/models/CollectionComparisonSummary.js +0 -56
  570. package/dist/models/CollectionComparisonSummaryDiff.d.ts +0 -43
  571. package/dist/models/CollectionComparisonSummaryDiff.js +0 -63
  572. package/dist/models/CollectionListResponse.d.ts +0 -31
  573. package/dist/models/CollectionListResponse.js +0 -51
  574. package/dist/models/ComparisonDiffEntry.d.ts +0 -38
  575. package/dist/models/ComparisonDiffEntry.js +0 -54
  576. package/dist/models/ComparisonDiffPage.d.ts +0 -42
  577. package/dist/models/ComparisonDiffPage.js +0 -62
  578. package/dist/models/InspectionStatus.d.ts +0 -45
  579. package/dist/models/InspectionStatus.js +0 -63
  580. package/dist/models/Inventory1.d.ts +0 -45
  581. package/dist/models/Inventory1.js +0 -60
  582. package/dist/models/VirtualMachineDevice.d.ts +0 -30
  583. package/dist/models/VirtualMachineDevice.js +0 -48
  584. package/dist/models/VirtualMachineDisk.d.ts +0 -54
  585. package/dist/models/VirtualMachineInspectionConcern.d.ts +0 -38
  586. package/dist/models/VirtualMachineInspectionResults.d.ts +0 -31
  587. package/dist/models/VirtualMachineInspectionResults.js +0 -49
  588. package/dist/models/VirtualMachineIssue.d.ts +0 -50
  589. package/dist/models/VirtualMachineIssue.js +0 -70
  590. package/dist/models/VirtualMachineNIC.d.ts +0 -38
  591. package/docs/AgentApi.md +0 -136
  592. package/docs/ApplicationsApi.md +0 -76
  593. package/docs/CollectionComparisonSummary.md +0 -36
  594. package/docs/CollectionComparisonSummaryDiff.md +0 -41
  595. package/docs/CollectionsApi.md +0 -291
  596. package/docs/CollectorApi.md +0 -187
  597. package/docs/CredentialsApi.md +0 -264
  598. package/docs/GroupsApi.md +0 -527
  599. package/docs/InspectorApi.md +0 -334
  600. package/docs/InventoriesApi.md +0 -136
  601. package/docs/RightsizingApi.md +0 -148
  602. package/docs/VersionApi.md +0 -66
  603. package/docs/VirtualMachineInspectionResults.md +0 -35
  604. package/docs/VirtualMachinesApi.md +0 -914
  605. package/src/apis/AgentApi.ts +0 -176
  606. package/src/apis/ApplicationsApi.ts +0 -111
  607. package/src/apis/CollectionsApi.ts +0 -411
  608. package/src/apis/CollectorApi.ts +0 -209
  609. package/src/apis/CredentialsApi.ts +0 -308
  610. package/src/apis/GroupsApi.ts +0 -718
  611. package/src/apis/InspectorApi.ts +0 -405
  612. package/src/apis/InventoriesApi.ts +0 -169
  613. package/src/apis/RightsizingApi.ts +0 -205
  614. package/src/apis/VersionApi.ts +0 -94
  615. package/src/apis/VirtualMachinesApi.ts +0 -1142
  616. package/src/models/AgentStatusConsoleConnection.ts +0 -81
  617. package/src/models/Collection.ts +0 -78
  618. package/src/models/CollectionAggregate.ts +0 -99
  619. package/src/models/CollectionComparisonDiff.ts +0 -98
  620. package/src/models/CollectionComparisonSummary.ts +0 -86
  621. package/src/models/CollectionComparisonSummaryDiff.ts +0 -93
  622. package/src/models/CollectionListResponse.ts +0 -72
  623. package/src/models/ComparisonDiffEntry.ts +0 -76
  624. package/src/models/ComparisonDiffPage.ts +0 -85
  625. package/src/models/InspectionStatus.ts +0 -84
  626. package/src/models/Inventory1.ts +0 -91
  627. package/src/models/VirtualMachineDevice.ts +0 -63
  628. package/src/models/VirtualMachineInspectionResults.ts +0 -71
  629. package/src/models/VirtualMachineIssue.ts +0 -93
  630. package/src/models/VirtualMachineNIC.ts +0 -75
@@ -0,0 +1,2066 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ExportInventoryFormatEnum = exports.DefaultApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
28
+ const AgentStatus_js_1 = require("../models/AgentStatus.js");
29
+ const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
30
+ const BatchUpdateExclusionRequest_js_1 = require("../models/BatchUpdateExclusionRequest.js");
31
+ const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
32
+ const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
33
+ const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
34
+ const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
35
+ const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
36
+ const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
37
+ const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
38
+ const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
39
+ const ForecastStats_js_1 = require("../models/ForecastStats.js");
40
+ const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
41
+ const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
42
+ const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
43
+ const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
44
+ const Group_js_1 = require("../models/Group.js");
45
+ const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
46
+ const GroupResponse_js_1 = require("../models/GroupResponse.js");
47
+ const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
48
+ const PairCapability_js_1 = require("../models/PairCapability.js");
49
+ const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
50
+ const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
51
+ const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
52
+ const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
53
+ const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
54
+ const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
55
+ const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
56
+ const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
57
+ const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
58
+ const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
59
+ const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
60
+ const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
61
+ const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
62
+ const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
63
+ const VddkProperties_js_1 = require("../models/VddkProperties.js");
64
+ const VersionInfo_js_1 = require("../models/VersionInfo.js");
65
+ const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
66
+ const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
67
+ const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
68
+ const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
69
+ const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
70
+ /**
71
+ *
72
+ */
73
+ class DefaultApi extends runtime.BaseAPI {
74
+ /**
75
+ * Creates request options for batchUpdateVMExclusion without sending the request
76
+ */
77
+ batchUpdateVMExclusionRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
80
+ throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ let urlPath = `/vms/batch-update-exclusion`;
86
+ return {
87
+ path: urlPath,
88
+ method: 'POST',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ body: (0, BatchUpdateExclusionRequest_js_1.BatchUpdateExclusionRequestToJSON)(requestParameters['batchUpdateExclusionRequest']),
92
+ };
93
+ });
94
+ }
95
+ /**
96
+ * Batch update VM exclusion status
97
+ */
98
+ batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.VoidApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Batch update VM exclusion status
107
+ */
108
+ batchUpdateVMExclusion(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
111
+ });
112
+ }
113
+ /**
114
+ * Creates request options for createGroup without sending the request
115
+ */
116
+ createGroupRequestOpts(requestParameters) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ if (requestParameters['createGroupRequest'] == null) {
119
+ throw new runtime.RequiredError('createGroupRequest', 'Required parameter "createGroupRequest" was null or undefined when calling createGroup().');
120
+ }
121
+ const queryParameters = {};
122
+ const headerParameters = {};
123
+ headerParameters['Content-Type'] = 'application/json';
124
+ let urlPath = `/groups`;
125
+ return {
126
+ path: urlPath,
127
+ method: 'POST',
128
+ headers: headerParameters,
129
+ query: queryParameters,
130
+ body: (0, CreateGroupRequest_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Create a new group
136
+ */
137
+ createGroupRaw(requestParameters, initOverrides) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const requestOptions = yield this.createGroupRequestOpts(requestParameters);
140
+ const response = yield this.request(requestOptions, initOverrides);
141
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
142
+ });
143
+ }
144
+ /**
145
+ * Create a new group
146
+ */
147
+ createGroup(requestParameters, initOverrides) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ const response = yield this.createGroupRaw(requestParameters, initOverrides);
150
+ return yield response.value();
151
+ });
152
+ }
153
+ /**
154
+ * Creates request options for deleteCredentials without sending the request
155
+ */
156
+ deleteCredentialsRequestOpts() {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ const queryParameters = {};
159
+ const headerParameters = {};
160
+ let urlPath = `/credentials`;
161
+ return {
162
+ path: urlPath,
163
+ method: 'DELETE',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ };
167
+ });
168
+ }
169
+ /**
170
+ * Removes all stored vCenter credentials from the database.
171
+ * Delete stored credentials
172
+ */
173
+ deleteCredentialsRaw(initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ const requestOptions = yield this.deleteCredentialsRequestOpts();
176
+ const response = yield this.request(requestOptions, initOverrides);
177
+ return new runtime.VoidApiResponse(response);
178
+ });
179
+ }
180
+ /**
181
+ * Removes all stored vCenter credentials from the database.
182
+ * Delete stored credentials
183
+ */
184
+ deleteCredentials(initOverrides) {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ yield this.deleteCredentialsRaw(initOverrides);
187
+ });
188
+ }
189
+ /**
190
+ * Creates request options for deleteForecasterRun without sending the request
191
+ */
192
+ deleteForecasterRunRequestOpts(requestParameters) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ if (requestParameters['id'] == null) {
195
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
196
+ }
197
+ const queryParameters = {};
198
+ const headerParameters = {};
199
+ let urlPath = `/forecaster/runs/{id}`;
200
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
201
+ return {
202
+ path: urlPath,
203
+ method: 'DELETE',
204
+ headers: headerParameters,
205
+ query: queryParameters,
206
+ };
207
+ });
208
+ }
209
+ /**
210
+ * Delete a benchmark run
211
+ */
212
+ deleteForecasterRunRaw(requestParameters, initOverrides) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
215
+ const response = yield this.request(requestOptions, initOverrides);
216
+ return new runtime.VoidApiResponse(response);
217
+ });
218
+ }
219
+ /**
220
+ * Delete a benchmark run
221
+ */
222
+ deleteForecasterRun(requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
225
+ });
226
+ }
227
+ /**
228
+ * Creates request options for deleteGroup without sending the request
229
+ */
230
+ deleteGroupRequestOpts(requestParameters) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ if (requestParameters['id'] == null) {
233
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteGroup().');
234
+ }
235
+ const queryParameters = {};
236
+ const headerParameters = {};
237
+ let urlPath = `/groups/{id}`;
238
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
239
+ return {
240
+ path: urlPath,
241
+ method: 'DELETE',
242
+ headers: headerParameters,
243
+ query: queryParameters,
244
+ };
245
+ });
246
+ }
247
+ /**
248
+ * Delete group
249
+ */
250
+ deleteGroupRaw(requestParameters, initOverrides) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ const requestOptions = yield this.deleteGroupRequestOpts(requestParameters);
253
+ const response = yield this.request(requestOptions, initOverrides);
254
+ return new runtime.VoidApiResponse(response);
255
+ });
256
+ }
257
+ /**
258
+ * Delete group
259
+ */
260
+ deleteGroup(requestParameters, initOverrides) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ yield this.deleteGroupRaw(requestParameters, initOverrides);
263
+ });
264
+ }
265
+ /**
266
+ * Creates request options for deleteLabelGlobally without sending the request
267
+ */
268
+ deleteLabelGloballyRequestOpts(requestParameters) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ if (requestParameters['label'] == null) {
271
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
272
+ }
273
+ const queryParameters = {};
274
+ const headerParameters = {};
275
+ let urlPath = `/vms/labels/{label}`;
276
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
277
+ return {
278
+ path: urlPath,
279
+ method: 'DELETE',
280
+ headers: headerParameters,
281
+ query: queryParameters,
282
+ };
283
+ });
284
+ }
285
+ /**
286
+ * Delete label from all VMs
287
+ */
288
+ deleteLabelGloballyRaw(requestParameters, initOverrides) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
291
+ const response = yield this.request(requestOptions, initOverrides);
292
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
293
+ });
294
+ }
295
+ /**
296
+ * Delete label from all VMs
297
+ */
298
+ deleteLabelGlobally(requestParameters, initOverrides) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
301
+ return yield response.value();
302
+ });
303
+ }
304
+ /**
305
+ * Creates request options for exportInventory without sending the request
306
+ */
307
+ exportInventoryRequestOpts(requestParameters) {
308
+ return __awaiter(this, void 0, void 0, function* () {
309
+ const queryParameters = {};
310
+ if (requestParameters['scope'] != null) {
311
+ queryParameters['scope'] = requestParameters['scope'];
312
+ }
313
+ if (requestParameters['format'] != null) {
314
+ queryParameters['format'] = requestParameters['format'];
315
+ }
316
+ const headerParameters = {};
317
+ let urlPath = `/export`;
318
+ return {
319
+ path: urlPath,
320
+ method: 'GET',
321
+ headers: headerParameters,
322
+ query: queryParameters,
323
+ };
324
+ });
325
+ }
326
+ /**
327
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
328
+ * Export VM inventory and migration planning data
329
+ */
330
+ exportInventoryRaw(requestParameters, initOverrides) {
331
+ return __awaiter(this, void 0, void 0, function* () {
332
+ const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
333
+ const response = yield this.request(requestOptions, initOverrides);
334
+ return new runtime.BlobApiResponse(response);
335
+ });
336
+ }
337
+ /**
338
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
339
+ * Export VM inventory and migration planning data
340
+ */
341
+ exportInventory() {
342
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
343
+ const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
344
+ return yield response.value();
345
+ });
346
+ }
347
+ /**
348
+ * Creates request options for getAgentStatus without sending the request
349
+ */
350
+ getAgentStatusRequestOpts() {
351
+ return __awaiter(this, void 0, void 0, function* () {
352
+ const queryParameters = {};
353
+ const headerParameters = {};
354
+ let urlPath = `/agent`;
355
+ return {
356
+ path: urlPath,
357
+ method: 'GET',
358
+ headers: headerParameters,
359
+ query: queryParameters,
360
+ };
361
+ });
362
+ }
363
+ /**
364
+ * Get agent status
365
+ */
366
+ getAgentStatusRaw(initOverrides) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ const requestOptions = yield this.getAgentStatusRequestOpts();
369
+ const response = yield this.request(requestOptions, initOverrides);
370
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
371
+ });
372
+ }
373
+ /**
374
+ * Get agent status
375
+ */
376
+ getAgentStatus(initOverrides) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const response = yield this.getAgentStatusRaw(initOverrides);
379
+ return yield response.value();
380
+ });
381
+ }
382
+ /**
383
+ * Creates request options for getApplications without sending the request
384
+ */
385
+ getApplicationsRequestOpts() {
386
+ return __awaiter(this, void 0, void 0, function* () {
387
+ const queryParameters = {};
388
+ const headerParameters = {};
389
+ let urlPath = `/applications`;
390
+ return {
391
+ path: urlPath,
392
+ method: 'GET',
393
+ headers: headerParameters,
394
+ query: queryParameters,
395
+ };
396
+ });
397
+ }
398
+ /**
399
+ * List detected applications running on VMs
400
+ */
401
+ getApplicationsRaw(initOverrides) {
402
+ return __awaiter(this, void 0, void 0, function* () {
403
+ const requestOptions = yield this.getApplicationsRequestOpts();
404
+ const response = yield this.request(requestOptions, initOverrides);
405
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
406
+ });
407
+ }
408
+ /**
409
+ * List detected applications running on VMs
410
+ */
411
+ getApplications(initOverrides) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const response = yield this.getApplicationsRaw(initOverrides);
414
+ return yield response.value();
415
+ });
416
+ }
417
+ /**
418
+ * Creates request options for getClusterUtilization without sending the request
419
+ */
420
+ getClusterUtilizationRequestOpts(requestParameters) {
421
+ return __awaiter(this, void 0, void 0, function* () {
422
+ if (requestParameters['clusterId'] == null) {
423
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
424
+ }
425
+ const queryParameters = {};
426
+ const headerParameters = {};
427
+ let urlPath = `/clusters/{cluster_id}/utilization`;
428
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
429
+ return {
430
+ path: urlPath,
431
+ method: 'GET',
432
+ headers: headerParameters,
433
+ query: queryParameters,
434
+ };
435
+ });
436
+ }
437
+ /**
438
+ * Get latest cluster utilization by cluster ID
439
+ */
440
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
441
+ return __awaiter(this, void 0, void 0, function* () {
442
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
443
+ const response = yield this.request(requestOptions, initOverrides);
444
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
445
+ });
446
+ }
447
+ /**
448
+ * Get latest cluster utilization by cluster ID
449
+ */
450
+ getClusterUtilization(requestParameters, initOverrides) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
453
+ return yield response.value();
454
+ });
455
+ }
456
+ /**
457
+ * Creates request options for getCollectorStatus without sending the request
458
+ */
459
+ getCollectorStatusRequestOpts() {
460
+ return __awaiter(this, void 0, void 0, function* () {
461
+ const queryParameters = {};
462
+ const headerParameters = {};
463
+ let urlPath = `/collector`;
464
+ return {
465
+ path: urlPath,
466
+ method: 'GET',
467
+ headers: headerParameters,
468
+ query: queryParameters,
469
+ };
470
+ });
471
+ }
472
+ /**
473
+ * Get collector status
474
+ */
475
+ getCollectorStatusRaw(initOverrides) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ const requestOptions = yield this.getCollectorStatusRequestOpts();
478
+ const response = yield this.request(requestOptions, initOverrides);
479
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
480
+ });
481
+ }
482
+ /**
483
+ * Get collector status
484
+ */
485
+ getCollectorStatus(initOverrides) {
486
+ return __awaiter(this, void 0, void 0, function* () {
487
+ const response = yield this.getCollectorStatusRaw(initOverrides);
488
+ return yield response.value();
489
+ });
490
+ }
491
+ /**
492
+ * Creates request options for getCredentialCapabilities without sending the request
493
+ */
494
+ getCredentialCapabilitiesRequestOpts() {
495
+ return __awaiter(this, void 0, void 0, function* () {
496
+ const queryParameters = {};
497
+ const headerParameters = {};
498
+ let urlPath = `/credentials/capabilities`;
499
+ return {
500
+ path: urlPath,
501
+ method: 'GET',
502
+ headers: headerParameters,
503
+ query: queryParameters,
504
+ };
505
+ });
506
+ }
507
+ /**
508
+ * Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
509
+ * Check vSphere operation capabilities
510
+ */
511
+ getCredentialCapabilitiesRaw(initOverrides) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
514
+ const response = yield this.request(requestOptions, initOverrides);
515
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CapabilityStatus_js_1.CapabilityStatusFromJSON)(jsonValue));
516
+ });
517
+ }
518
+ /**
519
+ * Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
520
+ * Check vSphere operation capabilities
521
+ */
522
+ getCredentialCapabilities(initOverrides) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
525
+ return yield response.value();
526
+ });
527
+ }
528
+ /**
529
+ * Creates request options for getCredentials without sending the request
530
+ */
531
+ getCredentialsRequestOpts() {
532
+ return __awaiter(this, void 0, void 0, function* () {
533
+ const queryParameters = {};
534
+ const headerParameters = {};
535
+ let urlPath = `/credentials`;
536
+ return {
537
+ path: urlPath,
538
+ method: 'GET',
539
+ headers: headerParameters,
540
+ query: queryParameters,
541
+ };
542
+ });
543
+ }
544
+ /**
545
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
546
+ * Get stored credential status
547
+ */
548
+ getCredentialsRaw(initOverrides) {
549
+ return __awaiter(this, void 0, void 0, function* () {
550
+ const requestOptions = yield this.getCredentialsRequestOpts();
551
+ const response = yield this.request(requestOptions, initOverrides);
552
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
553
+ });
554
+ }
555
+ /**
556
+ * Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
557
+ * Get stored credential status
558
+ */
559
+ getCredentials(initOverrides) {
560
+ return __awaiter(this, void 0, void 0, function* () {
561
+ const response = yield this.getCredentialsRaw(initOverrides);
562
+ return yield response.value();
563
+ });
564
+ }
565
+ /**
566
+ * Creates request options for getForecasterDatastores without sending the request
567
+ */
568
+ getForecasterDatastoresRequestOpts(requestParameters) {
569
+ return __awaiter(this, void 0, void 0, function* () {
570
+ const queryParameters = {};
571
+ const headerParameters = {};
572
+ headerParameters['Content-Type'] = 'application/json';
573
+ let urlPath = `/forecaster/datastores`;
574
+ return {
575
+ path: urlPath,
576
+ method: 'POST',
577
+ headers: headerParameters,
578
+ query: queryParameters,
579
+ body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
580
+ };
581
+ });
582
+ }
583
+ /**
584
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
585
+ * List available datastores
586
+ */
587
+ getForecasterDatastoresRaw(requestParameters, initOverrides) {
588
+ return __awaiter(this, void 0, void 0, function* () {
589
+ const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
590
+ const response = yield this.request(requestOptions, initOverrides);
591
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
592
+ });
593
+ }
594
+ /**
595
+ * Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
596
+ * List available datastores
597
+ */
598
+ getForecasterDatastores() {
599
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
600
+ const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
601
+ return yield response.value();
602
+ });
603
+ }
604
+ /**
605
+ * Creates request options for getForecasterRuns without sending the request
606
+ */
607
+ getForecasterRunsRequestOpts(requestParameters) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ const queryParameters = {};
610
+ if (requestParameters['pairName'] != null) {
611
+ queryParameters['pairName'] = requestParameters['pairName'];
612
+ }
613
+ const headerParameters = {};
614
+ let urlPath = `/forecaster/runs`;
615
+ return {
616
+ path: urlPath,
617
+ method: 'GET',
618
+ headers: headerParameters,
619
+ query: queryParameters,
620
+ };
621
+ });
622
+ }
623
+ /**
624
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
625
+ * List benchmark runs
626
+ */
627
+ getForecasterRunsRaw(requestParameters, initOverrides) {
628
+ return __awaiter(this, void 0, void 0, function* () {
629
+ const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
630
+ const response = yield this.request(requestOptions, initOverrides);
631
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
632
+ });
633
+ }
634
+ /**
635
+ * Returns individual benchmark iterations. Optionally filtered by pair name.
636
+ * List benchmark runs
637
+ */
638
+ getForecasterRuns() {
639
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
640
+ const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
641
+ return yield response.value();
642
+ });
643
+ }
644
+ /**
645
+ * Creates request options for getForecasterStats without sending the request
646
+ */
647
+ getForecasterStatsRequestOpts(requestParameters) {
648
+ return __awaiter(this, void 0, void 0, function* () {
649
+ if (requestParameters['pairName'] == null) {
650
+ throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
651
+ }
652
+ const queryParameters = {};
653
+ if (requestParameters['pairName'] != null) {
654
+ queryParameters['pairName'] = requestParameters['pairName'];
655
+ }
656
+ const headerParameters = {};
657
+ let urlPath = `/forecaster/stats`;
658
+ return {
659
+ path: urlPath,
660
+ method: 'GET',
661
+ headers: headerParameters,
662
+ query: queryParameters,
663
+ };
664
+ });
665
+ }
666
+ /**
667
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
668
+ * Get throughput statistics
669
+ */
670
+ getForecasterStatsRaw(requestParameters, initOverrides) {
671
+ return __awaiter(this, void 0, void 0, function* () {
672
+ const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
673
+ const response = yield this.request(requestOptions, initOverrides);
674
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
675
+ });
676
+ }
677
+ /**
678
+ * Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
679
+ * Get throughput statistics
680
+ */
681
+ getForecasterStats(requestParameters, initOverrides) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
684
+ return yield response.value();
685
+ });
686
+ }
687
+ /**
688
+ * Creates request options for getForecasterStatus without sending the request
689
+ */
690
+ getForecasterStatusRequestOpts() {
691
+ return __awaiter(this, void 0, void 0, function* () {
692
+ const queryParameters = {};
693
+ const headerParameters = {};
694
+ let urlPath = `/forecaster`;
695
+ return {
696
+ path: urlPath,
697
+ method: 'GET',
698
+ headers: headerParameters,
699
+ query: queryParameters,
700
+ };
701
+ });
702
+ }
703
+ /**
704
+ * Returns current service state with per-pair progress details.
705
+ * Poll forecaster status
706
+ */
707
+ getForecasterStatusRaw(initOverrides) {
708
+ return __awaiter(this, void 0, void 0, function* () {
709
+ const requestOptions = yield this.getForecasterStatusRequestOpts();
710
+ const response = yield this.request(requestOptions, initOverrides);
711
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
712
+ });
713
+ }
714
+ /**
715
+ * Returns current service state with per-pair progress details.
716
+ * Poll forecaster status
717
+ */
718
+ getForecasterStatus(initOverrides) {
719
+ return __awaiter(this, void 0, void 0, function* () {
720
+ const response = yield this.getForecasterStatusRaw(initOverrides);
721
+ return yield response.value();
722
+ });
723
+ }
724
+ /**
725
+ * Creates request options for getGroup without sending the request
726
+ */
727
+ getGroupRequestOpts(requestParameters) {
728
+ return __awaiter(this, void 0, void 0, function* () {
729
+ if (requestParameters['id'] == null) {
730
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
731
+ }
732
+ const queryParameters = {};
733
+ if (requestParameters['sort'] != null) {
734
+ queryParameters['sort'] = requestParameters['sort'];
735
+ }
736
+ if (requestParameters['page'] != null) {
737
+ queryParameters['page'] = requestParameters['page'];
738
+ }
739
+ if (requestParameters['pageSize'] != null) {
740
+ queryParameters['pageSize'] = requestParameters['pageSize'];
741
+ }
742
+ const headerParameters = {};
743
+ let urlPath = `/groups/{id}`;
744
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
745
+ return {
746
+ path: urlPath,
747
+ method: 'GET',
748
+ headers: headerParameters,
749
+ query: queryParameters,
750
+ };
751
+ });
752
+ }
753
+ /**
754
+ * Get group by ID with its VMs
755
+ */
756
+ getGroupRaw(requestParameters, initOverrides) {
757
+ return __awaiter(this, void 0, void 0, function* () {
758
+ const requestOptions = yield this.getGroupRequestOpts(requestParameters);
759
+ const response = yield this.request(requestOptions, initOverrides);
760
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupResponse_js_1.GroupResponseFromJSON)(jsonValue));
761
+ });
762
+ }
763
+ /**
764
+ * Get group by ID with its VMs
765
+ */
766
+ getGroup(requestParameters, initOverrides) {
767
+ return __awaiter(this, void 0, void 0, function* () {
768
+ const response = yield this.getGroupRaw(requestParameters, initOverrides);
769
+ return yield response.value();
770
+ });
771
+ }
772
+ /**
773
+ * Creates request options for getInspectorStatus without sending the request
774
+ */
775
+ getInspectorStatusRequestOpts(requestParameters) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ const queryParameters = {};
778
+ if (requestParameters['includeVddk'] != null) {
779
+ queryParameters['includeVddk'] = requestParameters['includeVddk'];
780
+ }
781
+ const headerParameters = {};
782
+ let urlPath = `/inspector`;
783
+ return {
784
+ path: urlPath,
785
+ method: 'GET',
786
+ headers: headerParameters,
787
+ query: queryParameters,
788
+ };
789
+ });
790
+ }
791
+ /**
792
+ * Get inspector status
793
+ */
794
+ getInspectorStatusRaw(requestParameters, initOverrides) {
795
+ return __awaiter(this, void 0, void 0, function* () {
796
+ const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
797
+ const response = yield this.request(requestOptions, initOverrides);
798
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
799
+ });
800
+ }
801
+ /**
802
+ * Get inspector status
803
+ */
804
+ getInspectorStatus() {
805
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
806
+ const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
807
+ return yield response.value();
808
+ });
809
+ }
810
+ /**
811
+ * Creates request options for getInspectorVddkStatus without sending the request
812
+ */
813
+ getInspectorVddkStatusRequestOpts() {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ const queryParameters = {};
816
+ const headerParameters = {};
817
+ let urlPath = `/inspector/vddk`;
818
+ return {
819
+ path: urlPath,
820
+ method: 'GET',
821
+ headers: headerParameters,
822
+ query: queryParameters,
823
+ };
824
+ });
825
+ }
826
+ /**
827
+ * Get VDDK status
828
+ */
829
+ getInspectorVddkStatusRaw(initOverrides) {
830
+ return __awaiter(this, void 0, void 0, function* () {
831
+ const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
832
+ const response = yield this.request(requestOptions, initOverrides);
833
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
834
+ });
835
+ }
836
+ /**
837
+ * Get VDDK status
838
+ */
839
+ getInspectorVddkStatus(initOverrides) {
840
+ return __awaiter(this, void 0, void 0, function* () {
841
+ const response = yield this.getInspectorVddkStatusRaw(initOverrides);
842
+ return yield response.value();
843
+ });
844
+ }
845
+ /**
846
+ * Creates request options for getInventory without sending the request
847
+ */
848
+ getInventoryRequestOpts(requestParameters) {
849
+ return __awaiter(this, void 0, void 0, function* () {
850
+ const queryParameters = {};
851
+ if (requestParameters['withAgentId'] != null) {
852
+ queryParameters['withAgentId'] = requestParameters['withAgentId'];
853
+ }
854
+ if (requestParameters['groupId'] != null) {
855
+ queryParameters['group_id'] = requestParameters['groupId'];
856
+ }
857
+ const headerParameters = {};
858
+ let urlPath = `/inventory`;
859
+ return {
860
+ path: urlPath,
861
+ method: 'GET',
862
+ headers: headerParameters,
863
+ query: queryParameters,
864
+ };
865
+ });
866
+ }
867
+ /**
868
+ * Get collected inventory
869
+ */
870
+ getInventoryRaw(requestParameters, initOverrides) {
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
873
+ const response = yield this.request(requestOptions, initOverrides);
874
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetInventory200Response_js_1.GetInventory200ResponseFromJSON)(jsonValue));
875
+ });
876
+ }
877
+ /**
878
+ * Get collected inventory
879
+ */
880
+ getInventory() {
881
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
882
+ const response = yield this.getInventoryRaw(requestParameters, initOverrides);
883
+ return yield response.value();
884
+ });
885
+ }
886
+ /**
887
+ * Creates request options for getRightsizingReport without sending the request
888
+ */
889
+ getRightsizingReportRequestOpts(requestParameters) {
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ if (requestParameters['reportId'] == null) {
892
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
893
+ }
894
+ const queryParameters = {};
895
+ const headerParameters = {};
896
+ let urlPath = `/rightsizing/{report_id}`;
897
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
898
+ return {
899
+ path: urlPath,
900
+ method: 'GET',
901
+ headers: headerParameters,
902
+ query: queryParameters,
903
+ };
904
+ });
905
+ }
906
+ /**
907
+ * Get a specific rightsizing report with full VM metrics
908
+ */
909
+ getRightsizingReportRaw(requestParameters, initOverrides) {
910
+ return __awaiter(this, void 0, void 0, function* () {
911
+ const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
912
+ const response = yield this.request(requestOptions, initOverrides);
913
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReport_js_1.RightsizingReportFromJSON)(jsonValue));
914
+ });
915
+ }
916
+ /**
917
+ * Get a specific rightsizing report with full VM metrics
918
+ */
919
+ getRightsizingReport(requestParameters, initOverrides) {
920
+ return __awaiter(this, void 0, void 0, function* () {
921
+ const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
922
+ return yield response.value();
923
+ });
924
+ }
925
+ /**
926
+ * Creates request options for getRightsizingReportCluster without sending the request
927
+ */
928
+ getRightsizingReportClusterRequestOpts(requestParameters) {
929
+ return __awaiter(this, void 0, void 0, function* () {
930
+ if (requestParameters['reportId'] == null) {
931
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
932
+ }
933
+ if (requestParameters['clusterId'] == null) {
934
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
935
+ }
936
+ const queryParameters = {};
937
+ const headerParameters = {};
938
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
939
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
940
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
941
+ return {
942
+ path: urlPath,
943
+ method: 'GET',
944
+ headers: headerParameters,
945
+ query: queryParameters,
946
+ };
947
+ });
948
+ }
949
+ /**
950
+ * Get utilization for a specific cluster from a specific report
951
+ */
952
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
953
+ return __awaiter(this, void 0, void 0, function* () {
954
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
955
+ const response = yield this.request(requestOptions, initOverrides);
956
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
957
+ });
958
+ }
959
+ /**
960
+ * Get utilization for a specific cluster from a specific report
961
+ */
962
+ getRightsizingReportCluster(requestParameters, initOverrides) {
963
+ return __awaiter(this, void 0, void 0, function* () {
964
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
965
+ return yield response.value();
966
+ });
967
+ }
968
+ /**
969
+ * Creates request options for getVM without sending the request
970
+ */
971
+ getVMRequestOpts(requestParameters) {
972
+ return __awaiter(this, void 0, void 0, function* () {
973
+ if (requestParameters['id'] == null) {
974
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
975
+ }
976
+ const queryParameters = {};
977
+ const headerParameters = {};
978
+ let urlPath = `/vms/{id}`;
979
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
980
+ return {
981
+ path: urlPath,
982
+ method: 'GET',
983
+ headers: headerParameters,
984
+ query: queryParameters,
985
+ };
986
+ });
987
+ }
988
+ /**
989
+ * Get details about a vm
990
+ */
991
+ getVMRaw(requestParameters, initOverrides) {
992
+ return __awaiter(this, void 0, void 0, function* () {
993
+ const requestOptions = yield this.getVMRequestOpts(requestParameters);
994
+ const response = yield this.request(requestOptions, initOverrides);
995
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
996
+ });
997
+ }
998
+ /**
999
+ * Get details about a vm
1000
+ */
1001
+ getVM(requestParameters, initOverrides) {
1002
+ return __awaiter(this, void 0, void 0, function* () {
1003
+ const response = yield this.getVMRaw(requestParameters, initOverrides);
1004
+ return yield response.value();
1005
+ });
1006
+ }
1007
+ /**
1008
+ * Creates request options for getVMLabels without sending the request
1009
+ */
1010
+ getVMLabelsRequestOpts() {
1011
+ return __awaiter(this, void 0, void 0, function* () {
1012
+ const queryParameters = {};
1013
+ const headerParameters = {};
1014
+ let urlPath = `/vms/labels`;
1015
+ return {
1016
+ path: urlPath,
1017
+ method: 'GET',
1018
+ headers: headerParameters,
1019
+ query: queryParameters,
1020
+ };
1021
+ });
1022
+ }
1023
+ /**
1024
+ * Get all distinct labels in use across VMs
1025
+ */
1026
+ getVMLabelsRaw(initOverrides) {
1027
+ return __awaiter(this, void 0, void 0, function* () {
1028
+ const requestOptions = yield this.getVMLabelsRequestOpts();
1029
+ const response = yield this.request(requestOptions, initOverrides);
1030
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
1031
+ });
1032
+ }
1033
+ /**
1034
+ * Get all distinct labels in use across VMs
1035
+ */
1036
+ getVMLabels(initOverrides) {
1037
+ return __awaiter(this, void 0, void 0, function* () {
1038
+ const response = yield this.getVMLabelsRaw(initOverrides);
1039
+ return yield response.value();
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Creates request options for getVMUtilization without sending the request
1044
+ */
1045
+ getVMUtilizationRequestOpts(requestParameters) {
1046
+ return __awaiter(this, void 0, void 0, function* () {
1047
+ if (requestParameters['id'] == null) {
1048
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
1049
+ }
1050
+ const queryParameters = {};
1051
+ const headerParameters = {};
1052
+ let urlPath = `/vms/{id}/utilization`;
1053
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1054
+ return {
1055
+ path: urlPath,
1056
+ method: 'GET',
1057
+ headers: headerParameters,
1058
+ query: queryParameters,
1059
+ };
1060
+ });
1061
+ }
1062
+ /**
1063
+ * Get utilization breakdown for a specific VM
1064
+ */
1065
+ getVMUtilizationRaw(requestParameters, initOverrides) {
1066
+ return __awaiter(this, void 0, void 0, function* () {
1067
+ const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
1068
+ const response = yield this.request(requestOptions, initOverrides);
1069
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
1070
+ });
1071
+ }
1072
+ /**
1073
+ * Get utilization breakdown for a specific VM
1074
+ */
1075
+ getVMUtilization(requestParameters, initOverrides) {
1076
+ return __awaiter(this, void 0, void 0, function* () {
1077
+ const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
1078
+ return yield response.value();
1079
+ });
1080
+ }
1081
+ /**
1082
+ * Creates request options for getVMs without sending the request
1083
+ */
1084
+ getVMsRequestOpts(requestParameters) {
1085
+ return __awaiter(this, void 0, void 0, function* () {
1086
+ const queryParameters = {};
1087
+ if (requestParameters['byExpression'] != null) {
1088
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1089
+ }
1090
+ if (requestParameters['sort'] != null) {
1091
+ queryParameters['sort'] = requestParameters['sort'];
1092
+ }
1093
+ if (requestParameters['page'] != null) {
1094
+ queryParameters['page'] = requestParameters['page'];
1095
+ }
1096
+ if (requestParameters['pageSize'] != null) {
1097
+ queryParameters['pageSize'] = requestParameters['pageSize'];
1098
+ }
1099
+ const headerParameters = {};
1100
+ let urlPath = `/vms`;
1101
+ return {
1102
+ path: urlPath,
1103
+ method: 'GET',
1104
+ headers: headerParameters,
1105
+ query: queryParameters,
1106
+ };
1107
+ });
1108
+ }
1109
+ /**
1110
+ * Get list of VMs with filtering and pagination
1111
+ */
1112
+ getVMsRaw(requestParameters, initOverrides) {
1113
+ return __awaiter(this, void 0, void 0, function* () {
1114
+ const requestOptions = yield this.getVMsRequestOpts(requestParameters);
1115
+ const response = yield this.request(requestOptions, initOverrides);
1116
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineListResponse_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
1117
+ });
1118
+ }
1119
+ /**
1120
+ * Get list of VMs with filtering and pagination
1121
+ */
1122
+ getVMs() {
1123
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
1124
+ const response = yield this.getVMsRaw(requestParameters, initOverrides);
1125
+ return yield response.value();
1126
+ });
1127
+ }
1128
+ /**
1129
+ * Creates request options for getVMsFilterOptions without sending the request
1130
+ */
1131
+ getVMsFilterOptionsRequestOpts() {
1132
+ return __awaiter(this, void 0, void 0, function* () {
1133
+ const queryParameters = {};
1134
+ const headerParameters = {};
1135
+ let urlPath = `/vms/filter-options`;
1136
+ return {
1137
+ path: urlPath,
1138
+ method: 'GET',
1139
+ headers: headerParameters,
1140
+ query: queryParameters,
1141
+ };
1142
+ });
1143
+ }
1144
+ /**
1145
+ * Get distinct filter option values for VMs
1146
+ */
1147
+ getVMsFilterOptionsRaw(initOverrides) {
1148
+ return __awaiter(this, void 0, void 0, function* () {
1149
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1150
+ const response = yield this.request(requestOptions, initOverrides);
1151
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
1152
+ });
1153
+ }
1154
+ /**
1155
+ * Get distinct filter option values for VMs
1156
+ */
1157
+ getVMsFilterOptions(initOverrides) {
1158
+ return __awaiter(this, void 0, void 0, function* () {
1159
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1160
+ return yield response.value();
1161
+ });
1162
+ }
1163
+ /**
1164
+ * Creates request options for getVersion without sending the request
1165
+ */
1166
+ getVersionRequestOpts() {
1167
+ return __awaiter(this, void 0, void 0, function* () {
1168
+ const queryParameters = {};
1169
+ const headerParameters = {};
1170
+ let urlPath = `/version`;
1171
+ return {
1172
+ path: urlPath,
1173
+ method: 'GET',
1174
+ headers: headerParameters,
1175
+ query: queryParameters,
1176
+ };
1177
+ });
1178
+ }
1179
+ /**
1180
+ * Get agent version information
1181
+ */
1182
+ getVersionRaw(initOverrides) {
1183
+ return __awaiter(this, void 0, void 0, function* () {
1184
+ const requestOptions = yield this.getVersionRequestOpts();
1185
+ const response = yield this.request(requestOptions, initOverrides);
1186
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VersionInfo_js_1.VersionInfoFromJSON)(jsonValue));
1187
+ });
1188
+ }
1189
+ /**
1190
+ * Get agent version information
1191
+ */
1192
+ getVersion(initOverrides) {
1193
+ return __awaiter(this, void 0, void 0, function* () {
1194
+ const response = yield this.getVersionRaw(initOverrides);
1195
+ return yield response.value();
1196
+ });
1197
+ }
1198
+ /**
1199
+ * Creates request options for listGroups without sending the request
1200
+ */
1201
+ listGroupsRequestOpts(requestParameters) {
1202
+ return __awaiter(this, void 0, void 0, function* () {
1203
+ const queryParameters = {};
1204
+ if (requestParameters['byName'] != null) {
1205
+ queryParameters['byName'] = requestParameters['byName'];
1206
+ }
1207
+ if (requestParameters['page'] != null) {
1208
+ queryParameters['page'] = requestParameters['page'];
1209
+ }
1210
+ if (requestParameters['pageSize'] != null) {
1211
+ queryParameters['pageSize'] = requestParameters['pageSize'];
1212
+ }
1213
+ const headerParameters = {};
1214
+ let urlPath = `/groups`;
1215
+ return {
1216
+ path: urlPath,
1217
+ method: 'GET',
1218
+ headers: headerParameters,
1219
+ query: queryParameters,
1220
+ };
1221
+ });
1222
+ }
1223
+ /**
1224
+ * List all groups
1225
+ */
1226
+ listGroupsRaw(requestParameters, initOverrides) {
1227
+ return __awaiter(this, void 0, void 0, function* () {
1228
+ const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
1229
+ const response = yield this.request(requestOptions, initOverrides);
1230
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupListResponse_js_1.GroupListResponseFromJSON)(jsonValue));
1231
+ });
1232
+ }
1233
+ /**
1234
+ * List all groups
1235
+ */
1236
+ listGroups() {
1237
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
1238
+ const response = yield this.listGroupsRaw(requestParameters, initOverrides);
1239
+ return yield response.value();
1240
+ });
1241
+ }
1242
+ /**
1243
+ * Creates request options for listRightsizingReportClusters without sending the request
1244
+ */
1245
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1246
+ return __awaiter(this, void 0, void 0, function* () {
1247
+ if (requestParameters['reportId'] == null) {
1248
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1249
+ }
1250
+ const queryParameters = {};
1251
+ if (requestParameters['byExpression'] != null) {
1252
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1253
+ }
1254
+ const headerParameters = {};
1255
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1256
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1257
+ return {
1258
+ path: urlPath,
1259
+ method: 'GET',
1260
+ headers: headerParameters,
1261
+ query: queryParameters,
1262
+ };
1263
+ });
1264
+ }
1265
+ /**
1266
+ * Get cluster-level utilization aggregates for a specific report
1267
+ */
1268
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1269
+ return __awaiter(this, void 0, void 0, function* () {
1270
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1271
+ const response = yield this.request(requestOptions, initOverrides);
1272
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Get cluster-level utilization aggregates for a specific report
1277
+ */
1278
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1279
+ return __awaiter(this, void 0, void 0, function* () {
1280
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1281
+ return yield response.value();
1282
+ });
1283
+ }
1284
+ /**
1285
+ * Creates request options for listRightsizingReports without sending the request
1286
+ */
1287
+ listRightsizingReportsRequestOpts() {
1288
+ return __awaiter(this, void 0, void 0, function* () {
1289
+ const queryParameters = {};
1290
+ const headerParameters = {};
1291
+ let urlPath = `/rightsizing`;
1292
+ return {
1293
+ path: urlPath,
1294
+ method: 'GET',
1295
+ headers: headerParameters,
1296
+ query: queryParameters,
1297
+ };
1298
+ });
1299
+ }
1300
+ /**
1301
+ * List all rightsizing reports
1302
+ */
1303
+ listRightsizingReportsRaw(initOverrides) {
1304
+ return __awaiter(this, void 0, void 0, function* () {
1305
+ const requestOptions = yield this.listRightsizingReportsRequestOpts();
1306
+ const response = yield this.request(requestOptions, initOverrides);
1307
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportListResponse_js_1.RightsizingReportListResponseFromJSON)(jsonValue));
1308
+ });
1309
+ }
1310
+ /**
1311
+ * List all rightsizing reports
1312
+ */
1313
+ listRightsizingReports(initOverrides) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ const response = yield this.listRightsizingReportsRaw(initOverrides);
1316
+ return yield response.value();
1317
+ });
1318
+ }
1319
+ /**
1320
+ * Creates request options for postForecasterPairCapabilities without sending the request
1321
+ */
1322
+ postForecasterPairCapabilitiesRequestOpts(requestParameters) {
1323
+ return __awaiter(this, void 0, void 0, function* () {
1324
+ if (requestParameters['pairCapabilityRequest'] == null) {
1325
+ throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
1326
+ }
1327
+ const queryParameters = {};
1328
+ const headerParameters = {};
1329
+ headerParameters['Content-Type'] = 'application/json';
1330
+ let urlPath = `/forecaster/capabilities`;
1331
+ return {
1332
+ path: urlPath,
1333
+ method: 'POST',
1334
+ headers: headerParameters,
1335
+ query: queryParameters,
1336
+ body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
1337
+ };
1338
+ });
1339
+ }
1340
+ /**
1341
+ * 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.
1342
+ * Compute pair capabilities
1343
+ */
1344
+ postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
1345
+ return __awaiter(this, void 0, void 0, function* () {
1346
+ const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
1347
+ const response = yield this.request(requestOptions, initOverrides);
1348
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
1349
+ });
1350
+ }
1351
+ /**
1352
+ * 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.
1353
+ * Compute pair capabilities
1354
+ */
1355
+ postForecasterPairCapabilities(requestParameters, initOverrides) {
1356
+ return __awaiter(this, void 0, void 0, function* () {
1357
+ const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
1358
+ return yield response.value();
1359
+ });
1360
+ }
1361
+ /**
1362
+ * Creates request options for putCredentials without sending the request
1363
+ */
1364
+ putCredentialsRequestOpts(requestParameters) {
1365
+ return __awaiter(this, void 0, void 0, function* () {
1366
+ if (requestParameters['vcenterCredentials'] == null) {
1367
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
1368
+ }
1369
+ const queryParameters = {};
1370
+ const headerParameters = {};
1371
+ headerParameters['Content-Type'] = 'application/json';
1372
+ let urlPath = `/credentials`;
1373
+ return {
1374
+ path: urlPath,
1375
+ method: 'PUT',
1376
+ headers: headerParameters,
1377
+ query: queryParameters,
1378
+ body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
1379
+ };
1380
+ });
1381
+ }
1382
+ /**
1383
+ * Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
1384
+ * Store vCenter credentials
1385
+ */
1386
+ putCredentialsRaw(requestParameters, initOverrides) {
1387
+ return __awaiter(this, void 0, void 0, function* () {
1388
+ const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
1389
+ const response = yield this.request(requestOptions, initOverrides);
1390
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
1391
+ });
1392
+ }
1393
+ /**
1394
+ * Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
1395
+ * Store vCenter credentials
1396
+ */
1397
+ putCredentials(requestParameters, initOverrides) {
1398
+ return __awaiter(this, void 0, void 0, function* () {
1399
+ const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
1400
+ return yield response.value();
1401
+ });
1402
+ }
1403
+ /**
1404
+ * Creates request options for putForecasterCredentials without sending the request
1405
+ */
1406
+ putForecasterCredentialsRequestOpts(requestParameters) {
1407
+ return __awaiter(this, void 0, void 0, function* () {
1408
+ if (requestParameters['vcenterCredentials'] == null) {
1409
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
1410
+ }
1411
+ const queryParameters = {};
1412
+ const headerParameters = {};
1413
+ headerParameters['Content-Type'] = 'application/json';
1414
+ let urlPath = `/forecaster/credentials`;
1415
+ return {
1416
+ path: urlPath,
1417
+ method: 'PUT',
1418
+ headers: headerParameters,
1419
+ query: queryParameters,
1420
+ body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
1421
+ };
1422
+ });
1423
+ }
1424
+ /**
1425
+ * 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.
1426
+ * Verify vCenter credentials and permissions
1427
+ */
1428
+ putForecasterCredentialsRaw(requestParameters, initOverrides) {
1429
+ return __awaiter(this, void 0, void 0, function* () {
1430
+ const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
1431
+ const response = yield this.request(requestOptions, initOverrides);
1432
+ return new runtime.VoidApiResponse(response);
1433
+ });
1434
+ }
1435
+ /**
1436
+ * 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.
1437
+ * Verify vCenter credentials and permissions
1438
+ */
1439
+ putForecasterCredentials(requestParameters, initOverrides) {
1440
+ return __awaiter(this, void 0, void 0, function* () {
1441
+ yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
1442
+ });
1443
+ }
1444
+ /**
1445
+ * Creates request options for putInspectorVddk without sending the request
1446
+ */
1447
+ putInspectorVddkRequestOpts(requestParameters) {
1448
+ return __awaiter(this, void 0, void 0, function* () {
1449
+ if (requestParameters['file'] == null) {
1450
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
1451
+ }
1452
+ const queryParameters = {};
1453
+ const headerParameters = {};
1454
+ const consumes = [
1455
+ { contentType: 'multipart/form-data' },
1456
+ ];
1457
+ // @ts-ignore: canConsumeForm may be unused
1458
+ const canConsumeForm = runtime.canConsumeForm(consumes);
1459
+ let formParams;
1460
+ let useForm = false;
1461
+ // use FormData to transmit files using content-type "multipart/form-data"
1462
+ useForm = canConsumeForm;
1463
+ if (useForm) {
1464
+ formParams = new FormData();
1465
+ }
1466
+ else {
1467
+ formParams = new URLSearchParams();
1468
+ }
1469
+ if (requestParameters['file'] != null) {
1470
+ formParams.append('file', requestParameters['file']);
1471
+ }
1472
+ let urlPath = `/inspector/vddk`;
1473
+ return {
1474
+ path: urlPath,
1475
+ method: 'PUT',
1476
+ headers: headerParameters,
1477
+ query: queryParameters,
1478
+ body: formParams,
1479
+ };
1480
+ });
1481
+ }
1482
+ /**
1483
+ * Upload VDDK tarball
1484
+ */
1485
+ putInspectorVddkRaw(requestParameters, initOverrides) {
1486
+ return __awaiter(this, void 0, void 0, function* () {
1487
+ const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
1488
+ const response = yield this.request(requestOptions, initOverrides);
1489
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
1490
+ });
1491
+ }
1492
+ /**
1493
+ * Upload VDDK tarball
1494
+ */
1495
+ putInspectorVddk(requestParameters, initOverrides) {
1496
+ return __awaiter(this, void 0, void 0, function* () {
1497
+ const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
1498
+ return yield response.value();
1499
+ });
1500
+ }
1501
+ /**
1502
+ * Creates request options for removeVMFromInspection without sending the request
1503
+ */
1504
+ removeVMFromInspectionRequestOpts(requestParameters) {
1505
+ return __awaiter(this, void 0, void 0, function* () {
1506
+ if (requestParameters['id'] == null) {
1507
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
1508
+ }
1509
+ const queryParameters = {};
1510
+ const headerParameters = {};
1511
+ let urlPath = `/vms/{id}/inspection`;
1512
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1513
+ return {
1514
+ path: urlPath,
1515
+ method: 'DELETE',
1516
+ headers: headerParameters,
1517
+ query: queryParameters,
1518
+ };
1519
+ });
1520
+ }
1521
+ /**
1522
+ * Remove VirtualMachine from inspection queue
1523
+ */
1524
+ removeVMFromInspectionRaw(requestParameters, initOverrides) {
1525
+ return __awaiter(this, void 0, void 0, function* () {
1526
+ const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
1527
+ const response = yield this.request(requestOptions, initOverrides);
1528
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(jsonValue));
1529
+ });
1530
+ }
1531
+ /**
1532
+ * Remove VirtualMachine from inspection queue
1533
+ */
1534
+ removeVMFromInspection(requestParameters, initOverrides) {
1535
+ return __awaiter(this, void 0, void 0, function* () {
1536
+ const response = yield this.removeVMFromInspectionRaw(requestParameters, initOverrides);
1537
+ return yield response.value();
1538
+ });
1539
+ }
1540
+ /**
1541
+ * Creates request options for setAgentMode without sending the request
1542
+ */
1543
+ setAgentModeRequestOpts(requestParameters) {
1544
+ return __awaiter(this, void 0, void 0, function* () {
1545
+ if (requestParameters['agentModeRequest'] == null) {
1546
+ throw new runtime.RequiredError('agentModeRequest', 'Required parameter "agentModeRequest" was null or undefined when calling setAgentMode().');
1547
+ }
1548
+ const queryParameters = {};
1549
+ const headerParameters = {};
1550
+ headerParameters['Content-Type'] = 'application/json';
1551
+ let urlPath = `/agent`;
1552
+ return {
1553
+ path: urlPath,
1554
+ method: 'POST',
1555
+ headers: headerParameters,
1556
+ query: queryParameters,
1557
+ body: (0, AgentModeRequest_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
1558
+ };
1559
+ });
1560
+ }
1561
+ /**
1562
+ * Change agent mode
1563
+ */
1564
+ setAgentModeRaw(requestParameters, initOverrides) {
1565
+ return __awaiter(this, void 0, void 0, function* () {
1566
+ const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
1567
+ const response = yield this.request(requestOptions, initOverrides);
1568
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
1569
+ });
1570
+ }
1571
+ /**
1572
+ * Change agent mode
1573
+ */
1574
+ setAgentMode(requestParameters, initOverrides) {
1575
+ return __awaiter(this, void 0, void 0, function* () {
1576
+ const response = yield this.setAgentModeRaw(requestParameters, initOverrides);
1577
+ return yield response.value();
1578
+ });
1579
+ }
1580
+ /**
1581
+ * Creates request options for startCollector without sending the request
1582
+ */
1583
+ startCollectorRequestOpts(requestParameters) {
1584
+ return __awaiter(this, void 0, void 0, function* () {
1585
+ if (requestParameters['collectorStartRequest'] == null) {
1586
+ throw new runtime.RequiredError('collectorStartRequest', 'Required parameter "collectorStartRequest" was null or undefined when calling startCollector().');
1587
+ }
1588
+ const queryParameters = {};
1589
+ const headerParameters = {};
1590
+ headerParameters['Content-Type'] = 'application/json';
1591
+ let urlPath = `/collector`;
1592
+ return {
1593
+ path: urlPath,
1594
+ method: 'POST',
1595
+ headers: headerParameters,
1596
+ query: queryParameters,
1597
+ body: (0, CollectorStartRequest_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
1598
+ };
1599
+ });
1600
+ }
1601
+ /**
1602
+ * Start inventory collection
1603
+ */
1604
+ startCollectorRaw(requestParameters, initOverrides) {
1605
+ return __awaiter(this, void 0, void 0, function* () {
1606
+ const requestOptions = yield this.startCollectorRequestOpts(requestParameters);
1607
+ const response = yield this.request(requestOptions, initOverrides);
1608
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
1609
+ });
1610
+ }
1611
+ /**
1612
+ * Start inventory collection
1613
+ */
1614
+ startCollector(requestParameters, initOverrides) {
1615
+ return __awaiter(this, void 0, void 0, function* () {
1616
+ const response = yield this.startCollectorRaw(requestParameters, initOverrides);
1617
+ return yield response.value();
1618
+ });
1619
+ }
1620
+ /**
1621
+ * Creates request options for startForecaster without sending the request
1622
+ */
1623
+ startForecasterRequestOpts(requestParameters) {
1624
+ return __awaiter(this, void 0, void 0, function* () {
1625
+ if (requestParameters['forecasterStartRequest'] == null) {
1626
+ throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
1627
+ }
1628
+ const queryParameters = {};
1629
+ const headerParameters = {};
1630
+ headerParameters['Content-Type'] = 'application/json';
1631
+ let urlPath = `/forecaster`;
1632
+ return {
1633
+ path: urlPath,
1634
+ method: 'POST',
1635
+ headers: headerParameters,
1636
+ query: queryParameters,
1637
+ body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
1638
+ };
1639
+ });
1640
+ }
1641
+ /**
1642
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1643
+ * Start benchmark
1644
+ */
1645
+ startForecasterRaw(requestParameters, initOverrides) {
1646
+ return __awaiter(this, void 0, void 0, function* () {
1647
+ const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
1648
+ const response = yield this.request(requestOptions, initOverrides);
1649
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
1650
+ });
1651
+ }
1652
+ /**
1653
+ * Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
1654
+ * Start benchmark
1655
+ */
1656
+ startForecaster(requestParameters, initOverrides) {
1657
+ return __awaiter(this, void 0, void 0, function* () {
1658
+ const response = yield this.startForecasterRaw(requestParameters, initOverrides);
1659
+ return yield response.value();
1660
+ });
1661
+ }
1662
+ /**
1663
+ * Creates request options for startInspection without sending the request
1664
+ */
1665
+ startInspectionRequestOpts(requestParameters) {
1666
+ return __awaiter(this, void 0, void 0, function* () {
1667
+ if (requestParameters['startInspectionRequest'] == null) {
1668
+ throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
1669
+ }
1670
+ const queryParameters = {};
1671
+ const headerParameters = {};
1672
+ headerParameters['Content-Type'] = 'application/json';
1673
+ let urlPath = `/inspector`;
1674
+ return {
1675
+ path: urlPath,
1676
+ method: 'POST',
1677
+ headers: headerParameters,
1678
+ query: queryParameters,
1679
+ body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
1680
+ };
1681
+ });
1682
+ }
1683
+ /**
1684
+ * Start inspection for VMs
1685
+ */
1686
+ startInspectionRaw(requestParameters, initOverrides) {
1687
+ return __awaiter(this, void 0, void 0, function* () {
1688
+ const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
1689
+ const response = yield this.request(requestOptions, initOverrides);
1690
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
1691
+ });
1692
+ }
1693
+ /**
1694
+ * Start inspection for VMs
1695
+ */
1696
+ startInspection(requestParameters, initOverrides) {
1697
+ return __awaiter(this, void 0, void 0, function* () {
1698
+ const response = yield this.startInspectionRaw(requestParameters, initOverrides);
1699
+ return yield response.value();
1700
+ });
1701
+ }
1702
+ /**
1703
+ * Creates request options for stopCollector without sending the request
1704
+ */
1705
+ stopCollectorRequestOpts() {
1706
+ return __awaiter(this, void 0, void 0, function* () {
1707
+ const queryParameters = {};
1708
+ const headerParameters = {};
1709
+ let urlPath = `/collector`;
1710
+ return {
1711
+ path: urlPath,
1712
+ method: 'DELETE',
1713
+ headers: headerParameters,
1714
+ query: queryParameters,
1715
+ };
1716
+ });
1717
+ }
1718
+ /**
1719
+ * Stop collection
1720
+ */
1721
+ stopCollectorRaw(initOverrides) {
1722
+ return __awaiter(this, void 0, void 0, function* () {
1723
+ const requestOptions = yield this.stopCollectorRequestOpts();
1724
+ const response = yield this.request(requestOptions, initOverrides);
1725
+ return new runtime.VoidApiResponse(response);
1726
+ });
1727
+ }
1728
+ /**
1729
+ * Stop collection
1730
+ */
1731
+ stopCollector(initOverrides) {
1732
+ return __awaiter(this, void 0, void 0, function* () {
1733
+ yield this.stopCollectorRaw(initOverrides);
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Creates request options for stopForecaster without sending the request
1738
+ */
1739
+ stopForecasterRequestOpts() {
1740
+ return __awaiter(this, void 0, void 0, function* () {
1741
+ const queryParameters = {};
1742
+ const headerParameters = {};
1743
+ let urlPath = `/forecaster`;
1744
+ return {
1745
+ path: urlPath,
1746
+ method: 'DELETE',
1747
+ headers: headerParameters,
1748
+ query: queryParameters,
1749
+ };
1750
+ });
1751
+ }
1752
+ /**
1753
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1754
+ * Cancel benchmark
1755
+ */
1756
+ stopForecasterRaw(initOverrides) {
1757
+ return __awaiter(this, void 0, void 0, function* () {
1758
+ const requestOptions = yield this.stopForecasterRequestOpts();
1759
+ const response = yield this.request(requestOptions, initOverrides);
1760
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
1761
+ });
1762
+ }
1763
+ /**
1764
+ * Stops the running benchmark. Already-completed runs are preserved in the database.
1765
+ * Cancel benchmark
1766
+ */
1767
+ stopForecaster(initOverrides) {
1768
+ return __awaiter(this, void 0, void 0, function* () {
1769
+ const response = yield this.stopForecasterRaw(initOverrides);
1770
+ return yield response.value();
1771
+ });
1772
+ }
1773
+ /**
1774
+ * Creates request options for stopForecasterPair without sending the request
1775
+ */
1776
+ stopForecasterPairRequestOpts(requestParameters) {
1777
+ return __awaiter(this, void 0, void 0, function* () {
1778
+ if (requestParameters['name'] == null) {
1779
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
1780
+ }
1781
+ const queryParameters = {};
1782
+ const headerParameters = {};
1783
+ let urlPath = `/forecaster/pairs/{name}`;
1784
+ urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
1785
+ return {
1786
+ path: urlPath,
1787
+ method: 'DELETE',
1788
+ headers: headerParameters,
1789
+ query: queryParameters,
1790
+ };
1791
+ });
1792
+ }
1793
+ /**
1794
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1795
+ * Cancel a single pair
1796
+ */
1797
+ stopForecasterPairRaw(requestParameters, initOverrides) {
1798
+ return __awaiter(this, void 0, void 0, function* () {
1799
+ const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
1800
+ const response = yield this.request(requestOptions, initOverrides);
1801
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
1802
+ });
1803
+ }
1804
+ /**
1805
+ * Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
1806
+ * Cancel a single pair
1807
+ */
1808
+ stopForecasterPair(requestParameters, initOverrides) {
1809
+ return __awaiter(this, void 0, void 0, function* () {
1810
+ const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
1811
+ return yield response.value();
1812
+ });
1813
+ }
1814
+ /**
1815
+ * Creates request options for stopInspection without sending the request
1816
+ */
1817
+ stopInspectionRequestOpts() {
1818
+ return __awaiter(this, void 0, void 0, function* () {
1819
+ const queryParameters = {};
1820
+ const headerParameters = {};
1821
+ let urlPath = `/inspector`;
1822
+ return {
1823
+ path: urlPath,
1824
+ method: 'DELETE',
1825
+ headers: headerParameters,
1826
+ query: queryParameters,
1827
+ };
1828
+ });
1829
+ }
1830
+ /**
1831
+ * Stop inspector entirely
1832
+ */
1833
+ stopInspectionRaw(initOverrides) {
1834
+ return __awaiter(this, void 0, void 0, function* () {
1835
+ const requestOptions = yield this.stopInspectionRequestOpts();
1836
+ const response = yield this.request(requestOptions, initOverrides);
1837
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
1838
+ });
1839
+ }
1840
+ /**
1841
+ * Stop inspector entirely
1842
+ */
1843
+ stopInspection(initOverrides) {
1844
+ return __awaiter(this, void 0, void 0, function* () {
1845
+ const response = yield this.stopInspectionRaw(initOverrides);
1846
+ return yield response.value();
1847
+ });
1848
+ }
1849
+ /**
1850
+ * Creates request options for triggerRightsizingCollection without sending the request
1851
+ */
1852
+ triggerRightsizingCollectionRequestOpts(requestParameters) {
1853
+ return __awaiter(this, void 0, void 0, function* () {
1854
+ if (requestParameters['rightsizingCollectRequest'] == null) {
1855
+ throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
1856
+ }
1857
+ const queryParameters = {};
1858
+ const headerParameters = {};
1859
+ headerParameters['Content-Type'] = 'application/json';
1860
+ let urlPath = `/rightsizing`;
1861
+ return {
1862
+ path: urlPath,
1863
+ method: 'POST',
1864
+ headers: headerParameters,
1865
+ query: queryParameters,
1866
+ body: (0, RightsizingCollectRequest_js_1.RightsizingCollectRequestToJSON)(requestParameters['rightsizingCollectRequest']),
1867
+ };
1868
+ });
1869
+ }
1870
+ /**
1871
+ * Trigger rightsizing metrics collection
1872
+ */
1873
+ triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
1874
+ return __awaiter(this, void 0, void 0, function* () {
1875
+ const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
1876
+ const response = yield this.request(requestOptions, initOverrides);
1877
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)(jsonValue));
1878
+ });
1879
+ }
1880
+ /**
1881
+ * Trigger rightsizing metrics collection
1882
+ */
1883
+ triggerRightsizingCollection(requestParameters, initOverrides) {
1884
+ return __awaiter(this, void 0, void 0, function* () {
1885
+ const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
1886
+ return yield response.value();
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Creates request options for updateGroup without sending the request
1891
+ */
1892
+ updateGroupRequestOpts(requestParameters) {
1893
+ return __awaiter(this, void 0, void 0, function* () {
1894
+ if (requestParameters['id'] == null) {
1895
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateGroup().');
1896
+ }
1897
+ if (requestParameters['updateGroupRequest'] == null) {
1898
+ throw new runtime.RequiredError('updateGroupRequest', 'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().');
1899
+ }
1900
+ const queryParameters = {};
1901
+ const headerParameters = {};
1902
+ headerParameters['Content-Type'] = 'application/json';
1903
+ let urlPath = `/groups/{id}`;
1904
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1905
+ return {
1906
+ path: urlPath,
1907
+ method: 'PATCH',
1908
+ headers: headerParameters,
1909
+ query: queryParameters,
1910
+ body: (0, UpdateGroupRequest_js_1.UpdateGroupRequestToJSON)(requestParameters['updateGroupRequest']),
1911
+ };
1912
+ });
1913
+ }
1914
+ /**
1915
+ * Update group
1916
+ */
1917
+ updateGroupRaw(requestParameters, initOverrides) {
1918
+ return __awaiter(this, void 0, void 0, function* () {
1919
+ const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
1920
+ const response = yield this.request(requestOptions, initOverrides);
1921
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
1922
+ });
1923
+ }
1924
+ /**
1925
+ * Update group
1926
+ */
1927
+ updateGroup(requestParameters, initOverrides) {
1928
+ return __awaiter(this, void 0, void 0, function* () {
1929
+ const response = yield this.updateGroupRaw(requestParameters, initOverrides);
1930
+ return yield response.value();
1931
+ });
1932
+ }
1933
+ /**
1934
+ * Creates request options for updateLabelVMs without sending the request
1935
+ */
1936
+ updateLabelVMsRequestOpts(requestParameters) {
1937
+ return __awaiter(this, void 0, void 0, function* () {
1938
+ if (requestParameters['label'] == null) {
1939
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1940
+ }
1941
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1942
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1943
+ }
1944
+ const queryParameters = {};
1945
+ const headerParameters = {};
1946
+ headerParameters['Content-Type'] = 'application/json';
1947
+ let urlPath = `/vms/labels/{label}`;
1948
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1949
+ return {
1950
+ path: urlPath,
1951
+ method: 'PATCH',
1952
+ headers: headerParameters,
1953
+ query: queryParameters,
1954
+ body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
1955
+ };
1956
+ });
1957
+ }
1958
+ /**
1959
+ * Modify label VM membership (add/remove label to/from VMs)
1960
+ */
1961
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1962
+ return __awaiter(this, void 0, void 0, function* () {
1963
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1964
+ const response = yield this.request(requestOptions, initOverrides);
1965
+ return new runtime.VoidApiResponse(response);
1966
+ });
1967
+ }
1968
+ /**
1969
+ * Modify label VM membership (add/remove label to/from VMs)
1970
+ */
1971
+ updateLabelVMs(requestParameters, initOverrides) {
1972
+ return __awaiter(this, void 0, void 0, function* () {
1973
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1974
+ });
1975
+ }
1976
+ /**
1977
+ * Creates request options for updateVM without sending the request
1978
+ */
1979
+ updateVMRequestOpts(requestParameters) {
1980
+ return __awaiter(this, void 0, void 0, function* () {
1981
+ if (requestParameters['id'] == null) {
1982
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1983
+ }
1984
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1985
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1986
+ }
1987
+ const queryParameters = {};
1988
+ const headerParameters = {};
1989
+ headerParameters['Content-Type'] = 'application/json';
1990
+ let urlPath = `/vms/{id}`;
1991
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1992
+ return {
1993
+ path: urlPath,
1994
+ method: 'PATCH',
1995
+ headers: headerParameters,
1996
+ query: queryParameters,
1997
+ body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
1998
+ };
1999
+ });
2000
+ }
2001
+ /**
2002
+ * Update VM properties
2003
+ */
2004
+ updateVMRaw(requestParameters, initOverrides) {
2005
+ return __awaiter(this, void 0, void 0, function* () {
2006
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
2007
+ const response = yield this.request(requestOptions, initOverrides);
2008
+ return new runtime.VoidApiResponse(response);
2009
+ });
2010
+ }
2011
+ /**
2012
+ * Update VM properties
2013
+ */
2014
+ updateVM(requestParameters, initOverrides) {
2015
+ return __awaiter(this, void 0, void 0, function* () {
2016
+ yield this.updateVMRaw(requestParameters, initOverrides);
2017
+ });
2018
+ }
2019
+ /**
2020
+ * Creates request options for validateInspectorCredentials without sending the request
2021
+ */
2022
+ validateInspectorCredentialsRequestOpts(requestParameters) {
2023
+ return __awaiter(this, void 0, void 0, function* () {
2024
+ if (requestParameters['vcenterCredentials'] == null) {
2025
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
2026
+ }
2027
+ const queryParameters = {};
2028
+ const headerParameters = {};
2029
+ headerParameters['Content-Type'] = 'application/json';
2030
+ let urlPath = `/inspector/credentials`;
2031
+ return {
2032
+ path: urlPath,
2033
+ method: 'POST',
2034
+ headers: headerParameters,
2035
+ query: queryParameters,
2036
+ body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
2037
+ };
2038
+ });
2039
+ }
2040
+ /**
2041
+ * Validate vCenter credentials for inspector
2042
+ */
2043
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
2044
+ return __awaiter(this, void 0, void 0, function* () {
2045
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
2046
+ const response = yield this.request(requestOptions, initOverrides);
2047
+ return new runtime.VoidApiResponse(response);
2048
+ });
2049
+ }
2050
+ /**
2051
+ * Validate vCenter credentials for inspector
2052
+ */
2053
+ validateInspectorCredentials(requestParameters, initOverrides) {
2054
+ return __awaiter(this, void 0, void 0, function* () {
2055
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
2056
+ });
2057
+ }
2058
+ }
2059
+ exports.DefaultApi = DefaultApi;
2060
+ /**
2061
+ * @export
2062
+ */
2063
+ exports.ExportInventoryFormatEnum = {
2064
+ Zip: 'zip',
2065
+ Xlsx: 'xlsx'
2066
+ };