@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-645d2fae3eee

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 (256) hide show
  1. package/.openapi-generator/FILES +62 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +68 -17
  4. package/dist/apis/DefaultApi.d.ts +919 -108
  5. package/dist/apis/DefaultApi.js +1140 -256
  6. package/dist/esm/apis/DefaultApi.d.ts +919 -108
  7. package/dist/esm/apis/DefaultApi.js +1121 -237
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  11. package/dist/esm/models/BenchmarkRun.js +85 -0
  12. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  13. package/dist/esm/models/ClusterFeatures.js +54 -0
  14. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  15. package/dist/esm/models/DatastoreDetail.js +74 -0
  16. package/dist/esm/models/DatastorePair.d.ts +50 -0
  17. package/dist/esm/models/DatastorePair.js +53 -0
  18. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  19. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  20. package/dist/esm/models/EstimateRange.d.ts +44 -0
  21. package/dist/esm/models/EstimateRange.js +45 -0
  22. package/dist/esm/models/ForecastStats.d.ts +87 -0
  23. package/dist/esm/models/ForecastStats.js +64 -0
  24. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  25. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  26. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  27. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  28. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  29. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  30. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  31. package/dist/esm/models/ForecasterStatus.js +53 -0
  32. package/dist/esm/models/InspectorStatus.d.ts +6 -10
  33. package/dist/esm/models/InspectorStatus.js +5 -9
  34. package/dist/esm/models/Inventory.d.ts +7 -1
  35. package/dist/esm/models/Inventory.js +5 -3
  36. package/dist/esm/models/InventoryData.d.ts +7 -0
  37. package/dist/esm/models/InventoryData.js +3 -0
  38. package/dist/esm/models/PairCapability.d.ts +60 -0
  39. package/dist/esm/models/PairCapability.js +64 -0
  40. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  41. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  42. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  43. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  44. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  45. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  46. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  47. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  48. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  49. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  50. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  51. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  52. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  53. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  54. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  55. package/dist/esm/models/RightsizingReport.js +76 -0
  56. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  57. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  58. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  59. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  60. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  61. package/dist/esm/models/RightsizingVMReport.js +57 -0
  62. package/dist/esm/models/StartInspectionRequest.d.ts +39 -0
  63. package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
  64. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  65. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  66. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  67. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  68. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  69. package/dist/esm/models/VMLabelsResponse.js +47 -0
  70. package/dist/esm/models/VMs.d.ts +18 -0
  71. package/dist/esm/models/VMs.js +4 -0
  72. package/dist/esm/models/VirtualMachine.d.ts +43 -1
  73. package/dist/esm/models/VirtualMachine.js +16 -4
  74. package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
  75. package/dist/esm/models/VirtualMachineDetail.js +10 -3
  76. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  77. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  78. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  79. package/dist/esm/models/VmInspectionConcern.js +51 -0
  80. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  81. package/dist/esm/models/VmInspectionResults.js +42 -0
  82. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  83. package/dist/esm/models/VmInspectionStatus.js +1 -2
  84. package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
  85. package/dist/esm/models/VmUtilizationDetails.js +99 -0
  86. package/dist/esm/models/index.d.ts +31 -1
  87. package/dist/esm/models/index.js +31 -1
  88. package/dist/esm/runtime.js +1 -1
  89. package/dist/models/AgentStatus.d.ts +1 -1
  90. package/dist/models/AgentStatus.js +3 -3
  91. package/dist/models/BenchmarkRun.d.ts +104 -0
  92. package/dist/models/BenchmarkRun.js +92 -0
  93. package/dist/models/ClusterFeatures.d.ts +54 -0
  94. package/dist/models/ClusterFeatures.js +62 -0
  95. package/dist/models/DatastoreDetail.d.ts +90 -0
  96. package/dist/models/DatastoreDetail.js +82 -0
  97. package/dist/models/DatastorePair.d.ts +50 -0
  98. package/dist/models/DatastorePair.js +60 -0
  99. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  100. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  101. package/dist/models/EstimateRange.d.ts +44 -0
  102. package/dist/models/EstimateRange.js +52 -0
  103. package/dist/models/ForecastStats.d.ts +87 -0
  104. package/dist/models/ForecastStats.js +71 -0
  105. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  106. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  107. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  108. package/dist/models/ForecasterPairStatus.js +90 -0
  109. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  110. package/dist/models/ForecasterStartRequest.js +60 -0
  111. package/dist/models/ForecasterStatus.d.ts +47 -0
  112. package/dist/models/ForecasterStatus.js +61 -0
  113. package/dist/models/InspectorStatus.d.ts +6 -10
  114. package/dist/models/InspectorStatus.js +5 -9
  115. package/dist/models/Inventory.d.ts +7 -1
  116. package/dist/models/Inventory.js +5 -3
  117. package/dist/models/InventoryData.d.ts +7 -0
  118. package/dist/models/InventoryData.js +3 -0
  119. package/dist/models/PairCapability.d.ts +60 -0
  120. package/dist/models/PairCapability.js +72 -0
  121. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  122. package/dist/models/PairCapabilityRequest.js +54 -0
  123. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  124. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  125. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  126. package/dist/models/RightsizingClusterListResponse.js +55 -0
  127. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  128. package/dist/models/RightsizingClusterResponse.js +55 -0
  129. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  130. package/dist/models/RightsizingClusterUtilization.js +102 -0
  131. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  132. package/dist/models/RightsizingCollectRequest.js +63 -0
  133. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  134. package/dist/models/RightsizingMetricStats.js +70 -0
  135. package/dist/models/RightsizingReport.d.ts +81 -0
  136. package/dist/models/RightsizingReport.js +83 -0
  137. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  138. package/dist/models/RightsizingReportListResponse.js +55 -0
  139. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  140. package/dist/models/RightsizingReportSummary.js +78 -0
  141. package/dist/models/RightsizingVMReport.d.ts +53 -0
  142. package/dist/models/RightsizingVMReport.js +64 -0
  143. package/dist/models/StartInspectionRequest.d.ts +39 -0
  144. package/dist/models/StartInspectionRequest.js +55 -0
  145. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  146. package/dist/models/StopForecasterPair202Response.js +57 -0
  147. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  148. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  149. package/dist/models/VMLabelsResponse.d.ts +38 -0
  150. package/dist/models/VMLabelsResponse.js +54 -0
  151. package/dist/models/VMs.d.ts +18 -0
  152. package/dist/models/VMs.js +4 -0
  153. package/dist/models/VirtualMachine.d.ts +43 -1
  154. package/dist/models/VirtualMachine.js +16 -4
  155. package/dist/models/VirtualMachineDetail.d.ts +22 -3
  156. package/dist/models/VirtualMachineDetail.js +10 -3
  157. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  158. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  159. package/dist/models/VmInspectionConcern.d.ts +44 -0
  160. package/dist/models/VmInspectionConcern.js +58 -0
  161. package/dist/models/VmInspectionResults.d.ts +33 -0
  162. package/dist/models/VmInspectionResults.js +49 -0
  163. package/dist/models/VmInspectionStatus.d.ts +0 -1
  164. package/dist/models/VmInspectionStatus.js +1 -2
  165. package/dist/models/VmUtilizationDetails.d.ts +116 -0
  166. package/dist/models/VmUtilizationDetails.js +106 -0
  167. package/dist/models/index.d.ts +31 -1
  168. package/dist/models/index.js +31 -1
  169. package/dist/runtime.js +1 -1
  170. package/docs/AgentStatus.md +2 -2
  171. package/docs/BenchmarkRun.md +58 -0
  172. package/docs/ClusterFeatures.md +38 -0
  173. package/docs/DatastoreDetail.md +50 -0
  174. package/docs/DatastorePair.md +40 -0
  175. package/docs/DefaultApi.md +1701 -266
  176. package/docs/DeleteLabelGloballyResponse.md +36 -0
  177. package/docs/EstimateRange.md +39 -0
  178. package/docs/ForecastStats.md +52 -0
  179. package/docs/ForecasterDatastoresRequest.md +34 -0
  180. package/docs/ForecasterPairStatus.md +52 -0
  181. package/docs/ForecasterStartRequest.md +42 -0
  182. package/docs/ForecasterStatus.md +36 -0
  183. package/docs/GetInventory200Response.md +4 -2
  184. package/docs/InspectorStatus.md +2 -2
  185. package/docs/Inventory.md +4 -2
  186. package/docs/InventoryData.md +2 -0
  187. package/docs/PairCapability.md +40 -0
  188. package/docs/PairCapabilityRequest.md +36 -0
  189. package/docs/PutForecasterCredentials403Response.md +36 -0
  190. package/docs/RightsizingClusterListResponse.md +36 -0
  191. package/docs/RightsizingClusterResponse.md +36 -0
  192. package/docs/RightsizingClusterUtilization.md +60 -0
  193. package/docs/RightsizingCollectRequest.md +46 -0
  194. package/docs/RightsizingMetricStats.md +44 -0
  195. package/docs/RightsizingReport.md +50 -0
  196. package/docs/RightsizingReportListResponse.md +36 -0
  197. package/docs/RightsizingReportSummary.md +49 -0
  198. package/docs/RightsizingVMReport.md +40 -0
  199. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +7 -6
  200. package/docs/StopForecasterPair202Response.md +36 -0
  201. package/docs/UpdateLabelVMsRequest.md +36 -0
  202. package/docs/VMLabelsResponse.md +36 -0
  203. package/docs/VMs.md +4 -0
  204. package/docs/VirtualMachine.md +16 -2
  205. package/docs/VirtualMachineDetail.md +7 -1
  206. package/docs/VirtualMachineUpdateRequest.md +36 -0
  207. package/docs/VmInspectionConcern.md +39 -0
  208. package/docs/VmInspectionResults.md +35 -0
  209. package/docs/VmUtilizationDetails.md +62 -0
  210. package/package.json +1 -1
  211. package/src/apis/DefaultApi.ts +2167 -479
  212. package/src/models/AgentStatus.ts +4 -4
  213. package/src/models/BenchmarkRun.ts +171 -0
  214. package/src/models/ClusterFeatures.ts +94 -0
  215. package/src/models/DatastoreDetail.ts +146 -0
  216. package/src/models/DatastorePair.ts +92 -0
  217. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  218. package/src/models/EstimateRange.ts +81 -0
  219. package/src/models/ForecastStats.ts +147 -0
  220. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  221. package/src/models/ForecasterPairStatus.ts +158 -0
  222. package/src/models/ForecasterStartRequest.ts +113 -0
  223. package/src/models/ForecasterStatus.ts +93 -0
  224. package/src/models/InspectorStatus.ts +15 -12
  225. package/src/models/Inventory.ts +12 -4
  226. package/src/models/InventoryData.ts +15 -0
  227. package/src/models/PairCapability.ts +106 -0
  228. package/src/models/PairCapabilityRequest.ts +89 -0
  229. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  230. package/src/models/RightsizingClusterListResponse.ts +83 -0
  231. package/src/models/RightsizingClusterResponse.ts +83 -0
  232. package/src/models/RightsizingClusterUtilization.ts +185 -0
  233. package/src/models/RightsizingCollectRequest.ts +123 -0
  234. package/src/models/RightsizingMetricStats.ts +111 -0
  235. package/src/models/RightsizingReport.ts +146 -0
  236. package/src/models/RightsizingReportListResponse.ts +83 -0
  237. package/src/models/RightsizingReportSummary.ts +129 -0
  238. package/src/models/RightsizingVMReport.ts +101 -0
  239. package/src/models/StartInspectionRequest.ts +83 -0
  240. package/src/models/StopForecasterPair202Response.ts +83 -0
  241. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  242. package/src/models/VMLabelsResponse.ts +75 -0
  243. package/src/models/VMs.ts +18 -0
  244. package/src/models/VirtualMachine.ts +59 -4
  245. package/src/models/VirtualMachineDetail.ts +42 -11
  246. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  247. package/src/models/VmInspectionConcern.ts +84 -0
  248. package/src/models/VmInspectionResults.ts +73 -0
  249. package/src/models/VmInspectionStatus.ts +1 -2
  250. package/src/models/VmUtilizationDetails.ts +192 -0
  251. package/src/models/index.ts +31 -1
  252. package/src/runtime.ts +1 -2
  253. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  254. package/dist/models/InspectorStartRequest.d.ts +0 -39
  255. package/dist/models/InspectorStartRequest.js +0 -55
  256. package/src/models/InspectorStartRequest.ts +0 -83
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VmUtilizationDetails
16
+ */
17
+ export interface VmUtilizationDetails {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VmUtilizationDetails
22
+ */
23
+ moid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof VmUtilizationDetails
28
+ */
29
+ vm_name: string;
30
+ /**
31
+ * Number of vCPUs provisioned for this VM
32
+ * @type {number}
33
+ * @memberof VmUtilizationDetails
34
+ */
35
+ provisioned_cpus: number;
36
+ /**
37
+ * Provisioned RAM (MB)
38
+ * @type {number}
39
+ * @memberof VmUtilizationDetails
40
+ */
41
+ provisioned_memory_mb: number;
42
+ /**
43
+ * Provisioned disk (KB)
44
+ * @type {number}
45
+ * @memberof VmUtilizationDetails
46
+ */
47
+ provisioned_disk_kb: number;
48
+ /**
49
+ * CPU utilization average (%)
50
+ * @type {number}
51
+ * @memberof VmUtilizationDetails
52
+ */
53
+ cpu_avg: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof VmUtilizationDetails
58
+ */
59
+ cpu_p95: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof VmUtilizationDetails
64
+ */
65
+ cpu_max: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof VmUtilizationDetails
70
+ */
71
+ cpu_latest: number;
72
+ /**
73
+ * Memory utilization average (%)
74
+ * @type {number}
75
+ * @memberof VmUtilizationDetails
76
+ */
77
+ mem_avg: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof VmUtilizationDetails
82
+ */
83
+ mem_p95: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof VmUtilizationDetails
88
+ */
89
+ mem_max: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof VmUtilizationDetails
94
+ */
95
+ mem_latest: number;
96
+ /**
97
+ * Disk utilization (%)
98
+ * @type {number}
99
+ * @memberof VmUtilizationDetails
100
+ */
101
+ disk: number;
102
+ /**
103
+ * Data confidence — sample_count / expected_sample_count × 100
104
+ * @type {number}
105
+ * @memberof VmUtilizationDetails
106
+ */
107
+ confidence: number;
108
+ }
109
+ /**
110
+ * Check if a given object implements the VmUtilizationDetails interface.
111
+ */
112
+ export declare function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails;
113
+ export declare function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails;
114
+ export declare function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails;
115
+ export declare function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails;
116
+ export declare function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVmUtilizationDetails = instanceOfVmUtilizationDetails;
17
+ exports.VmUtilizationDetailsFromJSON = VmUtilizationDetailsFromJSON;
18
+ exports.VmUtilizationDetailsFromJSONTyped = VmUtilizationDetailsFromJSONTyped;
19
+ exports.VmUtilizationDetailsToJSON = VmUtilizationDetailsToJSON;
20
+ exports.VmUtilizationDetailsToJSONTyped = VmUtilizationDetailsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VmUtilizationDetails interface.
23
+ */
24
+ function instanceOfVmUtilizationDetails(value) {
25
+ if (!('moid' in value) || value['moid'] === undefined)
26
+ return false;
27
+ if (!('vm_name' in value) || value['vm_name'] === undefined)
28
+ return false;
29
+ if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined)
30
+ return false;
31
+ if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined)
32
+ return false;
33
+ if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined)
34
+ return false;
35
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
36
+ return false;
37
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
38
+ return false;
39
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
40
+ return false;
41
+ if (!('cpu_latest' in value) || value['cpu_latest'] === undefined)
42
+ return false;
43
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
44
+ return false;
45
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
46
+ return false;
47
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
48
+ return false;
49
+ if (!('mem_latest' in value) || value['mem_latest'] === undefined)
50
+ return false;
51
+ if (!('disk' in value) || value['disk'] === undefined)
52
+ return false;
53
+ if (!('confidence' in value) || value['confidence'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ function VmUtilizationDetailsFromJSON(json) {
58
+ return VmUtilizationDetailsFromJSONTyped(json, false);
59
+ }
60
+ function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+ 'moid': json['moid'],
66
+ 'vm_name': json['vm_name'],
67
+ 'provisioned_cpus': json['provisioned_cpus'],
68
+ 'provisioned_memory_mb': json['provisioned_memory_mb'],
69
+ 'provisioned_disk_kb': json['provisioned_disk_kb'],
70
+ 'cpu_avg': json['cpu_avg'],
71
+ 'cpu_p95': json['cpu_p95'],
72
+ 'cpu_max': json['cpu_max'],
73
+ 'cpu_latest': json['cpu_latest'],
74
+ 'mem_avg': json['mem_avg'],
75
+ 'mem_p95': json['mem_p95'],
76
+ 'mem_max': json['mem_max'],
77
+ 'mem_latest': json['mem_latest'],
78
+ 'disk': json['disk'],
79
+ 'confidence': json['confidence'],
80
+ };
81
+ }
82
+ function VmUtilizationDetailsToJSON(json) {
83
+ return VmUtilizationDetailsToJSONTyped(json, false);
84
+ }
85
+ function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'moid': value['moid'],
91
+ 'vm_name': value['vm_name'],
92
+ 'provisioned_cpus': value['provisioned_cpus'],
93
+ 'provisioned_memory_mb': value['provisioned_memory_mb'],
94
+ 'provisioned_disk_kb': value['provisioned_disk_kb'],
95
+ 'cpu_avg': value['cpu_avg'],
96
+ 'cpu_p95': value['cpu_p95'],
97
+ 'cpu_max': value['cpu_max'],
98
+ 'cpu_latest': value['cpu_latest'],
99
+ 'mem_avg': value['mem_avg'],
100
+ 'mem_p95': value['mem_p95'],
101
+ 'mem_max': value['mem_max'],
102
+ 'mem_latest': value['mem_latest'],
103
+ 'disk': value['disk'],
104
+ 'confidence': value['confidence'],
105
+ };
106
+ }
@@ -1,11 +1,22 @@
1
1
  export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
