@openshift-migration-advisor/planner-sdk 0.5.0 → 0.5.1-0ae313a75a60

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 (271) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -2
  3. package/dist/apis/AssessmentApi.d.ts +39 -2
  4. package/dist/apis/AssessmentApi.js +45 -1
  5. package/dist/apis/HealthApi.d.ts +1 -1
  6. package/dist/apis/HealthApi.js +1 -1
  7. package/dist/apis/ImageApi.d.ts +1 -1
  8. package/dist/apis/ImageApi.js +1 -1
  9. package/dist/apis/InfoApi.d.ts +5 -5
  10. package/dist/apis/InfoApi.js +3 -3
  11. package/dist/apis/JobApi.d.ts +1 -1
  12. package/dist/apis/JobApi.js +1 -1
  13. package/dist/apis/SourceApi.d.ts +1 -1
  14. package/dist/apis/SourceApi.js +1 -1
  15. package/dist/esm/apis/AssessmentApi.d.ts +39 -2
  16. package/dist/esm/apis/AssessmentApi.js +46 -2
  17. package/dist/esm/apis/HealthApi.d.ts +1 -1
  18. package/dist/esm/apis/HealthApi.js +1 -1
  19. package/dist/esm/apis/ImageApi.d.ts +1 -1
  20. package/dist/esm/apis/ImageApi.js +1 -1
  21. package/dist/esm/apis/InfoApi.d.ts +5 -5
  22. package/dist/esm/apis/InfoApi.js +3 -3
  23. package/dist/esm/apis/JobApi.d.ts +1 -1
  24. package/dist/esm/apis/JobApi.js +1 -1
  25. package/dist/esm/apis/SourceApi.d.ts +1 -1
  26. package/dist/esm/apis/SourceApi.js +1 -1
  27. package/dist/esm/models/Agent.d.ts +1 -1
  28. package/dist/esm/models/Agent.js +1 -1
  29. package/dist/esm/models/AgentProxy.d.ts +1 -1
  30. package/dist/esm/models/AgentProxy.js +1 -1
  31. package/dist/esm/models/Assessment.d.ts +1 -1
  32. package/dist/esm/models/Assessment.js +1 -1
  33. package/dist/esm/models/AssessmentForm.d.ts +2 -2
  34. package/dist/esm/models/AssessmentForm.js +1 -1
  35. package/dist/esm/models/AssessmentUpdate.d.ts +1 -1
  36. package/dist/esm/models/AssessmentUpdate.js +1 -1
  37. package/dist/esm/models/ClusterRequirementsRequest.d.ts +13 -1
  38. package/dist/esm/models/ClusterRequirementsRequest.js +5 -1
  39. package/dist/esm/models/ClusterRequirementsResponse.d.ts +1 -1
  40. package/dist/esm/models/ClusterRequirementsResponse.js +1 -1
  41. package/dist/esm/models/ClusterSizing.d.ts +1 -1
  42. package/dist/esm/models/ClusterSizing.js +1 -1
  43. package/dist/esm/models/Datastore.d.ts +1 -1
  44. package/dist/esm/models/Datastore.js +1 -1
  45. package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -1
  46. package/dist/esm/models/DiskSizeTierSummary.js +1 -1
  47. package/dist/esm/models/DiskTypeSummary.d.ts +1 -1
  48. package/dist/esm/models/DiskTypeSummary.js +1 -1
  49. package/dist/esm/models/EstimationDetail.d.ts +38 -0
  50. package/dist/esm/models/EstimationDetail.js +47 -0
  51. package/dist/esm/models/Histogram.d.ts +1 -1
  52. package/dist/esm/models/Histogram.js +1 -1
  53. package/dist/esm/models/Host.d.ts +1 -1
  54. package/dist/esm/models/Host.js +1 -1
  55. package/dist/esm/models/Info.d.ts +2 -2
  56. package/dist/esm/models/Info.js +1 -1
  57. package/dist/esm/models/Infra.d.ts +1 -1
  58. package/dist/esm/models/Infra.js +1 -1
  59. package/dist/esm/models/Inventory.d.ts +1 -1
  60. package/dist/esm/models/Inventory.js +1 -1
  61. package/dist/esm/models/InventoryData.d.ts +1 -1
  62. package/dist/esm/models/InventoryData.js +1 -1
  63. package/dist/esm/models/InventoryTotals.d.ts +1 -1
  64. package/dist/esm/models/InventoryTotals.js +1 -1
  65. package/dist/esm/models/Ipv4Config.d.ts +1 -1
  66. package/dist/esm/models/Ipv4Config.js +1 -1
  67. package/dist/esm/models/Job.d.ts +1 -1
  68. package/dist/esm/models/Job.js +1 -1
  69. package/dist/esm/models/JobStatus.d.ts +1 -1
  70. package/dist/esm/models/JobStatus.js +1 -1
  71. package/dist/esm/models/Label.d.ts +1 -1
  72. package/dist/esm/models/Label.js +1 -1
  73. package/dist/esm/models/MigrationEstimationRequest.d.ts +32 -0
  74. package/dist/esm/models/MigrationEstimationRequest.js +43 -0
  75. package/dist/esm/models/MigrationEstimationResponse.d.ts +41 -0
  76. package/dist/esm/models/MigrationEstimationResponse.js +49 -0
  77. package/dist/esm/models/MigrationIssue.d.ts +1 -1
  78. package/dist/esm/models/MigrationIssue.js +1 -1
  79. package/dist/esm/models/ModelError.d.ts +1 -7
  80. package/dist/esm/models/ModelError.js +1 -3
  81. package/dist/esm/models/Network.d.ts +1 -1
  82. package/dist/esm/models/Network.js +1 -1
  83. package/dist/esm/models/OsInfo.d.ts +1 -1
  84. package/dist/esm/models/OsInfo.js +1 -1
  85. package/dist/esm/models/PresignedUrl.d.ts +1 -1
  86. package/dist/esm/models/PresignedUrl.js +1 -1
  87. package/dist/esm/models/SizingOverCommitRatio.d.ts +1 -1
  88. package/dist/esm/models/SizingOverCommitRatio.js +1 -1
  89. package/dist/esm/models/SizingResourceConsumption.d.ts +1 -1
  90. package/dist/esm/models/SizingResourceConsumption.js +1 -1
  91. package/dist/esm/models/SizingResourceLimits.d.ts +1 -1
  92. package/dist/esm/models/SizingResourceLimits.js +1 -1
  93. package/dist/esm/models/Snapshot.d.ts +1 -1
  94. package/dist/esm/models/Snapshot.js +1 -1
  95. package/dist/esm/models/Source.d.ts +1 -1
  96. package/dist/esm/models/Source.js +1 -1
  97. package/dist/esm/models/SourceCreate.d.ts +1 -1
  98. package/dist/esm/models/SourceCreate.js +1 -1
  99. package/dist/esm/models/SourceInfra.d.ts +1 -1
  100. package/dist/esm/models/SourceInfra.js +1 -1
  101. package/dist/esm/models/SourceUpdate.d.ts +1 -1
  102. package/dist/esm/models/SourceUpdate.js +1 -1
  103. package/dist/esm/models/Status.d.ts +1 -1
  104. package/dist/esm/models/Status.js +1 -1
  105. package/dist/esm/models/UpdateInventory.d.ts +1 -1
  106. package/dist/esm/models/UpdateInventory.js +1 -1
  107. package/dist/esm/models/VCenter.d.ts +1 -1
  108. package/dist/esm/models/VCenter.js +1 -1
  109. package/dist/esm/models/VMResourceBreakdown.d.ts +1 -1
  110. package/dist/esm/models/VMResourceBreakdown.js +1 -1
  111. package/dist/esm/models/VMs.d.ts +1 -1
  112. package/dist/esm/models/VMs.js +1 -1
  113. package/dist/esm/models/VmNetwork.d.ts +1 -1
  114. package/dist/esm/models/VmNetwork.js +1 -1
  115. package/dist/esm/models/index.d.ts +3 -0
  116. package/dist/esm/models/index.js +3 -0
  117. package/dist/esm/runtime.d.ts +1 -1
  118. package/dist/esm/runtime.js +16 -1
  119. package/dist/models/Agent.d.ts +1 -1
  120. package/dist/models/Agent.js +1 -1
  121. package/dist/models/AgentProxy.d.ts +1 -1
  122. package/dist/models/AgentProxy.js +1 -1
  123. package/dist/models/Assessment.d.ts +1 -1
  124. package/dist/models/Assessment.js +1 -1
  125. package/dist/models/AssessmentForm.d.ts +2 -2
  126. package/dist/models/AssessmentForm.js +1 -1
  127. package/dist/models/AssessmentUpdate.d.ts +1 -1
  128. package/dist/models/AssessmentUpdate.js +1 -1
  129. package/dist/models/ClusterRequirementsRequest.d.ts +13 -1
  130. package/dist/models/ClusterRequirementsRequest.js +5 -1
  131. package/dist/models/ClusterRequirementsResponse.d.ts +1 -1
  132. package/dist/models/ClusterRequirementsResponse.js +1 -1
  133. package/dist/models/ClusterSizing.d.ts +1 -1
  134. package/dist/models/ClusterSizing.js +1 -1
  135. package/dist/models/Datastore.d.ts +1 -1
  136. package/dist/models/Datastore.js +1 -1
  137. package/dist/models/DiskSizeTierSummary.d.ts +1 -1
  138. package/dist/models/DiskSizeTierSummary.js +1 -1
  139. package/dist/models/DiskTypeSummary.d.ts +1 -1
  140. package/dist/models/DiskTypeSummary.js +1 -1
  141. package/dist/models/EstimationDetail.d.ts +38 -0
  142. package/dist/models/EstimationDetail.js +54 -0
  143. package/dist/models/Histogram.d.ts +1 -1
  144. package/dist/models/Histogram.js +1 -1
  145. package/dist/models/Host.d.ts +1 -1
  146. package/dist/models/Host.js +1 -1
  147. package/dist/models/Info.d.ts +2 -2
  148. package/dist/models/Info.js +1 -1
  149. package/dist/models/Infra.d.ts +1 -1
  150. package/dist/models/Infra.js +1 -1
  151. package/dist/models/Inventory.d.ts +1 -1
  152. package/dist/models/Inventory.js +1 -1
  153. package/dist/models/InventoryData.d.ts +1 -1
  154. package/dist/models/InventoryData.js +1 -1
  155. package/dist/models/InventoryTotals.d.ts +1 -1
  156. package/dist/models/InventoryTotals.js +1 -1
  157. package/dist/models/Ipv4Config.d.ts +1 -1
  158. package/dist/models/Ipv4Config.js +1 -1
  159. package/dist/models/Job.d.ts +1 -1
  160. package/dist/models/Job.js +1 -1
  161. package/dist/models/JobStatus.d.ts +1 -1
  162. package/dist/models/JobStatus.js +1 -1
  163. package/dist/models/Label.d.ts +1 -1
  164. package/dist/models/Label.js +1 -1
  165. package/dist/models/MigrationEstimationRequest.d.ts +32 -0
  166. package/dist/models/MigrationEstimationRequest.js +50 -0
  167. package/dist/models/MigrationEstimationResponse.d.ts +41 -0
  168. package/dist/models/MigrationEstimationResponse.js +56 -0
  169. package/dist/models/MigrationIssue.d.ts +1 -1
  170. package/dist/models/MigrationIssue.js +1 -1
  171. package/dist/models/ModelError.d.ts +1 -7
  172. package/dist/models/ModelError.js +1 -3
  173. package/dist/models/Network.d.ts +1 -1
  174. package/dist/models/Network.js +1 -1
  175. package/dist/models/OsInfo.d.ts +1 -1
  176. package/dist/models/OsInfo.js +1 -1
  177. package/dist/models/PresignedUrl.d.ts +1 -1
  178. package/dist/models/PresignedUrl.js +1 -1
  179. package/dist/models/SizingOverCommitRatio.d.ts +1 -1
  180. package/dist/models/SizingOverCommitRatio.js +1 -1
  181. package/dist/models/SizingResourceConsumption.d.ts +1 -1
  182. package/dist/models/SizingResourceConsumption.js +1 -1
  183. package/dist/models/SizingResourceLimits.d.ts +1 -1
  184. package/dist/models/SizingResourceLimits.js +1 -1
  185. package/dist/models/Snapshot.d.ts +1 -1
  186. package/dist/models/Snapshot.js +1 -1
  187. package/dist/models/Source.d.ts +1 -1
  188. package/dist/models/Source.js +1 -1
  189. package/dist/models/SourceCreate.d.ts +1 -1
  190. package/dist/models/SourceCreate.js +1 -1
  191. package/dist/models/SourceInfra.d.ts +1 -1
  192. package/dist/models/SourceInfra.js +1 -1
  193. package/dist/models/SourceUpdate.d.ts +1 -1
  194. package/dist/models/SourceUpdate.js +1 -1
  195. package/dist/models/Status.d.ts +1 -1
  196. package/dist/models/Status.js +1 -1
  197. package/dist/models/UpdateInventory.d.ts +1 -1
  198. package/dist/models/UpdateInventory.js +1 -1
  199. package/dist/models/VCenter.d.ts +1 -1
  200. package/dist/models/VCenter.js +1 -1
  201. package/dist/models/VMResourceBreakdown.d.ts +1 -1
  202. package/dist/models/VMResourceBreakdown.js +1 -1
  203. package/dist/models/VMs.d.ts +1 -1
  204. package/dist/models/VMs.js +1 -1
  205. package/dist/models/VmNetwork.d.ts +1 -1
  206. package/dist/models/VmNetwork.js +1 -1
  207. package/dist/models/index.d.ts +3 -0
  208. package/dist/models/index.js +3 -0
  209. package/dist/runtime.d.ts +1 -1
  210. package/dist/runtime.js +16 -1
  211. package/docs/AssessmentApi.md +76 -0
  212. package/docs/ClusterRequirementsRequest.md +4 -0
  213. package/docs/EstimationDetail.md +37 -0
  214. package/docs/Info.md +1 -1
  215. package/docs/InfoApi.md +1 -1
  216. package/docs/MigrationEstimationRequest.md +35 -0
  217. package/docs/MigrationEstimationResponse.md +37 -0
  218. package/docs/ModelError.md +0 -2
  219. package/package.json +1 -1
  220. package/src/apis/AssessmentApi.ts +91 -1
  221. package/src/apis/HealthApi.ts +1 -1
  222. package/src/apis/ImageApi.ts +1 -1
  223. package/src/apis/InfoApi.ts +5 -5
  224. package/src/apis/JobApi.ts +1 -1
  225. package/src/apis/SourceApi.ts +1 -1
  226. package/src/models/Agent.ts +1 -1
  227. package/src/models/AgentProxy.ts +1 -1
  228. package/src/models/Assessment.ts +1 -1
  229. package/src/models/AssessmentForm.ts +2 -2
  230. package/src/models/AssessmentUpdate.ts +1 -1
  231. package/src/models/ClusterRequirementsRequest.ts +17 -1
  232. package/src/models/ClusterRequirementsResponse.ts +1 -1
  233. package/src/models/ClusterSizing.ts +1 -1
  234. package/src/models/Datastore.ts +1 -1
  235. package/src/models/DiskSizeTierSummary.ts +1 -1
  236. package/src/models/DiskTypeSummary.ts +1 -1
  237. package/src/models/EstimationDetail.ts +75 -0
  238. package/src/models/Histogram.ts +1 -1
  239. package/src/models/Host.ts +1 -1
  240. package/src/models/Info.ts +2 -2
  241. package/src/models/Infra.ts +1 -1
  242. package/src/models/Inventory.ts +1 -1
  243. package/src/models/InventoryData.ts +1 -1
  244. package/src/models/InventoryTotals.ts +1 -1
  245. package/src/models/Ipv4Config.ts +1 -1
  246. package/src/models/Job.ts +1 -1
  247. package/src/models/JobStatus.ts +1 -1
  248. package/src/models/Label.ts +1 -1
  249. package/src/models/MigrationEstimationRequest.ts +66 -0
  250. package/src/models/MigrationEstimationResponse.ts +83 -0
  251. package/src/models/MigrationIssue.ts +1 -1
  252. package/src/models/ModelError.ts +1 -9
  253. package/src/models/Network.ts +1 -1
  254. package/src/models/OsInfo.ts +1 -1
  255. package/src/models/PresignedUrl.ts +1 -1
  256. package/src/models/SizingOverCommitRatio.ts +1 -1
  257. package/src/models/SizingResourceConsumption.ts +1 -1
  258. package/src/models/SizingResourceLimits.ts +1 -1
  259. package/src/models/Snapshot.ts +1 -1
  260. package/src/models/Source.ts +1 -1
  261. package/src/models/SourceCreate.ts +1 -1
  262. package/src/models/SourceInfra.ts +1 -1
  263. package/src/models/SourceUpdate.ts +1 -1
  264. package/src/models/Status.ts +1 -1
  265. package/src/models/UpdateInventory.ts +1 -1
  266. package/src/models/VCenter.ts +1 -1
  267. package/src/models/VMResourceBreakdown.ts +1 -1
  268. package/src/models/VMs.ts +1 -1
  269. package/src/models/VmNetwork.ts +1 -1
  270. package/src/models/index.ts +3 -0
  271. package/src/runtime.ts +19 -1
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -35,7 +35,6 @@ function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'message': json['message'],
38
- 'requestId': json['requestId'] == null ? undefined : json['requestId'],
39
38
  };
