@openshift-migration-advisor/agent-sdk 0.19.0 → 0.20.1-1349fa2b4ad9

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 (644) hide show
  1. package/.openapi-generator/FILES +64 -48
  2. package/README.md +82 -86
  3. package/dist/apis/AgentApi.d.ts +95 -0
  4. package/dist/apis/AgentApi.js +109 -0
  5. package/dist/apis/ApplicationsApi.d.ts +64 -0
  6. package/dist/apis/ApplicationsApi.js +72 -0
  7. package/dist/apis/CollectionsApi.d.ts +217 -0
  8. package/dist/apis/CollectionsApi.js +216 -0
  9. package/dist/apis/CollectorApi.d.ts +154 -0
  10. package/dist/apis/CollectorApi.js +196 -0
  11. package/dist/apis/CredentialsApi.d.ts +168 -0
  12. package/dist/apis/CredentialsApi.js +187 -0
  13. package/dist/apis/ForecasterApi.d.ts +375 -0
  14. package/dist/apis/ForecasterApi.js +397 -0
  15. package/dist/apis/GroupsApi.d.ts +374 -0
  16. package/dist/apis/GroupsApi.js +351 -0
  17. package/dist/apis/InspectorApi.d.ts +202 -0
  18. package/dist/apis/InspectorApi.js +240 -0
  19. package/dist/apis/InventoriesApi.d.ts +94 -0
  20. package/dist/apis/InventoriesApi.js +107 -0
  21. package/dist/apis/RightsizingApi.d.ts +109 -0
  22. package/dist/apis/RightsizingApi.js +116 -0
  23. package/dist/apis/VersionApi.d.ts +56 -0
  24. package/dist/apis/VersionApi.js +68 -0
  25. package/dist/apis/VirtualMachinesApi.d.ts +578 -0
  26. package/dist/apis/VirtualMachinesApi.js +576 -0
  27. package/dist/apis/index.d.ts +12 -1
  28. package/dist/apis/index.js +12 -1
  29. package/dist/esm/apis/AgentApi.d.ts +95 -0
  30. package/dist/esm/apis/AgentApi.js +105 -0
  31. package/dist/esm/apis/ApplicationsApi.d.ts +64 -0
  32. package/dist/esm/apis/ApplicationsApi.js +68 -0
  33. package/dist/esm/apis/CollectionsApi.d.ts +217 -0
  34. package/dist/esm/apis/CollectionsApi.js +212 -0
  35. package/dist/esm/apis/CollectorApi.d.ts +154 -0
  36. package/dist/esm/apis/CollectorApi.js +192 -0
  37. package/dist/esm/apis/CredentialsApi.d.ts +168 -0
  38. package/dist/esm/apis/CredentialsApi.js +183 -0
  39. package/dist/esm/apis/ForecasterApi.d.ts +375 -0
  40. package/dist/esm/apis/ForecasterApi.js +393 -0
  41. package/dist/esm/apis/GroupsApi.d.ts +374 -0
  42. package/dist/esm/apis/GroupsApi.js +347 -0
  43. package/dist/esm/apis/InspectorApi.d.ts +202 -0
  44. package/dist/esm/apis/InspectorApi.js +236 -0
  45. package/dist/esm/apis/InventoriesApi.d.ts +94 -0
  46. package/dist/esm/apis/InventoriesApi.js +103 -0
  47. package/dist/esm/apis/RightsizingApi.d.ts +109 -0
  48. package/dist/esm/apis/RightsizingApi.js +112 -0
  49. package/dist/esm/apis/VersionApi.d.ts +56 -0
  50. package/dist/esm/apis/VersionApi.js +64 -0
  51. package/dist/esm/apis/VirtualMachinesApi.d.ts +578 -0
  52. package/dist/esm/apis/VirtualMachinesApi.js +572 -0
  53. package/dist/esm/apis/index.d.ts +12 -1
  54. package/dist/esm/apis/index.js +12 -1
  55. package/dist/esm/models/AgentModeRequest.d.ts +1 -3
  56. package/dist/esm/models/AgentModeRequest.js +1 -1
  57. package/dist/esm/models/AgentStatus.d.ts +6 -19
  58. package/dist/esm/models/AgentStatus.js +7 -13
  59. package/dist/esm/models/AgentStatusConsoleConnection.d.ts +42 -0
  60. package/dist/esm/models/AgentStatusConsoleConnection.js +52 -0
  61. package/dist/esm/models/ApplicationListResponse.d.ts +1 -3
  62. package/dist/esm/models/ApplicationListResponse.js +1 -1
  63. package/dist/esm/models/ApplicationOverview.d.ts +4 -12
  64. package/dist/esm/models/ApplicationOverview.js +1 -1
  65. package/dist/esm/models/ApplicationVM.d.ts +3 -7
  66. package/dist/esm/models/ApplicationVM.js +1 -1
  67. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +1 -5
  68. package/dist/esm/models/BatchUpdateExclusionRequest.js +1 -1
  69. package/dist/esm/models/BenchmarkRun.d.ts +6 -32
  70. package/dist/esm/models/BenchmarkRun.js +7 -5
  71. package/dist/esm/models/CapabilityStatus.d.ts +1 -3
  72. package/dist/esm/models/CapabilityStatus.js +1 -1
  73. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +1 -7
  74. package/dist/esm/models/CapabilityStatusCapabilities.js +1 -1
  75. package/dist/esm/models/ClusterFeatures.d.ts +1 -7
  76. package/dist/esm/models/ClusterFeatures.js +1 -1
  77. package/dist/esm/models/ClusterUtilization.d.ts +1 -15
  78. package/dist/esm/models/ClusterUtilization.js +1 -1
  79. package/dist/esm/models/Collection.d.ts +38 -0
  80. package/dist/esm/models/Collection.js +51 -0
  81. package/dist/esm/models/CollectionAggregate.d.ts +50 -0
  82. package/dist/esm/models/CollectionAggregate.js +63 -0
  83. package/dist/esm/models/CollectionComparisonDiff.d.ts +48 -0
  84. package/dist/esm/models/CollectionComparisonDiff.js +60 -0
  85. package/dist/esm/models/CollectionComparisonSummary.d.ts +36 -0
  86. package/dist/esm/models/CollectionComparisonSummary.js +49 -0
  87. package/dist/esm/models/CollectionComparisonSummaryDiff.d.ts +43 -0
  88. package/dist/esm/models/CollectionComparisonSummaryDiff.js +56 -0
  89. package/dist/esm/models/CollectionListResponse.d.ts +31 -0
  90. package/dist/esm/models/CollectionListResponse.js +44 -0
  91. package/dist/esm/models/CollectorStatus.d.ts +2 -5
  92. package/dist/esm/models/CollectorStatus.js +2 -1
  93. package/dist/esm/models/ComparisonDiffEntry.d.ts +38 -0
  94. package/dist/esm/models/ComparisonDiffEntry.js +47 -0
  95. package/dist/esm/models/ComparisonDiffPage.d.ts +42 -0
  96. package/dist/esm/models/ComparisonDiffPage.js +55 -0
  97. package/dist/esm/models/CreateGroupRequest.d.ts +4 -10
  98. package/dist/esm/models/CreateGroupRequest.js +1 -1
  99. package/dist/esm/models/CredentialStatus.d.ts +1 -7
  100. package/dist/esm/models/CredentialStatus.js +1 -1
  101. package/dist/esm/models/Datastore.d.ts +1 -21
  102. package/dist/esm/models/Datastore.js +1 -1
  103. package/dist/esm/models/DatastoreDetail.d.ts +7 -35
  104. package/dist/esm/models/DatastoreDetail.js +1 -10
  105. package/dist/esm/models/DatastorePairRequest.d.ts +42 -0
  106. package/dist/esm/models/{DatastorePair.js → DatastorePairRequest.js} +9 -9
  107. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +5 -9
  108. package/dist/esm/models/DeleteLabelGloballyResponse.js +5 -5
  109. package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -5
  110. package/dist/esm/models/DiskSizeTierSummary.js +1 -1
  111. package/dist/esm/models/DiskTypeSummary.d.ts +1 -5
  112. package/dist/esm/models/DiskTypeSummary.js +1 -1
  113. package/dist/esm/models/EstimateRange.d.ts +8 -14
  114. package/dist/esm/models/EstimateRange.js +10 -4
  115. package/dist/esm/models/ForecastPairStatus.d.ts +78 -0
  116. package/dist/esm/models/{ForecasterPairStatus.js → ForecastPairStatus.js} +22 -22
  117. package/dist/esm/models/ForecastStats.d.ts +11 -31
  118. package/dist/esm/models/ForecastStats.js +33 -17
  119. package/dist/esm/models/ForecasterStatus.d.ts +7 -11
  120. package/dist/esm/models/ForecasterStatus.js +8 -6
  121. package/dist/esm/models/Group.d.ts +4 -16
  122. package/dist/esm/models/Group.js +1 -1
  123. package/dist/esm/models/GroupListResponse.d.ts +4 -12
  124. package/dist/esm/models/GroupListResponse.js +1 -1
  125. package/dist/esm/models/GroupResponse.d.ts +6 -18
  126. package/dist/esm/models/GroupResponse.js +4 -4
  127. package/dist/esm/models/GuestNetwork.d.ts +6 -16
  128. package/dist/esm/models/GuestNetwork.js +1 -1
  129. package/dist/esm/models/Histogram.d.ts +1 -7
  130. package/dist/esm/models/Histogram.js +1 -1
  131. package/dist/esm/models/Host.d.ts +9 -13
  132. package/dist/esm/models/Host.js +5 -1
  133. package/dist/esm/models/Infra.d.ts +1 -25
  134. package/dist/esm/models/Infra.js +1 -1
  135. package/dist/esm/models/InspectionStatus.d.ts +45 -0
  136. package/dist/esm/models/InspectionStatus.js +55 -0
  137. package/dist/esm/models/InspectorStatus.d.ts +1 -5
  138. package/dist/esm/models/InspectorStatus.js +1 -1
  139. package/dist/esm/models/Inventory.d.ts +3 -25
  140. package/dist/esm/models/Inventory.js +5 -14
  141. package/dist/esm/models/Inventory1.d.ts +45 -0
  142. package/dist/esm/models/Inventory1.js +53 -0
  143. package/dist/esm/models/InventoryData.d.ts +1 -11
  144. package/dist/esm/models/InventoryData.js +1 -1
  145. package/dist/esm/models/IssuesBreakdown.d.ts +1 -11
  146. package/dist/esm/models/IssuesBreakdown.js +1 -1
  147. package/dist/esm/models/MigrationIssue.d.ts +1 -9
  148. package/dist/esm/models/MigrationIssue.js +1 -1
  149. package/dist/esm/models/Network.d.ts +1 -11
  150. package/dist/esm/models/Network.js +1 -1
  151. package/dist/esm/models/OperationCapability.d.ts +1 -5
  152. package/dist/esm/models/OperationCapability.js +1 -1
  153. package/dist/esm/models/OsInfo.d.ts +1 -9
  154. package/dist/esm/models/OsInfo.js +1 -1
  155. package/dist/esm/models/PairCapability.d.ts +3 -21
  156. package/dist/esm/models/PairCapability.js +1 -10
  157. package/dist/esm/models/PairCapabilityRequest.d.ts +3 -12
  158. package/dist/esm/models/PairCapabilityRequest.js +4 -7
  159. package/dist/esm/models/Process.d.ts +1 -5
  160. package/dist/esm/models/Process.js +1 -1
  161. package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -6
  162. package/dist/esm/models/RightsizingClusterResponse.js +1 -1
  163. package/dist/esm/models/RightsizingClusterUtilization.d.ts +13 -43
  164. package/dist/esm/models/RightsizingClusterUtilization.js +1 -1
  165. package/dist/esm/models/StartForecasterRequest.d.ts +43 -0
  166. package/dist/esm/models/{ForecasterStartRequest.js → StartForecasterRequest.js} +12 -15
  167. package/dist/esm/models/StartInspectionRequest.d.ts +3 -12
  168. package/dist/esm/models/StartInspectionRequest.js +1 -4
  169. package/dist/esm/models/StopForecasterPair202Response.d.ts +1 -5
  170. package/dist/esm/models/StopForecasterPair202Response.js +1 -1
  171. package/dist/esm/models/StorageIoConfiguration.d.ts +1 -9
  172. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  173. package/dist/esm/models/UpdateGroupRequest.d.ts +4 -10
  174. package/dist/esm/models/UpdateGroupRequest.js +1 -1
  175. package/dist/esm/models/UpdateInventory.d.ts +3 -7
  176. package/dist/esm/models/UpdateInventory.js +4 -4
  177. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +1 -5
  178. package/dist/esm/models/UpdateLabelVMsRequest.js +1 -1
  179. package/dist/esm/models/VCenter.d.ts +1 -3
  180. package/dist/esm/models/VCenter.js +1 -1
  181. package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -11
  182. package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
  183. package/dist/esm/models/VMLabelsResponse.d.ts +1 -5
  184. package/dist/esm/models/VMLabelsResponse.js +1 -1
  185. package/dist/esm/models/VMResourceBreakdown.d.ts +1 -11
  186. package/dist/esm/models/VMResourceBreakdown.js +1 -1
  187. package/dist/esm/models/VMs.d.ts +1 -47
  188. package/dist/esm/models/VMs.js +1 -1
  189. package/dist/esm/models/VcenterCredentials.d.ts +1 -11
  190. package/dist/esm/models/VcenterCredentials.js +1 -1
  191. package/dist/esm/models/VddkProperties.d.ts +2 -8
  192. package/dist/esm/models/VddkProperties.js +1 -1
  193. package/dist/esm/models/VersionInfo.d.ts +4 -10
  194. package/dist/esm/models/VersionInfo.js +1 -1
  195. package/dist/esm/models/VirtualMachine.d.ts +15 -53
  196. package/dist/esm/models/VirtualMachine.js +10 -6
  197. package/dist/esm/models/VirtualMachineDetail.d.ts +42 -108
  198. package/dist/esm/models/VirtualMachineDetail.js +20 -16
  199. package/dist/esm/models/VirtualMachineDevice.d.ts +30 -0
  200. package/dist/esm/models/{VMDevice.js → VirtualMachineDevice.js} +9 -9
  201. package/dist/esm/models/VirtualMachineDisk.d.ts +54 -0
  202. package/dist/esm/models/{VMDisk.js → VirtualMachineDisk.js} +9 -9
  203. package/dist/esm/models/VirtualMachineInspectionConcern.d.ts +38 -0
  204. package/dist/esm/models/{VmInspectionConcern.js → VirtualMachineInspectionConcern.js} +9 -9
  205. package/dist/esm/models/VirtualMachineInspectionResults.d.ts +31 -0
  206. package/dist/esm/models/VirtualMachineInspectionResults.js +42 -0
  207. package/dist/esm/models/VirtualMachineIssue.d.ts +50 -0
  208. package/dist/esm/models/{VMIssue.js → VirtualMachineIssue.js} +16 -16
  209. package/dist/esm/models/VirtualMachineListResponse.d.ts +3 -11
  210. package/dist/esm/models/VirtualMachineListResponse.js +4 -4
  211. package/dist/esm/models/VirtualMachineNIC.d.ts +38 -0
  212. package/dist/esm/models/{VMNIC.js → VirtualMachineNIC.js} +9 -13
  213. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +1 -5
  214. package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
  215. package/dist/esm/models/VmUtilizationDetails.d.ts +8 -38
  216. package/dist/esm/models/VmUtilizationDetails.js +1 -1
  217. package/dist/esm/models/index.d.ts +20 -23
  218. package/dist/esm/models/index.js +20 -23
  219. package/dist/esm/runtime.d.ts +1 -1
  220. package/dist/esm/runtime.js +2 -2
  221. package/dist/models/AgentModeRequest.d.ts +1 -3
  222. package/dist/models/AgentModeRequest.js +1 -1
  223. package/dist/models/AgentStatus.d.ts +6 -19
  224. package/dist/models/AgentStatus.js +8 -14
  225. package/dist/models/AgentStatusConsoleConnection.d.ts +42 -0
  226. package/dist/models/AgentStatusConsoleConnection.js +60 -0
  227. package/dist/models/ApplicationListResponse.d.ts +1 -3
  228. package/dist/models/ApplicationListResponse.js +1 -1
  229. package/dist/models/ApplicationOverview.d.ts +4 -12
  230. package/dist/models/ApplicationOverview.js +1 -1
  231. package/dist/models/ApplicationVM.d.ts +3 -7
  232. package/dist/models/ApplicationVM.js +1 -1
  233. package/dist/models/BatchUpdateExclusionRequest.d.ts +1 -5
  234. package/dist/models/BatchUpdateExclusionRequest.js +1 -1
  235. package/dist/models/BenchmarkRun.d.ts +6 -32
  236. package/dist/models/BenchmarkRun.js +7 -5
  237. package/dist/models/CapabilityStatus.d.ts +1 -3
  238. package/dist/models/CapabilityStatus.js +1 -1
  239. package/dist/models/CapabilityStatusCapabilities.d.ts +1 -7
  240. package/dist/models/CapabilityStatusCapabilities.js +1 -1
  241. package/dist/models/ClusterFeatures.d.ts +1 -7
  242. package/dist/models/ClusterFeatures.js +1 -1
  243. package/dist/models/ClusterUtilization.d.ts +1 -15
  244. package/dist/models/ClusterUtilization.js +1 -1
  245. package/dist/models/Collection.d.ts +38 -0
  246. package/dist/models/Collection.js +58 -0
  247. package/dist/models/CollectionAggregate.d.ts +50 -0
  248. package/dist/models/CollectionAggregate.js +70 -0
  249. package/dist/models/CollectionComparisonDiff.d.ts +48 -0
  250. package/dist/models/CollectionComparisonDiff.js +68 -0
  251. package/dist/models/CollectionComparisonSummary.d.ts +36 -0
  252. package/dist/models/CollectionComparisonSummary.js +56 -0
  253. package/dist/models/CollectionComparisonSummaryDiff.d.ts +43 -0
  254. package/dist/models/CollectionComparisonSummaryDiff.js +63 -0
  255. package/dist/models/CollectionListResponse.d.ts +31 -0
  256. package/dist/models/CollectionListResponse.js +51 -0
  257. package/dist/models/CollectorStatus.d.ts +2 -5
  258. package/dist/models/CollectorStatus.js +2 -1
  259. package/dist/models/ComparisonDiffEntry.d.ts +38 -0
  260. package/dist/models/ComparisonDiffEntry.js +54 -0
  261. package/dist/models/ComparisonDiffPage.d.ts +42 -0
  262. package/dist/models/ComparisonDiffPage.js +62 -0
  263. package/dist/models/CreateGroupRequest.d.ts +4 -10
  264. package/dist/models/CreateGroupRequest.js +1 -1
  265. package/dist/models/CredentialStatus.d.ts +1 -7
  266. package/dist/models/CredentialStatus.js +1 -1
  267. package/dist/models/Datastore.d.ts +1 -21
  268. package/dist/models/Datastore.js +1 -1
  269. package/dist/models/DatastoreDetail.d.ts +7 -35
  270. package/dist/models/DatastoreDetail.js +1 -11
  271. package/dist/models/DatastorePairRequest.d.ts +42 -0
  272. package/dist/models/{DatastorePair.js → DatastorePairRequest.js} +14 -14
  273. package/dist/models/DeleteLabelGloballyResponse.d.ts +5 -9
  274. package/dist/models/DeleteLabelGloballyResponse.js +5 -5
  275. package/dist/models/DiskSizeTierSummary.d.ts +1 -5
  276. package/dist/models/DiskSizeTierSummary.js +1 -1
  277. package/dist/models/DiskTypeSummary.d.ts +1 -5
  278. package/dist/models/DiskTypeSummary.js +1 -1
  279. package/dist/models/EstimateRange.d.ts +8 -14
  280. package/dist/models/EstimateRange.js +10 -4
  281. package/dist/models/ForecastPairStatus.d.ts +78 -0
  282. package/dist/models/{ForecasterPairStatus.js → ForecastPairStatus.js} +28 -28
  283. package/dist/models/ForecastStats.d.ts +11 -31
  284. package/dist/models/ForecastStats.js +33 -17
  285. package/dist/models/ForecasterStatus.d.ts +7 -11
  286. package/dist/models/ForecasterStatus.js +8 -6
  287. package/dist/models/Group.d.ts +4 -16
  288. package/dist/models/Group.js +1 -1
  289. package/dist/models/GroupListResponse.d.ts +4 -12
  290. package/dist/models/GroupListResponse.js +1 -1
  291. package/dist/models/GroupResponse.d.ts +6 -18
  292. package/dist/models/GroupResponse.js +4 -4
  293. package/dist/models/GuestNetwork.d.ts +6 -16
  294. package/dist/models/GuestNetwork.js +1 -1
  295. package/dist/models/Histogram.d.ts +1 -7
  296. package/dist/models/Histogram.js +1 -1
  297. package/dist/models/Host.d.ts +9 -13
  298. package/dist/models/Host.js +5 -1
  299. package/dist/models/Infra.d.ts +1 -25
  300. package/dist/models/Infra.js +1 -1
  301. package/dist/models/InspectionStatus.d.ts +45 -0
  302. package/dist/models/InspectionStatus.js +63 -0
  303. package/dist/models/InspectorStatus.d.ts +1 -5
  304. package/dist/models/InspectorStatus.js +1 -1
  305. package/dist/models/Inventory.d.ts +3 -25
  306. package/dist/models/Inventory.js +5 -14
  307. package/dist/models/Inventory1.d.ts +45 -0
  308. package/dist/models/Inventory1.js +60 -0
  309. package/dist/models/InventoryData.d.ts +1 -11
  310. package/dist/models/InventoryData.js +1 -1
  311. package/dist/models/IssuesBreakdown.d.ts +1 -11
  312. package/dist/models/IssuesBreakdown.js +1 -1
  313. package/dist/models/MigrationIssue.d.ts +1 -9
  314. package/dist/models/MigrationIssue.js +1 -1
  315. package/dist/models/Network.d.ts +1 -11
  316. package/dist/models/Network.js +1 -1
  317. package/dist/models/OperationCapability.d.ts +1 -5
  318. package/dist/models/OperationCapability.js +1 -1
  319. package/dist/models/OsInfo.d.ts +1 -9
  320. package/dist/models/OsInfo.js +1 -1
  321. package/dist/models/PairCapability.d.ts +3 -21
  322. package/dist/models/PairCapability.js +1 -11
  323. package/dist/models/PairCapabilityRequest.d.ts +3 -12
  324. package/dist/models/PairCapabilityRequest.js +4 -7
  325. package/dist/models/Process.d.ts +1 -5
  326. package/dist/models/Process.js +1 -1
  327. package/dist/models/RightsizingClusterResponse.d.ts +2 -6
  328. package/dist/models/RightsizingClusterResponse.js +1 -1
  329. package/dist/models/RightsizingClusterUtilization.d.ts +13 -43
  330. package/dist/models/RightsizingClusterUtilization.js +1 -1
  331. package/dist/models/StartForecasterRequest.d.ts +43 -0
  332. package/dist/models/StartForecasterRequest.js +57 -0
  333. package/dist/models/StartInspectionRequest.d.ts +3 -12
  334. package/dist/models/StartInspectionRequest.js +1 -4
  335. package/dist/models/StopForecasterPair202Response.d.ts +1 -5
  336. package/dist/models/StopForecasterPair202Response.js +1 -1
  337. package/dist/models/StorageIoConfiguration.d.ts +1 -9
  338. package/dist/models/StorageIoConfiguration.js +1 -1
  339. package/dist/models/UpdateGroupRequest.d.ts +4 -10
  340. package/dist/models/UpdateGroupRequest.js +1 -1
  341. package/dist/models/UpdateInventory.d.ts +3 -7
  342. package/dist/models/UpdateInventory.js +4 -4
  343. package/dist/models/UpdateLabelVMsRequest.d.ts +1 -5
  344. package/dist/models/UpdateLabelVMsRequest.js +1 -1
  345. package/dist/models/VCenter.d.ts +1 -3
  346. package/dist/models/VCenter.js +1 -1
  347. package/dist/models/VMFilterOptionsResponse.d.ts +1 -11
  348. package/dist/models/VMFilterOptionsResponse.js +1 -1
  349. package/dist/models/VMLabelsResponse.d.ts +1 -5
  350. package/dist/models/VMLabelsResponse.js +1 -1
  351. package/dist/models/VMResourceBreakdown.d.ts +1 -11
  352. package/dist/models/VMResourceBreakdown.js +1 -1
  353. package/dist/models/VMs.d.ts +1 -47
  354. package/dist/models/VMs.js +1 -1
  355. package/dist/models/VcenterCredentials.d.ts +1 -11
  356. package/dist/models/VcenterCredentials.js +1 -1
  357. package/dist/models/VddkProperties.d.ts +2 -8
  358. package/dist/models/VddkProperties.js +1 -1
  359. package/dist/models/VersionInfo.d.ts +4 -10
  360. package/dist/models/VersionInfo.js +1 -1
  361. package/dist/models/VirtualMachine.d.ts +15 -53
  362. package/dist/models/VirtualMachine.js +10 -6
  363. package/dist/models/VirtualMachineDetail.d.ts +42 -108
  364. package/dist/models/VirtualMachineDetail.js +20 -16
  365. package/dist/models/VirtualMachineDevice.d.ts +30 -0
  366. package/dist/models/VirtualMachineDevice.js +48 -0
  367. package/dist/models/VirtualMachineDisk.d.ts +54 -0
  368. package/dist/models/{VMDisk.js → VirtualMachineDisk.js} +14 -14
  369. package/dist/models/VirtualMachineInspectionConcern.d.ts +38 -0
  370. package/dist/models/{VmInspectionConcern.js → VirtualMachineInspectionConcern.js} +14 -14
  371. package/dist/models/VirtualMachineInspectionResults.d.ts +31 -0
  372. package/dist/models/VirtualMachineInspectionResults.js +49 -0
  373. package/dist/models/VirtualMachineIssue.d.ts +50 -0
  374. package/dist/models/VirtualMachineIssue.js +70 -0
  375. package/dist/models/VirtualMachineListResponse.d.ts +3 -11
  376. package/dist/models/VirtualMachineListResponse.js +4 -4
  377. package/dist/models/VirtualMachineNIC.d.ts +38 -0
  378. package/dist/models/{VMNIC.js → VirtualMachineNIC.js} +14 -18
  379. package/dist/models/VirtualMachineUpdateRequest.d.ts +1 -5
  380. package/dist/models/VirtualMachineUpdateRequest.js +1 -1
  381. package/dist/models/VmUtilizationDetails.d.ts +8 -38
  382. package/dist/models/VmUtilizationDetails.js +1 -1
  383. package/dist/models/index.d.ts +20 -23
  384. package/dist/models/index.js +20 -23
  385. package/dist/runtime.d.ts +1 -1
  386. package/dist/runtime.js +2 -2
  387. package/docs/AgentApi.md +136 -0
  388. package/docs/AgentStatus.md +4 -4
  389. package/docs/{ExportInventory400Response.md → AgentStatusConsoleConnection.md} +7 -5
  390. package/docs/ApplicationsApi.md +76 -0
  391. package/docs/BenchmarkRun.md +2 -2
  392. package/docs/Collection.md +38 -0
  393. package/docs/{RightsizingClusterListResponse.md → CollectionAggregate.md} +15 -7
  394. package/docs/CollectionComparisonDiff.md +38 -0
  395. package/docs/{ForecasterDatastoresRequest.md → CollectionComparisonSummary.md} +8 -6
  396. package/docs/CollectionComparisonSummaryDiff.md +41 -0
  397. package/docs/CollectionListResponse.md +34 -0
  398. package/docs/CollectionsApi.md +291 -0
  399. package/docs/CollectorApi.md +257 -0
  400. package/docs/{VmInspectionResults.md → ComparisonDiffEntry.md} +10 -7
  401. package/docs/{RightsizingReportListResponse.md → ComparisonDiffPage.md} +10 -6
  402. package/docs/CredentialsApi.md +264 -0
  403. package/docs/{DatastorePair.md → DatastorePairRequest.md} +4 -4
  404. package/docs/DeleteLabelGloballyResponse.md +2 -2
  405. package/docs/EstimateRange.md +0 -1
  406. package/docs/{ForecasterPairStatus.md → ForecastPairStatus.md} +8 -8
  407. package/docs/ForecastStats.md +16 -16
  408. package/docs/ForecasterApi.md +612 -0
  409. package/docs/ForecasterStatus.md +1 -1
  410. package/docs/GroupResponse.md +1 -1
  411. package/docs/GroupsApi.md +527 -0
  412. package/docs/Host.md +4 -0
  413. package/docs/{ExportInventory500Response.md → InspectionStatus.md} +6 -4
  414. package/docs/InspectorApi.md +334 -0
  415. package/docs/InventoriesApi.md +136 -0
  416. package/docs/Inventory.md +2 -8
  417. package/docs/{GetInventory200Response.md → Inventory1.md} +4 -8
  418. package/docs/PairCapabilityRequest.md +1 -3
  419. package/docs/RightsizingApi.md +148 -0
  420. package/docs/{ForecasterStartRequest.md → StartForecasterRequest.md} +5 -7
  421. package/docs/StartInspectionRequest.md +0 -3
  422. package/docs/UpdateInventory.md +1 -1
  423. package/docs/VMLabelsResponse.md +2 -2
  424. package/docs/VersionApi.md +66 -0
  425. package/docs/VirtualMachine.md +5 -3
  426. package/docs/VirtualMachineDetail.md +7 -5
  427. package/docs/{VMDevice.md → VirtualMachineDevice.md} +4 -4
  428. package/docs/{VMDisk.md → VirtualMachineDisk.md} +4 -4
  429. package/docs/{VmInspectionConcern.md → VirtualMachineInspectionConcern.md} +4 -5
  430. package/docs/VirtualMachineInspectionResults.md +35 -0
  431. package/docs/{VMIssue.md → VirtualMachineIssue.md} +4 -4
  432. package/docs/VirtualMachineListResponse.md +2 -2
  433. package/docs/{VMNIC.md → VirtualMachineNIC.md} +4 -8
  434. package/docs/VirtualMachineUpdateRequest.md +2 -2
  435. package/docs/VirtualMachinesApi.md +914 -0
  436. package/package.json +1 -1
  437. package/src/apis/AgentApi.ts +176 -0
  438. package/src/apis/ApplicationsApi.ts +111 -0
  439. package/src/apis/CollectionsApi.ts +411 -0
  440. package/src/apis/CollectorApi.ts +306 -0
  441. package/src/apis/CredentialsApi.ts +308 -0
  442. package/src/apis/ForecasterApi.ts +721 -0
  443. package/src/apis/GroupsApi.ts +718 -0
  444. package/src/apis/InspectorApi.ts +405 -0
  445. package/src/apis/InventoriesApi.ts +169 -0
  446. package/src/apis/RightsizingApi.ts +205 -0
  447. package/src/apis/VersionApi.ts +94 -0
  448. package/src/apis/VirtualMachinesApi.ts +1142 -0
  449. package/src/apis/index.ts +12 -1
  450. package/src/models/AgentModeRequest.ts +1 -3
  451. package/src/models/AgentStatus.ts +18 -25
  452. package/src/models/AgentStatusConsoleConnection.ts +81 -0
  453. package/src/models/ApplicationListResponse.ts +1 -3
  454. package/src/models/ApplicationOverview.ts +4 -12
  455. package/src/models/ApplicationVM.ts +3 -7
  456. package/src/models/BatchUpdateExclusionRequest.ts +1 -5
  457. package/src/models/BenchmarkRun.ts +11 -36
  458. package/src/models/CapabilityStatus.ts +1 -3
  459. package/src/models/CapabilityStatusCapabilities.ts +1 -7
  460. package/src/models/ClusterFeatures.ts +1 -7
  461. package/src/models/ClusterUtilization.ts +1 -15
  462. package/src/models/Collection.ts +78 -0
  463. package/src/models/CollectionAggregate.ts +99 -0
  464. package/src/models/CollectionComparisonDiff.ts +98 -0
  465. package/src/models/CollectionComparisonSummary.ts +86 -0
  466. package/src/models/CollectionComparisonSummaryDiff.ts +93 -0
  467. package/src/models/CollectionListResponse.ts +72 -0
  468. package/src/models/CollectorStatus.ts +2 -5
  469. package/src/models/ComparisonDiffEntry.ts +76 -0
  470. package/src/models/ComparisonDiffPage.ts +85 -0
  471. package/src/models/CreateGroupRequest.ts +4 -10
  472. package/src/models/CredentialStatus.ts +1 -7
  473. package/src/models/Datastore.ts +1 -21
  474. package/src/models/DatastoreDetail.ts +7 -38
  475. package/src/models/{DatastorePair.ts → DatastorePairRequest.ts} +15 -23
  476. package/src/models/DeleteLabelGloballyResponse.ts +8 -12
  477. package/src/models/DiskSizeTierSummary.ts +1 -5
  478. package/src/models/DiskTypeSummary.ts +1 -5
  479. package/src/models/EstimateRange.ts +14 -17
  480. package/src/models/{ForecasterPairStatus.ts → ForecastPairStatus.ts} +37 -57
  481. package/src/models/ForecastStats.ts +35 -47
  482. package/src/models/ForecasterStatus.ts +15 -18
  483. package/src/models/Group.ts +4 -16
  484. package/src/models/GroupListResponse.ts +4 -12
  485. package/src/models/GroupResponse.ts +13 -25
  486. package/src/models/GuestNetwork.ts +6 -16
  487. package/src/models/Histogram.ts +1 -7
  488. package/src/models/Host.ts +13 -13
  489. package/src/models/Infra.ts +1 -25
  490. package/src/models/InspectionStatus.ts +84 -0
  491. package/src/models/InspectorStatus.ts +1 -5
  492. package/src/models/Inventory.ts +11 -38
  493. package/src/models/Inventory1.ts +91 -0
  494. package/src/models/InventoryData.ts +1 -11
  495. package/src/models/IssuesBreakdown.ts +1 -11
  496. package/src/models/MigrationIssue.ts +1 -9
  497. package/src/models/Network.ts +1 -11
  498. package/src/models/OperationCapability.ts +1 -5
  499. package/src/models/OsInfo.ts +1 -9
  500. package/src/models/PairCapability.ts +3 -24
  501. package/src/models/PairCapabilityRequest.ts +10 -27
  502. package/src/models/Process.ts +1 -5
  503. package/src/models/RightsizingClusterResponse.ts +2 -6
  504. package/src/models/RightsizingClusterUtilization.ts +13 -43
  505. package/src/models/StartForecasterRequest.ts +90 -0
  506. package/src/models/StartInspectionRequest.ts +3 -21
  507. package/src/models/StopForecasterPair202Response.ts +1 -5
  508. package/src/models/StorageIoConfiguration.ts +1 -9
  509. package/src/models/UpdateGroupRequest.ts +4 -10
  510. package/src/models/UpdateInventory.ts +10 -14
  511. package/src/models/UpdateLabelVMsRequest.ts +1 -5
  512. package/src/models/VCenter.ts +1 -3
  513. package/src/models/VMFilterOptionsResponse.ts +1 -11
  514. package/src/models/VMLabelsResponse.ts +1 -5
  515. package/src/models/VMResourceBreakdown.ts +1 -11
  516. package/src/models/VMs.ts +1 -47
  517. package/src/models/VcenterCredentials.ts +1 -11
  518. package/src/models/VddkProperties.ts +2 -8
  519. package/src/models/VersionInfo.ts +4 -10
  520. package/src/models/VirtualMachine.ts +27 -62
  521. package/src/models/VirtualMachineDetail.ts +80 -143
  522. package/src/models/VirtualMachineDevice.ts +63 -0
  523. package/src/models/{VMDisk.ts → VirtualMachineDisk.ts} +17 -31
  524. package/src/models/{VmInspectionConcern.ts → VirtualMachineInspectionConcern.ts} +12 -18
  525. package/src/models/VirtualMachineInspectionResults.ts +71 -0
  526. package/src/models/VirtualMachineIssue.ts +93 -0
  527. package/src/models/VirtualMachineListResponse.ts +6 -14
  528. package/src/models/VirtualMachineNIC.ts +75 -0
  529. package/src/models/VirtualMachineUpdateRequest.ts +1 -5
  530. package/src/models/VmUtilizationDetails.ts +8 -38
  531. package/src/models/index.ts +20 -23
  532. package/src/runtime.ts +2 -2
  533. package/dist/apis/DefaultApi.d.ts +0 -1827
  534. package/dist/apis/DefaultApi.js +0 -2056
  535. package/dist/esm/apis/DefaultApi.d.ts +0 -1827
  536. package/dist/esm/apis/DefaultApi.js +0 -2052
  537. package/dist/esm/models/CollectorStartRequest.d.ts +0 -56
  538. package/dist/esm/models/CollectorStartRequest.js +0 -49
  539. package/dist/esm/models/DatastorePair.d.ts +0 -50
  540. package/dist/esm/models/ExportInventory400Response.d.ts +0 -32
  541. package/dist/esm/models/ExportInventory400Response.js +0 -41
  542. package/dist/esm/models/ExportInventory500Response.d.ts +0 -32
  543. package/dist/esm/models/ExportInventory500Response.js +0 -41
  544. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +0 -33
  545. package/dist/esm/models/ForecasterDatastoresRequest.js +0 -42
  546. package/dist/esm/models/ForecasterPairStatus.d.ts +0 -98
  547. package/dist/esm/models/ForecasterStartRequest.d.ts +0 -58
  548. package/dist/esm/models/GetInventory200Response.d.ts +0 -23
  549. package/dist/esm/models/GetInventory200Response.js +0 -51
  550. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +0 -38
  551. package/dist/esm/models/PutForecasterCredentials403Response.js +0 -43
  552. package/dist/esm/models/RightsizingClusterListResponse.d.ts +0 -39
  553. package/dist/esm/models/RightsizingClusterListResponse.js +0 -48
  554. package/dist/esm/models/RightsizingCollectRequest.d.ts +0 -70
  555. package/dist/esm/models/RightsizingCollectRequest.js +0 -56
  556. package/dist/esm/models/RightsizingMetricStats.d.ts +0 -62
  557. package/dist/esm/models/RightsizingMetricStats.js +0 -63
  558. package/dist/esm/models/RightsizingReport.d.ts +0 -81
  559. package/dist/esm/models/RightsizingReport.js +0 -76
  560. package/dist/esm/models/RightsizingReportListResponse.d.ts +0 -39
  561. package/dist/esm/models/RightsizingReportListResponse.js +0 -48
  562. package/dist/esm/models/RightsizingReportSummary.d.ts +0 -74
  563. package/dist/esm/models/RightsizingReportSummary.js +0 -71
  564. package/dist/esm/models/RightsizingVMReport.d.ts +0 -53
  565. package/dist/esm/models/RightsizingVMReport.js +0 -57
  566. package/dist/esm/models/VMDevice.d.ts +0 -32
  567. package/dist/esm/models/VMDisk.d.ts +0 -68
  568. package/dist/esm/models/VMIssue.d.ts +0 -56
  569. package/dist/esm/models/VMNIC.d.ts +0 -56
  570. package/dist/esm/models/VmInspectionConcern.d.ts +0 -44
  571. package/dist/esm/models/VmInspectionResults.d.ts +0 -33
  572. package/dist/esm/models/VmInspectionResults.js +0 -42
  573. package/dist/esm/models/VmInspectionStatus.d.ts +0 -61
  574. package/dist/esm/models/VmInspectionStatus.js +0 -61
  575. package/dist/models/CollectorStartRequest.d.ts +0 -56
  576. package/dist/models/CollectorStartRequest.js +0 -56
  577. package/dist/models/DatastorePair.d.ts +0 -50
  578. package/dist/models/ExportInventory400Response.d.ts +0 -32
  579. package/dist/models/ExportInventory400Response.js +0 -48
  580. package/dist/models/ExportInventory500Response.d.ts +0 -32
  581. package/dist/models/ExportInventory500Response.js +0 -48
  582. package/dist/models/ForecasterDatastoresRequest.d.ts +0 -33
  583. package/dist/models/ForecasterDatastoresRequest.js +0 -49
  584. package/dist/models/ForecasterPairStatus.d.ts +0 -98
  585. package/dist/models/ForecasterStartRequest.d.ts +0 -58
  586. package/dist/models/ForecasterStartRequest.js +0 -60
  587. package/dist/models/GetInventory200Response.d.ts +0 -23
  588. package/dist/models/GetInventory200Response.js +0 -57
  589. package/dist/models/PutForecasterCredentials403Response.d.ts +0 -38
  590. package/dist/models/PutForecasterCredentials403Response.js +0 -50
  591. package/dist/models/RightsizingClusterListResponse.d.ts +0 -39
  592. package/dist/models/RightsizingClusterListResponse.js +0 -55
  593. package/dist/models/RightsizingCollectRequest.d.ts +0 -70
  594. package/dist/models/RightsizingCollectRequest.js +0 -63
  595. package/dist/models/RightsizingMetricStats.d.ts +0 -62
  596. package/dist/models/RightsizingMetricStats.js +0 -70
  597. package/dist/models/RightsizingReport.d.ts +0 -81
  598. package/dist/models/RightsizingReport.js +0 -83
  599. package/dist/models/RightsizingReportListResponse.d.ts +0 -39
  600. package/dist/models/RightsizingReportListResponse.js +0 -55
  601. package/dist/models/RightsizingReportSummary.d.ts +0 -74
  602. package/dist/models/RightsizingReportSummary.js +0 -78
  603. package/dist/models/RightsizingVMReport.d.ts +0 -53
  604. package/dist/models/RightsizingVMReport.js +0 -64
  605. package/dist/models/VMDevice.d.ts +0 -32
  606. package/dist/models/VMDevice.js +0 -48
  607. package/dist/models/VMDisk.d.ts +0 -68
  608. package/dist/models/VMIssue.d.ts +0 -56
  609. package/dist/models/VMIssue.js +0 -70
  610. package/dist/models/VMNIC.d.ts +0 -56
  611. package/dist/models/VmInspectionConcern.d.ts +0 -44
  612. package/dist/models/VmInspectionResults.d.ts +0 -33
  613. package/dist/models/VmInspectionResults.js +0 -49
  614. package/dist/models/VmInspectionStatus.d.ts +0 -61
  615. package/dist/models/VmInspectionStatus.js +0 -69
  616. package/docs/CollectorStartRequest.md +0 -43
  617. package/docs/DefaultApi.md +0 -3358
  618. package/docs/PutForecasterCredentials403Response.md +0 -36
  619. package/docs/RightsizingCollectRequest.md +0 -46
  620. package/docs/RightsizingMetricStats.md +0 -44
  621. package/docs/RightsizingReport.md +0 -50
  622. package/docs/RightsizingReportSummary.md +0 -49
  623. package/docs/RightsizingVMReport.md +0 -40
  624. package/docs/VmInspectionStatus.md +0 -40
  625. package/src/apis/DefaultApi.ts +0 -3820
  626. package/src/models/CollectorStartRequest.ts +0 -97
  627. package/src/models/ExportInventory400Response.ts +0 -65
  628. package/src/models/ExportInventory500Response.ts +0 -65
  629. package/src/models/ForecasterDatastoresRequest.ts +0 -73
  630. package/src/models/ForecasterStartRequest.ts +0 -113
  631. package/src/models/GetInventory200Response.ts +0 -76
  632. package/src/models/PutForecasterCredentials403Response.ts +0 -73
  633. package/src/models/RightsizingClusterListResponse.ts +0 -83
  634. package/src/models/RightsizingCollectRequest.ts +0 -123
  635. package/src/models/RightsizingMetricStats.ts +0 -111
  636. package/src/models/RightsizingReport.ts +0 -146
  637. package/src/models/RightsizingReportListResponse.ts +0 -83
  638. package/src/models/RightsizingReportSummary.ts +0 -129
  639. package/src/models/RightsizingVMReport.ts +0 -101
  640. package/src/models/VMDevice.ts +0 -65
  641. package/src/models/VMIssue.ts +0 -99
  642. package/src/models/VMNIC.ts +0 -97
  643. package/src/models/VmInspectionResults.ts +0 -73
  644. package/src/models/VmInspectionStatus.ts +0 -105
