@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,57 @@
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 InspectorStatusStateEnum = {
18
+ Ready: 'ready',
19
+ Initiating: 'Initiating',
20
+ Running: 'running',
21
+ Canceling: 'canceling',
22
+ Canceled: 'canceled',
23
+ Completed: 'completed',
24
+ Error: 'error'
25
+ };
26
+ /**
27
+ * Check if a given object implements the InspectorStatus interface.
28
+ */
29
+ export function instanceOfInspectorStatus(value) {
30
+ if (!('state' in value) || value['state'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function InspectorStatusFromJSON(json) {
35
+ return InspectorStatusFromJSONTyped(json, false);
36
+ }
37
+ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'state': json['state'],
43
+ 'error': json['error'] == null ? undefined : json['error'],
44
+ };
45
+ }
46
+ export function InspectorStatusToJSON(json) {
47
+ return InspectorStatusToJSONTyped(json, false);
48
+ }
49
+ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'state': value['state'],
55
+ 'error': value['error'],
56
+ };
57
+ }
@@ -0,0 +1,47 @@
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 { InventoryData } from './InventoryData.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Inventory
17
+ */
18
+ export interface Inventory {
19
+ /**
20
+ * ID of the vCenter
21
+ * @type {string}
22
+ * @memberof Inventory
23
+ */
24
+ vcenterId: string;
25
+ /**
26
+ * Map of cluster names to their inventory data
27
+ * @type {{ [key: string]: InventoryData; }}
28
+ * @memberof Inventory
29
+ */
30
+ clusters: {
31
+ [key: string]: InventoryData;
32
+ };
33
+ /**
34
+ *
35
+ * @type {InventoryData}
36
+ * @memberof Inventory
37
+ */
38
+ vcenter?: InventoryData;
39
+ }
40
+ /**
41
+ * Check if a given object implements the Inventory interface.
42
+ */
43
+ export declare function instanceOfInventory(value: object): value is Inventory;
44
+ export declare function InventoryFromJSON(json: any): Inventory;
45
+ export declare function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory;
46
+ export declare function InventoryToJSON(json: any): Inventory;
47
+ export declare function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 { mapValues } from '../runtime.js';
15
+ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
16
+ /**
17
+ * Check if a given object implements the Inventory interface.
18
+ */
19
+ export function instanceOfInventory(value) {
20
+ if (!('vcenterId' in value) || value['vcenterId'] === undefined)
21
+ return false;
22
+ if (!('clusters' in value) || value['clusters'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function InventoryFromJSON(json) {
27
+ return InventoryFromJSONTyped(json, false);
28
+ }
29
+ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'vcenterId': json['vcenter_id'],
35
+ 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
36
+ 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
37
+ };
38
+ }
39
+ export function InventoryToJSON(json) {
40
+ return InventoryToJSONTyped(json, false);
41
+ }
42
+ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'vcenter_id': value['vcenterId'],
48
+ 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
49
+ 'vcenter': InventoryDataToJSON(value['vcenter']),
50
+ };
51
+ }
@@ -0,0 +1,47 @@
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 { VCenter } from './VCenter.js';
13
+ import type { Infra } from './Infra.js';
14
+ import type { VMs } from './VMs.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface InventoryData
19
+ */
20
+ export interface InventoryData {
21
+ /**
22
+ *
23
+ * @type {VCenter}
24
+ * @memberof InventoryData
25
+ */
26
+ vcenter?: VCenter;
27
+ /**
28
+ *
29
+ * @type {VMs}
30
+ * @memberof InventoryData
31
+ */
32
+ vms: VMs;
33
+ /**
34
+ *
35
+ * @type {Infra}
36
+ * @memberof InventoryData
37
+ */
38
+ infra: Infra;
39
+ }
40
+ /**
41
+ * Check if a given object implements the InventoryData interface.
42
+ */
43
+ export declare function instanceOfInventoryData(value: object): value is InventoryData;
44
+ export declare function InventoryDataFromJSON(json: any): InventoryData;
45
+ export declare function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryData;
46
+ export declare function InventoryDataToJSON(json: any): InventoryData;
47
+ export declare function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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 { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
+ import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
+ import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
+ /**
18
+ * Check if a given object implements the InventoryData interface.
19
+ */
20
+ export function instanceOfInventoryData(value) {
21
+ if (!('vms' in value) || value['vms'] === undefined)
22
+ return false;
23
+ if (!('infra' in value) || value['infra'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function InventoryDataFromJSON(json) {
28
+ return InventoryDataFromJSONTyped(json, false);
29
+ }
30
+ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
36
+ 'vms': VMsFromJSON(json['vms']),
37
+ 'infra': InfraFromJSON(json['infra']),
38
+ };
39
+ }
40
+ export function InventoryDataToJSON(json) {
41
+ return InventoryDataToJSONTyped(json, false);
42
+ }
43
+ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'vcenter': VCenterToJSON(value['vcenter']),
49
+ 'vms': VMsToJSON(value['vms']),
50
+ 'infra': InfraToJSON(value['infra']),
51
+ };
52
+ }
@@ -0,0 +1,50 @@
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 MigrationIssue
16
+ */
17
+ export interface MigrationIssue {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MigrationIssue
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MigrationIssue
28
+ */
29
+ label: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MigrationIssue
34
+ */
35
+ assessment: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof MigrationIssue
40
+ */
41
+ count: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MigrationIssue interface.
45
+ */
46
+ export declare function instanceOfMigrationIssue(value: object): value is MigrationIssue;
47
+ export declare function MigrationIssueFromJSON(json: any): MigrationIssue;
48
+ export declare function MigrationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssue;
49
+ export declare function MigrationIssueToJSON(json: any): MigrationIssue;
50
+ export declare function MigrationIssueToJSONTyped(value?: MigrationIssue | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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
+ * Check if a given object implements the MigrationIssue interface.
16
+ */
17
+ export function instanceOfMigrationIssue(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('assessment' in value) || value['assessment'] === undefined)
21
+ return false;
22
+ if (!('count' in value) || value['count'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MigrationIssueFromJSON(json) {
27
+ return MigrationIssueFromJSONTyped(json, false);
28
+ }
29
+ export function MigrationIssueFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'] == null ? undefined : json['id'],
35
+ 'label': json['label'],
36
+ 'assessment': json['assessment'],
37
+ 'count': json['count'],
38
+ };
39
+ }
40
+ export function MigrationIssueToJSON(json) {
41
+ return MigrationIssueToJSONTyped(json, false);
42
+ }
43
+ export function MigrationIssueToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'label': value['label'],
50
+ 'assessment': value['assessment'],
51
+ 'count': value['count'],
52
+ };
53
+ }
@@ -0,0 +1,66 @@
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 Network
16
+ */
17
+ export interface Network {
18
+ /**
19
+ *
20
+ * @type {NetworkTypeEnum}
21
+ * @memberof Network
22
+ */
23
+ type: NetworkTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Network
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Network
34
+ */
35
+ vlanId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Network
40
+ */
41
+ dvswitch?: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof Network
46
+ */
47
+ vmsCount?: number;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const NetworkTypeEnum: {
53
+ readonly Standard: "standard";
54
+ readonly Distributed: "distributed";
55
+ readonly Dvswitch: "dvswitch";
56
+ readonly Unsupported: "unsupported";
57
+ };
58
+ export type NetworkTypeEnum = typeof NetworkTypeEnum[keyof typeof NetworkTypeEnum];
59
+ /**
60
+ * Check if a given object implements the Network interface.
61
+ */
62
+ export declare function instanceOfNetwork(value: object): value is Network;
63
+ export declare function NetworkFromJSON(json: any): Network;
64
+ export declare function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network;
65
+ export declare function NetworkToJSON(json: any): Network;
66
+ export declare function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 NetworkTypeEnum = {
18
+ Standard: 'standard',
19
+ Distributed: 'distributed',
20
+ Dvswitch: 'dvswitch',
21
+ Unsupported: 'unsupported'
22
+ };
23
+ /**
24
+ * Check if a given object implements the Network interface.
25
+ */
26
+ export function instanceOfNetwork(value) {
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function NetworkFromJSON(json) {
34
+ return NetworkFromJSONTyped(json, false);
35
+ }
36
+ export function NetworkFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'type': json['type'],
42
+ 'name': json['name'],
43
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
44
+ 'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
45
+ 'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'],
46
+ };
47
+ }
48
+ export function NetworkToJSON(json) {
49
+ return NetworkToJSONTyped(json, false);
50
+ }
51
+ export function NetworkToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'type': value['type'],
57
+ 'name': value['name'],
58
+ 'vlanId': value['vlanId'],
59
+ 'dvswitch': value['dvswitch'],
60
+ 'vmsCount': value['vmsCount'],
61
+ };
62
+ }
@@ -0,0 +1,44 @@
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 OsInfo
16
+ */
17
+ export interface OsInfo {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof OsInfo
22
+ */
23
+ count: number;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof OsInfo
28
+ */
29
+ supported: boolean;
30
+ /**
31
+ * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
+ * @type {string}
33
+ * @memberof OsInfo
34
+ */
35
+ upgradeRecommendation?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the OsInfo interface.
39
+ */
40
+ export declare function instanceOfOsInfo(value: object): value is OsInfo;
41
+ export declare function OsInfoFromJSON(json: any): OsInfo;
42
+ export declare function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsInfo;
43
+ export declare function OsInfoToJSON(json: any): OsInfo;
44
+ export declare function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ * Check if a given object implements the OsInfo interface.
16
+ */
17
+ export function instanceOfOsInfo(value) {
18
+ if (!('count' in value) || value['count'] === undefined)
19
+ return false;
20
+ if (!('supported' in value) || value['supported'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function OsInfoFromJSON(json) {
25
+ return OsInfoFromJSONTyped(json, false);
26
+ }
27
+ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'count': json['count'],
33
+ 'supported': json['supported'],
34
+ 'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
35
+ };
36
+ }
37
+ export function OsInfoToJSON(json) {
38
+ return OsInfoToJSONTyped(json, false);
39
+ }
40
+ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'count': value['count'],
46
+ 'supported': value['supported'],
47
+ 'upgradeRecommendation': value['upgradeRecommendation'],
48
+ };
49
+ }
@@ -0,0 +1,50 @@
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 UpdateGroupRequest
16
+ */
17
+ export interface UpdateGroupRequest {
18
+ /**
19
+ * Group display name
20
+ * @type {string}
21
+ * @memberof UpdateGroupRequest
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Optional group description
26
+ * @type {string}
27
+ * @memberof UpdateGroupRequest
28
+ */
29
+ description?: string;
30
+ /**
31
+ * Filter expression (will be validated)
32
+ * @type {string}
33
+ * @memberof UpdateGroupRequest
34
+ */
35
+ filter?: string;
36
+ /**
37
+ * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
+ * @type {Array<string>}
39
+ * @memberof UpdateGroupRequest
40
+ */
41
+ tags?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the UpdateGroupRequest interface.
45
+ */
46
+ export declare function instanceOfUpdateGroupRequest(value: object): value is UpdateGroupRequest;
47
+ export declare function UpdateGroupRequestFromJSON(json: any): UpdateGroupRequest;
48
+ export declare function UpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateGroupRequest;
49
+ export declare function UpdateGroupRequestToJSON(json: any): UpdateGroupRequest;
50
+ export declare function UpdateGroupRequestToJSONTyped(value?: UpdateGroupRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the UpdateGroupRequest interface.
16
+ */
17
+ export function instanceOfUpdateGroupRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateGroupRequestFromJSON(json) {
21
+ return UpdateGroupRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'description': json['description'] == null ? undefined : json['description'],
30
+ 'filter': json['filter'] == null ? undefined : json['filter'],
31
+ 'tags': json['tags'] == null ? undefined : json['tags'],
32
+ };
33
+ }
34
+ export function UpdateGroupRequestToJSON(json) {
35
+ return UpdateGroupRequestToJSONTyped(json, false);
36
+ }
37
+ export function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'description': value['description'],
44
+ 'filter': value['filter'],
45
+ 'tags': value['tags'],
46
+ };
47
+ }