40
39
  }
41
40
  function ModelErrorToJSON(json) {
@@ -47,6 +46,5 @@ function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
47
46
  }
48
47
  return {
49
48
  'message': value['message'],
50
- 'requestId': value['requestId'],
51
49
  };
52
50
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -9,6 +9,7 @@ export * from './ClusterSizing.js';
9
9
  export * from './Datastore.js';
10
10
  export * from './DiskSizeTierSummary.js';
11
11
  export * from './DiskTypeSummary.js';
12
+ export * from './EstimationDetail.js';
12
13
  export * from './Histogram.js';
13
14
  export * from './Host.js';
14
15
  export * from './Info.js';
@@ -20,6 +21,8 @@ export * from './Ipv4Config.js';
20
21
  export * from './Job.js';
21
22
  export * from './JobStatus.js';
22
23
  export * from './Label.js';
24
+ export * from './MigrationEstimationRequest.js';
25
+ export * from './MigrationEstimationResponse.js';
23
26
  export * from './MigrationIssue.js';
24
27
  export * from './ModelError.js';
25
28
  export * from './Network.js';
@@ -27,6 +27,7 @@ __exportStar(require("./ClusterSizing.js"), exports);
27
27
  __exportStar(require("./Datastore.js"), exports);
28
28
  __exportStar(require("./DiskSizeTierSummary.js"), exports);
