@openshift-migration-advisor/agent-sdk 0.12.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/.openapi-generator/FILES +74 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +75 -10
  4. package/dist/apis/DefaultApi.d.ts +1102 -63
  5. package/dist/apis/DefaultApi.js +1333 -189
  6. package/dist/esm/apis/DefaultApi.d.ts +1102 -63
  7. package/dist/esm/apis/DefaultApi.js +1309 -165
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  17. package/dist/esm/models/BenchmarkRun.js +85 -0
  18. package/dist/esm/models/CapabilityStatus.d.ts +33 -0
  19. package/dist/esm/models/CapabilityStatus.js +44 -0
  20. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
  21. package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
  22. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  23. package/dist/esm/models/ClusterFeatures.js +54 -0
  24. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  25. package/dist/esm/models/ClusterUtilization.js +67 -0
  26. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  27. package/dist/esm/models/CollectorStartRequest.js +4 -0
  28. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  29. package/dist/esm/models/CreateGroupRequest.js +0 -2
  30. package/dist/esm/models/CredentialStatus.d.ts +44 -0
  31. package/dist/esm/models/CredentialStatus.js +51 -0
  32. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  33. package/dist/esm/models/DatastoreDetail.js +74 -0
  34. package/dist/esm/models/DatastorePair.d.ts +50 -0
  35. package/dist/esm/models/DatastorePair.js +53 -0
  36. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  37. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  38. package/dist/esm/models/EstimateRange.d.ts +44 -0
  39. package/dist/esm/models/EstimateRange.js +45 -0
  40. package/dist/esm/models/ForecastStats.d.ts +87 -0
  41. package/dist/esm/models/ForecastStats.js +64 -0
  42. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  43. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  44. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  45. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  46. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  47. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  48. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  49. package/dist/esm/models/ForecasterStatus.js +53 -0
  50. package/dist/esm/models/Group.d.ts +0 -6
  51. package/dist/esm/models/Group.js +0 -2
  52. package/dist/esm/models/GroupResponse.d.ts +7 -0
  53. package/dist/esm/models/GroupResponse.js +3 -0
  54. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  55. package/dist/esm/models/InspectorStatus.js +1 -10
  56. package/dist/esm/models/Inventory.d.ts +7 -1
  57. package/dist/esm/models/Inventory.js +5 -3
  58. package/dist/esm/models/InventoryData.d.ts +14 -0
  59. package/dist/esm/models/InventoryData.js +6 -0
  60. package/dist/esm/models/OperationCapability.d.ts +38 -0
  61. package/dist/esm/models/OperationCapability.js +45 -0
  62. package/dist/esm/models/PairCapability.d.ts +60 -0
  63. package/dist/esm/models/PairCapability.js +64 -0
  64. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  65. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  66. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  67. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  68. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  69. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  70. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  71. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  72. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  73. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  74. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  75. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  76. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  77. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  78. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  79. package/dist/esm/models/RightsizingReport.js +76 -0
  80. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  81. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  82. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  83. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  84. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  85. package/dist/esm/models/RightsizingVMReport.js +57 -0
  86. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  87. package/dist/esm/models/StartInspectionRequest.js +3 -0
  88. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  89. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  90. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  91. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  92. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  93. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  94. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  95. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  96. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  97. package/dist/esm/models/VMLabelsResponse.js +47 -0
  98. package/dist/esm/models/VMNIC.d.ts +12 -0
  99. package/dist/esm/models/VMNIC.js +4 -0
  100. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  101. package/dist/esm/models/VcenterCredentials.js +4 -0
  102. package/dist/esm/models/VirtualMachine.d.ts +50 -2
  103. package/dist/esm/models/VirtualMachine.js +18 -2
  104. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  105. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  106. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  107. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  108. package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
  109. package/dist/esm/models/VmInspectionStatus.js +4 -0
  110. package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
  111. package/dist/esm/models/VmUtilizationDetails.js +99 -0
  112. package/dist/esm/models/index.d.ts +37 -0
  113. package/dist/esm/models/index.js +37 -0
  114. package/dist/esm/runtime.js +2 -1
  115. package/dist/models/AgentStatus.d.ts +1 -1
  116. package/dist/models/AgentStatus.js +3 -3
  117. package/dist/models/ApplicationListResponse.d.ts +33 -0
  118. package/dist/models/ApplicationListResponse.js +51 -0
  119. package/dist/models/ApplicationOverview.d.ts +51 -0
  120. package/dist/models/ApplicationOverview.js +63 -0
  121. package/dist/models/ApplicationVM.d.ts +38 -0
  122. package/dist/models/ApplicationVM.js +54 -0
  123. package/dist/models/BenchmarkRun.d.ts +104 -0
  124. package/dist/models/BenchmarkRun.js +92 -0
  125. package/dist/models/CapabilityStatus.d.ts +33 -0
  126. package/dist/models/CapabilityStatus.js +51 -0
  127. package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
  128. package/dist/models/CapabilityStatusCapabilities.js +59 -0
  129. package/dist/models/ClusterFeatures.d.ts +54 -0
  130. package/dist/models/ClusterFeatures.js +62 -0
  131. package/dist/models/ClusterUtilization.d.ts +68 -0
  132. package/dist/models/ClusterUtilization.js +74 -0
  133. package/dist/models/CollectorStartRequest.d.ts +12 -0
  134. package/dist/models/CollectorStartRequest.js +4 -0
  135. package/dist/models/CreateGroupRequest.d.ts +0 -6
  136. package/dist/models/CreateGroupRequest.js +0 -2
  137. package/dist/models/CredentialStatus.d.ts +44 -0
  138. package/dist/models/CredentialStatus.js +58 -0
  139. package/dist/models/DatastoreDetail.d.ts +90 -0
  140. package/dist/models/DatastoreDetail.js +82 -0
  141. package/dist/models/DatastorePair.d.ts +50 -0
  142. package/dist/models/DatastorePair.js +60 -0
  143. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  144. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  145. package/dist/models/EstimateRange.d.ts +44 -0
  146. package/dist/models/EstimateRange.js +52 -0
  147. package/dist/models/ForecastStats.d.ts +87 -0
  148. package/dist/models/ForecastStats.js +71 -0
  149. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  150. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  151. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  152. package/dist/models/ForecasterPairStatus.js +90 -0
  153. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  154. package/dist/models/ForecasterStartRequest.js +60 -0
  155. package/dist/models/ForecasterStatus.d.ts +47 -0
  156. package/dist/models/ForecasterStatus.js +61 -0
  157. package/dist/models/Group.d.ts +0 -6
  158. package/dist/models/Group.js +0 -2
  159. package/dist/models/GroupResponse.d.ts +7 -0
  160. package/dist/models/GroupResponse.js +3 -0
  161. package/dist/models/InspectorStatus.d.ts +0 -17
  162. package/dist/models/InspectorStatus.js +1 -10
  163. package/dist/models/Inventory.d.ts +7 -1
  164. package/dist/models/Inventory.js +5 -3
  165. package/dist/models/InventoryData.d.ts +14 -0
  166. package/dist/models/InventoryData.js +6 -0
  167. package/dist/models/OperationCapability.d.ts +38 -0
  168. package/dist/models/OperationCapability.js +52 -0
  169. package/dist/models/PairCapability.d.ts +60 -0
  170. package/dist/models/PairCapability.js +72 -0
  171. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  172. package/dist/models/PairCapabilityRequest.js +54 -0
  173. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  174. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  175. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  176. package/dist/models/RightsizingClusterListResponse.js +55 -0
  177. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  178. package/dist/models/RightsizingClusterResponse.js +55 -0
  179. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  180. package/dist/models/RightsizingClusterUtilization.js +102 -0
  181. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  182. package/dist/models/RightsizingCollectRequest.js +63 -0
  183. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  184. package/dist/models/RightsizingMetricStats.js +70 -0
  185. package/dist/models/RightsizingReport.d.ts +81 -0
  186. package/dist/models/RightsizingReport.js +83 -0
  187. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  188. package/dist/models/RightsizingReportListResponse.js +55 -0
  189. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  190. package/dist/models/RightsizingReportSummary.js +78 -0
  191. package/dist/models/RightsizingVMReport.d.ts +53 -0
  192. package/dist/models/RightsizingVMReport.js +64 -0
  193. package/dist/models/StartInspectionRequest.d.ts +8 -1
  194. package/dist/models/StartInspectionRequest.js +3 -0
  195. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  196. package/dist/models/StopForecasterPair202Response.js +57 -0
  197. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  198. package/dist/models/UpdateGroupRequest.js +0 -2
  199. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  200. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  201. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  202. package/dist/models/VMFilterOptionsResponse.js +66 -0
  203. package/dist/models/VMLabelsResponse.d.ts +38 -0
  204. package/dist/models/VMLabelsResponse.js +54 -0
  205. package/dist/models/VMNIC.d.ts +12 -0
  206. package/dist/models/VMNIC.js +4 -0
  207. package/dist/models/VcenterCredentials.d.ts +12 -0
  208. package/dist/models/VcenterCredentials.js +4 -0
  209. package/dist/models/VirtualMachine.d.ts +50 -2
  210. package/dist/models/VirtualMachine.js +18 -2
  211. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  212. package/dist/models/VirtualMachineDetail.js +7 -0
  213. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  214. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  215. package/dist/models/VmInspectionStatus.d.ts +6 -0
  216. package/dist/models/VmInspectionStatus.js +4 -0
  217. package/dist/models/VmUtilizationDetails.d.ts +116 -0
  218. package/dist/models/VmUtilizationDetails.js +106 -0
  219. package/dist/models/index.d.ts +37 -0
  220. package/dist/models/index.js +37 -0
  221. package/dist/runtime.js +2 -1
  222. package/docs/AgentStatus.md +2 -2
  223. package/docs/ApplicationListResponse.md +34 -0
  224. package/docs/ApplicationOverview.md +40 -0
  225. package/docs/ApplicationVM.md +36 -0
  226. package/docs/BenchmarkRun.md +58 -0
  227. package/docs/CapabilityStatus.md +34 -0
  228. package/docs/CapabilityStatusCapabilities.md +38 -0
  229. package/docs/ClusterFeatures.md +38 -0
  230. package/docs/ClusterUtilization.md +46 -0
  231. package/docs/CollectorStartRequest.md +4 -0
  232. package/docs/CreateGroupRequest.md +0 -2
  233. package/docs/CredentialStatus.md +38 -0
  234. package/docs/DatastoreDetail.md +50 -0
  235. package/docs/DatastorePair.md +40 -0
  236. package/docs/DefaultApi.md +2170 -304
  237. package/docs/DeleteLabelGloballyResponse.md +36 -0
  238. package/docs/EstimateRange.md +39 -0
  239. package/docs/ForecastStats.md +52 -0
  240. package/docs/ForecasterDatastoresRequest.md +34 -0
  241. package/docs/ForecasterPairStatus.md +52 -0
  242. package/docs/ForecasterStartRequest.md +42 -0
  243. package/docs/ForecasterStatus.md +36 -0
  244. package/docs/GetInventory200Response.md +4 -2
  245. package/docs/Group.md +0 -2
  246. package/docs/GroupResponse.md +2 -0
  247. package/docs/InspectorStatus.md +0 -4
  248. package/docs/Inventory.md +4 -2
  249. package/docs/InventoryData.md +4 -0
  250. package/docs/OperationCapability.md +36 -0
  251. package/docs/PairCapability.md +40 -0
  252. package/docs/PairCapabilityRequest.md +36 -0
  253. package/docs/PutForecasterCredentials403Response.md +36 -0
  254. package/docs/RightsizingClusterListResponse.md +36 -0
  255. package/docs/RightsizingClusterResponse.md +36 -0
  256. package/docs/RightsizingClusterUtilization.md +60 -0
  257. package/docs/RightsizingCollectRequest.md +46 -0
  258. package/docs/RightsizingMetricStats.md +44 -0
  259. package/docs/RightsizingReport.md +50 -0
  260. package/docs/RightsizingReportListResponse.md +36 -0
  261. package/docs/RightsizingReportSummary.md +49 -0
  262. package/docs/RightsizingVMReport.md +40 -0
  263. package/docs/StartInspectionRequest.md +3 -1
  264. package/docs/StopForecasterPair202Response.md +36 -0
  265. package/docs/UpdateGroupRequest.md +0 -2
  266. package/docs/UpdateLabelVMsRequest.md +36 -0
  267. package/docs/VMFilterOptionsResponse.md +42 -0
  268. package/docs/VMLabelsResponse.md +36 -0
  269. package/docs/VMNIC.md +4 -0
  270. package/docs/VcenterCredentials.md +4 -0
  271. package/docs/VirtualMachine.md +18 -2
  272. package/docs/VirtualMachineDetail.md +6 -0
  273. package/docs/VirtualMachineUpdateRequest.md +36 -0
  274. package/docs/VmInspectionStatus.md +2 -0
  275. package/docs/VmUtilizationDetails.md +62 -0
  276. package/package.json +1 -1
  277. package/src/apis/DefaultApi.ts +2566 -430
  278. package/src/models/AgentStatus.ts +4 -4
  279. package/src/models/ApplicationListResponse.ts +74 -0
  280. package/src/models/ApplicationOverview.ts +101 -0
  281. package/src/models/ApplicationVM.ts +75 -0
  282. package/src/models/BenchmarkRun.ts +171 -0
  283. package/src/models/CapabilityStatus.ts +74 -0
  284. package/src/models/CapabilityStatusCapabilities.ts +92 -0
  285. package/src/models/ClusterFeatures.ts +94 -0
  286. package/src/models/ClusterUtilization.ts +120 -0
  287. package/src/models/CollectorStartRequest.ts +16 -0
  288. package/src/models/CreateGroupRequest.ts +0 -8
  289. package/src/models/CredentialStatus.ts +84 -0
  290. package/src/models/DatastoreDetail.ts +146 -0
  291. package/src/models/DatastorePair.ts +92 -0
  292. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  293. package/src/models/EstimateRange.ts +81 -0
  294. package/src/models/ForecastStats.ts +147 -0
  295. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  296. package/src/models/ForecasterPairStatus.ts +158 -0
  297. package/src/models/ForecasterStartRequest.ts +113 -0
  298. package/src/models/ForecasterStatus.ts +93 -0
  299. package/src/models/Group.ts +0 -8
  300. package/src/models/GroupResponse.ts +15 -0
  301. package/src/models/InspectorStatus.ts +1 -28
  302. package/src/models/Inventory.ts +12 -4
  303. package/src/models/InventoryData.ts +30 -0
  304. package/src/models/OperationCapability.ts +74 -0
  305. package/src/models/PairCapability.ts +106 -0
  306. package/src/models/PairCapabilityRequest.ts +89 -0
  307. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  308. package/src/models/RightsizingClusterListResponse.ts +83 -0
  309. package/src/models/RightsizingClusterResponse.ts +83 -0
  310. package/src/models/RightsizingClusterUtilization.ts +185 -0
  311. package/src/models/RightsizingCollectRequest.ts +123 -0
  312. package/src/models/RightsizingMetricStats.ts +111 -0
  313. package/src/models/RightsizingReport.ts +146 -0
  314. package/src/models/RightsizingReportListResponse.ts +83 -0
  315. package/src/models/RightsizingReportSummary.ts +129 -0
  316. package/src/models/RightsizingVMReport.ts +101 -0
  317. package/src/models/StartInspectionRequest.ts +17 -1
  318. package/src/models/StopForecasterPair202Response.ts +83 -0
  319. package/src/models/UpdateGroupRequest.ts +0 -8
  320. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  321. package/src/models/VMFilterOptionsResponse.ts +102 -0
  322. package/src/models/VMLabelsResponse.ts +75 -0
  323. package/src/models/VMNIC.ts +16 -0
  324. package/src/models/VcenterCredentials.ts +16 -0
  325. package/src/models/VirtualMachine.ts +68 -4
  326. package/src/models/VirtualMachineDetail.ts +31 -0
  327. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  328. package/src/models/VmInspectionStatus.ts +9 -0
  329. package/src/models/VmUtilizationDetails.ts +192 -0
  330. package/src/models/index.ts +37 -0
  331. package/src/runtime.ts +1 -2
