@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,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Represents the structure of vm-migration-detective library inspection concerns
18
+ * @export
19
+ * @interface VmInspectionConcern
20
+ */
21
+ export interface VmInspectionConcern {
22
+ /**
23
+ * Short label identifying the concern
24
+ * @type {string}
25
+ * @memberof VmInspectionConcern
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VmInspectionConcern
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof VmInspectionConcern
38
+ */
39
+ category: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VmInspectionConcern interface.
44
+ */
45
+ export function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern {
46
+ if (!('label' in value) || value['label'] === undefined) return false;
47
+ if (!('message' in value) || value['message'] === undefined) return false;
48
+ if (!('category' in value) || value['category'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function VmInspectionConcernFromJSON(json: any): VmInspectionConcern {
53
+ return VmInspectionConcernFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'label': json['label'],
63
+ 'message': json['message'],
64
+ 'category': json['category'],
65
+ };
66
+ }
67
+
68
+ export function VmInspectionConcernToJSON(json: any): VmInspectionConcern {
69
+ return VmInspectionConcernToJSONTyped(json, false);
70
+ }
71
+
72
+ export function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'label': value['label'],
80
+ 'message': value['message'],
81
+ 'category': value['category'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { VmInspectionConcern } from './VmInspectionConcern.js';
17
+ import {
18
+ VmInspectionConcernFromJSON,
19
+ VmInspectionConcernFromJSONTyped,
20
+ VmInspectionConcernToJSON,
21
+ VmInspectionConcernToJSONTyped,
22
+ } from './VmInspectionConcern.js';
23
+
24
+ /**
25
+ * VirtualMachine Inspection results
26
+ * @export
27
+ * @interface VmInspectionResults
28
+ */
29
+ export interface VmInspectionResults {
30
+ /**
31
+ *
32
+ * @type {Array<VmInspectionConcern>}
33
+ * @memberof VmInspectionResults
34
+ */
35
+ concerns?: Array<VmInspectionConcern>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the VmInspectionResults interface.
40
+ */
41
+ export function instanceOfVmInspectionResults(value: object): value is VmInspectionResults {
42
+ return true;
43
+ }
44
+
45
+ export function VmInspectionResultsFromJSON(json: any): VmInspectionResults {
46
+ return VmInspectionResultsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'concerns': json['concerns'] == null ? undefined : ((json['concerns'] as Array<any>).map(VmInspectionConcernFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function VmInspectionResultsToJSON(json: any): VmInspectionResults {
60
+ return VmInspectionResultsToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'concerns': value['concerns'] == null ? undefined : ((value['concerns'] as Array<any>).map(VmInspectionConcernToJSON)),
71
+ };
72
+ }
73
+
@@ -48,8 +48,7 @@ export const VmInspectionStatusStateEnum = {
48
48
  VmInspectionStatusStateRunning: 'running',
49
49
  VmInspectionStatusStateCompleted: 'completed',
50
50
  VmInspectionStatusStateCanceled: 'canceled',
51
- VmInspectionStatusStateError: 'error',
52
- VmInspectionStatusStateNotFound: 'not_found'
51
+ VmInspectionStatusStateError: 'error'
53
52
  } as const;
54
53
  export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
55
54
 
@@ -0,0 +1,192 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VmUtilizationDetails
20
+ */
21
+ export interface VmUtilizationDetails {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof VmUtilizationDetails
26
+ */
27
+ moid: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VmUtilizationDetails
32
+ */
33
+ vm_name: string;
34
+ /**
35
+ * Number of vCPUs provisioned for this VM
36
+ * @type {number}
37
+ * @memberof VmUtilizationDetails
38
+ */
39
+ provisioned_cpus: number;
40
+ /**
41
+ * Provisioned RAM (MB)
42
+ * @type {number}
43
+ * @memberof VmUtilizationDetails
44
+ */
45
+ provisioned_memory_mb: number;
46
+ /**
47
+ * Provisioned disk (KB)
48
+ * @type {number}
49
+ * @memberof VmUtilizationDetails
50
+ */
51
+ provisioned_disk_kb: number;
52
+ /**
53
+ * CPU utilization average (%)
54
+ * @type {number}
55
+ * @memberof VmUtilizationDetails
56
+ */
57
+ cpu_avg: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof VmUtilizationDetails
62
+ */
63
+ cpu_p95: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof VmUtilizationDetails
68
+ */
69
+ cpu_max: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof VmUtilizationDetails
74
+ */
75
+ cpu_latest: number;
76
+ /**
77
+ * Memory utilization average (%)
78
+ * @type {number}
79
+ * @memberof VmUtilizationDetails
80
+ */
81
+ mem_avg: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof VmUtilizationDetails
86
+ */
87
+ mem_p95: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof VmUtilizationDetails
92
+ */
93
+ mem_max: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof VmUtilizationDetails
98
+ */
99
+ mem_latest: number;
100
+ /**
101
+ * Disk utilization (%)
102
+ * @type {number}
103
+ * @memberof VmUtilizationDetails
104
+ */
105
+ disk: number;
106
+ /**
107
+ * Data confidence — sample_count / expected_sample_count × 100
108
+ * @type {number}
109
+ * @memberof VmUtilizationDetails
110
+ */
111
+ confidence: number;
112
+ }
113
+
114
+ /**
115
+ * Check if a given object implements the VmUtilizationDetails interface.
116
+ */
117
+ export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
118
+ if (!('moid' in value) || value['moid'] === undefined) return false;
119
+ if (!('vm_name' in value) || value['vm_name'] === undefined) return false;
120
+ if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined) return false;
121
+ if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined) return false;
122
+ if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined) return false;
123
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
124
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
125
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
126
+ if (!('cpu_latest' in value) || value['cpu_latest'] === undefined) return false;
127
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
128
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
129
+ if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
130
+ if (!('mem_latest' in value) || value['mem_latest'] === undefined) return false;
131
+ if (!('disk' in value) || value['disk'] === undefined) return false;
132
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
133
+ return true;
134
+ }
135
+
136
+ export function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails {
137
+ return VmUtilizationDetailsFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails {
141
+ if (json == null) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'moid': json['moid'],
147
+ 'vm_name': json['vm_name'],
148
+ 'provisioned_cpus': json['provisioned_cpus'],
149
+ 'provisioned_memory_mb': json['provisioned_memory_mb'],
150
+ 'provisioned_disk_kb': json['provisioned_disk_kb'],
151
+ 'cpu_avg': json['cpu_avg'],
152
+ 'cpu_p95': json['cpu_p95'],
153
+ 'cpu_max': json['cpu_max'],
154
+ 'cpu_latest': json['cpu_latest'],
155
+ 'mem_avg': json['mem_avg'],
156
+ 'mem_p95': json['mem_p95'],
157
+ 'mem_max': json['mem_max'],
158
+ 'mem_latest': json['mem_latest'],
159
+ 'disk': json['disk'],
160
+ 'confidence': json['confidence'],
161
+ };
162
+ }
163
+
164
+ export function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails {
165
+ return VmUtilizationDetailsToJSONTyped(json, false);
166
+ }
167
+
168
+ export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator: boolean = false): any {
169
+ if (value == null) {
170
+ return value;
171
+ }
172
+
173
+ return {
174
+
175
+ 'moid': value['moid'],
176
+ 'vm_name': value['vm_name'],
177
+ 'provisioned_cpus': value['provisioned_cpus'],
178
+ 'provisioned_memory_mb': value['provisioned_memory_mb'],
179
+ 'provisioned_disk_kb': value['provisioned_disk_kb'],
180
+ 'cpu_avg': value['cpu_avg'],
181
+ 'cpu_p95': value['cpu_p95'],
182
+ 'cpu_max': value['cpu_max'],
183
+ 'cpu_latest': value['cpu_latest'],
184
+ 'mem_avg': value['mem_avg'],
185
+ 'mem_p95': value['mem_p95'],
186
+ 'mem_max': value['mem_max'],
187
+ 'mem_latest': value['mem_latest'],
188
+ 'disk': value['disk'],
189
+ 'confidence': value['confidence'],
190
+ };
191
+ }
192
+
@@ -2,12 +2,23 @@
2
2
  /* eslint-disable */
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
+ export * from './BenchmarkRun.js';
6
+ export * from './ClusterFeatures.js';
5
7
  export * from './CollectorStartRequest.js';
6
8
  export * from './CollectorStatus.js';
7
9
  export * from './CreateGroupRequest.js';
8
10
  export * from './Datastore.js';
11
+ export * from './DatastoreDetail.js';
12
+ export * from './DatastorePair.js';
13
+ export * from './DeleteLabelGloballyResponse.js';
9
14
  export * from './DiskSizeTierSummary.js';
10
15
  export * from './DiskTypeSummary.js';
16
+ export * from './EstimateRange.js';
17
+ export * from './ForecastStats.js';
18
+ export * from './ForecasterDatastoresRequest.js';
19
+ export * from './ForecasterPairStatus.js';
20
+ export * from './ForecasterStartRequest.js';
21
+ export * from './ForecasterStatus.js';
11
22
  export * from './GetInventory200Response.js';
12
23
  export * from './Group.js';
13
24
  export * from './GroupListResponse.js';
@@ -16,19 +27,34 @@ export * from './GuestNetwork.js';
16
27
  export * from './Histogram.js';
17
28
  export * from './Host.js';
18
29
  export * from './Infra.js';
19
- export * from './InspectorStartRequest.js';
20
30
  export * from './InspectorStatus.js';
21
31
  export * from './Inventory.js';
22
32
  export * from './InventoryData.js';
23
33
  export * from './MigrationIssue.js';
24
34
  export * from './Network.js';
25
35
  export * from './OsInfo.js';
36
+ export * from './PairCapability.js';
37
+ export * from './PairCapabilityRequest.js';
38
+ export * from './PutForecasterCredentials403Response.js';
39
+ export * from './RightsizingClusterListResponse.js';
40
+ export * from './RightsizingClusterResponse.js';
41
+ export * from './RightsizingClusterUtilization.js';
42
+ export * from './RightsizingCollectRequest.js';
43
+ export * from './RightsizingMetricStats.js';
44
+ export * from './RightsizingReport.js';
45
+ export * from './RightsizingReportListResponse.js';
46
+ export * from './RightsizingReportSummary.js';
47
+ export * from './RightsizingVMReport.js';
48
+ export * from './StartInspectionRequest.js';
49
+ export * from './StopForecasterPair202Response.js';
26
50
  export * from './UpdateGroupRequest.js';
27
51
  export * from './UpdateInventory.js';
52
+ export * from './UpdateLabelVMsRequest.js';
28
53
  export * from './VCenter.js';
29
54
  export * from './VMDevice.js';
30
55
  export * from './VMDisk.js';
31
56
  export * from './VMIssue.js';
57
+ export * from './VMLabelsResponse.js';
32
58
  export * from './VMNIC.js';
33
59
  export * from './VMResourceBreakdown.js';
34
60
  export * from './VMs.js';
@@ -38,4 +64,8 @@ export * from './VersionInfo.js';
38
64
  export * from './VirtualMachine.js';
39
65
  export * from './VirtualMachineDetail.js';
40
66
  export * from './VirtualMachineListResponse.js';
67
+ export * from './VirtualMachineUpdateRequest.js';
68
+ export * from './VmInspectionConcern.js';
69
+ export * from './VmInspectionResults.js';
41
70
  export * from './VmInspectionStatus.js';
71
+ export * from './VmUtilizationDetails.js';
package/src/runtime.ts CHANGED
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  export const BASE_PATH = "https://raw.githubusercontent.com/api/v1".replace(/\/+$/, "");
17
16
 
18
17
  export interface ConfigurationParameters {
@@ -91,7 +90,7 @@ export const DefaultConfig = new Configuration();
91
90
  */
92
91
  export class BaseAPI {
93
92
 
94
- private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
93
+ private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
95
94
  private middleware: Middleware[];
96
95
 
97
96
  constructor(protected configuration = DefaultConfig) {
@@ -1,39 +0,0 @@
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
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,39 +0,0 @@
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
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
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.instanceOfInspectorStartRequest = instanceOfInspectorStartRequest;
17
- exports.InspectorStartRequestFromJSON = InspectorStartRequestFromJSON;
18
- exports.InspectorStartRequestFromJSONTyped = InspectorStartRequestFromJSONTyped;
19
- exports.InspectorStartRequestToJSON = InspectorStartRequestToJSON;
20
- exports.InspectorStartRequestToJSONTyped = InspectorStartRequestToJSONTyped;
21
- const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
22
- /**
23
- * Check if a given object implements the InspectorStartRequest interface.
24
- */
25
- function instanceOfInspectorStartRequest(value) {
26
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
27
- return false;
28
- if (!('vmIds' in value) || value['vmIds'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function InspectorStartRequestFromJSON(json) {
33
- return InspectorStartRequestFromJSONTyped(json, false);
34
- }
35
- function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'vcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['VcenterCredentials']),
41
- 'vmIds': json['vmIds'],
42
- };
43
- }
44
- function InspectorStartRequestToJSON(json) {
45
- return InspectorStartRequestToJSONTyped(json, false);
46
- }
47
- function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'VcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['vcenterCredentials']),
53
- 'vmIds': value['vmIds'],
54
- };
55
- }
@@ -1,83 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Assisted Migration Agent API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime.js';
16
- import type { VcenterCredentials } from './VcenterCredentials.js';
17
- import {
18
- VcenterCredentialsFromJSON,
19
- VcenterCredentialsFromJSONTyped,
20
- VcenterCredentialsToJSON,
21
- VcenterCredentialsToJSONTyped,
22
- } from './VcenterCredentials.js';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface InspectorStartRequest
28
- */
29
- export interface InspectorStartRequest {
30
- /**
31
- *
32
- * @type {VcenterCredentials}
33
- * @memberof InspectorStartRequest
34
- */
35
- vcenterCredentials: VcenterCredentials;
36
- /**
37
- * Array of VirtualMachine id
38
- * @type {Array<string>}
39
- * @memberof InspectorStartRequest
40
- */
41
- vmIds: Array<string>;
42
- }
43
-
44
- /**
45
- * Check if a given object implements the InspectorStartRequest interface.
46
- */
47
- export function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest {
48
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined) return false;
49
- if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
50
- return true;
51
- }
52
-
53
- export function InspectorStartRequestFromJSON(json: any): InspectorStartRequest {
54
- return InspectorStartRequestFromJSONTyped(json, false);
55
- }
56
-
57
- export function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest {
58
- if (json == null) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
64
- 'vmIds': json['vmIds'],
65
- };
66
- }
67
-
68
- export function InspectorStartRequestToJSON(json: any): InspectorStartRequest {
69
- return InspectorStartRequestToJSONTyped(json, false);
70
- }
71
-
72
- export function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
80
- 'vmIds': value['vmIds'],
81
- };
82
- }
83
-