29
29
  __exportStar(require("./DiskTypeSummary.js"), exports);
30
+ __exportStar(require("./EstimationDetail.js"), exports);
30
31
  __exportStar(require("./Histogram.js"), exports);
31
32
  __exportStar(require("./Host.js"), exports);
32
33
  __exportStar(require("./Info.js"), exports);
@@ -38,6 +39,8 @@ __exportStar(require("./Ipv4Config.js"), exports);
38
39
  __exportStar(require("./Job.js"), exports);
39
40
  __exportStar(require("./JobStatus.js"), exports);
40
41
  __exportStar(require("./Label.js"), exports);
42
+ __exportStar(require("./MigrationEstimationRequest.js"), exports);
43
+ __exportStar(require("./MigrationEstimationResponse.js"), exports);
41
44
  __exportStar(require("./MigrationIssue.js"), exports);
42
45
  __exportStar(require("./ModelError.js"), exports);
43
46
  __exportStar(require("./Network.js"), exports);
package/dist/runtime.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Migration Planner API
2
+ * OpenShift Migration Advisor API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: undefined
package/dist/runtime.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Migration Planner API
5
+ * OpenShift Migration Advisor API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: undefined
@@ -232,6 +232,11 @@ class ResponseError extends Error {
232
232
  super(msg);
233
233
  this.response = response;
234
234
  this.name = "ResponseError";
235
+ // restore prototype chain
236
+ const actualProto = new.target.prototype;
237
+ if (Object.setPrototypeOf) {
238
+ Object.setPrototypeOf(this, actualProto);
239
+ }
235
240
  }