@@ -20,6 +20,13 @@ import {
20
20
  GroupToJSON,
21
21
  GroupToJSONTyped,
22
22
  } from './Group.js';
23
+ import type { Inventory } from './Inventory.js';
24
+ import {
25
+ InventoryFromJSON,
26
+ InventoryFromJSONTyped,
27
+ InventoryToJSON,
28
+ InventoryToJSONTyped,
29
+ } from './Inventory.js';
23
30
  import type { VirtualMachine } from './VirtualMachine.js';
24
31
  import {
25
32
  VirtualMachineFromJSON,
@@ -40,6 +47,12 @@ export interface GroupResponse {
40
47
  * @memberof GroupResponse
41
48
  */
42
49
  group: Group;
50
+ /**
51
+ *
52
+ * @type {Inventory}
53
+ * @memberof GroupResponse
54
+ */
55
+ inventory?: Inventory;
43
56
  /**
44
57
  *
45
58
  * @type {Array<VirtualMachine>}
@@ -89,6 +102,7 @@ export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
89
102
  return {
90
103
 
91
104
  'group': GroupFromJSON(json['group']),
105
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
92
106
  'vms': ((json['vms'] as Array<any>).map(VirtualMachineFromJSON)),
93
107
  'total': json['total'],
94
108
  'page': json['page'],
@@ -108,6 +122,7 @@ export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDis
108
122
  return {
109
123
 
110
124
  'group': GroupToJSON(value['group']),
125
+ 'inventory': InventoryToJSON(value['inventory']),
111
126
  'vms': ((value['vms'] as Array<any>).map(VirtualMachineToJSON)),
112
127
  'total': value['total'],
113
128
  'page': value['page'],
@@ -20,13 +20,6 @@ import {
20
20
  VddkPropertiesToJSON,
21
21
  VddkPropertiesToJSONTyped,
22
22
  } from './VddkProperties.js';
23
- import type { VcenterCredentials } from './VcenterCredentials.js';
24
- import {
25
- VcenterCredentialsFromJSON,
26
- VcenterCredentialsFromJSONTyped,
27
- VcenterCredentialsToJSON,
28
- VcenterCredentialsToJSONTyped,
29
- } from './VcenterCredentials.js';
30
23
 
31
24
  /**
32
25
  *
@@ -40,24 +33,12 @@ export interface InspectorStatus {
40
33
  * @memberof InspectorStatus
41
34
  */
42
35
  state: InspectorStatusStateEnum;
43
- /**
44
- *
45
- * @type {VcenterCredentials}
46
- * @memberof InspectorStatus
47
- */
48
- credentials?: VcenterCredentials;
49
36
  /**
50
37
  *
51
38
  * @type {VddkProperties}
52
39
  * @memberof InspectorStatus
53
40
  */
54
41
  vddk?: VddkProperties;
55
- /**
56
- * Error message when state is error
57
- * @type {string}
58
- * @memberof InspectorStatus
59
- */
60
- error?: string;
61
42
  }
62
43
 
63
44
 
@@ -66,11 +47,7 @@ export interface InspectorStatus {
66
47
  */
67
48
  export const InspectorStatusStateEnum = {
68
49
  InspectorStatusStateReady: 'ready',
69
- InspectorStatusStateInitiating: 'Initiating',
70
- InspectorStatusStateRunning: 'running',
71
- InspectorStatusStateCanceled: 'canceled',
72
- InspectorStatusStateCompleted: 'completed',
73
- InspectorStatusStateError: 'error'
50
+ InspectorStatusStateRunning: 'running'
74
51
  } as const;
75
52
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
76
53
 
@@ -94,9 +71,7 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
94
71
  return {
95
72
 
96
73
  'state': json['state'],
97
- 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
98
74
  'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
99
- 'error': json['error'] == null ? undefined : json['error'],
100
75
  };
101
76
  }
102
77
 
@@ -112,9 +87,7 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
112
87
  return {
113
88
 
114
89
  'state': value['state'],
115
- 'credentials': VcenterCredentialsToJSON(value['credentials']),
116
90
  'vddk': VddkPropertiesToJSON(value['vddk']),
117
- 'error': value['error'],
118
91
  };
119
92
  }
