@openshift-migration-advisor/agent-sdk 0.0.0-62ab9022d189

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 (267) hide show
  1. package/.openapi-generator/FILES +91 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +170 -0
  5. package/dist/apis/DefaultApi.d.ts +761 -0
  6. package/dist/apis/DefaultApi.js +878 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +19 -0
  9. package/dist/esm/apis/DefaultApi.d.ts +761 -0
  10. package/dist/esm/apis/DefaultApi.js +874 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +3 -0
  13. package/dist/esm/index.d.ts +3 -0
  14. package/dist/esm/index.js +5 -0
  15. package/dist/esm/models/AgentModeRequest.d.ts +40 -0
  16. package/dist/esm/models/AgentModeRequest.js +50 -0
  17. package/dist/esm/models/AgentStatus.d.ts +60 -0
  18. package/dist/esm/models/AgentStatus.js +63 -0
  19. package/dist/esm/models/CollectorStartRequest.d.ts +44 -0
  20. package/dist/esm/models/CollectorStartRequest.js +51 -0
  21. package/dist/esm/models/CollectorStatus.d.ts +51 -0
  22. package/dist/esm/models/CollectorStatus.js +57 -0
  23. package/dist/esm/models/CreateGroupRequest.d.ts +50 -0
  24. package/dist/esm/models/CreateGroupRequest.js +51 -0
  25. package/dist/esm/models/Datastore.d.ts +80 -0
  26. package/dist/esm/models/Datastore.js +73 -0
  27. package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
  28. package/dist/esm/models/DiskSizeTierSummary.js +47 -0
  29. package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
  30. package/dist/esm/models/DiskTypeSummary.js +47 -0
  31. package/dist/esm/models/GetInventory200Response.d.ts +23 -0
  32. package/dist/esm/models/GetInventory200Response.js +51 -0
  33. package/dist/esm/models/Group.d.ts +68 -0
  34. package/dist/esm/models/Group.js +59 -0
  35. package/dist/esm/models/GroupListResponse.d.ts +51 -0
  36. package/dist/esm/models/GroupListResponse.js +56 -0
  37. package/dist/esm/models/GroupResponse.d.ts +58 -0
  38. package/dist/esm/models/GroupResponse.js +61 -0
  39. package/dist/esm/models/GuestNetwork.d.ts +56 -0
  40. package/dist/esm/models/GuestNetwork.js +49 -0
  41. package/dist/esm/models/Histogram.d.ts +44 -0
  42. package/dist/esm/models/Histogram.js +51 -0
  43. package/dist/esm/models/Host.d.ts +62 -0
  44. package/dist/esm/models/Host.js +55 -0
  45. package/dist/esm/models/Infra.d.ts +106 -0
  46. package/dist/esm/models/Infra.js +74 -0
  47. package/dist/esm/models/InspectorStartRequest.d.ts +39 -0
  48. package/dist/esm/models/InspectorStartRequest.js +48 -0
  49. package/dist/esm/models/InspectorStatus.d.ts +51 -0
  50. package/dist/esm/models/InspectorStatus.js +57 -0
  51. package/dist/esm/models/Inventory.d.ts +47 -0
  52. package/dist/esm/models/Inventory.js +51 -0
  53. package/dist/esm/models/InventoryData.d.ts +47 -0
  54. package/dist/esm/models/InventoryData.js +52 -0
  55. package/dist/esm/models/MigrationIssue.d.ts +50 -0
  56. package/dist/esm/models/MigrationIssue.js +53 -0
  57. package/dist/esm/models/Network.d.ts +66 -0
  58. package/dist/esm/models/Network.js +62 -0
  59. package/dist/esm/models/OsInfo.d.ts +44 -0
  60. package/dist/esm/models/OsInfo.js +49 -0
  61. package/dist/esm/models/UpdateGroupRequest.d.ts +50 -0
  62. package/dist/esm/models/UpdateGroupRequest.js +47 -0
  63. package/dist/esm/models/UpdateInventory.d.ts +39 -0
  64. package/dist/esm/models/UpdateInventory.js +48 -0
  65. package/dist/esm/models/VCenter.d.ts +32 -0
  66. package/dist/esm/models/VCenter.js +43 -0
  67. package/dist/esm/models/VMDevice.d.ts +32 -0
  68. package/dist/esm/models/VMDevice.js +41 -0
  69. package/dist/esm/models/VMDisk.d.ts +68 -0
  70. package/dist/esm/models/VMDisk.js +53 -0
  71. package/dist/esm/models/VMIssue.d.ts +56 -0
  72. package/dist/esm/models/VMIssue.js +62 -0
  73. package/dist/esm/models/VMNIC.d.ts +44 -0
  74. package/dist/esm/models/VMNIC.js +45 -0
  75. package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
  76. package/dist/esm/models/VMResourceBreakdown.js +58 -0
  77. package/dist/esm/models/VMs.d.ts +170 -0
  78. package/dist/esm/models/VMs.js +103 -0
  79. package/dist/esm/models/VcenterCredentials.d.ts +44 -0
  80. package/dist/esm/models/VcenterCredentials.js +51 -0
  81. package/dist/esm/models/VddkPost200Response.d.ts +38 -0
  82. package/dist/esm/models/VddkPost200Response.js +47 -0
  83. package/dist/esm/models/VersionInfo.d.ts +44 -0
  84. package/dist/esm/models/VersionInfo.js +51 -0
  85. package/dist/esm/models/VirtualMachine.d.ts +99 -0
  86. package/dist/esm/models/VirtualMachine.js +82 -0
  87. package/dist/esm/models/VirtualMachineDetail.d.ts +218 -0
  88. package/dist/esm/models/VirtualMachineDetail.js +125 -0
  89. package/dist/esm/models/VirtualMachineListResponse.d.ts +51 -0
  90. package/dist/esm/models/VirtualMachineListResponse.js +56 -0
  91. package/dist/esm/models/VmInspectionStatus.d.ts +56 -0
  92. package/dist/esm/models/VmInspectionStatus.js +58 -0
  93. package/dist/esm/models/index.d.ts +39 -0
  94. package/dist/esm/models/index.js +41 -0
  95. package/dist/esm/runtime.d.ts +184 -0
  96. package/dist/esm/runtime.js +349 -0
  97. package/dist/index.d.ts +3 -0
  98. package/dist/index.js +21 -0
  99. package/dist/models/AgentModeRequest.d.ts +40 -0
  100. package/dist/models/AgentModeRequest.js +58 -0
  101. package/dist/models/AgentStatus.d.ts +60 -0
  102. package/dist/models/AgentStatus.js +71 -0
  103. package/dist/models/CollectorStartRequest.d.ts +44 -0
  104. package/dist/models/CollectorStartRequest.js +58 -0
  105. package/dist/models/CollectorStatus.d.ts +51 -0
  106. package/dist/models/CollectorStatus.js +65 -0
  107. package/dist/models/CreateGroupRequest.d.ts +50 -0
  108. package/dist/models/CreateGroupRequest.js +58 -0
  109. package/dist/models/Datastore.d.ts +80 -0
  110. package/dist/models/Datastore.js +80 -0
  111. package/dist/models/DiskSizeTierSummary.d.ts +38 -0
  112. package/dist/models/DiskSizeTierSummary.js +54 -0
  113. package/dist/models/DiskTypeSummary.d.ts +38 -0
  114. package/dist/models/DiskTypeSummary.js +54 -0
  115. package/dist/models/GetInventory200Response.d.ts +23 -0
  116. package/dist/models/GetInventory200Response.js +57 -0
  117. package/dist/models/Group.d.ts +68 -0
  118. package/dist/models/Group.js +66 -0
  119. package/dist/models/GroupListResponse.d.ts +51 -0
  120. package/dist/models/GroupListResponse.js +63 -0
  121. package/dist/models/GroupResponse.d.ts +58 -0
  122. package/dist/models/GroupResponse.js +68 -0
  123. package/dist/models/GuestNetwork.d.ts +56 -0
  124. package/dist/models/GuestNetwork.js +56 -0
  125. package/dist/models/Histogram.d.ts +44 -0
  126. package/dist/models/Histogram.js +58 -0
  127. package/dist/models/Host.d.ts +62 -0
  128. package/dist/models/Host.js +62 -0
  129. package/dist/models/Infra.d.ts +106 -0
  130. package/dist/models/Infra.js +81 -0
  131. package/dist/models/InspectorStartRequest.d.ts +39 -0
  132. package/dist/models/InspectorStartRequest.js +55 -0
  133. package/dist/models/InspectorStatus.d.ts +51 -0
  134. package/dist/models/InspectorStatus.js +65 -0
  135. package/dist/models/Inventory.d.ts +47 -0
  136. package/dist/models/Inventory.js +58 -0
  137. package/dist/models/InventoryData.d.ts +47 -0
  138. package/dist/models/InventoryData.js +59 -0
  139. package/dist/models/MigrationIssue.d.ts +50 -0
  140. package/dist/models/MigrationIssue.js +60 -0
  141. package/dist/models/Network.d.ts +66 -0
  142. package/dist/models/Network.js +70 -0
  143. package/dist/models/OsInfo.d.ts +44 -0
  144. package/dist/models/OsInfo.js +56 -0
  145. package/dist/models/UpdateGroupRequest.d.ts +50 -0
  146. package/dist/models/UpdateGroupRequest.js +54 -0
  147. package/dist/models/UpdateInventory.d.ts +39 -0
  148. package/dist/models/UpdateInventory.js +55 -0
  149. package/dist/models/VCenter.d.ts +32 -0
  150. package/dist/models/VCenter.js +50 -0
  151. package/dist/models/VMDevice.d.ts +32 -0
  152. package/dist/models/VMDevice.js +48 -0
  153. package/dist/models/VMDisk.d.ts +68 -0
  154. package/dist/models/VMDisk.js +60 -0
  155. package/dist/models/VMIssue.d.ts +56 -0
  156. package/dist/models/VMIssue.js +70 -0
  157. package/dist/models/VMNIC.d.ts +44 -0
  158. package/dist/models/VMNIC.js +52 -0
  159. package/dist/models/VMResourceBreakdown.d.ts +58 -0
  160. package/dist/models/VMResourceBreakdown.js +65 -0
  161. package/dist/models/VMs.d.ts +170 -0
  162. package/dist/models/VMs.js +110 -0
  163. package/dist/models/VcenterCredentials.d.ts +44 -0
  164. package/dist/models/VcenterCredentials.js +58 -0
  165. package/dist/models/VddkPost200Response.d.ts +38 -0
  166. package/dist/models/VddkPost200Response.js +54 -0
  167. package/dist/models/VersionInfo.d.ts +44 -0
  168. package/dist/models/VersionInfo.js +58 -0
  169. package/dist/models/VirtualMachine.d.ts +99 -0
  170. package/dist/models/VirtualMachine.js +89 -0
  171. package/dist/models/VirtualMachineDetail.d.ts +218 -0
  172. package/dist/models/VirtualMachineDetail.js +132 -0
  173. package/dist/models/VirtualMachineListResponse.d.ts +51 -0
  174. package/dist/models/VirtualMachineListResponse.js +63 -0
  175. package/dist/models/VmInspectionStatus.d.ts +56 -0
  176. package/dist/models/VmInspectionStatus.js +66 -0
  177. package/dist/models/index.d.ts +39 -0
  178. package/dist/models/index.js +57 -0
  179. package/dist/runtime.d.ts +184 -0
  180. package/dist/runtime.js +365 -0
  181. package/docs/AgentModeRequest.md +34 -0
  182. package/docs/AgentStatus.md +38 -0
  183. package/docs/CollectorStartRequest.md +38 -0
  184. package/docs/CollectorStatus.md +36 -0
  185. package/docs/CreateGroupRequest.md +40 -0
  186. package/docs/Datastore.md +50 -0
  187. package/docs/DefaultApi.md +1419 -0
  188. package/docs/DiskSizeTierSummary.md +36 -0
  189. package/docs/DiskTypeSummary.md +36 -0
  190. package/docs/GetInventory200Response.md +42 -0
  191. package/docs/Group.md +46 -0
  192. package/docs/GroupListResponse.md +40 -0
  193. package/docs/GroupResponse.md +42 -0
  194. package/docs/GuestNetwork.md +42 -0
  195. package/docs/Histogram.md +38 -0
  196. package/docs/Host.md +44 -0
  197. package/docs/Infra.md +56 -0
  198. package/docs/InspectorStartRequest.md +36 -0
  199. package/docs/InspectorStatus.md +36 -0
  200. package/docs/Inventory.md +38 -0
  201. package/docs/InventoryData.md +38 -0
  202. package/docs/MigrationIssue.md +40 -0
  203. package/docs/Network.md +42 -0
  204. package/docs/OsInfo.md +38 -0
  205. package/docs/UpdateGroupRequest.md +40 -0
  206. package/docs/UpdateInventory.md +36 -0
  207. package/docs/VCenter.md +34 -0
  208. package/docs/VMDevice.md +34 -0
  209. package/docs/VMDisk.md +46 -0
  210. package/docs/VMIssue.md +38 -0
  211. package/docs/VMNIC.md +38 -0
  212. package/docs/VMResourceBreakdown.md +42 -0
  213. package/docs/VMs.md +72 -0
  214. package/docs/VcenterCredentials.md +38 -0
  215. package/docs/VddkPost200Response.md +36 -0
  216. package/docs/VersionInfo.md +38 -0
  217. package/docs/VirtualMachine.md +56 -0
  218. package/docs/VirtualMachineDetail.md +94 -0
  219. package/docs/VirtualMachineListResponse.md +40 -0
  220. package/docs/VmInspectionStatus.md +38 -0
  221. package/package.json +22 -0
  222. package/src/apis/DefaultApi.ts +1607 -0
  223. package/src/apis/index.ts +3 -0
  224. package/src/index.ts +5 -0
  225. package/src/models/AgentModeRequest.ts +77 -0
  226. package/src/models/AgentStatus.ts +103 -0
  227. package/src/models/CollectorStartRequest.ts +84 -0
  228. package/src/models/CollectorStatus.ts +90 -0
  229. package/src/models/CreateGroupRequest.ts +91 -0
  230. package/src/models/Datastore.ts +137 -0
  231. package/src/models/DiskSizeTierSummary.ts +75 -0
  232. package/src/models/DiskTypeSummary.ts +75 -0
  233. package/src/models/GetInventory200Response.ts +76 -0
  234. package/src/models/Group.ts +116 -0
  235. package/src/models/GroupListResponse.ts +101 -0
  236. package/src/models/GroupResponse.ts +117 -0
  237. package/src/models/GuestNetwork.ts +97 -0
  238. package/src/models/Histogram.ts +84 -0
  239. package/src/models/Host.ts +107 -0
  240. package/src/models/Infra.ts +182 -0
  241. package/src/models/InspectorStartRequest.ts +83 -0
  242. package/src/models/InspectorStatus.ts +90 -0
  243. package/src/models/Inventory.ts +91 -0
  244. package/src/models/InventoryData.ts +105 -0
  245. package/src/models/MigrationIssue.ts +92 -0
  246. package/src/models/Network.ts +112 -0
  247. package/src/models/OsInfo.ts +83 -0
  248. package/src/models/UpdateGroupRequest.ts +89 -0
  249. package/src/models/UpdateInventory.ts +83 -0
  250. package/src/models/VCenter.ts +66 -0
  251. package/src/models/VMDevice.ts +65 -0
  252. package/src/models/VMDisk.ts +113 -0
  253. package/src/models/VMIssue.ts +99 -0
  254. package/src/models/VMNIC.ts +81 -0
  255. package/src/models/VMResourceBreakdown.ts +110 -0
  256. package/src/models/VMs.ts +263 -0
  257. package/src/models/VcenterCredentials.ts +84 -0
  258. package/src/models/VddkPost200Response.ts +75 -0
  259. package/src/models/VersionInfo.ts +84 -0
  260. package/src/models/VirtualMachine.ts +170 -0
  261. package/src/models/VirtualMachineDetail.ts +357 -0
  262. package/src/models/VirtualMachineListResponse.ts +101 -0
  263. package/src/models/VmInspectionStatus.ts +97 -0
  264. package/src/models/index.ts +41 -0
  265. package/src/runtime.ts +450 -0
  266. package/tsconfig.esm.json +7 -0
  267. package/tsconfig.json +16 -0