236
241
  }
237
242
  exports.ResponseError = ResponseError;
@@ -240,6 +245,11 @@ class FetchError extends Error {
240
245
  super(msg);
241
246
  this.cause = cause;
242
247
  this.name = "FetchError";
248
+ // restore prototype chain
249
+ const actualProto = new.target.prototype;
250
+ if (Object.setPrototypeOf) {
251
+ Object.setPrototypeOf(this, actualProto);
252
+ }
243
253
  }
244
254
  }
245
255
  exports.FetchError = FetchError;
@@ -248,6 +258,11 @@ class RequiredError extends Error {
248
258
  super(msg);
249
259
  this.field = field;
250
260
  this.name = "RequiredError";
261
+ // restore prototype chain
262
+ const actualProto = new.target.prototype;
263
+ if (Object.setPrototypeOf) {
264
+ Object.setPrototypeOf(this, actualProto);
265
+ }
251
266
  }
252
267
  }
253
268
  exports.RequiredError = RequiredError;
@@ -5,6 +5,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
7
  | [**calculateAssessmentClusterRequirements**](AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements | |
8
+ | [**calculateMigrationEstimation**](AssessmentApi.md#calculatemigrationestimation) | **POST** /api/v1/assessments/{id}/migration-estimation | |
8
9
  | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
9
10
  | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
10
11
  | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
@@ -89,6 +90,81 @@ No authorization required
89
90
  [[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
 
91
92
 
93
+ ## calculateMigrationEstimation
94
+
95
+ > MigrationEstimationResponse calculateMigrationEstimation(id, migrationEstimationRequest)
96
+
97
+
98
+
99
+ Calculate migration time estimation for an assessment
100
+
101
+ ### Example
102
+
103
+ ```ts
104
+ import {
105
+ Configuration,
106
+ AssessmentApi,
107
+ } from '@openshift-migration-advisor/planner-sdk';
108
+ import type { CalculateMigrationEstimationRequest } from '@openshift-migration-advisor/planner-sdk';
109
+
110
+ async function example() {
111
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
112
+ const api = new AssessmentApi();
113
+
114
+ const body = {
115
+ // string | ID of the assessment
116
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
117
+ // MigrationEstimationRequest
118
+ migrationEstimationRequest: {"clusterId":"domain-c8"},
119
+ } satisfies CalculateMigrationEstimationRequest;
120
+
121
+ try {
122
+ const data = await api.calculateMigrationEstimation(body);
123
+ console.log(data);
124
+ } catch (error) {
125
+ console.error(error);
126
+ }
127
+ }
128
+
129
+ // Run the test
130
+ example().catch(console.error);
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+
136
+ | Name | Type | Description | Notes |
137
+ |------------- | ------------- | ------------- | -------------|
138
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
139
+ | **migrationEstimationRequest** | [MigrationEstimationRequest](MigrationEstimationRequest.md) | | |
140
+
141
+ ### Return type
142
+
143
+ [**MigrationEstimationResponse**](MigrationEstimationResponse.md)
144
+
145
+ ### Authorization
146
+
147
+ No authorization required
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: `application/json`
152
+ - **Accept**: `application/json`
153
+
154
+
155
+ ### HTTP response details
156
+ | Status code | Description | Response headers |
157
+ |-------------|-------------|------------------|
158
+ | **200** | Migration estimation calculation successful | - |
159
+ | **400** | Bad Request | - |
160
+ | **401** | Unauthorized | - |
161
+ | **403** | Forbidden | - |
162
+ | **404** | Assessment not found | - |
163
+ | **500** | Internal error | - |
164
+
165
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
166
+
167
+
92
168
  ## createAssessment
93
169
 
94
170
  > Assessment createAssessment(assessmentForm)
@@ -14,6 +14,8 @@ Name | Type
14
14
  `workerNodeMemory` | number
15
15
  `workerNodeThreads` | number
16
16
  `controlPlaneSchedulable` | boolean
17
+ `controlPlaneCPU` | number
18
+ `controlPlaneMemory` | number
17
19
 
18
20
  ## Example
19
21
 
@@ -29,6 +31,8 @@ const example = {
29
31
  "workerNodeMemory": null,
30
32
  "workerNodeThreads": null,
31
33
  "controlPlaneSchedulable": null,
34
+ "controlPlaneCPU": null,
35
+ "controlPlaneMemory": null,
32
36
  } satisfies ClusterRequirementsRequest
33
37
 
34
38
  console.log(example)
@@ -0,0 +1,37 @@
1
+
2
+ # EstimationDetail
3
+
4
+ Detailed estimation result from a single calculator
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `duration` | string
11
+ `reason` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { EstimationDetail } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "duration": 3h40m0s,
21
+ "reason": 1000.00 GB at 110 minutes per 500GB,
22
+ } satisfies EstimationDetail
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as EstimationDetail
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
package/docs/Info.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # Info
3
3
 
4
- Migration planner information
4
+ OpenShift Migration Advisor information
5
5
 
6
6
  ## Properties
7
7
 
package/docs/InfoApi.md CHANGED
@@ -14,7 +14,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
14
14
 
15
15
 
16
16
 
17
- Get migration planner information
17
+ Get OpenShift Migration Advisor information
18
18
 
19
19
  ### Example
20
20
 
@@ -0,0 +1,35 @@
1
+
2
+ # MigrationEstimationRequest
3
+
4
+ Request payload for calculating migration time estimation
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `clusterId` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { MigrationEstimationRequest } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "clusterId": domain-c8,
20
+ } satisfies MigrationEstimationRequest
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 MigrationEstimationRequest
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
+