@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,75 @@
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 VddkPost200Response
20
+ */
21
+ export interface VddkPost200Response {
22
+ /**
23
+ * md5 sum of the uploaded tarball
24
+ * @type {string}
25
+ * @memberof VddkPost200Response
26
+ */
27
+ md5: string;
28
+ /**
29
+ * written bytes
30
+ * @type {number}
31
+ * @memberof VddkPost200Response
32
+ */
33
+ bytes: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VddkPost200Response interface.
38
+ */
39
+ export function instanceOfVddkPost200Response(value: object): value is VddkPost200Response {
40
+ if (!('md5' in value) || value['md5'] === undefined) return false;
41
+ if (!('bytes' in value) || value['bytes'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function VddkPost200ResponseFromJSON(json: any): VddkPost200Response {
46
+ return VddkPost200ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VddkPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkPost200Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'md5': json['md5'],
56
+ 'bytes': json['bytes'],
57
+ };
58
+ }
59
+
60
+ export function VddkPost200ResponseToJSON(json: any): VddkPost200Response {
61
+ return VddkPost200ResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function VddkPost200ResponseToJSONTyped(value?: VddkPost200Response | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'md5': value['md5'],
72
+ 'bytes': value['bytes'],
73
+ };
74
+ }
75
+
@@ -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 VersionInfo
20
+ */
21
+ export interface VersionInfo {
22
+ /**
23
+ * Agent version (e.g. v2.0.0)
24
+ * @type {string}
25
+ * @memberof VersionInfo
26
+ */
27
+ version: string;
28
+ /**
29
+ * Git commit SHA used to build the agent
30
+ * @type {string}
31
+ * @memberof VersionInfo
32
+ */
33
+ gitCommit: string;
34
+ /**
35
+ * Git commit SHA of the UI used to build the agent
36
+ * @type {string}
37
+ * @memberof VersionInfo
38
+ */
39
+ uiGitCommit: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VersionInfo interface.
44
+ */
45
+ export function instanceOfVersionInfo(value: object): value is VersionInfo {
46
+ if (!('version' in value) || value['version'] === undefined) return false;
47
+ if (!('gitCommit' in value) || value['gitCommit'] === undefined) return false;
48
+ if (!('uiGitCommit' in value) || value['uiGitCommit'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function VersionInfoFromJSON(json: any): VersionInfo {
53
+ return VersionInfoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VersionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionInfo {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'version': json['version'],
63
+ 'gitCommit': json['gitCommit'],
64
+ 'uiGitCommit': json['uiGitCommit'],
65
+ };
66
+ }
67
+
68
+ export function VersionInfoToJSON(json: any): VersionInfo {
69
+ return VersionInfoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function VersionInfoToJSONTyped(value?: VersionInfo | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'version': value['version'],
80
+ 'gitCommit': value['gitCommit'],
81
+ 'uiGitCommit': value['uiGitCommit'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,170 @@
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 { VmInspectionStatus } from './VmInspectionStatus.js';
17
+ import {
18
+ VmInspectionStatusFromJSON,
19
+ VmInspectionStatusFromJSONTyped,
20
+ VmInspectionStatusToJSON,
21
+ VmInspectionStatusToJSONTyped,
22
+ } from './VmInspectionStatus.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface VirtualMachine
28
+ */
29
+ export interface VirtualMachine {
30
+ /**
31
+ * VirtualMachine name
32
+ * @type {string}
33
+ * @memberof VirtualMachine
34
+ */
35
+ name: string;
36
+ /**
37
+ * VirtualMachine ID in vCenter
38
+ * @type {string}
39
+ * @memberof VirtualMachine
40
+ */
41
+ id: string;
42
+ /**
43
+ * vCenter state (e.g., poweredOn, poweredOff, suspended)
44
+ * @type {string}
45
+ * @memberof VirtualMachine
46
+ */
47
+ vCenterState: string;
48
+ /**
49
+ * Cluster name
50
+ * @type {string}
51
+ * @memberof VirtualMachine
52
+ */
53
+ cluster: string;
54
+ /**
55
+ * Datacenter name
56
+ * @type {string}
57
+ * @memberof VirtualMachine
58
+ */
59
+ datacenter: string;
60
+ /**
61
+ * Total disk size in MB
62
+ * @type {number}
63
+ * @memberof VirtualMachine
64
+ */
65
+ diskSize: number;
66
+ /**
67
+ * Memory size in MB
68
+ * @type {number}
69
+ * @memberof VirtualMachine
70
+ */
71
+ memory: number;
72
+ /**
73
+ * Number of issues found for this VirtualMachine
74
+ * @type {number}
75
+ * @memberof VirtualMachine
76
+ */
77
+ issueCount: number;
78
+ /**
79
+ * True if the vm is migratable for MTV. False otherwise
80
+ * @type {boolean}
81
+ * @memberof VirtualMachine
82
+ */
83
+ migratable?: boolean;
84
+ /**
85
+ * True if the vm is a template. False otherwise
86
+ * @type {boolean}
87
+ * @memberof VirtualMachine
88
+ */
89
+ template?: boolean;
90
+ /**
91
+ *
92
+ * @type {VmInspectionStatus}
93
+ * @memberof VirtualMachine
94
+ */
95
+ inspection: VmInspectionStatus;
96
+ /**
97
+ * Tags aggregated from matching groups
98
+ * @type {Array<string>}
99
+ * @memberof VirtualMachine
100
+ */
101
+ tags?: Array<string>;
102
+ }
103
+
104
+ /**
105
+ * Check if a given object implements the VirtualMachine interface.
106
+ */
107
+ export function instanceOfVirtualMachine(value: object): value is VirtualMachine {
108
+ if (!('name' in value) || value['name'] === undefined) return false;
109
+ if (!('id' in value) || value['id'] === undefined) return false;
110
+ if (!('vCenterState' in value) || value['vCenterState'] === undefined) return false;
111
+ if (!('cluster' in value) || value['cluster'] === undefined) return false;
112
+ if (!('datacenter' in value) || value['datacenter'] === undefined) return false;
113
+ if (!('diskSize' in value) || value['diskSize'] === undefined) return false;
114
+ if (!('memory' in value) || value['memory'] === undefined) return false;
115
+ if (!('issueCount' in value) || value['issueCount'] === undefined) return false;
116
+ if (!('inspection' in value) || value['inspection'] === undefined) return false;
117
+ return true;
118
+ }
119
+
120
+ export function VirtualMachineFromJSON(json: any): VirtualMachine {
121
+ return VirtualMachineFromJSONTyped(json, false);
122
+ }
123
+
124
+ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachine {
125
+ if (json == null) {
126
+ return json;
127
+ }
128
+ return {
129
+
130
+ 'name': json['name'],
131
+ 'id': json['id'],
132
+ 'vCenterState': json['vCenterState'],
133
+ 'cluster': json['cluster'],
134
+ 'datacenter': json['datacenter'],
135
+ 'diskSize': json['diskSize'],
136
+ 'memory': json['memory'],
137
+ 'issueCount': json['issueCount'],
138
+ 'migratable': json['migratable'] == null ? undefined : json['migratable'],
139
+ 'template': json['template'] == null ? undefined : json['template'],
140
+ 'inspection': VmInspectionStatusFromJSON(json['inspection']),
141
+ 'tags': json['tags'] == null ? undefined : json['tags'],
142
+ };
143
+ }
144
+
145
+ export function VirtualMachineToJSON(json: any): VirtualMachine {
146
+ return VirtualMachineToJSONTyped(json, false);
147
+ }
148
+
149
+ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
152
+ }
153
+
154
+ return {
155
+
156
+ 'name': value['name'],
157
+ 'id': value['id'],
158
+ 'vCenterState': value['vCenterState'],
159
+ 'cluster': value['cluster'],
160
+ 'datacenter': value['datacenter'],
161
+ 'diskSize': value['diskSize'],
162
+ 'memory': value['memory'],
163
+ 'issueCount': value['issueCount'],
164
+ 'migratable': value['migratable'],
165
+ 'template': value['template'],
166
+ 'inspection': VmInspectionStatusToJSON(value['inspection']),
167
+ 'tags': value['tags'],
168
+ };
169
+ }
170
+
@@ -0,0 +1,357 @@
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 { VMNIC } from './VMNIC.js';
17
+ import {
18
+ VMNICFromJSON,
19
+ VMNICFromJSONTyped,
20
+ VMNICToJSON,
21
+ VMNICToJSONTyped,
22
+ } from './VMNIC.js';
23
+ import type { VmInspectionStatus } from './VmInspectionStatus.js';
24
+ import {
25
+ VmInspectionStatusFromJSON,
26
+ VmInspectionStatusFromJSONTyped,
27
+ VmInspectionStatusToJSON,
28
+ VmInspectionStatusToJSONTyped,
29
+ } from './VmInspectionStatus.js';
30
+ import type { GuestNetwork } from './GuestNetwork.js';
31
+ import {
32
+ GuestNetworkFromJSON,
33
+ GuestNetworkFromJSONTyped,
34
+ GuestNetworkToJSON,
35
+ GuestNetworkToJSONTyped,
36
+ } from './GuestNetwork.js';
37
+ import type { VMIssue } from './VMIssue.js';
38
+ import {
39
+ VMIssueFromJSON,
40
+ VMIssueFromJSONTyped,
41
+ VMIssueToJSON,
42
+ VMIssueToJSONTyped,
43
+ } from './VMIssue.js';
44
+ import type { VMDevice } from './VMDevice.js';
45
+ import {
46
+ VMDeviceFromJSON,
47
+ VMDeviceFromJSONTyped,
48
+ VMDeviceToJSON,
49
+ VMDeviceToJSONTyped,
50
+ } from './VMDevice.js';
51
+ import type { VMDisk } from './VMDisk.js';
52
+ import {
53
+ VMDiskFromJSON,
54
+ VMDiskFromJSONTyped,
55
+ VMDiskToJSON,
56
+ VMDiskToJSONTyped,
57
+ } from './VMDisk.js';
58
+
59
+ /**
60
+ *
61
+ * @export
62
+ * @interface VirtualMachineDetail
63
+ */
64
+ export interface VirtualMachineDetail {
65
+ /**
66
+ * Unique identifier for the VirtualMachine in vCenter
67
+ * @type {string}
68
+ * @memberof VirtualMachineDetail
69
+ */
70
+ id: string;
71
+ /**
72
+ * Display name of the VirtualMachine
73
+ * @type {string}
74
+ * @memberof VirtualMachineDetail
75
+ */
76
+ name: string;
77
+ /**
78
+ * Universally unique identifier assigned by vCenter
79
+ * @type {string}
80
+ * @memberof VirtualMachineDetail
81
+ */
82
+ uuid?: string;
83
+ /**
84
+ * Firmware type used by the VirtualMachine (bios or efi)
85
+ * @type {string}
86
+ * @memberof VirtualMachineDetail
87
+ */
88
+ firmware?: string;
89
+ /**
90
+ * Current power state of the VirtualMachine (poweredOn, poweredOff, or suspended)
91
+ * @type {string}
92
+ * @memberof VirtualMachineDetail
93
+ */
94
+ powerState: string;
95
+ /**
96
+ * State of the connection between vCenter and the VirtualMachine's host (connected, disconnected, orphaned, or inaccessible)
97
+ * @type {string}
98
+ * @memberof VirtualMachineDetail
99
+ */
100
+ connectionState: string;
101
+ /**
102
+ * Reference to the ESXi host where the VirtualMachine is running
103
+ * @type {string}
104
+ * @memberof VirtualMachineDetail
105
+ */
106
+ host?: string;
107
+ /**
108
+ * Name of the datacenter containing the VirtualMachine
109
+ * @type {string}
110
+ * @memberof VirtualMachineDetail
111
+ */
112
+ datacenter?: string;
113
+ /**
114
+ * Name of the cluster containing the VirtualMachine
115
+ * @type {string}
116
+ * @memberof VirtualMachineDetail
117
+ */
118
+ cluster?: string;
119
+ /**
120
+ * Reference to the inventory folder containing the VirtualMachine
121
+ * @type {string}
122
+ * @memberof VirtualMachineDetail
123
+ */
124
+ folder?: string;
125
+ /**
126
+ * Total number of virtual CPUs allocated to the VirtualMachine
127
+ * @type {number}
128
+ * @memberof VirtualMachineDetail
129
+ */
130
+ cpuCount: number;
131
+ /**
132
+ * Number of CPU cores per virtual socket
133
+ * @type {number}
134
+ * @memberof VirtualMachineDetail
135
+ */
136
+ coresPerSocket: number;
137
+ /**
138
+ * List of physical CPU IDs the VirtualMachine is pinned to for scheduling
139
+ * @type {Array<number>}
140
+ * @memberof VirtualMachineDetail
141
+ */
142
+ cpuAffinity?: Array<number>;
143
+ /**
144
+ * Amount of memory allocated to the VirtualMachine in megabytes
145
+ * @type {number}
146
+ * @memberof VirtualMachineDetail
147
+ */
148
+ memoryMB: number;
149
+ /**
150
+ * Full name of the guest operating system as reported by VMware Tools
151
+ * @type {string}
152
+ * @memberof VirtualMachineDetail
153
+ */
154
+ guestName?: string;
155
+ /**
156
+ * VMware identifier for the guest OS type (e.g., rhel8_64Guest)
157
+ * @type {string}
158
+ * @memberof VirtualMachineDetail
159
+ */
160
+ guestId?: string;
161
+ /**
162
+ * Hostname of the guest OS as reported by VMware Tools
163
+ * @type {string}
164
+ * @memberof VirtualMachineDetail
165
+ */
166
+ hostName?: string;
167
+ /**
168
+ * Primary IP address of the guest OS as reported by VMware Tools
169
+ * @type {string}
170
+ * @memberof VirtualMachineDetail
171
+ */
172
+ ipAddress?: string;
173
+ /**
174
+ * Total storage space consumed by the VirtualMachine in bytes
175
+ * @type {number}
176
+ * @memberof VirtualMachineDetail
177
+ */
178
+ storageUsed?: number;
179
+ /**
180
+ * Whether the VirtualMachine is a template rather than a regular VirtualMachine
181
+ * @type {boolean}
182
+ * @memberof VirtualMachineDetail
183
+ */
184
+ template?: boolean;
185
+ /**
186
+ * Whether the VirtualMachine can be migrated (true if no critical issues)
187
+ * @type {boolean}
188
+ * @memberof VirtualMachineDetail
189
+ */
190
+ migratable?: boolean;
191
+ /**
192
+ * Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
193
+ * @type {boolean}
194
+ * @memberof VirtualMachineDetail
195
+ */
196
+ faultToleranceEnabled?: boolean;
197
+ /**
198
+ * Whether nested virtualization is enabled, allowing hypervisors to run inside the VirtualMachine
199
+ * @type {boolean}
200
+ * @memberof VirtualMachineDetail
201
+ */
202
+ nestedHVEnabled?: boolean;
203
+ /**
204
+ * Installation status of VMware Tools (toolsNotInstalled, toolsNotRunning, toolsOld, toolsOk)
205
+ * @type {string}
206
+ * @memberof VirtualMachineDetail
207
+ */
208
+ toolsStatus?: string;
209
+ /**
210
+ * Whether VMware Tools is currently running in the guest OS
211
+ * @type {string}
212
+ * @memberof VirtualMachineDetail
213
+ */
214
+ toolsRunningStatus?: string;
215
+ /**
216
+ * List of virtual disks attached to the VirtualMachine
217
+ * @type {Array<VMDisk>}
218
+ * @memberof VirtualMachineDetail
219
+ */
220
+ disks: Array<VMDisk>;
221
+ /**
222
+ * List of virtual network interface cards attached to the VirtualMachine
223
+ * @type {Array<VMNIC>}
224
+ * @memberof VirtualMachineDetail
225
+ */
226
+ nics: Array<VMNIC>;
227
+ /**
228
+ * List of other virtual devices attached to the VirtualMachine
229
+ * @type {Array<VMDevice>}
230
+ * @memberof VirtualMachineDetail
231
+ */
232
+ devices?: Array<VMDevice>;
233
+ /**
234
+ * Network configuration inside the guest OS as reported by VMware Tools
235
+ * @type {Array<GuestNetwork>}
236
+ * @memberof VirtualMachineDetail
237
+ */
238
+ guestNetworks?: Array<GuestNetwork>;
239
+ /**
240
+ * List of issues affecting this VirtualMachine
241
+ * @type {Array<VMIssue>}
242
+ * @memberof VirtualMachineDetail
243
+ */
244
+ issues?: Array<VMIssue>;
245
+ /**
246
+ *
247
+ * @type {VmInspectionStatus}
248
+ * @memberof VirtualMachineDetail
249
+ */
250
+ inspection?: VmInspectionStatus;
251
+ }
252
+
253
+ /**
254
+ * Check if a given object implements the VirtualMachineDetail interface.
255
+ */
256
+ export function instanceOfVirtualMachineDetail(value: object): value is VirtualMachineDetail {
257
+ if (!('id' in value) || value['id'] === undefined) return false;
258
+ if (!('name' in value) || value['name'] === undefined) return false;
259
+ if (!('powerState' in value) || value['powerState'] === undefined) return false;
260
+ if (!('connectionState' in value) || value['connectionState'] === undefined) return false;
261
+ if (!('cpuCount' in value) || value['cpuCount'] === undefined) return false;
262
+ if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
263
+ if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
264
+ if (!('disks' in value) || value['disks'] === undefined) return false;
265
+ if (!('nics' in value) || value['nics'] === undefined) return false;
266
+ return true;
267
+ }
268
+
269
+ export function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail {
270
+ return VirtualMachineDetailFromJSONTyped(json, false);
271
+ }
272
+
273
+ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail {
274
+ if (json == null) {
275
+ return json;
276
+ }
277
+ return {
278
+
279
+ 'id': json['id'],
280
+ 'name': json['name'],
281
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
282
+ 'firmware': json['firmware'] == null ? undefined : json['firmware'],
283
+ 'powerState': json['powerState'],
284
+ 'connectionState': json['connectionState'],
285
+ 'host': json['host'] == null ? undefined : json['host'],
286
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
287
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
288
+ 'folder': json['folder'] == null ? undefined : json['folder'],
289
+ 'cpuCount': json['cpuCount'],
290
+ 'coresPerSocket': json['coresPerSocket'],
291
+ 'cpuAffinity': json['cpuAffinity'] == null ? undefined : json['cpuAffinity'],
292
+ 'memoryMB': json['memoryMB'],
293
+ 'guestName': json['guestName'] == null ? undefined : json['guestName'],
294
+ 'guestId': json['guestId'] == null ? undefined : json['guestId'],
295
+ 'hostName': json['hostName'] == null ? undefined : json['hostName'],
296
+ 'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
297
+ 'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
298
+ 'template': json['template'] == null ? undefined : json['template'],
299
+ 'migratable': json['migratable'] == null ? undefined : json['migratable'],
300
+ 'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
301
+ 'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
302
+ 'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
303
+ 'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
304
+ 'disks': ((json['disks'] as Array<any>).map(VMDiskFromJSON)),
305
+ 'nics': ((json['nics'] as Array<any>).map(VMNICFromJSON)),
306
+ 'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VMDeviceFromJSON)),
307
+ 'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
308
+ 'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
309
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
310
+ };
311
+ }
312
+
313
+ export function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail {
314
+ return VirtualMachineDetailToJSONTyped(json, false);
315
+ }
316
+
317
+ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator: boolean = false): any {
318
+ if (value == null) {
319
+ return value;
320
+ }
321
+
322
+ return {
323
+
324
+ 'id': value['id'],
325
+ 'name': value['name'],
326
+ 'uuid': value['uuid'],
327
+ 'firmware': value['firmware'],
328
+ 'powerState': value['powerState'],
329
+ 'connectionState': value['connectionState'],
330
+ 'host': value['host'],
331
+ 'datacenter': value['datacenter'],
332
+ 'cluster': value['cluster'],
333
+ 'folder': value['folder'],
334
+ 'cpuCount': value['cpuCount'],
335
+ 'coresPerSocket': value['coresPerSocket'],
336
+ 'cpuAffinity': value['cpuAffinity'],
337
+ 'memoryMB': value['memoryMB'],
338
+ 'guestName': value['guestName'],
339
+ 'guestId': value['guestId'],
340
+ 'hostName': value['hostName'],
341
+ 'ipAddress': value['ipAddress'],
342
+ 'storageUsed': value['storageUsed'],
343
+ 'template': value['template'],
344
+ 'migratable': value['migratable'],
345
+ 'faultToleranceEnabled': value['faultToleranceEnabled'],
346
+ 'nestedHVEnabled': value['nestedHVEnabled'],
347
+ 'toolsStatus': value['toolsStatus'],
348
+ 'toolsRunningStatus': value['toolsRunningStatus'],
349
+ 'disks': ((value['disks'] as Array<any>).map(VMDiskToJSON)),
350
+ 'nics': ((value['nics'] as Array<any>).map(VMNICToJSON)),
351
+ 'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VMDeviceToJSON)),
352
+ 'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
353
+ 'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
354
+ 'inspection': VmInspectionStatusToJSON(value['inspection']),
355
+ };
356
+ }
357
+