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