+ export * from './BenchmarkRun.js';
4
+ export * from './ClusterFeatures.js';
3
5
  export * from './CollectorStartRequest.js';
4
6
  export * from './CollectorStatus.js';
5
7
  export * from './CreateGroupRequest.js';
6
8
  export * from './Datastore.js';
9
+ export * from './DatastoreDetail.js';
10
+ export * from './DatastorePair.js';
11
+ export * from './DeleteLabelGloballyResponse.js';
7
12
  export * from './DiskSizeTierSummary.js';
8
13
  export * from './DiskTypeSummary.js';
14
+ export * from './EstimateRange.js';
15
+ export * from './ForecastStats.js';
16
+ export * from './ForecasterDatastoresRequest.js';
17
+ export * from './ForecasterPairStatus.js';
18
+ export * from './ForecasterStartRequest.js';
19
+ export * from './ForecasterStatus.js';
9
20
  export * from './GetInventory200Response.js';
10
21
  export * from './Group.js';
11
22
  export * from './GroupListResponse.js';
@@ -14,19 +25,34 @@ export * from './GuestNetwork.js';
14
25
  export * from './Histogram.js';
15
26
  export * from './Host.js';
16
27
  export * from './Infra.js';
17
- export * from './InspectorStartRequest.js';
18
28
  export * from './InspectorStatus.js';
