@openshift-migration-advisor/agent-sdk 0.19.0 → 0.20.1-bf086d122d0f

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