@@ -0,0 +1,99 @@
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 VMIssue
20
+ */
21
+ export interface VMIssue {
22
+ /**
23
+ * Short label describing the issue
24
+ * @type {string}
25
+ * @memberof VMIssue
26
+ */
27
+ label: string;
28
+ /**
29
+ * Detailed description of the issue with additional context and recommendations
30
+ * @type {string}
31
+ * @memberof VMIssue
32
+ */
33
+ description: string;
34
+ /**
35
+ * Severity category of the issue. Unknown categories are mapped to 'Other'.
36
+ * @type {VMIssueCategoryEnum}
37
+ * @memberof VMIssue
38
+ */
39
+ category: VMIssueCategoryEnum;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const VMIssueCategoryEnum = {
47
+ Critical: 'Critical',
48
+ Warning: 'Warning',
49
+ Information: 'Information',
50
+ Advisory: 'Advisory',
51
+ Error: 'Error',
52
+ Other: 'Other'
53
+ } as const;
54
+ export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the VMIssue interface.
59
+ */
60
+ export function instanceOfVMIssue(value: object): value is VMIssue {
61
+ if (!('label' in value) || value['label'] === undefined) return false;
62
+ if (!('description' in value) || value['description'] === undefined) return false;
63
+ if (!('category' in value) || value['category'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function VMIssueFromJSON(json: any): VMIssue {
68
+ return VMIssueFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function VMIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMIssue {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'label': json['label'],
78
+ 'description': json['description'],
79
+ 'category': json['category'],
80
+ };
81
+ }
82
+
83
+ export function VMIssueToJSON(json: any): VMIssue {
84
+ return VMIssueToJSONTyped(json, false);
85
+ }
86
+
87
+ export function VMIssueToJSONTyped(value?: VMIssue | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'label': value['label'],
95
+ 'description': value['description'],
96
+ 'category': value['category'],
97
+ };
98
+ }
99
+
@@ -0,0 +1,81 @@
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 VMNIC
20
+ */
21
+ export interface VMNIC {
22
+ /**
23
+ * MAC address of the virtual NIC
24
+ * @type {string}
25
+ * @memberof VMNIC
26
+ */
27
+ mac?: string;
28
+ /**
29
+ * Reference to the network this NIC is connected to
30
+ * @type {string}
31
+ * @memberof VMNIC
32
+ */
33
+ network?: string;
34
+ /**
35
+ * Index of the NIC within the VirtualMachine
36
+ * @type {number}
37
+ * @memberof VMNIC
38
+ */
39
+ index?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VMNIC interface.
44
+ */
45
+ export function instanceOfVMNIC(value: object): value is VMNIC {
46
+ return true;
47
+ }
48
+
49
+ export function VMNICFromJSON(json: any): VMNIC {
50
+ return VMNICFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function VMNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMNIC {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'mac': json['mac'] == null ? undefined : json['mac'],
60
+ 'network': json['network'] == null ? undefined : json['network'],
61
+ 'index': json['index'] == null ? undefined : json['index'],
62
+ };
63
+ }
64
+
65
+ export function VMNICToJSON(json: any): VMNIC {
66
+ return VMNICToJSONTyped(json, false);
67
+ }
68
+
69
+ export function VMNICToJSONTyped(value?: VMNIC | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'mac': value['mac'],
77
+ 'network': value['network'],
78
+ 'index': value['index'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,110 @@
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 { Histogram } from './Histogram.js';
17
+ import {
18
+ HistogramFromJSON,
19
+ HistogramFromJSONTyped,
20
+ HistogramToJSON,
21
+ HistogramToJSONTyped,
22
+ } from './Histogram.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface VMResourceBreakdown
28
+ */
29
+ export interface VMResourceBreakdown {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof VMResourceBreakdown
34
+ */
35
+ total: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof VMResourceBreakdown
40
+ */
41
+ totalForMigratable: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof VMResourceBreakdown
46
+ */
47
+ totalForMigratableWithWarnings: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof VMResourceBreakdown
52
+ */
53
+ totalForNotMigratable: number;
54
+ /**
55
+ *
56
+ * @type {Histogram}
57
+ * @memberof VMResourceBreakdown
58
+ * @deprecated
59
+ */
60
+ histogram?: Histogram;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the VMResourceBreakdown interface.
65
+ */
66
+ export function instanceOfVMResourceBreakdown(value: object): value is VMResourceBreakdown {
67
+ if (!('total' in value) || value['total'] === undefined) return false;
68
+ if (!('totalForMigratable' in value) || value['totalForMigratable'] === undefined) return false;
69
+ if (!('totalForMigratableWithWarnings' in value) || value['totalForMigratableWithWarnings'] === undefined) return false;
70
+ if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function VMResourceBreakdownFromJSON(json: any): VMResourceBreakdown {
75
+ return VMResourceBreakdownFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function VMResourceBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMResourceBreakdown {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'total': json['total'],
85
+ 'totalForMigratable': json['totalForMigratable'],
86
+ 'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
87
+ 'totalForNotMigratable': json['totalForNotMigratable'],
88
+ 'histogram': json['histogram'] == null ? undefined : HistogramFromJSON(json['histogram']),
89
+ };
90
+ }
91
+
92
+ export function VMResourceBreakdownToJSON(json: any): VMResourceBreakdown {
93
+ return VMResourceBreakdownToJSONTyped(json, false);
94
+ }
95
+
96
+ export function VMResourceBreakdownToJSONTyped(value?: VMResourceBreakdown | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'total': value['total'],
104
+ 'totalForMigratable': value['totalForMigratable'],
105
+ 'totalForMigratableWithWarnings': value['totalForMigratableWithWarnings'],
106
+ 'totalForNotMigratable': value['totalForNotMigratable'],
107
+ 'histogram': HistogramToJSON(value['histogram']),
108
+ };
109
+ }
110
+
@@ -0,0 +1,263 @@
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 { MigrationIssue } from './MigrationIssue.js';
17
+ import {
18
+ MigrationIssueFromJSON,
19
+ MigrationIssueFromJSONTyped,
20
+ MigrationIssueToJSON,
21
+ MigrationIssueToJSONTyped,
22
+ } from './MigrationIssue.js';
23
+ import type { OsInfo } from './OsInfo.js';
24
+ import {
25
+ OsInfoFromJSON,
26
+ OsInfoFromJSONTyped,
27
+ OsInfoToJSON,
28
+ OsInfoToJSONTyped,
29
+ } from './OsInfo.js';
30
+ import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
31
+ import {
32
+ DiskSizeTierSummaryFromJSON,
33
+ DiskSizeTierSummaryFromJSONTyped,
34
+ DiskSizeTierSummaryToJSON,
35
+ DiskSizeTierSummaryToJSONTyped,
36
+ } from './DiskSizeTierSummary.js';
37
+ import type { DiskTypeSummary } from './DiskTypeSummary.js';
38
+ import {
39
+ DiskTypeSummaryFromJSON,
40
+ DiskTypeSummaryFromJSONTyped,
41
+ DiskTypeSummaryToJSON,
42
+ DiskTypeSummaryToJSONTyped,
43
+ } from './DiskTypeSummary.js';
44
+ import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
45
+ import {
46
+ VMResourceBreakdownFromJSON,
47
+ VMResourceBreakdownFromJSONTyped,
48
+ VMResourceBreakdownToJSON,
49
+ VMResourceBreakdownToJSONTyped,
50
+ } from './VMResourceBreakdown.js';
51
+
52
+ /**
53
+ *
54
+ * @export
55
+ * @interface VMs
56
+ */
57
+ export interface VMs {
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof VMs
62
+ */
63
+ total: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof VMs
68
+ */
69
+ totalMigratable: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof VMs
74
+ */
75
+ totalMigratableWithWarnings?: number;
76
+ /**
77
+ * Number of VMs that have at least one shared disk
78
+ * @type {number}
79
+ * @memberof VMs
80
+ */
81
+ totalWithSharedDisks?: number;
82
+ /**
83
+ *
84
+ * @type {VMResourceBreakdown}
85
+ * @memberof VMs
86
+ */
87
+ cpuCores: VMResourceBreakdown;
88
+ /**
89
+ *
90
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
91
+ * @memberof VMs
92
+ */
93
+ diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
94
+ /**
95
+ *
96
+ * @type {{ [key: string]: DiskTypeSummary; }}
97
+ * @memberof VMs
98
+ */
99
+ diskTypes?: { [key: string]: DiskTypeSummary; };
100
+ /**
101
+ * Distribution of VMs across CPU tier buckets (e.g., "0-4", "5-8", "9-16", "17-32", "32+")
102
+ * @type {{ [key: string]: number; }}
103
+ * @memberof VMs
104
+ */
105
+ distributionByCpuTier?: { [key: string]: number; };
106
+ /**
107
+ * Distribution of VMs across Memory tier buckets (e.g., "0-4", "5-16", "17-32", "33-64", "65-128", "129-256", "256+")
108
+ * @type {{ [key: string]: number; }}
109
+ * @memberof VMs
110
+ */
111
+ distributionByMemoryTier?: { [key: string]: number; };
112
+ /**
113
+ * Distribution of VMs by NIC count (e.g., "0", "1", "2", "3", "4+")
114
+ * @type {{ [key: string]: number; }}
115
+ * @memberof VMs
116
+ */
117
+ distributionByNicCount?: { [key: string]: number; };
118
+ /**
119
+ * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
120
+ * @type {{ [key: string]: number; }}
121
+ * @memberof VMs
122
+ */
123
+ distributionByComplexity?: { [key: string]: number; };
124
+ /**
125
+ *
126
+ * @type {VMResourceBreakdown}
127
+ * @memberof VMs
128
+ */
129
+ ramGB: VMResourceBreakdown;
130
+ /**
131
+ *
132
+ * @type {VMResourceBreakdown}
133
+ * @memberof VMs
134
+ */
135
+ diskGB: VMResourceBreakdown;
136
+ /**
137
+ *
138
+ * @type {VMResourceBreakdown}
139
+ * @memberof VMs
140
+ */
141
+ diskCount: VMResourceBreakdown;
142
+ /**
143
+ *
144
+ * @type {VMResourceBreakdown}
145
+ * @memberof VMs
146
+ */
147
+ nicCount?: VMResourceBreakdown;
148
+ /**
149
+ *
150
+ * @type {{ [key: string]: number; }}
151
+ * @memberof VMs
152
+ */
153
+ powerStates: { [key: string]: number; };
154
+ /**
155
+ *
156
+ * @type {{ [key: string]: number; }}
157
+ * @memberof VMs
158
+ * @deprecated
159
+ */
160
+ os?: { [key: string]: number; };
161
+ /**
162
+ *
163
+ * @type {{ [key: string]: OsInfo; }}
164
+ * @memberof VMs
165
+ */
166
+ osInfo?: { [key: string]: OsInfo; };
167
+ /**
168
+ *
169
+ * @type {Array<MigrationIssue>}
170
+ * @memberof VMs
171
+ */
172
+ notMigratableReasons: Array<MigrationIssue>;
173
+ /**
174
+ *
175
+ * @type {Array<MigrationIssue>}
176
+ * @memberof VMs
177
+ */
178
+ migrationWarnings: Array<MigrationIssue>;
179
+ }
180
+
181
+ /**
182
+ * Check if a given object implements the VMs interface.
183
+ */
184
+ export function instanceOfVMs(value: object): value is VMs {
185
+ if (!('total' in value) || value['total'] === undefined) return false;
186
+ if (!('totalMigratable' in value) || value['totalMigratable'] === undefined) return false;
187
+ if (!('cpuCores' in value) || value['cpuCores'] === undefined) return false;
188
+ if (!('ramGB' in value) || value['ramGB'] === undefined) return false;
189
+ if (!('diskGB' in value) || value['diskGB'] === undefined) return false;
190
+ if (!('diskCount' in value) || value['diskCount'] === undefined) return false;
191
+ if (!('powerStates' in value) || value['powerStates'] === undefined) return false;
192
+ if (!('notMigratableReasons' in value) || value['notMigratableReasons'] === undefined) return false;
193
+ if (!('migrationWarnings' in value) || value['migrationWarnings'] === undefined) return false;
194
+ return true;
195
+ }
196
+
197
+ export function VMsFromJSON(json: any): VMs {
198
+ return VMsFromJSONTyped(json, false);
199
+ }
200
+
201
+ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
202
+ if (json == null) {
203
+ return json;
204
+ }
205
+ return {
206
+
207
+ 'total': json['total'],
208
+ 'totalMigratable': json['totalMigratable'],
209
+ 'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
210
+ 'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
211
+ 'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
212
+ 'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
213
+ 'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
214
+ 'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
215
+ 'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
216
+ 'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
217
+ 'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
218
+ 'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
219
+ 'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
220
+ 'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
221
+ 'nicCount': json['nicCount'] == null ? undefined : VMResourceBreakdownFromJSON(json['nicCount']),
222
+ 'powerStates': json['powerStates'],
223
+ 'os': json['os'] == null ? undefined : json['os'],
224
+ 'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
225
+ 'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
226
+ 'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
227
+ };
228
+ }
229
+
230
+ export function VMsToJSON(json: any): VMs {
231
+ return VMsToJSONTyped(json, false);
232
+ }
233
+
234
+ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean = false): any {
235
+ if (value == null) {
236
+ return value;
237
+ }
238
+
239
+ return {
240
+
241
+ 'total': value['total'],
242
+ 'totalMigratable': value['totalMigratable'],
243
+ 'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
244
+ 'totalWithSharedDisks': value['totalWithSharedDisks'],
245
+ 'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
246
+ 'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
247
+ 'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
248
+ 'distributionByCpuTier': value['distributionByCpuTier'],
249
+ 'distributionByMemoryTier': value['distributionByMemoryTier'],
250
+ 'distributionByNicCount': value['distributionByNicCount'],
251
+ 'distributionByComplexity': value['distributionByComplexity'],
252
+ 'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
253
+ 'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
254
+ 'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
255
+ 'nicCount': VMResourceBreakdownToJSON(value['nicCount']),
256
+ 'powerStates': value['powerStates'],
257
+ 'os': value['os'],
258
+ 'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
259
+ 'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssueToJSON)),
260
+ 'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssueToJSON)),
261
+ };
262
+ }
263
+
@@ -0,0 +1,84 @@
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 VcenterCredentials
20
+ */
21
+ export interface VcenterCredentials {
22
+ /**
23
+ * vCenter URL
24
+ * @type {string}
25
+ * @memberof VcenterCredentials
26
+ */
27
+ url: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VcenterCredentials
32
+ */
33
+ username: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof VcenterCredentials
38
+ */
39
+ password: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VcenterCredentials interface.
44
+ */
45
+ export function instanceOfVcenterCredentials(value: object): value is VcenterCredentials {
46
+ if (!('url' in value) || value['url'] === undefined) return false;
47
+ if (!('username' in value) || value['username'] === undefined) return false;
48
+ if (!('password' in value) || value['password'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function VcenterCredentialsFromJSON(json: any): VcenterCredentials {
53
+ return VcenterCredentialsFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VcenterCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VcenterCredentials {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'url': json['url'],
63
+ 'username': json['username'],
64
+ 'password': json['password'],
65
+ };
66
+ }
67
+
68
+ export function VcenterCredentialsToJSON(json: any): VcenterCredentials {
69
+ return VcenterCredentialsToJSONTyped(json, false);
70
+ }
71
+
72
+ export function VcenterCredentialsToJSONTyped(value?: VcenterCredentials | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'url': value['url'],
80
+ 'username': value['username'],
81
+ 'password': value['password'],
82
+ };
83
+ }
84
+