19
29
  export * from './Inventory.js';
20
30
  export * from './InventoryData.js';
21
31
  export * from './MigrationIssue.js';
22
32
  export * from './Network.js';
23
33
  export * from './OsInfo.js';
34
+ export * from './PairCapability.js';
35
+ export * from './PairCapabilityRequest.js';
36
+ export * from './PutForecasterCredentials403Response.js';
37
+ export * from './RightsizingClusterListResponse.js';
38
+ export * from './RightsizingClusterResponse.js';
39
+ export * from './RightsizingClusterUtilization.js';
40
+ export * from './RightsizingCollectRequest.js';
41
+ export * from './RightsizingMetricStats.js';
42
+ export * from './RightsizingReport.js';
43
+ export * from './RightsizingReportListResponse.js';
44
+ export * from './RightsizingReportSummary.js';
45
+ export * from './RightsizingVMReport.js';
46
+ export * from './StartInspectionRequest.js';
47
+ export * from './StopForecasterPair202Response.js';
24
48
  export * from './UpdateGroupRequest.js';
25
49
  export * from './UpdateInventory.js';
50
+ export * from './UpdateLabelVMsRequest.js';
26
51
  export * from './VCenter.js';
27
52
  export * from './VMDevice.js';
28
53
  export * from './VMDisk.js';
