@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,82 @@
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
+ import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
15
+ /**
16
+ * Check if a given object implements the VirtualMachine interface.
17
+ */
18
+ export function instanceOfVirtualMachine(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('vCenterState' in value) || value['vCenterState'] === undefined)
24
+ return false;
25
+ if (!('cluster' in value) || value['cluster'] === undefined)
26
+ return false;
27
+ if (!('datacenter' in value) || value['datacenter'] === undefined)
28
+ return false;
29
+ if (!('diskSize' in value) || value['diskSize'] === undefined)
30
+ return false;
31
+ if (!('memory' in value) || value['memory'] === undefined)
32
+ return false;
33
+ if (!('issueCount' in value) || value['issueCount'] === undefined)
34
+ return false;
35
+ if (!('inspection' in value) || value['inspection'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function VirtualMachineFromJSON(json) {
40
+ return VirtualMachineFromJSONTyped(json, false);
41
+ }
42
+ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'name': json['name'],
48
+ 'id': json['id'],
49
+ 'vCenterState': json['vCenterState'],
50
+ 'cluster': json['cluster'],
51
+ 'datacenter': json['datacenter'],
52
+ 'diskSize': json['diskSize'],
53
+ 'memory': json['memory'],
54
+ 'issueCount': json['issueCount'],
55
+ 'migratable': json['migratable'] == null ? undefined : json['migratable'],
56
+ 'template': json['template'] == null ? undefined : json['template'],
57
+ 'inspection': VmInspectionStatusFromJSON(json['inspection']),
58
+ 'tags': json['tags'] == null ? undefined : json['tags'],
59
+ };
60
+ }
61
+ export function VirtualMachineToJSON(json) {
62
+ return VirtualMachineToJSONTyped(json, false);
63
+ }
64
+ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'name': value['name'],
70
+ 'id': value['id'],
71
+ 'vCenterState': value['vCenterState'],
72
+ 'cluster': value['cluster'],
73
+ 'datacenter': value['datacenter'],
74
+ 'diskSize': value['diskSize'],
75
+ 'memory': value['memory'],
76
+ 'issueCount': value['issueCount'],
77
+ 'migratable': value['migratable'],
78
+ 'template': value['template'],
79
+ 'inspection': VmInspectionStatusToJSON(value['inspection']),
80
+ 'tags': value['tags'],
81
+ };
82
+ }
@@ -0,0 +1,218 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VMNIC } from './VMNIC.js';
13
+ import type { VmInspectionStatus } from './VmInspectionStatus.js';
14
+ import type { GuestNetwork } from './GuestNetwork.js';
15
+ import type { VMIssue } from './VMIssue.js';
16
+ import type { VMDevice } from './VMDevice.js';
17
+ import type { VMDisk } from './VMDisk.js';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface VirtualMachineDetail
22
+ */
23
+ export interface VirtualMachineDetail {
24
+ /**
25
+ * Unique identifier for the VirtualMachine in vCenter
26
+ * @type {string}
27
+ * @memberof VirtualMachineDetail
28
+ */
29
+ id: string;
30
+ /**
31
+ * Display name of the VirtualMachine
32
+ * @type {string}
33
+ * @memberof VirtualMachineDetail
34
+ */
35
+ name: string;
36
+ /**
37
+ * Universally unique identifier assigned by vCenter
38
+ * @type {string}
39
+ * @memberof VirtualMachineDetail
40
+ */
41
+ uuid?: string;
42
+ /**
43
+ * Firmware type used by the VirtualMachine (bios or efi)
44
+ * @type {string}
45
+ * @memberof VirtualMachineDetail
46
+ */
47
+ firmware?: string;
48
+ /**
49
+ * Current power state of the VirtualMachine (poweredOn, poweredOff, or suspended)
50
+ * @type {string}
51
+ * @memberof VirtualMachineDetail
52
+ */
53
+ powerState: string;
54
+ /**
55
+ * State of the connection between vCenter and the VirtualMachine's host (connected, disconnected, orphaned, or inaccessible)
56
+ * @type {string}
57
+ * @memberof VirtualMachineDetail
58
+ */
59
+ connectionState: string;
60
+ /**
61
+ * Reference to the ESXi host where the VirtualMachine is running
62
+ * @type {string}
63
+ * @memberof VirtualMachineDetail
64
+ */
65
+ host?: string;
66
+ /**
67
+ * Name of the datacenter containing the VirtualMachine
68
+ * @type {string}
69
+ * @memberof VirtualMachineDetail
70
+ */
71
+ datacenter?: string;
72
+ /**
73
+ * Name of the cluster containing the VirtualMachine
74
+ * @type {string}
75
+ * @memberof VirtualMachineDetail
76
+ */
77
+ cluster?: string;
78
+ /**
79
+ * Reference to the inventory folder containing the VirtualMachine
80
+ * @type {string}
81
+ * @memberof VirtualMachineDetail
82
+ */
83
+ folder?: string;
84
+ /**
85
+ * Total number of virtual CPUs allocated to the VirtualMachine
86
+ * @type {number}
87
+ * @memberof VirtualMachineDetail
88
+ */
89
+ cpuCount: number;
90
+ /**
91
+ * Number of CPU cores per virtual socket
92
+ * @type {number}
93
+ * @memberof VirtualMachineDetail
94
+ */
95
+ coresPerSocket: number;
96
+ /**
97
+ * List of physical CPU IDs the VirtualMachine is pinned to for scheduling
98
+ * @type {Array<number>}
99
+ * @memberof VirtualMachineDetail
100
+ */
101
+ cpuAffinity?: Array<number>;
102
+ /**
103
+ * Amount of memory allocated to the VirtualMachine in megabytes
104
+ * @type {number}
105
+ * @memberof VirtualMachineDetail
106
+ */
107
+ memoryMB: number;
108
+ /**
109
+ * Full name of the guest operating system as reported by VMware Tools
110
+ * @type {string}
111
+ * @memberof VirtualMachineDetail
112
+ */
113
+ guestName?: string;
114
+ /**
115
+ * VMware identifier for the guest OS type (e.g., rhel8_64Guest)
116
+ * @type {string}
117
+ * @memberof VirtualMachineDetail
118
+ */
119
+ guestId?: string;
120
+ /**
121
+ * Hostname of the guest OS as reported by VMware Tools
122
+ * @type {string}
123
+ * @memberof VirtualMachineDetail
124
+ */
125
+ hostName?: string;
126
+ /**
127
+ * Primary IP address of the guest OS as reported by VMware Tools
128
+ * @type {string}
129
+ * @memberof VirtualMachineDetail
130
+ */
131
+ ipAddress?: string;
132
+ /**
133
+ * Total storage space consumed by the VirtualMachine in bytes
134
+ * @type {number}
135
+ * @memberof VirtualMachineDetail
136
+ */
137
+ storageUsed?: number;
138
+ /**
139
+ * Whether the VirtualMachine is a template rather than a regular VirtualMachine
140
+ * @type {boolean}
141
+ * @memberof VirtualMachineDetail
142
+ */
143
+ template?: boolean;
144
+ /**
145
+ * Whether the VirtualMachine can be migrated (true if no critical issues)
146
+ * @type {boolean}
147
+ * @memberof VirtualMachineDetail
148
+ */
149
+ migratable?: boolean;
150
+ /**
151
+ * Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
152
+ * @type {boolean}
153
+ * @memberof VirtualMachineDetail
154
+ */
155
+ faultToleranceEnabled?: boolean;
156
+ /**
157
+ * Whether nested virtualization is enabled, allowing hypervisors to run inside the VirtualMachine
158
+ * @type {boolean}
159
+ * @memberof VirtualMachineDetail
160
+ */
161
+ nestedHVEnabled?: boolean;
162
+ /**
163
+ * Installation status of VMware Tools (toolsNotInstalled, toolsNotRunning, toolsOld, toolsOk)
164
+ * @type {string}
165
+ * @memberof VirtualMachineDetail
166
+ */
167
+ toolsStatus?: string;
168
+ /**
169
+ * Whether VMware Tools is currently running in the guest OS
170
+ * @type {string}
171
+ * @memberof VirtualMachineDetail
172
+ */
173
+ toolsRunningStatus?: string;
174
+ /**
175
+ * List of virtual disks attached to the VirtualMachine
176
+ * @type {Array<VMDisk>}
177
+ * @memberof VirtualMachineDetail
178
+ */
179
+ disks: Array<VMDisk>;
180
+ /**
181
+ * List of virtual network interface cards attached to the VirtualMachine
182
+ * @type {Array<VMNIC>}
183
+ * @memberof VirtualMachineDetail
184
+ */
185
+ nics: Array<VMNIC>;
186
+ /**
187
+ * List of other virtual devices attached to the VirtualMachine
188
+ * @type {Array<VMDevice>}
189
+ * @memberof VirtualMachineDetail
190
+ */
191
+ devices?: Array<VMDevice>;
192
+ /**
193
+ * Network configuration inside the guest OS as reported by VMware Tools
194
+ * @type {Array<GuestNetwork>}
195
+ * @memberof VirtualMachineDetail
196
+ */
197
+ guestNetworks?: Array<GuestNetwork>;
198
+ /**
199
+ * List of issues affecting this VirtualMachine
200
+ * @type {Array<VMIssue>}
201
+ * @memberof VirtualMachineDetail
202
+ */
203
+ issues?: Array<VMIssue>;
204
+ /**
205
+ *
206
+ * @type {VmInspectionStatus}
207
+ * @memberof VirtualMachineDetail
208
+ */
209
+ inspection?: VmInspectionStatus;
210
+ }
211
+ /**
212
+ * Check if a given object implements the VirtualMachineDetail interface.
213
+ */
214
+ export declare function instanceOfVirtualMachineDetail(value: object): value is VirtualMachineDetail;
215
+ export declare function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail;
216
+ export declare function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail;
217
+ export declare function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail;
218
+ export declare function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,125 @@
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
+ import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
15
+ import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
16
+ import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
+ import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
18
+ import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
19
+ import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
20
+ /**
21
+ * Check if a given object implements the VirtualMachineDetail interface.
22
+ */
23
+ export function instanceOfVirtualMachineDetail(value) {
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('powerState' in value) || value['powerState'] === undefined)
29
+ return false;
30
+ if (!('connectionState' in value) || value['connectionState'] === undefined)
31
+ return false;
32
+ if (!('cpuCount' in value) || value['cpuCount'] === undefined)
33
+ return false;
34
+ if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined)
35
+ return false;
36
+ if (!('memoryMB' in value) || value['memoryMB'] === undefined)
37
+ return false;
38
+ if (!('disks' in value) || value['disks'] === undefined)
39
+ return false;
40
+ if (!('nics' in value) || value['nics'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function VirtualMachineDetailFromJSON(json) {
45
+ return VirtualMachineDetailFromJSONTyped(json, false);
46
+ }
47
+ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'name': json['name'],
54
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
55
+ 'firmware': json['firmware'] == null ? undefined : json['firmware'],
56
+ 'powerState': json['powerState'],
57
+ 'connectionState': json['connectionState'],
58
+ 'host': json['host'] == null ? undefined : json['host'],
59
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
60
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
61
+ 'folder': json['folder'] == null ? undefined : json['folder'],
62
+ 'cpuCount': json['cpuCount'],
63
+ 'coresPerSocket': json['coresPerSocket'],
64
+ 'cpuAffinity': json['cpuAffinity'] == null ? undefined : json['cpuAffinity'],
65
+ 'memoryMB': json['memoryMB'],
66
+ 'guestName': json['guestName'] == null ? undefined : json['guestName'],
67
+ 'guestId': json['guestId'] == null ? undefined : json['guestId'],
68
+ 'hostName': json['hostName'] == null ? undefined : json['hostName'],
69
+ 'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
70
+ 'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
71
+ 'template': json['template'] == null ? undefined : json['template'],
72
+ 'migratable': json['migratable'] == null ? undefined : json['migratable'],
73
+ 'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
74
+ 'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
75
+ 'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
76
+ 'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
77
+ 'disks': (json['disks'].map(VMDiskFromJSON)),
78
+ 'nics': (json['nics'].map(VMNICFromJSON)),
79
+ 'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDeviceFromJSON)),
80
+ 'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
81
+ 'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
82
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
83
+ };
84
+ }
85
+ export function VirtualMachineDetailToJSON(json) {
86
+ return VirtualMachineDetailToJSONTyped(json, false);
87
+ }
88
+ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+ return {
93
+ 'id': value['id'],
94
+ 'name': value['name'],
95
+ 'uuid': value['uuid'],
96
+ 'firmware': value['firmware'],
97
+ 'powerState': value['powerState'],
98
+ 'connectionState': value['connectionState'],
99
+ 'host': value['host'],
100
+ 'datacenter': value['datacenter'],
101
+ 'cluster': value['cluster'],
102
+ 'folder': value['folder'],
103
+ 'cpuCount': value['cpuCount'],
104
+ 'coresPerSocket': value['coresPerSocket'],
105
+ 'cpuAffinity': value['cpuAffinity'],
106
+ 'memoryMB': value['memoryMB'],
107
+ 'guestName': value['guestName'],
108
+ 'guestId': value['guestId'],
109
+ 'hostName': value['hostName'],
110
+ 'ipAddress': value['ipAddress'],
111
+ 'storageUsed': value['storageUsed'],
112
+ 'template': value['template'],
113
+ 'migratable': value['migratable'],
114
+ 'faultToleranceEnabled': value['faultToleranceEnabled'],
115
+ 'nestedHVEnabled': value['nestedHVEnabled'],
116
+ 'toolsStatus': value['toolsStatus'],
117
+ 'toolsRunningStatus': value['toolsRunningStatus'],
118
+ 'disks': (value['disks'].map(VMDiskToJSON)),
119
+ 'nics': (value['nics'].map(VMNICToJSON)),
120
+ 'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDeviceToJSON)),
121
+ 'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
122
+ 'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
123
+ 'inspection': VmInspectionStatusToJSON(value['inspection']),
124
+ };
125
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VirtualMachine } from './VirtualMachine.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VirtualMachineListResponse
17
+ */
18
+ export interface VirtualMachineListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<VirtualMachine>}
22
+ * @memberof VirtualMachineListResponse
23
+ */
24
+ vms: Array<VirtualMachine>;
25
+ /**
26
+ * Total number of VMs matching the filter
27
+ * @type {number}
28
+ * @memberof VirtualMachineListResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Current page number
33
+ * @type {number}
34
+ * @memberof VirtualMachineListResponse
35
+ */
36
+ page: number;
37
+ /**
38
+ * Total number of pages
39
+ * @type {number}
40
+ * @memberof VirtualMachineListResponse
41
+ */
42
+ pageCount: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the VirtualMachineListResponse interface.
46
+ */
47
+ export declare function instanceOfVirtualMachineListResponse(value: object): value is VirtualMachineListResponse;
48
+ export declare function VirtualMachineListResponseFromJSON(json: any): VirtualMachineListResponse;
49
+ export declare function VirtualMachineListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineListResponse;
50
+ export declare function VirtualMachineListResponseToJSON(json: any): VirtualMachineListResponse;
51
+ export declare function VirtualMachineListResponseToJSONTyped(value?: VirtualMachineListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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
+ import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
15
+ /**
16
+ * Check if a given object implements the VirtualMachineListResponse interface.
17
+ */
18
+ export function instanceOfVirtualMachineListResponse(value) {
19
+ if (!('vms' in value) || value['vms'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ if (!('page' in value) || value['page'] === undefined)
24
+ return false;
25
+ if (!('pageCount' in value) || value['pageCount'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function VirtualMachineListResponseFromJSON(json) {
30
+ return VirtualMachineListResponseFromJSONTyped(json, false);
31
+ }
32
+ export function VirtualMachineListResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'vms': (json['vms'].map(VirtualMachineFromJSON)),
38
+ 'total': json['total'],
39
+ 'page': json['page'],
40
+ 'pageCount': json['pageCount'],
41
+ };
42
+ }
43
+ export function VirtualMachineListResponseToJSON(json) {
44
+ return VirtualMachineListResponseToJSONTyped(json, false);
45
+ }
46
+ export function VirtualMachineListResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'vms': (value['vms'].map(VirtualMachineToJSON)),
52
+ 'total': value['total'],
53
+ 'page': value['page'],
54
+ 'pageCount': value['pageCount'],
55
+ };
56
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VmInspectionStatus
16
+ */
17
+ export interface VmInspectionStatus {
18
+ /**
19
+ * Current inspection state
20
+ * @type {VmInspectionStatusStateEnum}
21
+ * @memberof VmInspectionStatus
22
+ */
23
+ state: VmInspectionStatusStateEnum;
24
+ /**
25
+ * Error message when state is error
26
+ * @type {string}
27
+ * @memberof VmInspectionStatus
28
+ */
29
+ error?: string;
30
+ /**
31
+ * Inspection results
32
+ * @type {object}
33
+ * @memberof VmInspectionStatus
34
+ */
35
+ results?: object;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const VmInspectionStatusStateEnum: {
41
+ readonly VmInspectionStatusStatePending: "pending";
42
+ readonly VmInspectionStatusStateRunning: "running";
43
+ readonly VmInspectionStatusStateCompleted: "completed";
44
+ readonly VmInspectionStatusStateCanceled: "canceled";
45
+ readonly VmInspectionStatusStateError: "error";
46
+ readonly VmInspectionStatusStateNotFound: "not_found";
47
+ };
48
+ export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
49
+ /**
50
+ * Check if a given object implements the VmInspectionStatus interface.
51
+ */
52
+ export declare function instanceOfVmInspectionStatus(value: object): value is VmInspectionStatus;
53
+ export declare function VmInspectionStatusFromJSON(json: any): VmInspectionStatus;
54
+ export declare function VmInspectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionStatus;
55
+ export declare function VmInspectionStatusToJSON(json: any): VmInspectionStatus;
56
+ export declare function VmInspectionStatusToJSONTyped(value?: VmInspectionStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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
+ * @export
16
+ */
17
+ export const VmInspectionStatusStateEnum = {
18
+ VmInspectionStatusStatePending: 'pending',
19
+ VmInspectionStatusStateRunning: 'running',
20
+ VmInspectionStatusStateCompleted: 'completed',
21
+ VmInspectionStatusStateCanceled: 'canceled',
22
+ VmInspectionStatusStateError: 'error',
23
+ VmInspectionStatusStateNotFound: 'not_found'
24
+ };
25
+ /**
26
+ * Check if a given object implements the VmInspectionStatus interface.
27
+ */
28
+ export function instanceOfVmInspectionStatus(value) {
29
+ if (!('state' in value) || value['state'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function VmInspectionStatusFromJSON(json) {
34
+ return VmInspectionStatusFromJSONTyped(json, false);
35
+ }
36
+ export function VmInspectionStatusFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'state': json['state'],
42
+ 'error': json['error'] == null ? undefined : json['error'],
43
+ 'results': json['results'] == null ? undefined : json['results'],
44
+ };
45
+ }
46
+ export function VmInspectionStatusToJSON(json) {
47
+ return VmInspectionStatusToJSONTyped(json, false);
48
+ }
49
+ export function VmInspectionStatusToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'state': value['state'],
55
+ 'error': value['error'],
56
+ 'results': value['results'],
57
+ };
58
+ }