@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,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './DefaultApi.js';
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime.js';
4
+ export * from './apis/index.js';
5
+ export * from './models/index.js';
@@ -0,0 +1,77 @@
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 AgentModeRequest
20
+ */
21
+ export interface AgentModeRequest {
22
+ /**
23
+ *
24
+ * @type {AgentModeRequestModeEnum}
25
+ * @memberof AgentModeRequest
26
+ */
27
+ mode: AgentModeRequestModeEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const AgentModeRequestModeEnum = {
35
+ Connected: 'connected',
36
+ Disconnected: 'disconnected'
37
+ } as const;
38
+ export type AgentModeRequestModeEnum = typeof AgentModeRequestModeEnum[keyof typeof AgentModeRequestModeEnum];
39
+
40
+
41
+ /**
42
+ * Check if a given object implements the AgentModeRequest interface.
43
+ */
44
+ export function instanceOfAgentModeRequest(value: object): value is AgentModeRequest {
45
+ if (!('mode' in value) || value['mode'] === undefined) return false;
46
+ return true;
47
+ }
48
+
49
+ export function AgentModeRequestFromJSON(json: any): AgentModeRequest {
50
+ return AgentModeRequestFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function AgentModeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentModeRequest {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'mode': json['mode'],
60
+ };
61
+ }
62
+
63
+ export function AgentModeRequestToJSON(json: any): AgentModeRequest {
64
+ return AgentModeRequestToJSONTyped(json, false);
65
+ }
66
+
67
+ export function AgentModeRequestToJSONTyped(value?: AgentModeRequest | null, ignoreDiscriminator: boolean = false): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+
72
+ return {
73
+
74
+ 'mode': value['mode'],
75
+ };
76
+ }
77
+
@@ -0,0 +1,103 @@
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 AgentStatus
20
+ */
21
+ export interface AgentStatus {
22
+ /**
23
+ * Target mode for the agent
24
+ * @type {AgentStatusModeEnum}
25
+ * @memberof AgentStatus
26
+ */
27
+ mode: AgentStatusModeEnum;
28
+ /**
29
+ * Current console connection status
30
+ * @type {AgentStatusConsoleConnectionEnum}
31
+ * @memberof AgentStatus
32
+ */
33
+ consoleConnection: AgentStatusConsoleConnectionEnum;
34
+ /**
35
+ * Connection error description
36
+ * @type {string}
37
+ * @memberof AgentStatus
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AgentStatusModeEnum = {
47
+ Connected: 'connected',
48
+ Disconnected: 'disconnected'
49
+ } as const;
50
+ export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
51
+
52
+ /**
53
+ * @export
54
+ */
55
+ export const AgentStatusConsoleConnectionEnum = {
56
+ Disconnected: 'disconnected',
57
+ Connected: 'connected'
58
+ } as const;
59
+ export type AgentStatusConsoleConnectionEnum = typeof AgentStatusConsoleConnectionEnum[keyof typeof AgentStatusConsoleConnectionEnum];
60
+
61
+
62
+ /**
63
+ * Check if a given object implements the AgentStatus interface.
64
+ */
65
+ export function instanceOfAgentStatus(value: object): value is AgentStatus {
66
+ if (!('mode' in value) || value['mode'] === undefined) return false;
67
+ if (!('consoleConnection' in value) || value['consoleConnection'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function AgentStatusFromJSON(json: any): AgentStatus {
72
+ return AgentStatusFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentStatus {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'mode': json['mode'],
82
+ 'consoleConnection': json['console_connection'],
83
+ 'error': json['error'] == null ? undefined : json['error'],
84
+ };
85
+ }
86
+
87
+ export function AgentStatusToJSON(json: any): AgentStatus {
88
+ return AgentStatusToJSONTyped(json, false);
89
+ }
90
+
91
+ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'mode': value['mode'],
99
+ 'console_connection': value['consoleConnection'],
100
+ 'error': value['error'],
101
+ };
102
+ }
103
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CollectorStartRequest
20
+ */
21
+ export interface CollectorStartRequest {
22
+ /**
23
+ * vCenter URL
24
+ * @type {string}
25
+ * @memberof CollectorStartRequest
26
+ */
27
+ url: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CollectorStartRequest
32
+ */
33
+ username: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CollectorStartRequest
38
+ */
39
+ password: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the CollectorStartRequest interface.
44
+ */
45
+ export function instanceOfCollectorStartRequest(value: object): value is CollectorStartRequest {
46
+ if (!('url' in value) || value['url'] === undefined) return false;
47
+ if (!('username' in value) || value['username'] === undefined) return false;
48
+ if (!('password' in value) || value['password'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function CollectorStartRequestFromJSON(json: any): CollectorStartRequest {
53
+ return CollectorStartRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectorStartRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'url': json['url'],
63
+ 'username': json['username'],
64
+ 'password': json['password'],
65
+ };
66
+ }
67
+
68
+ export function CollectorStartRequestToJSON(json: any): CollectorStartRequest {
69
+ return CollectorStartRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function CollectorStartRequestToJSONTyped(value?: CollectorStartRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'url': value['url'],
80
+ 'username': value['username'],
81
+ 'password': value['password'],
82
+ };
83
+ }
84
+
@@ -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 CollectorStatus
20
+ */
21
+ export interface CollectorStatus {
22
+ /**
23
+ *
24
+ * @type {CollectorStatusStatusEnum}
25
+ * @memberof CollectorStatus
26
+ */
27
+ status: CollectorStatusStatusEnum;
28
+ /**
29
+ * Error message when status is error
30
+ * @type {string}
31
+ * @memberof CollectorStatus
32
+ */
33
+ error?: string;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const CollectorStatusStatusEnum = {
41
+ Ready: 'ready',
42
+ Connecting: 'connecting',
43
+ Connected: 'connected',
44
+ Collecting: 'collecting',
45
+ Parsing: 'parsing',
46
+ Collected: 'collected',
47
+ Error: 'error'
48
+ } as const;
49
+ export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the CollectorStatus interface.
54
+ */
55
+ export function instanceOfCollectorStatus(value: object): value is CollectorStatus {
56
+ if (!('status' in value) || value['status'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function CollectorStatusFromJSON(json: any): CollectorStatus {
61
+ return CollectorStatusFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function CollectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectorStatus {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'status': json['status'],
71
+ 'error': json['error'] == null ? undefined : json['error'],
72
+ };
73
+ }
74
+
75
+ export function CollectorStatusToJSON(json: any): CollectorStatus {
76
+ return CollectorStatusToJSONTyped(json, false);
77
+ }
78
+
79
+ export function CollectorStatusToJSONTyped(value?: CollectorStatus | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'status': value['status'],
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateGroupRequest
20
+ */
21
+ export interface CreateGroupRequest {
22
+ /**
23
+ * Group display name
24
+ * @type {string}
25
+ * @memberof CreateGroupRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ * Optional group description
30
+ * @type {string}
31
+ * @memberof CreateGroupRequest
32
+ */
33
+ description?: string;
34
+ /**
35
+ * Filter expression (will be validated)
36
+ * @type {string}
37
+ * @memberof CreateGroupRequest
38
+ */
39
+ filter: string;
40
+ /**
41
+ * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
42
+ * @type {Array<string>}
43
+ * @memberof CreateGroupRequest
44
+ */
45
+ tags?: Array<string>;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CreateGroupRequest interface.
50
+ */
51
+ export function instanceOfCreateGroupRequest(value: object): value is CreateGroupRequest {
52
+ if (!('name' in value) || value['name'] === undefined) return false;
53
+ if (!('filter' in value) || value['filter'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function CreateGroupRequestFromJSON(json: any): CreateGroupRequest {
58
+ return CreateGroupRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupRequest {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'name': json['name'],
68
+ 'description': json['description'] == null ? undefined : json['description'],
69
+ 'filter': json['filter'],
70
+ 'tags': json['tags'] == null ? undefined : json['tags'],
71
+ };
72
+ }
73
+
74
+ export function CreateGroupRequestToJSON(json: any): CreateGroupRequest {
75
+ return CreateGroupRequestToJSONTyped(json, false);
76
+ }
77
+
78
+ export function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'name': value['name'],
86
+ 'description': value['description'],
87
+ 'filter': value['filter'],
88
+ 'tags': value['tags'],
89
+ };
90
+ }
91
+
@@ -0,0 +1,137 @@
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 Datastore
20
+ */
21
+ export interface Datastore {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Datastore
26
+ */
27
+ type: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof Datastore
32
+ */
33
+ totalCapacityGB: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof Datastore
38
+ */
39
+ freeCapacityGB: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Datastore
44
+ */
45
+ vendor: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Datastore
50
+ */
51
+ diskId: string;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof Datastore
56
+ */
57
+ hardwareAcceleratedMove: boolean;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Datastore
62
+ */
63
+ protocolType: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Datastore
68
+ */
69
+ model: string;
70
+ /**
71
+ * Identifier of the host where this datastore is attached
72
+ * @type {string}
73
+ * @memberof Datastore
74
+ */
75
+ hostId?: string | null;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the Datastore interface.
80
+ */
81
+ export function instanceOfDatastore(value: object): value is Datastore {
82
+ if (!('type' in value) || value['type'] === undefined) return false;
83
+ if (!('totalCapacityGB' in value) || value['totalCapacityGB'] === undefined) return false;
84
+ if (!('freeCapacityGB' in value) || value['freeCapacityGB'] === undefined) return false;
85
+ if (!('vendor' in value) || value['vendor'] === undefined) return false;
86
+ if (!('diskId' in value) || value['diskId'] === undefined) return false;
87
+ if (!('hardwareAcceleratedMove' in value) || value['hardwareAcceleratedMove'] === undefined) return false;
88
+ if (!('protocolType' in value) || value['protocolType'] === undefined) return false;
89
+ if (!('model' in value) || value['model'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function DatastoreFromJSON(json: any): Datastore {
94
+ return DatastoreFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Datastore {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'type': json['type'],
104
+ 'totalCapacityGB': json['totalCapacityGB'],
105
+ 'freeCapacityGB': json['freeCapacityGB'],
106
+ 'vendor': json['vendor'],
107
+ 'diskId': json['diskId'],
108
+ 'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
109
+ 'protocolType': json['protocolType'],
110
+ 'model': json['model'],
111
+ 'hostId': json['hostId'] == null ? undefined : json['hostId'],
112
+ };
113
+ }
114
+
115
+ export function DatastoreToJSON(json: any): Datastore {
116
+ return DatastoreToJSONTyped(json, false);
117
+ }
118
+
119
+ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'type': value['type'],
127
+ 'totalCapacityGB': value['totalCapacityGB'],
128
+ 'freeCapacityGB': value['freeCapacityGB'],
129
+ 'vendor': value['vendor'],
130
+ 'diskId': value['diskId'],
131
+ 'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
132
+ 'protocolType': value['protocolType'],
133
+ 'model': value['model'],
134
+ 'hostId': value['hostId'],
135
+ };
136
+ }
137
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DiskSizeTierSummary
20
+ */
21
+ export interface DiskSizeTierSummary {
22
+ /**
23
+ * Total disk size in TB for this tier
24
+ * @type {number}
25
+ * @memberof DiskSizeTierSummary
26
+ */
27
+ totalSizeTB: number;
28
+ /**
29
+ * Number of VMs in this tier
30
+ * @type {number}
31
+ * @memberof DiskSizeTierSummary
32
+ */
33
+ vmCount: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DiskSizeTierSummary interface.
38
+ */
39
+ export function instanceOfDiskSizeTierSummary(value: object): value is DiskSizeTierSummary {
40
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined) return false;
41
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DiskSizeTierSummaryFromJSON(json: any): DiskSizeTierSummary {
46
+ return DiskSizeTierSummaryFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DiskSizeTierSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskSizeTierSummary {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'totalSizeTB': json['totalSizeTB'],
56
+ 'vmCount': json['vmCount'],
57
+ };
58
+ }
59
+
60
+ export function DiskSizeTierSummaryToJSON(json: any): DiskSizeTierSummary {
61
+ return DiskSizeTierSummaryToJSONTyped(json, false);
62
+ }
63
+
64
+ export function DiskSizeTierSummaryToJSONTyped(value?: DiskSizeTierSummary | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'totalSizeTB': value['totalSizeTB'],
72
+ 'vmCount': value['vmCount'],
73
+ };
74
+ }
75
+