29
54
  export * from './VMIssue.js';
55
+ export * from './VMLabelsResponse.js';
30
56
  export * from './VMNIC.js';
31
57
  export * from './VMResourceBreakdown.js';
32
58
  export * from './VMs.js';
@@ -36,4 +62,8 @@ export * from './VersionInfo.js';
36
62
  export * from './VirtualMachine.js';
37
63
  export * from './VirtualMachineDetail.js';
38
64
  export * from './VirtualMachineListResponse.js';
65
+ export * from './VirtualMachineUpdateRequest.js';
66
+ export * from './VmInspectionConcern.js';
67
+ export * from './VmInspectionResults.js';
39
68
  export * from './VmInspectionStatus.js';
69
+ export * from './VmUtilizationDetails.js';
@@ -18,12 +18,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AgentModeRequest.js"), exports);
20
20
  __exportStar(require("./AgentStatus.js"), exports);
21
+ __exportStar(require("./BenchmarkRun.js"), exports);
22
+ __exportStar(require("./ClusterFeatures.js"), exports);
21
23
  __exportStar(require("./CollectorStartRequest.js"), exports);
22
24
  __exportStar(require("./CollectorStatus.js"), exports);
23
25
  __exportStar(require("./CreateGroupRequest.js"), exports);
24
26
  __exportStar(require("./Datastore.js"), exports);