120
93
 
@@ -32,7 +32,13 @@ export interface Inventory {
32
32
  * @type {string}
33
33
  * @memberof Inventory
34
34
  */
35
- vcenterId: string;
35
+ vcenter_id: string;
36
+ /**
37
+ * Version of the vCenter api. For example "8.0.3.0"
38
+ * @type {string}
39
+ * @memberof Inventory
40
+ */
41
+ vcenter_version?: string;
36
42
  /**
37
43
  * Map of cluster names to their inventory data
38
44
  * @type {{ [key: string]: InventoryData; }}
@@ -51,7 +57,7 @@ export interface Inventory {
51
57
  * Check if a given object implements the Inventory interface.
52
58
  */
53
59
  export function instanceOfInventory(value: object): value is Inventory {
54
- if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
60
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
55
61
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
56
62
  return true;
57
63
  }
@@ -66,7 +72,8 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
72
  }
67
73
  return {
68
74
 
69
- 'vcenterId': json['vcenter_id'],
75
+ 'vcenter_id': json['vcenter_id'],
76
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
70
77
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
71
78
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
72
79
  };
@@ -83,7 +90,8 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
83
90
 
84
91
  return {
85
92
 
86
- 'vcenter_id': value['vcenterId'],
93
+ 'vcenter_id': value['vcenter_id'],
94
+ 'vcenter_version': value['vcenter_version'],
87
95
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
96
  'vcenter': InventoryDataToJSON(value['vcenter']),
89
97
  };