@@ -0,0 +1,240 @@
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: v2
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.InspectorApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
28
+ const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
29
+ const VddkProperties_js_1 = require("../models/VddkProperties.js");
30
+ /**
31
+ *
32
+ */
33
+ class InspectorApi extends runtime.BaseAPI {
34
+ /**
35
+ * Creates request options for getInspectorStatus without sending the request
36
+ */
37
+ getInspectorStatusRequestOpts(requestParameters) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const queryParameters = {};
40
+ if (requestParameters['includeVddk'] != null) {
41
+ queryParameters['includeVddk'] = requestParameters['includeVddk'];
42
+ }
43
+ const headerParameters = {};
44
+ let urlPath = `/inspector`;
45
+ return {
46
+ path: urlPath,
47
+ method: 'GET',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Get inspector status
55
+ */
56
+ getInspectorStatusRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
61
+ });
62
+ }
63
+ /**
64
+ * Get inspector status
65
+ */
66
+ getInspectorStatus() {
67
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
68
+ const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
69
+ return yield response.value();
70
+ });
71
+ }
72
+ /**
73
+ * Creates request options for getInspectorVddkStatus without sending the request
74
+ */
75
+ getInspectorVddkStatusRequestOpts() {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const queryParameters = {};
78
+ const headerParameters = {};
79
+ let urlPath = `/inspector/vddk`;
80
+ return {
81
+ path: urlPath,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ };
86
+ });
87
+ }
88
+ /**
89
+ * Get VDDK upload status
90
+ */
91
+ getInspectorVddkStatusRaw(initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
94
+ const response = yield this.request(requestOptions, initOverrides);
95
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
96
+ });
97
+ }
98
+ /**
99
+ * Get VDDK upload status
100
+ */
101
+ getInspectorVddkStatus(initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const response = yield this.getInspectorVddkStatusRaw(initOverrides);
104
+ return yield response.value();
105
+ });
106
+ }
107
+ /**
108
+ * Creates request options for putInspectorVddk without sending the request
109
+ */
110
+ putInspectorVddkRequestOpts(requestParameters) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ if (requestParameters['file'] == null) {
113
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
114
+ }
115
+ const queryParameters = {};
116
+ const headerParameters = {};
117
+ const consumes = [
118
+ { contentType: 'multipart/form-data' },
119
+ ];
120
+ // @ts-ignore: canConsumeForm may be unused
121
+ const canConsumeForm = runtime.canConsumeForm(consumes);
122
+ let formParams;
123
+ let useForm = false;
124
+ // use FormData to transmit files using content-type "multipart/form-data"
125
+ useForm = canConsumeForm;
126
+ if (useForm) {
127
+ formParams = new FormData();
128
+ }
129
+ else {
130
+ formParams = new URLSearchParams();
131
+ }
132
+ if (requestParameters['file'] != null) {
133
+ formParams.append('file', requestParameters['file']);
134
+ }
135
+ let urlPath = `/inspector/vddk`;
136
+ return {
137
+ path: urlPath,
138
+ method: 'PUT',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ body: formParams,
142
+ };
143
+ });
144
+ }
145
+ /**
146
+ * Upload VDDK tarball
147
+ */
148
+ putInspectorVddkRaw(requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
151
+ const response = yield this.request(requestOptions, initOverrides);
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
153
+ });
154
+ }
155
+ /**
156
+ * Upload VDDK tarball
157
+ */
158
+ putInspectorVddk(requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
161
+ return yield response.value();
162
+ });
163
+ }
164
+ /**
165
+ * Creates request options for startInspection without sending the request
166
+ */
167
+ startInspectionRequestOpts(requestParameters) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ if (requestParameters['startInspectionRequest'] == null) {
170
+ throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ let urlPath = `/inspector`;
176
+ return {
177
+ path: urlPath,
178
+ method: 'POST',
179
+ headers: headerParameters,
180
+ query: queryParameters,
181
+ body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
182
+ };
183
+ });
184
+ }
185
+ /**
186
+ * Start deep inspection for VMs
187
+ */
188
+ startInspectionRaw(requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
191
+ const response = yield this.request(requestOptions, initOverrides);
192
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
193
+ });
194
+ }
195
+ /**
196
+ * Start deep inspection for VMs
197
+ */
198
+ startInspection(requestParameters, initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ const response = yield this.startInspectionRaw(requestParameters, initOverrides);
201
+ return yield response.value();
202
+ });
203
+ }
204
+ /**
205
+ * Creates request options for stopInspection without sending the request
206
+ */
207
+ stopInspectionRequestOpts() {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ const queryParameters = {};
210
+ const headerParameters = {};
211
+ let urlPath = `/inspector`;
212
+ return {
213
+ path: urlPath,
214
+ method: 'DELETE',
215
+ headers: headerParameters,
216
+ query: queryParameters,
217
+ };
218
+ });
219
+ }
220
+ /**
221
+ * Stop inspector
222
+ */
223
+ stopInspectionRaw(initOverrides) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const requestOptions = yield this.stopInspectionRequestOpts();
226
+ const response = yield this.request(requestOptions, initOverrides);
227
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
228
+ });
229
+ }
230
+ /**
231
+ * Stop inspector
232
+ */
233
+ stopInspection(initOverrides) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ const response = yield this.stopInspectionRaw(initOverrides);
236
+ return yield response.value();
237
+ });
238
+ }
239
+ }
240
+ exports.InspectorApi = InspectorApi;
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import { type Inventory } from '../models/Inventory.js';
14
+ export interface GetInventoryRequest {
15
+ /**
16
+ * Collection ID
17
+ */
18
+ id: string;
19
+ }
20
+ /**
21
+ * InventoriesApi - interface
22
+ *
23
+ * @export
24
+ * @interface InventoriesApiInterface
25
+ */
26
+ export interface InventoriesApiInterface {
27
+ /**
28
+ * Creates request options for getInventory without sending the request
29
+ * @param {string} id Collection ID
30
+ * @throws {RequiredError}
31
+ * @memberof InventoriesApiInterface
32
+ */
33
+ getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts>;
34
+ /**
35
+ *
36
+ * @summary Get collected inventory for a collection
37
+ * @param {string} id Collection ID
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ * @memberof InventoriesApiInterface
41
+ */
42
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
43
+ /**
44
+ * Get collected inventory for a collection
45
+ */
46
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
47
+ /**
48
+ * Creates request options for getLatestInventory without sending the request
49
+ * @throws {RequiredError}
50
+ * @memberof InventoriesApiInterface
51
+ */
52
+ getLatestInventoryRequestOpts(): Promise<runtime.RequestOpts>;
53
+ /**
54
+ *
55
+ * @summary Get inventory from the latest collection
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ * @memberof InventoriesApiInterface
59
+ */
60
+ getLatestInventoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
61
+ /**
62
+ * Get inventory from the latest collection
63
+ */
64
+ getLatestInventory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
65
+ }
66
+ /**
67
+ *
68
+ */
69
+ export declare class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInterface {
70
+ /**
71
+ * Creates request options for getInventory without sending the request
72
+ */
73
+ getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts>;
74
+ /**
75
+ * Get collected inventory for a collection
76
+ */
77
+ getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
78
+ /**
79
+ * Get collected inventory for a collection
80
+ */
81
+ getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
82
+ /**
83
+ * Creates request options for getLatestInventory without sending the request
84
+ */
85
+ getLatestInventoryRequestOpts(): Promise<runtime.RequestOpts>;
86
+ /**
87
+ * Get inventory from the latest collection
88
+ */
89
+ getLatestInventoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
90
+ /**
91
+ * Get inventory from the latest collection
92
+ */
93
+ getLatestInventory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
94
+ }
@@ -0,0 +1,107 @@
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: v2
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.InventoriesApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const Inventory_js_1 = require("../models/Inventory.js");
28
+ /**
29
+ *
30
+ */
31
+ class InventoriesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for getInventory without sending the request
34
+ */
35
+ getInventoryRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['id'] == null) {
38
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInventory().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ let urlPath = `/collections/{id}/inventory`;
43
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
44
+ return {
45
+ path: urlPath,
46
+ method: 'GET',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ };
50
+ });
51
+ }
52
+ /**
53
+ * Get collected inventory for a collection
54
+ */
55
+ getInventoryRaw(requestParameters, initOverrides) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
58
+ const response = yield this.request(requestOptions, initOverrides);
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Inventory_js_1.InventoryFromJSON)(jsonValue));
60
+ });
61
+ }
62
+ /**
63
+ * Get collected inventory for a collection
64
+ */
65
+ getInventory(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.getInventoryRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for getLatestInventory without sending the request
73
+ */
74
+ getLatestInventoryRequestOpts() {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const queryParameters = {};
77
+ const headerParameters = {};
78
+ let urlPath = `/inventory`;
79
+ return {
80
+ path: urlPath,
81
+ method: 'GET',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ };
85
+ });
86
+ }
87
+ /**
88
+ * Get inventory from the latest collection
89
+ */
90
+ getLatestInventoryRaw(initOverrides) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const requestOptions = yield this.getLatestInventoryRequestOpts();
93
+ const response = yield this.request(requestOptions, initOverrides);
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Inventory_js_1.InventoryFromJSON)(jsonValue));
95
+ });
96
+ }
97
+ /**
98
+ * Get inventory from the latest collection
99
+ */
100
+ getLatestInventory(initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const response = yield this.getLatestInventoryRaw(initOverrides);
103
+ return yield response.value();
104
+ });
105
+ }
106
+ }
107
+ exports.InventoriesApi = InventoriesApi;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import { type RightsizingClusterResponse } from '../models/RightsizingClusterResponse.js';
14
+ import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
15
+ export interface GetClusterUtilizationRequest {
16
+ /**
17
+ * Collection ID
18
+ */
19
+ id: string;
20
+ /**
21
+ * vSphere MoRef (e.g. "domain-c123") or generated cluster ID
22
+ */
23
+ clusterId: string;
24
+ }
25
+ export interface GetLatestVMUtilizationRequest {
26
+ /**
27
+ * VirtualMachine MoRef ID
28
+ */
29
+ vmId: string;
30
+ }
31
+ /**
32
+ * RightsizingApi - interface
33
+ *
34
+ * @export
35
+ * @interface RightsizingApiInterface
36
+ */
37
+ export interface RightsizingApiInterface {
38
+ /**
39
+ * Creates request options for getClusterUtilization without sending the request
40
+ * @param {string} id Collection ID
41
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID
42
+ * @throws {RequiredError}
43
+ * @memberof RightsizingApiInterface
44
+ */
45
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
46
+ /**
47
+ *
48
+ * @summary Get latest cluster utilization by cluster ID
49
+ * @param {string} id Collection ID
50
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ * @memberof RightsizingApiInterface
54
+ */
55
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
56
+ /**
57
+ * Get latest cluster utilization by cluster ID
58
+ */
59
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
60
+ /**
61
+ * Creates request options for getLatestVMUtilization without sending the request
62
+ * @param {string} vmId VirtualMachine MoRef ID
63
+ * @throws {RequiredError}
64
+ * @memberof RightsizingApiInterface
65
+ */
66
+ getLatestVMUtilizationRequestOpts(requestParameters: GetLatestVMUtilizationRequest): Promise<runtime.RequestOpts>;
67
+ /**
68
+ *
69
+ * @summary Get utilization breakdown for a specific VM from the latest collection
70
+ * @param {string} vmId VirtualMachine MoRef ID
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ * @memberof RightsizingApiInterface
74
+ */
75
+ getLatestVMUtilizationRaw(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
76
+ /**
77
+ * Get utilization breakdown for a specific VM from the latest collection
78
+ */
79
+ getLatestVMUtilization(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
80
+ }
81
+ /**
82
+ *
83
+ */
84
+ export declare class RightsizingApi extends runtime.BaseAPI implements RightsizingApiInterface {
85
+ /**
86
+ * Creates request options for getClusterUtilization without sending the request
87
+ */
88
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * Get latest cluster utilization by cluster ID
91
+ */
92
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
93
+ /**
94
+ * Get latest cluster utilization by cluster ID
95
+ */
96
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
97
+ /**
98
+ * Creates request options for getLatestVMUtilization without sending the request
99
+ */
100
+ getLatestVMUtilizationRequestOpts(requestParameters: GetLatestVMUtilizationRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * Get utilization breakdown for a specific VM from the latest collection
103
+ */
104
+ getLatestVMUtilizationRaw(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
105
+ /**
106
+ * Get utilization breakdown for a specific VM from the latest collection
107
+ */
108
+ getLatestVMUtilization(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
109
+ }
@@ -0,0 +1,116 @@
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: v2
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.RightsizingApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
28
+ const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
29
+ /**
30
+ *
31
+ */
32
+ class RightsizingApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for getClusterUtilization without sending the request
35
+ */
36
+ getClusterUtilizationRequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['id'] == null) {
39
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getClusterUtilization().');
40
+ }
41
+ if (requestParameters['clusterId'] == null) {
42
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ let urlPath = `/collections/{id}/clusters/{clusterId}/utilization`;
47
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
48
+ urlPath = urlPath.replace('{clusterId}', encodeURIComponent(String(requestParameters['clusterId'])));
49
+ return {
50
+ path: urlPath,
51
+ method: 'GET',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * Get latest cluster utilization by cluster ID
59
+ */
60
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
63
+ const response = yield this.request(requestOptions, initOverrides);
64
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
65
+ });
66
+ }
67
+ /**
68
+ * Get latest cluster utilization by cluster ID
69
+ */
70
+ getClusterUtilization(requestParameters, initOverrides) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
73
+ return yield response.value();
74
+ });
75
+ }
76
+ /**
77
+ * Creates request options for getLatestVMUtilization without sending the request
78
+ */
79
+ getLatestVMUtilizationRequestOpts(requestParameters) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ if (requestParameters['vmId'] == null) {
82
+ throw new runtime.RequiredError('vmId', 'Required parameter "vmId" was null or undefined when calling getLatestVMUtilization().');
83
+ }
84
+ const queryParameters = {};
85
+ const headerParameters = {};
86
+ let urlPath = `/virtualmachines/{vmId}/utilization`;
87
+ urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
88
+ return {
89
+ path: urlPath,
90
+ method: 'GET',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ };
94
+ });
95
+ }
96
+ /**
97
+ * Get utilization breakdown for a specific VM from the latest collection
98
+ */
99
+ getLatestVMUtilizationRaw(requestParameters, initOverrides) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const requestOptions = yield this.getLatestVMUtilizationRequestOpts(requestParameters);
102
+ const response = yield this.request(requestOptions, initOverrides);
103
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
104
+ });
105
+ }
106
+ /**
107
+ * Get utilization breakdown for a specific VM from the latest collection
108
+ */
109
+ getLatestVMUtilization(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.getLatestVMUtilizationRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ }
116
+ exports.RightsizingApi = RightsizingApi;