27
+ __exportStar(require("./DatastoreDetail.js"), exports);
28
+ __exportStar(require("./DatastorePair.js"), exports);
29
+ __exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
25
30
  __exportStar(require("./DiskSizeTierSummary.js"), exports);
26
31
  __exportStar(require("./DiskTypeSummary.js"), exports);
32
+ __exportStar(require("./EstimateRange.js"), exports);
33
+ __exportStar(require("./ForecastStats.js"), exports);
34
+ __exportStar(require("./ForecasterDatastoresRequest.js"), exports);
35
+ __exportStar(require("./ForecasterPairStatus.js"), exports);
36
+ __exportStar(require("./ForecasterStartRequest.js"), exports);
37
+ __exportStar(require("./ForecasterStatus.js"), exports);
27
38
  __exportStar(require("./GetInventory200Response.js"), exports);
28
39
  __exportStar(require("./Group.js"), exports);
29
40
  __exportStar(require("./GroupListResponse.js"), exports);
@@ -32,19 +43,34 @@ __exportStar(require("./GuestNetwork.js"), exports);
32
43
  __exportStar(require("./Histogram.js"), exports);
33
44
  __exportStar(require("./Host.js"), exports);
34
45
  __exportStar(require("./Infra.js"), exports);
35
- __exportStar(require("./InspectorStartRequest.js"), exports);
36
46
  __exportStar(require("./InspectorStatus.js"), exports);
