@openshift-migration-advisor/planner-sdk 0.4.0-2926c334319d

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,48 @@
1
+
2
+ # Assessment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `ownerFirstName` | string
12
+ `ownerLastName` | string
13
+ `sourceType` | string
14
+ `sourceId` | string
15
+ `createdAt` | Date
16
+ `snapshots` | [Array<Snapshot>](Snapshot.md)
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { Assessment } from '@openshift-migration-advisor/planner-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "id": null,
26
+ "name": null,
27
+ "ownerFirstName": null,
28
+ "ownerLastName": null,
29
+ "sourceType": null,
30
+ "sourceId": null,
31
+ "createdAt": null,
32
+ "snapshots": null,
33
+ } satisfies Assessment
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as Assessment
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,448 @@
1
+ # AssessmentApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**calculateAssessmentClusterRequirements**](AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements | |
8
+ | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
9
+ | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
10
+ | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
11
+ | [**listAssessments**](AssessmentApi.md#listassessments) | **GET** /api/v1/assessments | |
12
+ | [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
13
+
14
+
15
+
16
+ ## calculateAssessmentClusterRequirements
17
+
18
+ > ClusterRequirementsResponse calculateAssessmentClusterRequirements(id, clusterRequirementsRequest)
19
+
20
+
21
+
22
+ Calculate cluster requirements for an assessment
23
+
24
+ ### Example
25
+
26
+ ```ts
27
+ import {
28
+ Configuration,
29
+ AssessmentApi,
30
+ } from '@openshift-migration-advisor/planner-sdk';
31
+ import type { CalculateAssessmentClusterRequirementsRequest } from '@openshift-migration-advisor/planner-sdk';
32
+
33
+ async function example() {
34
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
35
+ const api = new AssessmentApi();
36
+
37
+ const body = {
38
+ // string | ID of the assessment
39
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
40
+ // ClusterRequirementsRequest
41
+ clusterRequirementsRequest: ...,
42
+ } satisfies CalculateAssessmentClusterRequirementsRequest;
43
+
44
+ try {
45
+ const data = await api.calculateAssessmentClusterRequirements(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
62
+ | **clusterRequirementsRequest** | [ClusterRequirementsRequest](ClusterRequirementsRequest.md) | | |
63
+
64
+ ### Return type
65
+
66
+ [**ClusterRequirementsResponse**](ClusterRequirementsResponse.md)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: `application/json`
75
+ - **Accept**: `application/json`
76
+
77
+
78
+ ### HTTP response details
79
+ | Status code | Description | Response headers |
80
+ |-------------|-------------|------------------|
81
+ | **200** | Cluster requirements calculation successful | - |
82
+ | **400** | Bad Request | - |
83
+ | **401** | Unauthorized | - |
84
+ | **403** | Forbidden | - |
85
+ | **404** | Assessment not found | - |
86
+ | **500** | Internal error | - |
87
+ | **503** | Service Unavailable | - |
88
+
89
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
90
+
91
+
92
+ ## createAssessment
93
+
94
+ > Assessment createAssessment(assessmentForm)
95
+
96
+
97
+
98
+ Create an assessment
99
+
100
+ ### Example
101
+
102
+ ```ts
103
+ import {
104
+ Configuration,
105
+ AssessmentApi,
106
+ } from '@openshift-migration-advisor/planner-sdk';
107
+ import type { CreateAssessmentRequest } from '@openshift-migration-advisor/planner-sdk';
108
+
109
+ async function example() {
110
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
111
+ const api = new AssessmentApi();
112
+
113
+ const body = {
114
+ // AssessmentForm
115
+ assessmentForm: ...,
116
+ } satisfies CreateAssessmentRequest;
117
+
118
+ try {
119
+ const data = await api.createAssessment(body);
120
+ console.log(data);
121
+ } catch (error) {
122
+ console.error(error);
123
+ }
124
+ }
125
+
126
+ // Run the test
127
+ example().catch(console.error);
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+
133
+ | Name | Type | Description | Notes |
134
+ |------------- | ------------- | ------------- | -------------|
135
+ | **assessmentForm** | [AssessmentForm](AssessmentForm.md) | | |
136
+
137
+ ### Return type
138
+
139
+ [**Assessment**](Assessment.md)
140
+
141
+ ### Authorization
142
+
143
+ No authorization required
144
+
145
+ ### HTTP request headers
146
+
147
+ - **Content-Type**: `application/json`
148
+ - **Accept**: `application/json`
149
+
150
+
151
+ ### HTTP response details
152
+ | Status code | Description | Response headers |
153
+ |-------------|-------------|------------------|
154
+ | **201** | Created | - |
155
+ | **400** | Bad Request | - |
156
+ | **401** | Unauthorized | - |
157
+ | **500** | Internal error | - |
158
+
159
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
160
+
161
+
162
+ ## deleteAssessment
163
+
164
+ > Assessment deleteAssessment(id)
165
+
166
+
167
+
168
+ Delete an assessment
169
+
170
+ ### Example
171
+
172
+ ```ts
173
+ import {
174
+ Configuration,
175
+ AssessmentApi,
176
+ } from '@openshift-migration-advisor/planner-sdk';
177
+ import type { DeleteAssessmentRequest } from '@openshift-migration-advisor/planner-sdk';
178
+
179
+ async function example() {
180
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
181
+ const api = new AssessmentApi();
182
+
183
+ const body = {
184
+ // string | ID of the assessment
185
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
186
+ } satisfies DeleteAssessmentRequest;
187
+
188
+ try {
189
+ const data = await api.deleteAssessment(body);
190
+ console.log(data);
191
+ } catch (error) {
192
+ console.error(error);
193
+ }
194
+ }
195
+
196
+ // Run the test
197
+ example().catch(console.error);
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+
203
+ | Name | Type | Description | Notes |
204
+ |------------- | ------------- | ------------- | -------------|
205
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
206
+
207
+ ### Return type
208
+
209
+ [**Assessment**](Assessment.md)
210
+
211
+ ### Authorization
212
+
213
+ No authorization required
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: Not defined
218
+ - **Accept**: `application/json`
219
+
220
+
221
+ ### HTTP response details
222
+ | Status code | Description | Response headers |
223
+ |-------------|-------------|------------------|
224
+ | **200** | OK | - |
225
+ | **400** | Bad Request | - |
226
+ | **401** | Unauthorized | - |
227
+ | **403** | Forbidden | - |
228
+ | **404** | NotFound | - |
229
+ | **500** | Internal error | - |
230
+
231
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
232
+
233
+
234
+ ## getAssessment
235
+
236
+ > Assessment getAssessment(id)
237
+
238
+
239
+
240
+ Get the specified assessment
241
+
242
+ ### Example
243
+
244
+ ```ts
245
+ import {
246
+ Configuration,
247
+ AssessmentApi,
248
+ } from '@openshift-migration-advisor/planner-sdk';
249
+ import type { GetAssessmentRequest } from '@openshift-migration-advisor/planner-sdk';
250
+
251
+ async function example() {
252
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
253
+ const api = new AssessmentApi();
254
+
255
+ const body = {
256
+ // string | ID of the assessment
257
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
258
+ } satisfies GetAssessmentRequest;
259
+
260
+ try {
261
+ const data = await api.getAssessment(body);
262
+ console.log(data);
263
+ } catch (error) {
264
+ console.error(error);
265
+ }
266
+ }
267
+
268
+ // Run the test
269
+ example().catch(console.error);
270
+ ```
271
+
272
+ ### Parameters
273
+
274
+
275
+ | Name | Type | Description | Notes |
276
+ |------------- | ------------- | ------------- | -------------|
277
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
278
+
279
+ ### Return type
280
+
281
+ [**Assessment**](Assessment.md)
282
+
283
+ ### Authorization
284
+
285
+ No authorization required
286
+
287
+ ### HTTP request headers
288
+
289
+ - **Content-Type**: Not defined
290
+ - **Accept**: `application/json`
291
+
292
+
293
+ ### HTTP response details
294
+ | Status code | Description | Response headers |
295
+ |-------------|-------------|------------------|
296
+ | **200** | OK | - |
297
+ | **400** | Bad Request | - |
298
+ | **401** | Unauthorized | - |
299
+ | **403** | Forbidden | - |
300
+ | **404** | NotFound | - |
301
+ | **500** | Internal error | - |
302
+
303
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
304
+
305
+
306
+ ## listAssessments
307
+
308
+ > Array<Assessment> listAssessments(sourceId)
309
+
310
+
311
+
312
+ List assessments
313
+
314
+ ### Example
315
+
316
+ ```ts
317
+ import {
318
+ Configuration,
319
+ AssessmentApi,
320
+ } from '@openshift-migration-advisor/planner-sdk';
321
+ import type { ListAssessmentsRequest } from '@openshift-migration-advisor/planner-sdk';
322
+
323
+ async function example() {
324
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
325
+ const api = new AssessmentApi();
326
+
327
+ const body = {
328
+ // string | Filter assessments by source ID (optional)
329
+ sourceId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
330
+ } satisfies ListAssessmentsRequest;
331
+
332
+ try {
333
+ const data = await api.listAssessments(body);
334
+ console.log(data);
335
+ } catch (error) {
336
+ console.error(error);
337
+ }
338
+ }
339
+
340
+ // Run the test
341
+ example().catch(console.error);
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+
347
+ | Name | Type | Description | Notes |
348
+ |------------- | ------------- | ------------- | -------------|
349
+ | **sourceId** | `string` | Filter assessments by source ID | [Optional] [Defaults to `undefined`] |
350
+
351
+ ### Return type
352
+
353
+ [**Array<Assessment>**](Assessment.md)
354
+
355
+ ### Authorization
356
+
357
+ No authorization required
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: Not defined
362
+ - **Accept**: `application/json`
363
+
364
+
365
+ ### HTTP response details
366
+ | Status code | Description | Response headers |
367
+ |-------------|-------------|------------------|
368
+ | **200** | OK | - |
369
+ | **401** | Unauthorized | - |
370
+ | **500** | Internal error | - |
371
+
372
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
373
+
374
+
375
+ ## updateAssessment
376
+
377
+ > Assessment updateAssessment(id, assessmentUpdate)
378
+
379
+
380
+
381
+ Update an assessment
382
+
383
+ ### Example
384
+
385
+ ```ts
386
+ import {
387
+ Configuration,
388
+ AssessmentApi,
389
+ } from '@openshift-migration-advisor/planner-sdk';
390
+ import type { UpdateAssessmentRequest } from '@openshift-migration-advisor/planner-sdk';
391
+
392
+ async function example() {
393
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
394
+ const api = new AssessmentApi();
395
+
396
+ const body = {
397
+ // string | ID of the assessment
398
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
399
+ // AssessmentUpdate
400
+ assessmentUpdate: ...,
401
+ } satisfies UpdateAssessmentRequest;
402
+
403
+ try {
404
+ const data = await api.updateAssessment(body);
405
+ console.log(data);
406
+ } catch (error) {
407
+ console.error(error);
408
+ }
409
+ }
410
+
411
+ // Run the test
412
+ example().catch(console.error);
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+
418
+ | Name | Type | Description | Notes |
419
+ |------------- | ------------- | ------------- | -------------|
420
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
421
+ | **assessmentUpdate** | [AssessmentUpdate](AssessmentUpdate.md) | | |
422
+
423
+ ### Return type
424
+
425
+ [**Assessment**](Assessment.md)
426
+
427
+ ### Authorization
428
+
429
+ No authorization required
430
+
431
+ ### HTTP request headers
432
+
433
+ - **Content-Type**: `application/json`
434
+ - **Accept**: `application/json`
435
+
436
+
437
+ ### HTTP response details
438
+ | Status code | Description | Response headers |
439
+ |-------------|-------------|------------------|
440
+ | **200** | OK | - |
441
+ | **400** | Bad Request | - |
442
+ | **401** | Unauthorized | - |
443
+ | **403** | Forbidden | - |
444
+ | **404** | NotFound | - |
445
+ | **500** | Internal Server Error | - |
446
+
447
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
448
+
@@ -0,0 +1,40 @@
1
+
2
+ # AssessmentForm
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `sourceType` | string
11
+ `sourceId` | string
12
+ `inventory` | [Inventory](Inventory.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { AssessmentForm } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "sourceType": null,
23
+ "sourceId": null,
24
+ "inventory": null,
25
+ } satisfies AssessmentForm
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentForm
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,35 @@
1
+
2
+ # AssessmentUpdate
3
+
4
+ Update form of the assessment.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AssessmentUpdate } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ } satisfies AssessmentUpdate
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentUpdate
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,47 @@
1
+
2
+ # ClusterRequirementsRequest
3
+
4
+ Request payload for calculating cluster requirements
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `clusterId` | string
11
+ `cpuOverCommitRatio` | string
12
+ `memoryOverCommitRatio` | string
13
+ `workerNodeCPU` | number
14
+ `workerNodeMemory` | number
15
+ `workerNodeThreads` | number
16
+ `controlPlaneSchedulable` | boolean
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { ClusterRequirementsRequest } from '@openshift-migration-advisor/planner-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "clusterId": null,
26
+ "cpuOverCommitRatio": null,
27
+ "memoryOverCommitRatio": null,
28
+ "workerNodeCPU": null,
29
+ "workerNodeMemory": null,
30
+ "workerNodeThreads": null,
31
+ "controlPlaneSchedulable": null,
32
+ } satisfies ClusterRequirementsRequest
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as ClusterRequirementsRequest
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+
@@ -0,0 +1,39 @@
1
+
2
+ # ClusterRequirementsResponse
3
+
4
+ Cluster requirements calculation results
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `clusterSizing` | [ClusterSizing](ClusterSizing.md)
11
+ `resourceConsumption` | [SizingResourceConsumption](SizingResourceConsumption.md)
12
+ `inventoryTotals` | [InventoryTotals](InventoryTotals.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ClusterRequirementsResponse } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "clusterSizing": null,
22
+ "resourceConsumption": null,
23
+ "inventoryTotals": null,
24
+ } satisfies ClusterRequirementsResponse
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as ClusterRequirementsResponse
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,45 @@
1
+
2
+ # ClusterSizing
3
+
4
+ Overall cluster sizing summary
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `totalNodes` | number
11
+ `workerNodes` | number
12
+ `controlPlaneNodes` | number
13
+ `failoverNodes` | number
14
+ `totalCPU` | number
15
+ `totalMemory` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ClusterSizing } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "totalNodes": null,
25
+ "workerNodes": null,
26
+ "controlPlaneNodes": null,
27
+ "failoverNodes": null,
28
+ "totalCPU": null,
29
+ "totalMemory": null,
30
+ } satisfies ClusterSizing
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as ClusterSizing
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+