@openshift-migration-advisor/agent-sdk 0.0.0-94e9d800ad5c

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,107 @@
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 Host
20
+ */
21
+ export interface Host {
22
+ /**
23
+ * Unique identifier for this host
24
+ * @type {string}
25
+ * @memberof Host
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Host
32
+ */
33
+ vendor: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Host
38
+ */
39
+ model: string;
40
+ /**
41
+ * Number of CPU cores
42
+ * @type {number}
43
+ * @memberof Host
44
+ */
45
+ cpuCores?: number | null;
46
+ /**
47
+ * Number of CPU sockets
48
+ * @type {number}
49
+ * @memberof Host
50
+ */
51
+ cpuSockets?: number | null;
52
+ /**
53
+ * Host memory in MB
54
+ * @type {number}
55
+ * @memberof Host
56
+ */
57
+ memoryMB?: number | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the Host interface.
62
+ */
63
+ export function instanceOfHost(value: object): value is Host {
64
+ if (!('vendor' in value) || value['vendor'] === undefined) return false;
65
+ if (!('model' in value) || value['model'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function HostFromJSON(json: any): Host {
70
+ return HostFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'id': json['id'] == null ? undefined : json['id'],
80
+ 'vendor': json['vendor'],
81
+ 'model': json['model'],
82
+ 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
83
+ 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
84
+ 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
85
+ };
86
+ }
87
+
88
+ export function HostToJSON(json: any): Host {
89
+ return HostToJSONTyped(json, false);
90
+ }
91
+
92
+ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'id': value['id'],
100
+ 'vendor': value['vendor'],
101
+ 'model': value['model'],
102
+ 'cpuCores': value['cpuCores'],
103
+ 'cpuSockets': value['cpuSockets'],
104
+ 'memoryMB': value['memoryMB'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,182 @@
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 { Datastore } from './Datastore.js';
17
+ import {
18
+ DatastoreFromJSON,
19
+ DatastoreFromJSONTyped,
20
+ DatastoreToJSON,
21
+ DatastoreToJSONTyped,
22
+ } from './Datastore.js';
23
+ import type { Network } from './Network.js';
24
+ import {
25
+ NetworkFromJSON,
26
+ NetworkFromJSONTyped,
27
+ NetworkToJSON,
28
+ NetworkToJSONTyped,
29
+ } from './Network.js';
30
+ import type { Host } from './Host.js';
31
+ import {
32
+ HostFromJSON,
33
+ HostFromJSONTyped,
34
+ HostToJSON,
35
+ HostToJSONTyped,
36
+ } from './Host.js';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface Infra
42
+ */
43
+ export interface Infra {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof Infra
48
+ */
49
+ totalHosts: number;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof Infra
54
+ */
55
+ totalDatacenters?: number;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof Infra
60
+ * @deprecated
61
+ */
62
+ totalClusters?: number;
63
+ /**
64
+ *
65
+ * @type {Array<number>}
66
+ * @memberof Infra
67
+ */
68
+ clustersPerDatacenter?: Array<number>;
69
+ /**
70
+ * CPU Overcommitment Ratio. Calculated as total Allocated vCPUs / Total Physical Cores
71
+ * @type {number}
72
+ * @memberof Infra
73
+ */
74
+ cpuOverCommitment?: number;
75
+ /**
76
+ * RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
77
+ * @type {number}
78
+ * @memberof Infra
79
+ */
80
+ memoryOverCommitment?: number;
81
+ /**
82
+ *
83
+ * @type {Array<Host>}
84
+ * @memberof Infra
85
+ */
86
+ hosts?: Array<Host>;
87
+ /**
88
+ *
89
+ * @type {Array<number>}
90
+ * @memberof Infra
91
+ * @deprecated
92
+ */
93
+ hostsPerCluster?: Array<number>;
94
+ /**
95
+ *
96
+ * @type {Array<number>}
97
+ * @memberof Infra
98
+ * @deprecated
99
+ */
100
+ vmsPerCluster?: Array<number>;
101
+ /**
102
+ *
103
+ * @type {{ [key: string]: number; }}
104
+ * @memberof Infra
105
+ */
106
+ hostPowerStates: { [key: string]: number; };
107
+ /**
108
+ *
109
+ * @type {Array<Network>}
110
+ * @memberof Infra
111
+ */
112
+ networks: Array<Network>;
113
+ /**
114
+ *
115
+ * @type {Array<Datastore>}
116
+ * @memberof Infra
117
+ */
118
+ datastores: Array<Datastore>;
119
+ }
120
+
121
+ /**
122
+ * Check if a given object implements the Infra interface.
123
+ */
124
+ export function instanceOfInfra(value: object): value is Infra {
125
+ if (!('totalHosts' in value) || value['totalHosts'] === undefined) return false;
126
+ if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined) return false;
127
+ if (!('networks' in value) || value['networks'] === undefined) return false;
128
+ if (!('datastores' in value) || value['datastores'] === undefined) return false;
129
+ return true;
130
+ }
131
+
132
+ export function InfraFromJSON(json: any): Infra {
133
+ return InfraFromJSONTyped(json, false);
134
+ }
135
+
136
+ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Infra {
137
+ if (json == null) {
138
+ return json;
139
+ }
140
+ return {
141
+
142
+ 'totalHosts': json['totalHosts'],
143
+ 'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
144
+ 'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
145
+ 'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
146
+ 'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
147
+ 'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
148
+ 'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
149
+ 'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
150
+ 'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
151
+ 'hostPowerStates': json['hostPowerStates'],
152
+ 'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
153
+ 'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
154
+ };
155
+ }
156
+
157
+ export function InfraToJSON(json: any): Infra {
158
+ return InfraToJSONTyped(json, false);
159
+ }
160
+
161
+ export function InfraToJSONTyped(value?: Infra | null, ignoreDiscriminator: boolean = false): any {
162
+ if (value == null) {
163
+ return value;
164
+ }
165
+
166
+ return {
167
+
168
+ 'totalHosts': value['totalHosts'],
169
+ 'totalDatacenters': value['totalDatacenters'],
170
+ 'totalClusters': value['totalClusters'],
171
+ 'clustersPerDatacenter': value['clustersPerDatacenter'],
172
+ 'cpuOverCommitment': value['cpuOverCommitment'],
173
+ 'memoryOverCommitment': value['memoryOverCommitment'],
174
+ 'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
175
+ 'hostsPerCluster': value['hostsPerCluster'],
176
+ 'vmsPerCluster': value['vmsPerCluster'],
177
+ 'hostPowerStates': value['hostPowerStates'],
178
+ 'networks': ((value['networks'] as Array<any>).map(NetworkToJSON)),
179
+ 'datastores': ((value['datastores'] as Array<any>).map(DatastoreToJSON)),
180
+ };
181
+ }
182
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { VcenterCredentials } from './VcenterCredentials.js';
17
+ import {
18
+ VcenterCredentialsFromJSON,
19
+ VcenterCredentialsFromJSONTyped,
20
+ VcenterCredentialsToJSON,
21
+ VcenterCredentialsToJSONTyped,
22
+ } from './VcenterCredentials.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface InspectorStartRequest
28
+ */
29
+ export interface InspectorStartRequest {
30
+ /**
31
+ *
32
+ * @type {VcenterCredentials}
33
+ * @memberof InspectorStartRequest
34
+ */
35
+ vcenterCredentials: VcenterCredentials;
36
+ /**
37
+ * Array of VirtualMachine id
38
+ * @type {Array<string>}
39
+ * @memberof InspectorStartRequest
40
+ */
41
+ vmIds: Array<string>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the InspectorStartRequest interface.
46
+ */
47
+ export function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest {
48
+ if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined) return false;
49
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function InspectorStartRequestFromJSON(json: any): InspectorStartRequest {
54
+ return InspectorStartRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
64
+ 'vmIds': json['vmIds'],
65
+ };
66
+ }
67
+
68
+ export function InspectorStartRequestToJSON(json: any): InspectorStartRequest {
69
+ return InspectorStartRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
80
+ 'vmIds': value['vmIds'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,90 @@
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 InspectorStatus
20
+ */
21
+ export interface InspectorStatus {
22
+ /**
23
+ * Inspector state
24
+ * @type {InspectorStatusStateEnum}
25
+ * @memberof InspectorStatus
26
+ */
27
+ state: InspectorStatusStateEnum;
28
+ /**
29
+ * Error message when state is error
30
+ * @type {string}
31
+ * @memberof InspectorStatus
32
+ */
33
+ error?: string;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const InspectorStatusStateEnum = {
41
+ Ready: 'ready',
42
+ Initiating: 'Initiating',
43
+ Running: 'running',
44
+ Canceling: 'canceling',
45
+ Canceled: 'canceled',
46
+ Completed: 'completed',
47
+ Error: 'error'
48
+ } as const;
49
+ export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the InspectorStatus interface.
54
+ */
55
+ export function instanceOfInspectorStatus(value: object): value is InspectorStatus {
56
+ if (!('state' in value) || value['state'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function InspectorStatusFromJSON(json: any): InspectorStatus {
61
+ return InspectorStatusFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStatus {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'state': json['state'],
71
+ 'error': json['error'] == null ? undefined : json['error'],
72
+ };
73
+ }
74
+
75
+ export function InspectorStatusToJSON(json: any): InspectorStatus {
76
+ return InspectorStatusToJSONTyped(json, false);
77
+ }
78
+
79
+ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'state': value['state'],
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+
@@ -0,0 +1,91 @@
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 { InventoryData } from './InventoryData.js';
17
+ import {
18
+ InventoryDataFromJSON,
19
+ InventoryDataFromJSONTyped,
20
+ InventoryDataToJSON,
21
+ InventoryDataToJSONTyped,
22
+ } from './InventoryData.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Inventory
28
+ */
29
+ export interface Inventory {
30
+ /**
31
+ * ID of the vCenter
32
+ * @type {string}
33
+ * @memberof Inventory
34
+ */
35
+ vcenterId: string;
36
+ /**
37
+ * Map of cluster names to their inventory data
38
+ * @type {{ [key: string]: InventoryData; }}
39
+ * @memberof Inventory
40
+ */
41
+ clusters: { [key: string]: InventoryData; };
42
+ /**
43
+ *
44
+ * @type {InventoryData}
45
+ * @memberof Inventory
46
+ */
47
+ vcenter?: InventoryData;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the Inventory interface.
52
+ */
53
+ export function instanceOfInventory(value: object): value is Inventory {
54
+ if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
55
+ if (!('clusters' in value) || value['clusters'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function InventoryFromJSON(json: any): Inventory {
60
+ return InventoryFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'vcenterId': json['vcenter_id'],
70
+ 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
71
+ 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
72
+ };
73
+ }
74
+
75
+ export function InventoryToJSON(json: any): Inventory {
76
+ return InventoryToJSONTyped(json, false);
77
+ }
78
+
79
+ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'vcenter_id': value['vcenterId'],
87
+ 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
+ 'vcenter': InventoryDataToJSON(value['vcenter']),
89
+ };
90
+ }
91
+
@@ -0,0 +1,105 @@
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 { VCenter } from './VCenter.js';
17
+ import {
18
+ VCenterFromJSON,
19
+ VCenterFromJSONTyped,
20
+ VCenterToJSON,
21
+ VCenterToJSONTyped,
22
+ } from './VCenter.js';
23
+ import type { Infra } from './Infra.js';
24
+ import {
25
+ InfraFromJSON,
26
+ InfraFromJSONTyped,
27
+ InfraToJSON,
28
+ InfraToJSONTyped,
29
+ } from './Infra.js';
30
+ import type { VMs } from './VMs.js';
31
+ import {
32
+ VMsFromJSON,
33
+ VMsFromJSONTyped,
34
+ VMsToJSON,
35
+ VMsToJSONTyped,
36
+ } from './VMs.js';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface InventoryData
42
+ */
43
+ export interface InventoryData {
44
+ /**
45
+ *
46
+ * @type {VCenter}
47
+ * @memberof InventoryData
48
+ */
49
+ vcenter?: VCenter;
50
+ /**
51
+ *
52
+ * @type {VMs}
53
+ * @memberof InventoryData
54
+ */
55
+ vms: VMs;
56
+ /**
57
+ *
58
+ * @type {Infra}
59
+ * @memberof InventoryData
60
+ */
61
+ infra: Infra;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the InventoryData interface.
66
+ */
67
+ export function instanceOfInventoryData(value: object): value is InventoryData {
68
+ if (!('vms' in value) || value['vms'] === undefined) return false;
69
+ if (!('infra' in value) || value['infra'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function InventoryDataFromJSON(json: any): InventoryData {
74
+ return InventoryDataFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryData {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
84
+ 'vms': VMsFromJSON(json['vms']),
85
+ 'infra': InfraFromJSON(json['infra']),
86
+ };
87
+ }
88
+
89
+ export function InventoryDataToJSON(json: any): InventoryData {
90
+ return InventoryDataToJSONTyped(json, false);
91
+ }
92
+
93
+ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'vcenter': VCenterToJSON(value['vcenter']),
101
+ 'vms': VMsToJSON(value['vms']),
102
+ 'infra': InfraToJSON(value['infra']),
103
+ };
104
+ }
105
+