@openshift-migration-advisor/planner-sdk 0.4.0-190ea33a47ea

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 (309) hide show
  1. package/.openapi-generator/FILES +105 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +173 -0
  5. package/dist/apis/AssessmentApi.d.ts +236 -0
  6. package/dist/apis/AssessmentApi.js +277 -0
  7. package/dist/apis/HealthApi.d.ts +54 -0
  8. package/dist/apis/HealthApi.js +66 -0
  9. package/dist/apis/ImageApi.d.ts +94 -0
  10. package/dist/apis/ImageApi.js +110 -0
  11. package/dist/apis/InfoApi.d.ts +55 -0
  12. package/dist/apis/InfoApi.js +68 -0
  13. package/dist/apis/JobApi.d.ts +131 -0
  14. package/dist/apis/JobApi.js +174 -0
  15. package/dist/apis/SourceApi.d.ts +260 -0
  16. package/dist/apis/SourceApi.js +309 -0
  17. package/dist/apis/index.d.ts +6 -0
  18. package/dist/apis/index.js +24 -0
  19. package/dist/esm/apis/AssessmentApi.d.ts +236 -0
  20. package/dist/esm/apis/AssessmentApi.js +273 -0
  21. package/dist/esm/apis/HealthApi.d.ts +54 -0
  22. package/dist/esm/apis/HealthApi.js +62 -0
  23. package/dist/esm/apis/ImageApi.d.ts +94 -0
  24. package/dist/esm/apis/ImageApi.js +106 -0
  25. package/dist/esm/apis/InfoApi.d.ts +55 -0
  26. package/dist/esm/apis/InfoApi.js +64 -0
  27. package/dist/esm/apis/JobApi.d.ts +131 -0
  28. package/dist/esm/apis/JobApi.js +170 -0
  29. package/dist/esm/apis/SourceApi.d.ts +260 -0
  30. package/dist/esm/apis/SourceApi.js +305 -0
  31. package/dist/esm/apis/index.d.ts +6 -0
  32. package/dist/esm/apis/index.js +8 -0
  33. package/dist/esm/index.d.ts +3 -0
  34. package/dist/esm/index.js +5 -0
  35. package/dist/esm/models/Agent.d.ts +80 -0
  36. package/dist/esm/models/Agent.js +78 -0
  37. package/dist/esm/models/AgentProxy.d.ts +44 -0
  38. package/dist/esm/models/AgentProxy.js +45 -0
  39. package/dist/esm/models/Assessment.d.ts +84 -0
  40. package/dist/esm/models/Assessment.js +74 -0
  41. package/dist/esm/models/AssessmentForm.d.ts +54 -0
  42. package/dist/esm/models/AssessmentForm.js +52 -0
  43. package/dist/esm/models/AssessmentUpdate.d.ts +32 -0
  44. package/dist/esm/models/AssessmentUpdate.js +41 -0
  45. package/dist/esm/models/ClusterRequirementsRequest.d.ts +87 -0
  46. package/dist/esm/models/ClusterRequirementsRequest.js +80 -0
  47. package/dist/esm/models/ClusterRequirementsResponse.d.ts +47 -0
  48. package/dist/esm/models/ClusterRequirementsResponse.js +54 -0
  49. package/dist/esm/models/ClusterSizing.d.ts +62 -0
  50. package/dist/esm/models/ClusterSizing.js +63 -0
  51. package/dist/esm/models/Datastore.d.ts +80 -0
  52. package/dist/esm/models/Datastore.js +73 -0
  53. package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
  54. package/dist/esm/models/DiskSizeTierSummary.js +47 -0
  55. package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
  56. package/dist/esm/models/DiskTypeSummary.js +47 -0
  57. package/dist/esm/models/Histogram.d.ts +44 -0
  58. package/dist/esm/models/Histogram.js +51 -0
  59. package/dist/esm/models/Host.d.ts +62 -0
  60. package/dist/esm/models/Host.js +55 -0
  61. package/dist/esm/models/Info.d.ts +38 -0
  62. package/dist/esm/models/Info.js +47 -0
  63. package/dist/esm/models/Infra.d.ts +106 -0
  64. package/dist/esm/models/Infra.js +74 -0
  65. package/dist/esm/models/Inventory.d.ts +47 -0
  66. package/dist/esm/models/Inventory.js +51 -0
  67. package/dist/esm/models/InventoryData.d.ts +47 -0
  68. package/dist/esm/models/InventoryData.js +52 -0
  69. package/dist/esm/models/InventoryTotals.d.ts +44 -0
  70. package/dist/esm/models/InventoryTotals.js +51 -0
  71. package/dist/esm/models/Ipv4Config.d.ts +50 -0
  72. package/dist/esm/models/Ipv4Config.js +55 -0
  73. package/dist/esm/models/Job.d.ts +51 -0
  74. package/dist/esm/models/Job.js +52 -0
  75. package/dist/esm/models/JobStatus.d.ts +36 -0
  76. package/dist/esm/models/JobStatus.js +54 -0
  77. package/dist/esm/models/Label.d.ts +38 -0
  78. package/dist/esm/models/Label.js +47 -0
  79. package/dist/esm/models/MigrationIssue.d.ts +50 -0
  80. package/dist/esm/models/MigrationIssue.js +53 -0
  81. package/dist/esm/models/ModelError.d.ts +38 -0
  82. package/dist/esm/models/ModelError.js +45 -0
  83. package/dist/esm/models/Network.d.ts +66 -0
  84. package/dist/esm/models/Network.js +62 -0
  85. package/dist/esm/models/OsInfo.d.ts +44 -0
  86. package/dist/esm/models/OsInfo.js +49 -0
  87. package/dist/esm/models/PresignedUrl.d.ts +38 -0
  88. package/dist/esm/models/PresignedUrl.js +45 -0
  89. package/dist/esm/models/SizingOverCommitRatio.d.ts +38 -0
  90. package/dist/esm/models/SizingOverCommitRatio.js +47 -0
  91. package/dist/esm/models/SizingResourceConsumption.d.ts +52 -0
  92. package/dist/esm/models/SizingResourceConsumption.js +53 -0
  93. package/dist/esm/models/SizingResourceLimits.d.ts +38 -0
  94. package/dist/esm/models/SizingResourceLimits.js +47 -0
  95. package/dist/esm/models/Snapshot.d.ts +39 -0
  96. package/dist/esm/models/Snapshot.js +48 -0
  97. package/dist/esm/models/Source.d.ts +84 -0
  98. package/dist/esm/models/Source.js +71 -0
  99. package/dist/esm/models/SourceCreate.d.ts +65 -0
  100. package/dist/esm/models/SourceCreate.js +56 -0
  101. package/dist/esm/models/SourceInfra.d.ts +46 -0
  102. package/dist/esm/models/SourceInfra.js +47 -0
  103. package/dist/esm/models/SourceUpdate.d.ts +65 -0
  104. package/dist/esm/models/SourceUpdate.js +54 -0
  105. package/dist/esm/models/Status.d.ts +44 -0
  106. package/dist/esm/models/Status.js +45 -0
  107. package/dist/esm/models/UpdateInventory.d.ts +39 -0
  108. package/dist/esm/models/UpdateInventory.js +48 -0
  109. package/dist/esm/models/VCenter.d.ts +32 -0
  110. package/dist/esm/models/VCenter.js +43 -0
  111. package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
  112. package/dist/esm/models/VMResourceBreakdown.js +58 -0
  113. package/dist/esm/models/VMs.d.ts +162 -0
  114. package/dist/esm/models/VMs.js +101 -0
  115. package/dist/esm/models/VmNetwork.d.ts +33 -0
  116. package/dist/esm/models/VmNetwork.js +42 -0
  117. package/dist/esm/models/index.d.ts +41 -0
  118. package/dist/esm/models/index.js +43 -0
  119. package/dist/esm/runtime.d.ts +184 -0
  120. package/dist/esm/runtime.js +334 -0
  121. package/dist/index.d.ts +3 -0
  122. package/dist/index.js +21 -0
  123. package/dist/models/Agent.d.ts +80 -0
  124. package/dist/models/Agent.js +86 -0
  125. package/dist/models/AgentProxy.d.ts +44 -0
  126. package/dist/models/AgentProxy.js +52 -0
  127. package/dist/models/Assessment.d.ts +84 -0
  128. package/dist/models/Assessment.js +82 -0
  129. package/dist/models/AssessmentForm.d.ts +54 -0
  130. package/dist/models/AssessmentForm.js +59 -0
  131. package/dist/models/AssessmentUpdate.d.ts +32 -0
  132. package/dist/models/AssessmentUpdate.js +48 -0
  133. package/dist/models/ClusterRequirementsRequest.d.ts +87 -0
  134. package/dist/models/ClusterRequirementsRequest.js +88 -0
  135. package/dist/models/ClusterRequirementsResponse.d.ts +47 -0
  136. package/dist/models/ClusterRequirementsResponse.js +61 -0
  137. package/dist/models/ClusterSizing.d.ts +62 -0
  138. package/dist/models/ClusterSizing.js +70 -0
  139. package/dist/models/Datastore.d.ts +80 -0
  140. package/dist/models/Datastore.js +80 -0
  141. package/dist/models/DiskSizeTierSummary.d.ts +38 -0
  142. package/dist/models/DiskSizeTierSummary.js +54 -0
  143. package/dist/models/DiskTypeSummary.d.ts +38 -0
  144. package/dist/models/DiskTypeSummary.js +54 -0
  145. package/dist/models/Histogram.d.ts +44 -0
  146. package/dist/models/Histogram.js +58 -0
  147. package/dist/models/Host.d.ts +62 -0
  148. package/dist/models/Host.js +62 -0
  149. package/dist/models/Info.d.ts +38 -0
  150. package/dist/models/Info.js +54 -0
  151. package/dist/models/Infra.d.ts +106 -0
  152. package/dist/models/Infra.js +81 -0
  153. package/dist/models/Inventory.d.ts +47 -0
  154. package/dist/models/Inventory.js +58 -0
  155. package/dist/models/InventoryData.d.ts +47 -0
  156. package/dist/models/InventoryData.js +59 -0
  157. package/dist/models/InventoryTotals.d.ts +44 -0
  158. package/dist/models/InventoryTotals.js +58 -0
  159. package/dist/models/Ipv4Config.d.ts +50 -0
  160. package/dist/models/Ipv4Config.js +62 -0
  161. package/dist/models/Job.d.ts +51 -0
  162. package/dist/models/Job.js +59 -0
  163. package/dist/models/JobStatus.d.ts +36 -0
  164. package/dist/models/JobStatus.js +62 -0
  165. package/dist/models/Label.d.ts +38 -0
  166. package/dist/models/Label.js +54 -0
  167. package/dist/models/MigrationIssue.d.ts +50 -0
  168. package/dist/models/MigrationIssue.js +60 -0
  169. package/dist/models/ModelError.d.ts +38 -0
  170. package/dist/models/ModelError.js +52 -0
  171. package/dist/models/Network.d.ts +66 -0
  172. package/dist/models/Network.js +70 -0
  173. package/dist/models/OsInfo.d.ts +44 -0
  174. package/dist/models/OsInfo.js +56 -0
  175. package/dist/models/PresignedUrl.d.ts +38 -0
  176. package/dist/models/PresignedUrl.js +52 -0
  177. package/dist/models/SizingOverCommitRatio.d.ts +38 -0
  178. package/dist/models/SizingOverCommitRatio.js +54 -0
  179. package/dist/models/SizingResourceConsumption.d.ts +52 -0
  180. package/dist/models/SizingResourceConsumption.js +60 -0
  181. package/dist/models/SizingResourceLimits.d.ts +38 -0
  182. package/dist/models/SizingResourceLimits.js +54 -0
  183. package/dist/models/Snapshot.d.ts +39 -0
  184. package/dist/models/Snapshot.js +55 -0
  185. package/dist/models/Source.d.ts +84 -0
  186. package/dist/models/Source.js +78 -0
  187. package/dist/models/SourceCreate.d.ts +65 -0
  188. package/dist/models/SourceCreate.js +63 -0
  189. package/dist/models/SourceInfra.d.ts +46 -0
  190. package/dist/models/SourceInfra.js +54 -0
  191. package/dist/models/SourceUpdate.d.ts +65 -0
  192. package/dist/models/SourceUpdate.js +61 -0
  193. package/dist/models/Status.d.ts +44 -0
  194. package/dist/models/Status.js +52 -0
  195. package/dist/models/UpdateInventory.d.ts +39 -0
  196. package/dist/models/UpdateInventory.js +55 -0
  197. package/dist/models/VCenter.d.ts +32 -0
  198. package/dist/models/VCenter.js +50 -0
  199. package/dist/models/VMResourceBreakdown.d.ts +58 -0
  200. package/dist/models/VMResourceBreakdown.js +65 -0
  201. package/dist/models/VMs.d.ts +162 -0
  202. package/dist/models/VMs.js +108 -0
  203. package/dist/models/VmNetwork.d.ts +33 -0
  204. package/dist/models/VmNetwork.js +49 -0
  205. package/dist/models/index.d.ts +41 -0
  206. package/dist/models/index.js +59 -0
  207. package/dist/runtime.d.ts +184 -0
  208. package/dist/runtime.js +350 -0
  209. package/docs/Agent.md +46 -0
  210. package/docs/AgentProxy.md +38 -0
  211. package/docs/Assessment.md +48 -0
  212. package/docs/AssessmentApi.md +448 -0
  213. package/docs/AssessmentForm.md +40 -0
  214. package/docs/AssessmentUpdate.md +35 -0
  215. package/docs/ClusterRequirementsRequest.md +47 -0
  216. package/docs/ClusterRequirementsResponse.md +39 -0
  217. package/docs/ClusterSizing.md +45 -0
  218. package/docs/Datastore.md +50 -0
  219. package/docs/DiskSizeTierSummary.md +36 -0
  220. package/docs/DiskTypeSummary.md +36 -0
  221. package/docs/HealthApi.md +68 -0
  222. package/docs/Histogram.md +38 -0
  223. package/docs/Host.md +44 -0
  224. package/docs/ImageApi.md +152 -0
  225. package/docs/Info.md +37 -0
  226. package/docs/InfoApi.md +69 -0
  227. package/docs/Infra.md +56 -0
  228. package/docs/Inventory.md +38 -0
  229. package/docs/InventoryData.md +38 -0
  230. package/docs/InventoryTotals.md +39 -0
  231. package/docs/Ipv4Config.md +40 -0
  232. package/docs/Job.md +41 -0
  233. package/docs/JobApi.md +229 -0
  234. package/docs/JobStatus.md +33 -0
  235. package/docs/Label.md +36 -0
  236. package/docs/MigrationIssue.md +40 -0
  237. package/docs/ModelError.md +36 -0
  238. package/docs/Network.md +42 -0
  239. package/docs/OsInfo.md +38 -0
  240. package/docs/PresignedUrl.md +36 -0
  241. package/docs/SizingOverCommitRatio.md +37 -0
  242. package/docs/SizingResourceConsumption.md +41 -0
  243. package/docs/SizingResourceLimits.md +37 -0
  244. package/docs/Snapshot.md +36 -0
  245. package/docs/Source.md +50 -0
  246. package/docs/SourceApi.md +501 -0
  247. package/docs/SourceCreate.md +44 -0
  248. package/docs/SourceInfra.md +38 -0
  249. package/docs/SourceUpdate.md +44 -0
  250. package/docs/Status.md +39 -0
  251. package/docs/UpdateInventory.md +36 -0
  252. package/docs/VCenter.md +34 -0
  253. package/docs/VMResourceBreakdown.md +42 -0
  254. package/docs/VMs.md +70 -0
  255. package/docs/VmNetwork.md +34 -0
  256. package/package.json +22 -0
  257. package/src/apis/AssessmentApi.ts +501 -0
  258. package/src/apis/HealthApi.ts +88 -0
  259. package/src/apis/ImageApi.ts +180 -0
  260. package/src/apis/InfoApi.ts +96 -0
  261. package/src/apis/JobApi.ts +286 -0
  262. package/src/apis/SourceApi.ts +548 -0
  263. package/src/apis/index.ts +8 -0
  264. package/src/index.ts +5 -0
  265. package/src/models/Agent.ts +135 -0
  266. package/src/models/AgentProxy.ts +81 -0
  267. package/src/models/Assessment.ts +146 -0
  268. package/src/models/AssessmentForm.ts +102 -0
  269. package/src/models/AssessmentUpdate.ts +65 -0
  270. package/src/models/ClusterRequirementsRequest.ts +141 -0
  271. package/src/models/ClusterRequirementsResponse.ts +106 -0
  272. package/src/models/ClusterSizing.ts +111 -0
  273. package/src/models/Datastore.ts +137 -0
  274. package/src/models/DiskSizeTierSummary.ts +75 -0
  275. package/src/models/DiskTypeSummary.ts +75 -0
  276. package/src/models/Histogram.ts +84 -0
  277. package/src/models/Host.ts +107 -0
  278. package/src/models/Info.ts +75 -0
  279. package/src/models/Infra.ts +182 -0
  280. package/src/models/Inventory.ts +91 -0
  281. package/src/models/InventoryData.ts +105 -0
  282. package/src/models/InventoryTotals.ts +84 -0
  283. package/src/models/Ipv4Config.ts +93 -0
  284. package/src/models/Job.ts +101 -0
  285. package/src/models/JobStatus.ts +64 -0
  286. package/src/models/Label.ts +75 -0
  287. package/src/models/MigrationIssue.ts +92 -0
  288. package/src/models/ModelError.ts +74 -0
  289. package/src/models/Network.ts +112 -0
  290. package/src/models/OsInfo.ts +83 -0
  291. package/src/models/PresignedUrl.ts +74 -0
  292. package/src/models/SizingOverCommitRatio.ts +75 -0
  293. package/src/models/SizingResourceConsumption.ts +106 -0
  294. package/src/models/SizingResourceLimits.ts +75 -0
  295. package/src/models/Snapshot.ts +83 -0
  296. package/src/models/Source.ts +163 -0
  297. package/src/models/SourceCreate.ts +128 -0
  298. package/src/models/SourceInfra.ts +96 -0
  299. package/src/models/SourceUpdate.ts +127 -0
  300. package/src/models/Status.ts +81 -0
  301. package/src/models/UpdateInventory.ts +83 -0
  302. package/src/models/VCenter.ts +66 -0
  303. package/src/models/VMResourceBreakdown.ts +110 -0
  304. package/src/models/VMs.ts +255 -0
  305. package/src/models/VmNetwork.ts +73 -0
  306. package/src/models/index.ts +43 -0
  307. package/src/runtime.ts +432 -0
  308. package/tsconfig.esm.json +7 -0
  309. package/tsconfig.json +16 -0
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { SizingOverCommitRatio } from './SizingOverCommitRatio.js';
17
+ import {
18
+ SizingOverCommitRatioFromJSON,
19
+ SizingOverCommitRatioFromJSONTyped,
20
+ SizingOverCommitRatioToJSON,
21
+ SizingOverCommitRatioToJSONTyped,
22
+ } from './SizingOverCommitRatio.js';
23
+ import type { SizingResourceLimits } from './SizingResourceLimits.js';
24
+ import {
25
+ SizingResourceLimitsFromJSON,
26
+ SizingResourceLimitsFromJSONTyped,
27
+ SizingResourceLimitsToJSON,
28
+ SizingResourceLimitsToJSONTyped,
29
+ } from './SizingResourceLimits.js';
30
+
31
+ /**
32
+ * Resource consumption across the cluster
33
+ * @export
34
+ * @interface SizingResourceConsumption
35
+ */
36
+ export interface SizingResourceConsumption {
37
+ /**
38
+ * Total CPU requested
39
+ * @type {number}
40
+ * @memberof SizingResourceConsumption
41
+ */
42
+ cpu: number;
43
+ /**
44
+ * Total memory (GB) requested
45
+ * @type {number}
46
+ * @memberof SizingResourceConsumption
47
+ */
48
+ memory: number;
49
+ /**
50
+ *
51
+ * @type {SizingResourceLimits}
52
+ * @memberof SizingResourceConsumption
53
+ */
54
+ limits?: SizingResourceLimits;
55
+ /**
56
+ *
57
+ * @type {SizingOverCommitRatio}
58
+ * @memberof SizingResourceConsumption
59
+ */
60
+ overCommitRatio?: SizingOverCommitRatio;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the SizingResourceConsumption interface.
65
+ */
66
+ export function instanceOfSizingResourceConsumption(value: object): value is SizingResourceConsumption {
67
+ if (!('cpu' in value) || value['cpu'] === undefined) return false;
68
+ if (!('memory' in value) || value['memory'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function SizingResourceConsumptionFromJSON(json: any): SizingResourceConsumption {
73
+ return SizingResourceConsumptionFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function SizingResourceConsumptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SizingResourceConsumption {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'cpu': json['cpu'],
83
+ 'memory': json['memory'],
84
+ 'limits': json['limits'] == null ? undefined : SizingResourceLimitsFromJSON(json['limits']),
85
+ 'overCommitRatio': json['overCommitRatio'] == null ? undefined : SizingOverCommitRatioFromJSON(json['overCommitRatio']),
86
+ };
87
+ }
88
+
89
+ export function SizingResourceConsumptionToJSON(json: any): SizingResourceConsumption {
90
+ return SizingResourceConsumptionToJSONTyped(json, false);
91
+ }
92
+
93
+ export function SizingResourceConsumptionToJSONTyped(value?: SizingResourceConsumption | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'cpu': value['cpu'],
101
+ 'memory': value['memory'],
102
+ 'limits': SizingResourceLimitsToJSON(value['limits']),
103
+ 'overCommitRatio': SizingOverCommitRatioToJSON(value['overCommitRatio']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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
+ * Resource limits
18
+ * @export
19
+ * @interface SizingResourceLimits
20
+ */
21
+ export interface SizingResourceLimits {
22
+ /**
23
+ * Total CPU limits
24
+ * @type {number}
25
+ * @memberof SizingResourceLimits
26
+ */
27
+ cpu: number;
28
+ /**
29
+ * Total memory (GB) limits
30
+ * @type {number}
31
+ * @memberof SizingResourceLimits
32
+ */
33
+ memory: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SizingResourceLimits interface.
38
+ */
39
+ export function instanceOfSizingResourceLimits(value: object): value is SizingResourceLimits {
40
+ if (!('cpu' in value) || value['cpu'] === undefined) return false;
41
+ if (!('memory' in value) || value['memory'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SizingResourceLimitsFromJSON(json: any): SizingResourceLimits {
46
+ return SizingResourceLimitsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SizingResourceLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SizingResourceLimits {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'cpu': json['cpu'],
56
+ 'memory': json['memory'],
57
+ };
58
+ }
59
+
60
+ export function SizingResourceLimitsToJSON(json: any): SizingResourceLimits {
61
+ return SizingResourceLimitsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SizingResourceLimitsToJSONTyped(value?: SizingResourceLimits | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'cpu': value['cpu'],
72
+ 'memory': value['memory'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { Inventory } from './Inventory.js';
17
+ import {
18
+ InventoryFromJSON,
19
+ InventoryFromJSONTyped,
20
+ InventoryToJSON,
21
+ InventoryToJSONTyped,
22
+ } from './Inventory.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Snapshot
28
+ */
29
+ export interface Snapshot {
30
+ /**
31
+ *
32
+ * @type {Inventory}
33
+ * @memberof Snapshot
34
+ */
35
+ inventory: Inventory;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof Snapshot
40
+ */
41
+ createdAt: Date;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the Snapshot interface.
46
+ */
47
+ export function instanceOfSnapshot(value: object): value is Snapshot {
48
+ if (!('inventory' in value) || value['inventory'] === undefined) return false;
49
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function SnapshotFromJSON(json: any): Snapshot {
54
+ return SnapshotFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Snapshot {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'inventory': InventoryFromJSON(json['inventory']),
64
+ 'createdAt': (new Date(json['createdAt'])),
65
+ };
66
+ }
67
+
68
+ export function SnapshotToJSON(json: any): Snapshot {
69
+ return SnapshotToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SnapshotToJSONTyped(value?: Snapshot | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'inventory': InventoryToJSON(value['inventory']),
80
+ 'createdAt': value['createdAt'].toISOString(),
81
+ };
82
+ }
83
+
@@ -0,0 +1,163 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { SourceInfra } from './SourceInfra.js';
17
+ import {
18
+ SourceInfraFromJSON,
19
+ SourceInfraFromJSONTyped,
20
+ SourceInfraToJSON,
21
+ SourceInfraToJSONTyped,
22
+ } from './SourceInfra.js';
23
+ import type { Agent } from './Agent.js';
24
+ import {
25
+ AgentFromJSON,
26
+ AgentFromJSONTyped,
27
+ AgentToJSON,
28
+ AgentToJSONTyped,
29
+ } from './Agent.js';
30
+ import type { Label } from './Label.js';
31
+ import {
32
+ LabelFromJSON,
33
+ LabelFromJSONTyped,
34
+ LabelToJSON,
35
+ LabelToJSONTyped,
36
+ } from './Label.js';
37
+ import type { Inventory } from './Inventory.js';
38
+ import {
39
+ InventoryFromJSON,
40
+ InventoryFromJSONTyped,
41
+ InventoryToJSON,
42
+ InventoryToJSONTyped,
43
+ } from './Inventory.js';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface Source
49
+ */
50
+ export interface Source {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof Source
55
+ */
56
+ id: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof Source
61
+ */
62
+ name: string;
63
+ /**
64
+ *
65
+ * @type {Inventory}
66
+ * @memberof Source
67
+ */
68
+ inventory?: Inventory;
69
+ /**
70
+ *
71
+ * @type {Date}
72
+ * @memberof Source
73
+ */
74
+ createdAt: Date;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof Source
79
+ */
80
+ updatedAt: Date;
81
+ /**
82
+ *
83
+ * @type {boolean}
84
+ * @memberof Source
85
+ */
86
+ onPremises: boolean;
87
+ /**
88
+ *
89
+ * @type {Agent}
90
+ * @memberof Source
91
+ */
92
+ agent?: Agent;
93
+ /**
94
+ *
95
+ * @type {Array<Label>}
96
+ * @memberof Source
97
+ */
98
+ labels?: Array<Label>;
99
+ /**
100
+ *
101
+ * @type {SourceInfra}
102
+ * @memberof Source
103
+ */
104
+ infra?: SourceInfra;
105
+ }
106
+
107
+ /**
108
+ * Check if a given object implements the Source interface.
109
+ */
110
+ export function instanceOfSource(value: object): value is Source {
111
+ if (!('id' in value) || value['id'] === undefined) return false;
112
+ if (!('name' in value) || value['name'] === undefined) return false;
113
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
114
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
115
+ if (!('onPremises' in value) || value['onPremises'] === undefined) return false;
116
+ return true;
117
+ }
118
+
119
+ export function SourceFromJSON(json: any): Source {
120
+ return SourceFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source {
124
+ if (json == null) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'id': json['id'],
130
+ 'name': json['name'],
131
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
132
+ 'createdAt': (new Date(json['createdAt'])),
133
+ 'updatedAt': (new Date(json['updatedAt'])),
134
+ 'onPremises': json['onPremises'],
135
+ 'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
136
+ 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
137
+ 'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
138
+ };
139
+ }
140
+
141
+ export function SourceToJSON(json: any): Source {
142
+ return SourceToJSONTyped(json, false);
143
+ }
144
+
145
+ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: boolean = false): any {
146
+ if (value == null) {
147
+ return value;
148
+ }
149
+
150
+ return {
151
+
152
+ 'id': value['id'],
153
+ 'name': value['name'],
154
+ 'inventory': InventoryToJSON(value['inventory']),
155
+ 'createdAt': value['createdAt'].toISOString(),
156
+ 'updatedAt': value['updatedAt'].toISOString(),
157
+ 'onPremises': value['onPremises'],
158
+ 'agent': AgentToJSON(value['agent']),
159
+ 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
160
+ 'infra': SourceInfraToJSON(value['infra']),
161
+ };
162
+ }
163
+
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { VmNetwork } from './VmNetwork.js';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ VmNetworkToJSONTyped,
22
+ } from './VmNetwork.js';
23
+ import type { AgentProxy } from './AgentProxy.js';
24
+ import {
25
+ AgentProxyFromJSON,
26
+ AgentProxyFromJSONTyped,
27
+ AgentProxyToJSON,
28
+ AgentProxyToJSONTyped,
29
+ } from './AgentProxy.js';
30
+ import type { Label } from './Label.js';
31
+ import {
32
+ LabelFromJSON,
33
+ LabelFromJSONTyped,
34
+ LabelToJSON,
35
+ LabelToJSONTyped,
36
+ } from './Label.js';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface SourceCreate
42
+ */
43
+ export interface SourceCreate {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof SourceCreate
48
+ */
49
+ name: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof SourceCreate
54
+ */
55
+ sshPublicKey?: string | null;
56
+ /**
57
+ *
58
+ * @type {AgentProxy}
59
+ * @memberof SourceCreate
60
+ */
61
+ proxy?: AgentProxy;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof SourceCreate
66
+ */
67
+ certificateChain?: string | null;
68
+ /**
69
+ *
70
+ * @type {VmNetwork}
71
+ * @memberof SourceCreate
72
+ */
73
+ network?: VmNetwork;
74
+ /**
75
+ *
76
+ * @type {Array<Label>}
77
+ * @memberof SourceCreate
78
+ */
79
+ labels?: Array<Label>;
80
+ }
81
+
82
+ /**
83
+ * Check if a given object implements the SourceCreate interface.
84
+ */
85
+ export function instanceOfSourceCreate(value: object): value is SourceCreate {
86
+ if (!('name' in value) || value['name'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function SourceCreateFromJSON(json: any): SourceCreate {
91
+ return SourceCreateFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceCreate {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'name': json['name'],
101
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
102
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
103
+ 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
104
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
105
+ 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
106
+ };
107
+ }
108
+
109
+ export function SourceCreateToJSON(json: any): SourceCreate {
110
+ return SourceCreateToJSONTyped(json, false);
111
+ }
112
+
113
+ export function SourceCreateToJSONTyped(value?: SourceCreate | null, ignoreDiscriminator: boolean = false): any {
114
+ if (value == null) {
115
+ return value;
116
+ }
117
+
118
+ return {
119
+
120
+ 'name': value['name'],
121
+ 'sshPublicKey': value['sshPublicKey'],
122
+ 'proxy': AgentProxyToJSON(value['proxy']),
123
+ 'certificateChain': value['certificateChain'],
124
+ 'network': VmNetworkToJSON(value['network']),
125
+ 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
126
+ };
127
+ }
128
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { VmNetwork } from './VmNetwork.js';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ VmNetworkToJSONTyped,
22
+ } from './VmNetwork.js';
23
+ import type { AgentProxy } from './AgentProxy.js';
24
+ import {
25
+ AgentProxyFromJSON,
26
+ AgentProxyFromJSONTyped,
27
+ AgentProxyToJSON,
28
+ AgentProxyToJSONTyped,
29
+ } from './AgentProxy.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SourceInfra
35
+ */
36
+ export interface SourceInfra {
37
+ /**
38
+ *
39
+ * @type {AgentProxy}
40
+ * @memberof SourceInfra
41
+ */
42
+ proxy?: AgentProxy;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SourceInfra
47
+ */
48
+ sshPublicKey?: string | null;
49
+ /**
50
+ *
51
+ * @type {VmNetwork}
52
+ * @memberof SourceInfra
53
+ */
54
+ vmNetwork?: VmNetwork;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the SourceInfra interface.
59
+ */
60
+ export function instanceOfSourceInfra(value: object): value is SourceInfra {
61
+ return true;
62
+ }
63
+
64
+ export function SourceInfraFromJSON(json: any): SourceInfra {
65
+ return SourceInfraFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
75
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
76
+ 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
77
+ };
78
+ }
79
+
80
+ export function SourceInfraToJSON(json: any): SourceInfra {
81
+ return SourceInfraToJSONTyped(json, false);
82
+ }
83
+
84
+ export function SourceInfraToJSONTyped(value?: SourceInfra | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'proxy': AgentProxyToJSON(value['proxy']),
92
+ 'sshPublicKey': value['sshPublicKey'],
93
+ 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
94
+ };
95
+ }
96
+