@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,36 @@
1
+
2
+ # Snapshot
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `inventory` | [Inventory](Inventory.md)
10
+ `createdAt` | Date
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { Snapshot } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "inventory": null,
20
+ "createdAt": null,
21
+ } satisfies Snapshot
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as Snapshot
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/docs/Source.md ADDED
@@ -0,0 +1,50 @@
1
+
2
+ # Source
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `inventory` | [Inventory](Inventory.md)
12
+ `createdAt` | Date
13
+ `updatedAt` | Date
14
+ `onPremises` | boolean
15
+ `agent` | [Agent](Agent.md)
16
+ `labels` | [Array<Label>](Label.md)
17
+ `infra` | [SourceInfra](SourceInfra.md)
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { Source } from '@openshift-migration-advisor/planner-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "name": null,
28
+ "inventory": null,
29
+ "createdAt": null,
30
+ "updatedAt": null,
31
+ "onPremises": null,
32
+ "agent": null,
33
+ "labels": null,
34
+ "infra": null,
35
+ } satisfies Source
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as Source
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,501 @@
1
+ # SourceApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createSource**](SourceApi.md#createsource) | **POST** /api/v1/sources | |
8
+ | [**deleteSource**](SourceApi.md#deletesource) | **DELETE** /api/v1/sources/{id} | |
9
+ | [**deleteSources**](SourceApi.md#deletesources) | **DELETE** /api/v1/sources | |
10
+ | [**getSource**](SourceApi.md#getsource) | **GET** /api/v1/sources/{id} | |
11
+ | [**listSources**](SourceApi.md#listsources) | **GET** /api/v1/sources | |
12
+ | [**updateInventory**](SourceApi.md#updateinventory) | **PUT** /api/v1/sources/{id}/inventory | |
13
+ | [**updateSource**](SourceApi.md#updatesource) | **PUT** /api/v1/sources/{id} | |
14
+
15
+
16
+
17
+ ## createSource
18
+
19
+ > Source createSource(sourceCreate)
20
+
21
+
22
+
23
+ Create a source
24
+
25
+ ### Example
26
+
27
+ ```ts
28
+ import {
29
+ Configuration,
30
+ SourceApi,
31
+ } from '@openshift-migration-advisor/planner-sdk';
32
+ import type { CreateSourceRequest } from '@openshift-migration-advisor/planner-sdk';
33
+
34
+ async function example() {
35
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
36
+ const api = new SourceApi();
37
+
38
+ const body = {
39
+ // SourceCreate
40
+ sourceCreate: ...,
41
+ } satisfies CreateSourceRequest;
42
+
43
+ try {
44
+ const data = await api.createSource(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **sourceCreate** | [SourceCreate](SourceCreate.md) | | |
61
+
62
+ ### Return type
63
+
64
+ [**Source**](Source.md)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: `application/json`
73
+ - **Accept**: `application/json`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **201** | Created | - |
80
+ | **400** | Bad Request | - |
81
+ | **401** | Unauthorized | - |
82
+ | **500** | Internal error | - |
83
+
84
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
85
+
86
+
87
+ ## deleteSource
88
+
89
+ > Source deleteSource(id)
90
+
91
+
92
+
93
+ Delete a source
94
+
95
+ ### Example
96
+
97
+ ```ts
98
+ import {
99
+ Configuration,
100
+ SourceApi,
101
+ } from '@openshift-migration-advisor/planner-sdk';
102
+ import type { DeleteSourceRequest } from '@openshift-migration-advisor/planner-sdk';
103
+
104
+ async function example() {
105
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
106
+ const api = new SourceApi();
107
+
108
+ const body = {
109
+ // string | ID of the source
110
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
111
+ } satisfies DeleteSourceRequest;
112
+
113
+ try {
114
+ const data = await api.deleteSource(body);
115
+ console.log(data);
116
+ } catch (error) {
117
+ console.error(error);
118
+ }
119
+ }
120
+
121
+ // Run the test
122
+ example().catch(console.error);
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+
128
+ | Name | Type | Description | Notes |
129
+ |------------- | ------------- | ------------- | -------------|
130
+ | **id** | `string` | ID of the source | [Defaults to `undefined`] |
131
+
132
+ ### Return type
133
+
134
+ [**Source**](Source.md)
135
+
136
+ ### Authorization
137
+
138
+ No authorization required
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: `application/json`
144
+
145
+
146
+ ### HTTP response details
147
+ | Status code | Description | Response headers |
148
+ |-------------|-------------|------------------|
149
+ | **200** | OK | - |
150
+ | **400** | Bad Request | - |
151
+ | **401** | Unauthorized | - |
152
+ | **403** | Forbidden | - |
153
+ | **404** | NotFound | - |
154
+ | **500** | NotFound | - |
155
+
156
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
157
+
158
+
159
+ ## deleteSources
160
+
161
+ > Status deleteSources()
162
+
163
+
164
+
165
+ delete a collection of sources
166
+
167
+ ### Example
168
+
169
+ ```ts
170
+ import {
171
+ Configuration,
172
+ SourceApi,
173
+ } from '@openshift-migration-advisor/planner-sdk';
174
+ import type { DeleteSourcesRequest } from '@openshift-migration-advisor/planner-sdk';
175
+
176
+ async function example() {
177
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
178
+ const api = new SourceApi();
179
+
180
+ try {
181
+ const data = await api.deleteSources();
182
+ console.log(data);
183
+ } catch (error) {
184
+ console.error(error);
185
+ }
186
+ }
187
+
188
+ // Run the test
189
+ example().catch(console.error);
190
+ ```
191
+
192
+ ### Parameters
193
+
194
+ This endpoint does not need any parameter.
195
+
196
+ ### Return type
197
+
198
+ [**Status**](Status.md)
199
+
200
+ ### Authorization
201
+
202
+ No authorization required
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: `application/json`
208
+
209
+
210
+ ### HTTP response details
211
+ | Status code | Description | Response headers |
212
+ |-------------|-------------|------------------|
213
+ | **200** | OK | - |
214
+ | **401** | Unauthorized | - |
215
+ | **500** | Internal error | - |
216
+
217
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
218
+
219
+
220
+ ## getSource
221
+
222
+ > Source getSource(id)
223
+
224
+
225
+
226
+ Get the specified source
227
+
228
+ ### Example
229
+
230
+ ```ts
231
+ import {
232
+ Configuration,
233
+ SourceApi,
234
+ } from '@openshift-migration-advisor/planner-sdk';
235
+ import type { GetSourceRequest } from '@openshift-migration-advisor/planner-sdk';
236
+
237
+ async function example() {
238
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
239
+ const api = new SourceApi();
240
+
241
+ const body = {
242
+ // string | ID of the source
243
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
244
+ } satisfies GetSourceRequest;
245
+
246
+ try {
247
+ const data = await api.getSource(body);
248
+ console.log(data);
249
+ } catch (error) {
250
+ console.error(error);
251
+ }
252
+ }
253
+
254
+ // Run the test
255
+ example().catch(console.error);
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+
261
+ | Name | Type | Description | Notes |
262
+ |------------- | ------------- | ------------- | -------------|
263
+ | **id** | `string` | ID of the source | [Defaults to `undefined`] |
264
+
265
+ ### Return type
266
+
267
+ [**Source**](Source.md)
268
+
269
+ ### Authorization
270
+
271
+ No authorization required
272
+
273
+ ### HTTP request headers
274
+
275
+ - **Content-Type**: Not defined
276
+ - **Accept**: `application/json`
277
+
278
+
279
+ ### HTTP response details
280
+ | Status code | Description | Response headers |
281
+ |-------------|-------------|------------------|
282
+ | **200** | OK | - |
283
+ | **400** | Bad Request | - |
284
+ | **401** | Unauthorized | - |
285
+ | **403** | Forbidden | - |
286
+ | **404** | NotFound | - |
287
+ | **500** | Internal error | - |
288
+
289
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
290
+
291
+
292
+ ## listSources
293
+
294
+ > Array<Source> listSources()
295
+
296
+
297
+
298
+ List sources
299
+
300
+ ### Example
301
+
302
+ ```ts
303
+ import {
304
+ Configuration,
305
+ SourceApi,
306
+ } from '@openshift-migration-advisor/planner-sdk';
307
+ import type { ListSourcesRequest } from '@openshift-migration-advisor/planner-sdk';
308
+
309
+ async function example() {
310
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
311
+ const api = new SourceApi();
312
+
313
+ try {
314
+ const data = await api.listSources();
315
+ console.log(data);
316
+ } catch (error) {
317
+ console.error(error);
318
+ }
319
+ }
320
+
321
+ // Run the test
322
+ example().catch(console.error);
323
+ ```
324
+
325
+ ### Parameters
326
+
327
+ This endpoint does not need any parameter.
328
+
329
+ ### Return type
330
+
331
+ [**Array<Source>**](Source.md)
332
+
333
+ ### Authorization
334
+
335
+ No authorization required
336
+
337
+ ### HTTP request headers
338
+
339
+ - **Content-Type**: Not defined
340
+ - **Accept**: `application/json`
341
+
342
+
343
+ ### HTTP response details
344
+ | Status code | Description | Response headers |
345
+ |-------------|-------------|------------------|
346
+ | **200** | OK | - |
347
+ | **401** | Unauthorized | - |
348
+ | **500** | Internal error | - |
349
+
350
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
351
+
352
+
353
+ ## updateInventory
354
+
355
+ > Source updateInventory(id, updateInventory)
356
+
357
+
358
+
359
+ Update inventory
360
+
361
+ ### Example
362
+
363
+ ```ts
364
+ import {
365
+ Configuration,
366
+ SourceApi,
367
+ } from '@openshift-migration-advisor/planner-sdk';
368
+ import type { UpdateInventoryRequest } from '@openshift-migration-advisor/planner-sdk';
369
+
370
+ async function example() {
371
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
372
+ const api = new SourceApi();
373
+
374
+ const body = {
375
+ // string | ID of the source
376
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
377
+ // UpdateInventory
378
+ updateInventory: ...,
379
+ } satisfies UpdateInventoryRequest;
380
+
381
+ try {
382
+ const data = await api.updateInventory(body);
383
+ console.log(data);
384
+ } catch (error) {
385
+ console.error(error);
386
+ }
387
+ }
388
+
389
+ // Run the test
390
+ example().catch(console.error);
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+
396
+ | Name | Type | Description | Notes |
397
+ |------------- | ------------- | ------------- | -------------|
398
+ | **id** | `string` | ID of the source | [Defaults to `undefined`] |
399
+ | **updateInventory** | [UpdateInventory](UpdateInventory.md) | | |
400
+
401
+ ### Return type
402
+
403
+ [**Source**](Source.md)
404
+
405
+ ### Authorization
406
+
407
+ No authorization required
408
+
409
+ ### HTTP request headers
410
+
411
+ - **Content-Type**: `application/json`
412
+ - **Accept**: `application/json`
413
+
414
+
415
+ ### HTTP response details
416
+ | Status code | Description | Response headers |
417
+ |-------------|-------------|------------------|
418
+ | **200** | Updated source inventory | - |
419
+ | **400** | Bad Request | - |
420
+ | **401** | Unauthorized | - |
421
+ | **403** | Forbidden | - |
422
+ | **404** | NotFound | - |
423
+ | **500** | Internal Server Error | - |
424
+
425
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
426
+
427
+
428
+ ## updateSource
429
+
430
+ > Source updateSource(id, sourceUpdate)
431
+
432
+
433
+
434
+ Update source
435
+
436
+ ### Example
437
+
438
+ ```ts
439
+ import {
440
+ Configuration,
441
+ SourceApi,
442
+ } from '@openshift-migration-advisor/planner-sdk';
443
+ import type { UpdateSourceRequest } from '@openshift-migration-advisor/planner-sdk';
444
+
445
+ async function example() {
446
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
447
+ const api = new SourceApi();
448
+
449
+ const body = {
450
+ // string | ID of the source
451
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
452
+ // SourceUpdate
453
+ sourceUpdate: ...,
454
+ } satisfies UpdateSourceRequest;
455
+
456
+ try {
457
+ const data = await api.updateSource(body);
458
+ console.log(data);
459
+ } catch (error) {
460
+ console.error(error);
461
+ }
462
+ }
463
+
464
+ // Run the test
465
+ example().catch(console.error);
466
+ ```
467
+
468
+ ### Parameters
469
+
470
+
471
+ | Name | Type | Description | Notes |
472
+ |------------- | ------------- | ------------- | -------------|
473
+ | **id** | `string` | ID of the source | [Defaults to `undefined`] |
474
+ | **sourceUpdate** | [SourceUpdate](SourceUpdate.md) | | |
475
+
476
+ ### Return type
477
+
478
+ [**Source**](Source.md)
479
+
480
+ ### Authorization
481
+
482
+ No authorization required
483
+
484
+ ### HTTP request headers
485
+
486
+ - **Content-Type**: `application/json`
487
+ - **Accept**: `application/json`
488
+
489
+
490
+ ### HTTP response details
491
+ | Status code | Description | Response headers |
492
+ |-------------|-------------|------------------|
493
+ | **200** | Updated source | - |
494
+ | **400** | Bad Request | - |
495
+ | **401** | Unauthorized | - |
496
+ | **403** | Forbidden | - |
497
+ | **404** | NotFound | - |
498
+ | **500** | Internal Server Error | - |
499
+
500
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
501
+
@@ -0,0 +1,44 @@
1
+
2
+ # SourceCreate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `sshPublicKey` | string
11
+ `proxy` | [AgentProxy](AgentProxy.md)
12
+ `certificateChain` | string
13
+ `network` | [VmNetwork](VmNetwork.md)
14
+ `labels` | [Array<Label>](Label.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { SourceCreate } from '@openshift-migration-advisor/planner-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "sshPublicKey": null,
25
+ "proxy": null,
26
+ "certificateChain": null,
27
+ "network": null,
28
+ "labels": null,
29
+ } satisfies SourceCreate
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as SourceCreate
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,38 @@
1
+
2
+ # SourceInfra
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `proxy` | [AgentProxy](AgentProxy.md)
10
+ `sshPublicKey` | string
11
+ `vmNetwork` | [VmNetwork](VmNetwork.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SourceInfra } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "proxy": null,
21
+ "sshPublicKey": null,
22
+ "vmNetwork": null,
23
+ } satisfies SourceInfra
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SourceInfra
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,44 @@
1
+
2
+ # SourceUpdate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `labels` | [Array<Label>](Label.md)
11
+ `sshPublicKey` | string
12
+ `certificateChain` | string
13
+ `proxy` | [AgentProxy](AgentProxy.md)
14
+ `network` | [VmNetwork](VmNetwork.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { SourceUpdate } from '@openshift-migration-advisor/planner-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "labels": null,
25
+ "sshPublicKey": null,
26
+ "certificateChain": null,
27
+ "proxy": null,
28
+ "network": null,
29
+ } satisfies SourceUpdate
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as SourceUpdate
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+