37
47
  __exportStar(require("./Inventory.js"), exports);
38
48
  __exportStar(require("./InventoryData.js"), exports);
39
49
  __exportStar(require("./MigrationIssue.js"), exports);
40
50
  __exportStar(require("./Network.js"), exports);
41
51
  __exportStar(require("./OsInfo.js"), exports);
52
+ __exportStar(require("./PairCapability.js"), exports);
53
+ __exportStar(require("./PairCapabilityRequest.js"), exports);
54
+ __exportStar(require("./PutForecasterCredentials403Response.js"), exports);
55
+ __exportStar(require("./RightsizingClusterListResponse.js"), exports);
56
+ __exportStar(require("./RightsizingClusterResponse.js"), exports);
57
+ __exportStar(require("./RightsizingClusterUtilization.js"), exports);
58
+ __exportStar(require("./RightsizingCollectRequest.js"), exports);
59
+ __exportStar(require("./RightsizingMetricStats.js"), exports);
60
+ __exportStar(require("./RightsizingReport.js"), exports);
61
+ __exportStar(require("./RightsizingReportListResponse.js"), exports);
62
+ __exportStar(require("./RightsizingReportSummary.js"), exports);
63
+ __exportStar(require("./RightsizingVMReport.js"), exports);
64
+ __exportStar(require("./StartInspectionRequest.js"), exports);
65
+ __exportStar(require("./StopForecasterPair202Response.js"), exports);
42
66
  __exportStar(require("./UpdateGroupRequest.js"), exports);
43
67
  __exportStar(require("./UpdateInventory.js"), exports);
68
+ __exportStar(require("./UpdateLabelVMsRequest.js"), exports);
44
69
  __exportStar(require("./VCenter.js"), exports);
45
70
  __exportStar(require("./VMDevice.js"), exports);
46
71
  __exportStar(require("./VMDisk.js"), exports);
47
72
  __exportStar(require("./VMIssue.js"), exports);
73
+ __exportStar(require("./VMLabelsResponse.js"), exports);
48
74
  __exportStar(require("./VMNIC.js"), exports);
49
75
  __exportStar(require("./VMResourceBreakdown.js"), exports);
50
76
  __exportStar(require("./VMs.js"), exports);