@@ -27,6 +27,13 @@ import {
27
27
  InfraToJSON,
28
28
  InfraToJSONTyped,
29
29
  } from './Infra.js';
30
+ import type { ClusterUtilization } from './ClusterUtilization.js';
31
+ import {
32
+ ClusterUtilizationFromJSON,
33
+ ClusterUtilizationFromJSONTyped,
34
+ ClusterUtilizationToJSON,
35
+ ClusterUtilizationToJSONTyped,
36
+ } from './ClusterUtilization.js';
30
37
  import type { VMs } from './VMs.js';
31
38
  import {
32
39
  VMsFromJSON,
@@ -34,6 +41,13 @@ import {
34
41
  VMsToJSON,
35
42
  VMsToJSONTyped,
36
43
  } from './VMs.js';
44
+ import type { ClusterFeatures } from './ClusterFeatures.js';
45
+ import {
46
+ ClusterFeaturesFromJSON,
47
+ ClusterFeaturesFromJSONTyped,
48
+ ClusterFeaturesToJSON,
49
+ ClusterFeaturesToJSONTyped,
50
+ } from './ClusterFeatures.js';
37
51
 
38
52
  /**
39
53
  *
@@ -47,6 +61,18 @@ export interface InventoryData {
47
61
  * @memberof InventoryData
48
62
  */
49
63
  vcenter?: VCenter;
64
+ /**
65
+ *
66
+ * @type {ClusterFeatures}
67
+ * @memberof InventoryData
68
+ */
69
+ clusterFeatures?: ClusterFeatures;
70
+ /**
71
+ *
72
+ * @type {ClusterUtilization}
73
+ * @memberof InventoryData
74
+ */
75
+ clusterUtilization?: ClusterUtilization;
50
76
  /**
51
77
  *
52
78
  * @type {VMs}
@@ -81,6 +107,8 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
81
107
  return {
82
108
 
83
109
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
110
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
111
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
84
112
  'vms': VMsFromJSON(json['vms']),
85
113
  'infra': InfraFromJSON(json['infra']),
86
114
  };
@@ -98,6 +126,8 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
98
126
  return {
99
127
 
100
128
  'vcenter': VCenterToJSON(value['vcenter']),
129
+ 'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
130
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
101
131
  'vms': VMsToJSON(value['vms']),
102
132
  'infra': InfraToJSON(value['infra']),
103
133
  };
@@ -0,0 +1,74 @@
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
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OperationCapability
20
+ */
21
+ export interface OperationCapability {
22
+ /**
23
+ * Whether stored credentials have sufficient privileges
24
+ * @type {boolean}
25
+ * @memberof OperationCapability
26
+ */
27
+ enabled: boolean;
28
+ /**
29
+ * Specific vSphere privileges that are missing
30
+ * @type {Array<string>}
31
+ * @memberof OperationCapability
32
+ */
33
+ missingPrivileges?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the OperationCapability interface.
38
+ */
39
+ export function instanceOfOperationCapability(value: object): value is OperationCapability {
40
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function OperationCapabilityFromJSON(json: any): OperationCapability {
45
+ return OperationCapabilityFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function OperationCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationCapability {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'enabled': json['enabled'],
55
+ 'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
56
+ };
57
+ }
58
+
59
+ export function OperationCapabilityToJSON(json: any): OperationCapability {
60
+ return OperationCapabilityToJSONTyped(json, false);
61
+ }
62
+
63
+ export function OperationCapabilityToJSONTyped(value?: OperationCapability | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'enabled': value['enabled'],
71
+ 'missingPrivileges': value['missingPrivileges'],
72
+ };
73
+ }
74
+
@@ -0,0 +1,106 @@
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
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PairCapability
20
+ */
21
+ export interface PairCapability {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PairCapability
26
+ */
27
+ pairName: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PairCapability
32
+ */
33
+ sourceDatastore: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PairCapability
38
+ */
39
+ targetDatastore: string;
40
+ /**
41
+ * Feasible offload methods for this source-target pair
42
+ * @type {Array<PairCapabilityCapabilitiesEnum>}
43
+ * @memberof PairCapability
44
+ */
45
+ capabilities: Array<PairCapabilityCapabilitiesEnum>;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const PairCapabilityCapabilitiesEnum = {
53
+ CopyOffload: 'copy-offload',
54
+ Xcopy: 'xcopy',
55
+ Rdm: 'rdm',
56
+ Vvol: 'vvol'
57
+ } as const;
58
+ export type PairCapabilityCapabilitiesEnum = typeof PairCapabilityCapabilitiesEnum[keyof typeof PairCapabilityCapabilitiesEnum];
59
+
60
+
61
+ /**
62
+ * Check if a given object implements the PairCapability interface.
63
+ */
64
+ export function instanceOfPairCapability(value: object): value is PairCapability {
65
+ if (!('pairName' in value) || value['pairName'] === undefined) return false;
66
+ if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined) return false;
67
+ if (!('targetDatastore' in value) || value['targetDatastore'] === undefined) return false;
68
+ if (!('capabilities' in value) || value['capabilities'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function PairCapabilityFromJSON(json: any): PairCapability {
73
+ return PairCapabilityFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function PairCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapability {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'pairName': json['pairName'],
83
+ 'sourceDatastore': json['sourceDatastore'],
84
+ 'targetDatastore': json['targetDatastore'],
85
+ 'capabilities': json['capabilities'],
86
+ };
87
+ }
88
+
89
+ export function PairCapabilityToJSON(json: any): PairCapability {
90
+ return PairCapabilityToJSONTyped(json, false);
91
+ }
92
+
93
+ export function PairCapabilityToJSONTyped(value?: PairCapability | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'pairName': value['pairName'],
101
+ 'sourceDatastore': value['sourceDatastore'],
102
+ 'targetDatastore': value['targetDatastore'],
103
+ 'capabilities': value['capabilities'],
104
+ };
105
+ }
106
+
@@ -0,0 +1,89 @@
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
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { VcenterCredentials } from './VcenterCredentials.js';
17
+ import {
18
+ VcenterCredentialsFromJSON,
19
+ VcenterCredentialsFromJSONTyped,
20
+ VcenterCredentialsToJSON,
21
+ VcenterCredentialsToJSONTyped,
22
+ } from './VcenterCredentials.js';
23
+ import type { DatastorePair } from './DatastorePair.js';
24
+ import {
25
+ DatastorePairFromJSON,
26
+ DatastorePairFromJSONTyped,
27
+ DatastorePairToJSON,
28
+ DatastorePairToJSONTyped,
29
+ } from './DatastorePair.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PairCapabilityRequest
35
+ */
36
+ export interface PairCapabilityRequest {
37
+ /**
38
+ *
39
+ * @type {VcenterCredentials}
40
+ * @memberof PairCapabilityRequest
41
+ */
42
+ credentials?: VcenterCredentials;
43
+ /**
44
+ *
45
+ * @type {Array<DatastorePair>}
46
+ * @memberof PairCapabilityRequest
47
+ */
48
+ pairs: Array<DatastorePair>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PairCapabilityRequest interface.
53
+ */
54
+ export function instanceOfPairCapabilityRequest(value: object): value is PairCapabilityRequest {
55
+ if (!('pairs' in value) || value['pairs'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function PairCapabilityRequestFromJSON(json: any): PairCapabilityRequest {
60
+ return PairCapabilityRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function PairCapabilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapabilityRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
70
+ 'pairs': ((json['pairs'] as Array<any>).map(DatastorePairFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function PairCapabilityRequestToJSON(json: any): PairCapabilityRequest {
75
+ return PairCapabilityRequestToJSONTyped(json, false);
76
+ }
77
+
78
+ export function PairCapabilityRequestToJSONTyped(value?: PairCapabilityRequest | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
86
+ 'pairs': ((value['pairs'] as Array<any>).map(DatastorePairToJSON)),
87
+ };
88
+ }
89
+
@@ -0,0 +1,73 @@
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
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PutForecasterCredentials403Response
20
+ */
21
+ export interface PutForecasterCredentials403Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutForecasterCredentials403Response
26
+ */
27
+ error?: string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof PutForecasterCredentials403Response
32
+ */
33
+ missingPrivileges?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PutForecasterCredentials403Response interface.
38
+ */
39
+ export function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response {
40
+ return true;
41
+ }
42
+
43
+ export function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response {
44
+ return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'error': json['error'] == null ? undefined : json['error'],
54
+ 'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
55
+ };
56
+ }
57
+
58
+ export function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response {
59
+ return PutForecasterCredentials403ResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'error': value['error'],
70
+ 'missingPrivileges': value['missingPrivileges'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,83 @@
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
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
17
+ import {
18
+ RightsizingClusterUtilizationFromJSON,
19
+ RightsizingClusterUtilizationFromJSONTyped,
20
+ RightsizingClusterUtilizationToJSON,
21
+ RightsizingClusterUtilizationToJSONTyped,
22
+ } from './RightsizingClusterUtilization.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingClusterListResponse
28
+ */
29
+ export interface RightsizingClusterListResponse {
30
+ /**
31
+ * The report ID this data was aggregated from
32
+ * @type {string}
33
+ * @memberof RightsizingClusterListResponse
34
+ */
35
+ report_id: string;
36
+ /**
37
+ *
38
+ * @type {Array<RightsizingClusterUtilization>}
39
+ * @memberof RightsizingClusterListResponse
40
+ */
41
+ clusters: Array<RightsizingClusterUtilization>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the RightsizingClusterListResponse interface.
46
+ */
47
+ export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
48
+ if (!('report_id' in value) || value['report_id'] === undefined) return false;
49
+ if (!('clusters' in value) || value['clusters'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse {
54
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'report_id': json['report_id'],
64
+ 'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse {
69
+ return RightsizingClusterListResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'report_id': value['report_id'],
80
+ 'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
81
+ };
82
+ }
83
+