@@ -54,4 +80,8 @@ __exportStar(require("./VersionInfo.js"), exports);
54
80
  __exportStar(require("./VirtualMachine.js"), exports);
55
81
  __exportStar(require("./VirtualMachineDetail.js"), exports);
56
82
  __exportStar(require("./VirtualMachineListResponse.js"), exports);
83
+ __exportStar(require("./VirtualMachineUpdateRequest.js"), exports);
84
+ __exportStar(require("./VmInspectionConcern.js"), exports);
85
+ __exportStar(require("./VmInspectionResults.js"), exports);
57
86
  __exportStar(require("./VmInspectionStatus.js"), exports);
87
+ __exportStar(require("./VmUtilizationDetails.js"), exports);
package/dist/runtime.js CHANGED
@@ -219,7 +219,7 @@ class BaseAPI {
219
219
  }
220
220
  }
221
221
  exports.BaseAPI = BaseAPI;
222
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
222
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
223
223
  ;
224
224
  function isBlob(value) {
225
225
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `mode` | string
10
- `consoleConnection` | string
10
+ `console_connection` | string
11
11
  `error` | string
12
12
 
13
13
  ## Example
@@ -18,7 +18,7 @@ import type { AgentStatus } from '@openshift-migration-advisor/agent-sdk'
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
20
20
  "mode": null,
21
- "consoleConnection": null,
21
+ "console_connection": null,
22
22
  "error": null,
23
23
  } satisfies AgentStatus
24
24
 
@@ -0,0 +1,58 @@
1
+
2
+ # BenchmarkRun
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `sessionId` | number
11
+ `pairName` | string
12
+ `sourceDatastore` | string
13
+ `targetDatastore` | string
14
+ `iteration` | number
15
+ `diskSizeGb` | number
16
+ `prepDurationSec` | number
17
+ `durationSec` | number
18
+ `throughputMbps` | number
19
+ `method` | string
20
+ `error` | string
21
+ `createdAt` | Date
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { BenchmarkRun } from '@openshift-migration-advisor/agent-sdk'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "id": null,
31
+ "sessionId": null,
32
+ "pairName": null,
33
+ "sourceDatastore": null,
34
+ "targetDatastore": null,
35
+ "iteration": null,
36
+ "diskSizeGb": null,
37
+ "prepDurationSec": null,
38
+ "durationSec": null,
39
+ "throughputMbps": null,
40
+ "method": null,
41
+ "error": null,
42
+ "createdAt": null,
43
+ } satisfies BenchmarkRun
44
+
45
+ console.log(example)
46
+
47
+ // Convert the instance to a JSON string
48
+ const exampleJSON: string = JSON.stringify(example)
49
+ console.log(exampleJSON)
50
+
51
+ // Parse the JSON string back to an object
52
+ const exampleParsed = JSON.parse(exampleJSON) as BenchmarkRun
53
+ console.log(exampleParsed)
54
+ ```
55
+
56
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
+
58
+
@@ -0,0 +1,38 @@
1
+
2
+ # ClusterFeatures
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `drsEnabled` | boolean
10
+ `drsMode` | string
11
+ `storageDrsEnabled` | boolean
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ClusterFeatures } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "drsEnabled": null,
21
+ "drsMode": null,
22
+ "storageDrsEnabled": null,
23
+ } satisfies ClusterFeatures
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 ClusterFeatures
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,50 @@
1
+
2
+ # DatastoreDetail
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `type` | string
11
+ `capacityGb` | number
12
+ `freeGb` | number
13
+ `storageVendor` | string
14
+ `storageModel` | string
15
+ `storageArrayId` | string
16
+ `naaDevices` | Array<string>
17
+ `capabilities` | Array<string>
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { DatastoreDetail } from '@openshift-migration-advisor/agent-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "name": null,
27
+ "type": null,
28
+ "capacityGb": null,
29
+ "freeGb": null,
30
+ "storageVendor": null,
31
+ "storageModel": null,
32
+ "storageArrayId": null,
33
+ "naaDevices": null,
34
+ "capabilities": null,
35
+ } satisfies DatastoreDetail
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 DatastoreDetail
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,40 @@
1
+
2
+ # DatastorePair
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `sourceDatastore` | string
11
+ `targetDatastore` | string
12
+ `host` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { DatastorePair } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "sourceDatastore": null,
23
+ "targetDatastore": null,
24
+ "host": null,
25
+ } satisfies DatastorePair
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 DatastorePair
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
+