@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-914fe80385ee

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 (202) hide show
  1. package/.openapi-generator/FILES +50 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +56 -17
  4. package/dist/apis/DefaultApi.d.ts +706 -126
  5. package/dist/apis/DefaultApi.js +916 -285
  6. package/dist/esm/apis/DefaultApi.d.ts +706 -126
  7. package/dist/esm/apis/DefaultApi.js +898 -267
  8. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  9. package/dist/esm/models/BenchmarkRun.js +85 -0
  10. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  11. package/dist/esm/models/DatastoreDetail.js +74 -0
  12. package/dist/esm/models/DatastorePair.d.ts +50 -0
  13. package/dist/esm/models/DatastorePair.js +53 -0
  14. package/dist/esm/models/EstimateRange.d.ts +44 -0
  15. package/dist/esm/models/EstimateRange.js +45 -0
  16. package/dist/esm/models/ForecastStats.d.ts +87 -0
  17. package/dist/esm/models/ForecastStats.js +64 -0
  18. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  19. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  20. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  21. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  22. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  23. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  24. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  25. package/dist/esm/models/ForecasterStatus.js +53 -0
  26. package/dist/esm/models/InspectorStatus.d.ts +20 -7
  27. package/dist/esm/models/InspectorStatus.js +12 -7
  28. package/dist/esm/models/PairCapability.d.ts +60 -0
  29. package/dist/esm/models/PairCapability.js +64 -0
  30. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  31. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  32. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  33. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  34. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  35. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  37. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  38. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  39. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  40. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  41. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  42. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  43. package/dist/esm/models/RightsizingReport.js +76 -0
  44. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  45. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  46. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  47. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  48. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  49. package/dist/esm/models/RightsizingVMReport.js +57 -0
  50. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  51. package/dist/esm/models/StartInspectionRequest.js +43 -0
  52. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  53. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  54. package/dist/esm/models/VMs.d.ts +18 -0
  55. package/dist/esm/models/VMs.js +4 -0
  56. package/dist/esm/models/VirtualMachine.d.ts +31 -1
  57. package/dist/esm/models/VirtualMachine.js +12 -4
  58. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  59. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  60. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  61. package/dist/esm/models/VmInspectionConcern.js +51 -0
  62. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  63. package/dist/esm/models/VmInspectionResults.js +42 -0
  64. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  65. package/dist/esm/models/VmInspectionStatus.js +1 -2
  66. package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
  67. package/dist/esm/models/VmUtilizationDetails.js +99 -0
  68. package/dist/esm/models/index.d.ts +25 -1
  69. package/dist/esm/models/index.js +25 -1
  70. package/dist/esm/runtime.js +1 -1
  71. package/dist/models/BenchmarkRun.d.ts +104 -0
  72. package/dist/models/BenchmarkRun.js +92 -0
  73. package/dist/models/DatastoreDetail.d.ts +90 -0
  74. package/dist/models/DatastoreDetail.js +82 -0
  75. package/dist/models/DatastorePair.d.ts +50 -0
  76. package/dist/models/DatastorePair.js +60 -0
  77. package/dist/models/EstimateRange.d.ts +44 -0
  78. package/dist/models/EstimateRange.js +52 -0
  79. package/dist/models/ForecastStats.d.ts +87 -0
  80. package/dist/models/ForecastStats.js +71 -0
  81. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  82. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  83. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  84. package/dist/models/ForecasterPairStatus.js +90 -0
  85. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  86. package/dist/models/ForecasterStartRequest.js +60 -0
  87. package/dist/models/ForecasterStatus.d.ts +47 -0
  88. package/dist/models/ForecasterStatus.js +61 -0
  89. package/dist/models/InspectorStatus.d.ts +20 -7
  90. package/dist/models/InspectorStatus.js +12 -7
  91. package/dist/models/PairCapability.d.ts +60 -0
  92. package/dist/models/PairCapability.js +72 -0
  93. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  94. package/dist/models/PairCapabilityRequest.js +54 -0
  95. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  96. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  97. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  98. package/dist/models/RightsizingClusterListResponse.js +55 -0
  99. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  100. package/dist/models/RightsizingClusterUtilization.js +102 -0
  101. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  102. package/dist/models/RightsizingCollectRequest.js +63 -0
  103. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  104. package/dist/models/RightsizingMetricStats.js +70 -0
  105. package/dist/models/RightsizingReport.d.ts +81 -0
  106. package/dist/models/RightsizingReport.js +83 -0
  107. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  108. package/dist/models/RightsizingReportListResponse.js +55 -0
  109. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  110. package/dist/models/RightsizingReportSummary.js +78 -0
  111. package/dist/models/RightsizingVMReport.d.ts +53 -0
  112. package/dist/models/RightsizingVMReport.js +64 -0
  113. package/dist/models/StartInspectionRequest.d.ts +32 -0
  114. package/dist/models/StartInspectionRequest.js +50 -0
  115. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  116. package/dist/models/StopForecasterPair202Response.js +57 -0
  117. package/dist/models/VMs.d.ts +18 -0
  118. package/dist/models/VMs.js +4 -0
  119. package/dist/models/VirtualMachine.d.ts +31 -1
  120. package/dist/models/VirtualMachine.js +12 -4
  121. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  122. package/dist/models/VirtualMachineDetail.js +3 -3
  123. package/dist/models/VmInspectionConcern.d.ts +44 -0
  124. package/dist/models/VmInspectionConcern.js +58 -0
  125. package/dist/models/VmInspectionResults.d.ts +33 -0
  126. package/dist/models/VmInspectionResults.js +49 -0
  127. package/dist/models/VmInspectionStatus.d.ts +0 -1
  128. package/dist/models/VmInspectionStatus.js +1 -2
  129. package/dist/models/VmUtilizationDetails.d.ts +116 -0
  130. package/dist/models/VmUtilizationDetails.js +106 -0
  131. package/dist/models/index.d.ts +25 -1
  132. package/dist/models/index.js +25 -1
  133. package/dist/runtime.js +1 -1
  134. package/docs/BenchmarkRun.md +58 -0
  135. package/docs/DatastoreDetail.md +50 -0
  136. package/docs/DatastorePair.md +40 -0
  137. package/docs/DefaultApi.md +1265 -240
  138. package/docs/EstimateRange.md +39 -0
  139. package/docs/ForecastStats.md +52 -0
  140. package/docs/ForecasterDatastoresRequest.md +34 -0
  141. package/docs/ForecasterPairStatus.md +52 -0
  142. package/docs/ForecasterStartRequest.md +42 -0
  143. package/docs/ForecasterStatus.md +36 -0
  144. package/docs/InspectorStatus.md +4 -0
  145. package/docs/PairCapability.md +40 -0
  146. package/docs/PairCapabilityRequest.md +36 -0
  147. package/docs/PutForecasterCredentials403Response.md +36 -0
  148. package/docs/RightsizingClusterListResponse.md +36 -0
  149. package/docs/RightsizingClusterUtilization.md +60 -0
  150. package/docs/RightsizingCollectRequest.md +46 -0
  151. package/docs/RightsizingMetricStats.md +44 -0
  152. package/docs/RightsizingReport.md +50 -0
  153. package/docs/RightsizingReportListResponse.md +36 -0
  154. package/docs/RightsizingReportSummary.md +49 -0
  155. package/docs/RightsizingVMReport.md +40 -0
  156. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  157. package/docs/StopForecasterPair202Response.md +36 -0
  158. package/docs/VMs.md +4 -0
  159. package/docs/VirtualMachine.md +12 -2
  160. package/docs/VirtualMachineDetail.md +1 -1
  161. package/docs/VmInspectionConcern.md +39 -0
  162. package/docs/VmInspectionResults.md +35 -0
  163. package/docs/VmUtilizationDetails.md +62 -0
  164. package/package.json +1 -1
  165. package/src/apis/DefaultApi.ts +1548 -350
  166. package/src/models/BenchmarkRun.ts +171 -0
  167. package/src/models/DatastoreDetail.ts +146 -0
  168. package/src/models/DatastorePair.ts +92 -0
  169. package/src/models/EstimateRange.ts +81 -0
  170. package/src/models/ForecastStats.ts +147 -0
  171. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  172. package/src/models/ForecasterPairStatus.ts +158 -0
  173. package/src/models/ForecasterStartRequest.ts +113 -0
  174. package/src/models/ForecasterStatus.ts +93 -0
  175. package/src/models/InspectorStatus.ts +37 -7
  176. package/src/models/PairCapability.ts +106 -0
  177. package/src/models/PairCapabilityRequest.ts +89 -0
  178. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  179. package/src/models/RightsizingClusterListResponse.ts +83 -0
  180. package/src/models/RightsizingClusterUtilization.ts +185 -0
  181. package/src/models/RightsizingCollectRequest.ts +123 -0
  182. package/src/models/RightsizingMetricStats.ts +111 -0
  183. package/src/models/RightsizingReport.ts +146 -0
  184. package/src/models/RightsizingReportListResponse.ts +83 -0
  185. package/src/models/RightsizingReportSummary.ts +129 -0
  186. package/src/models/RightsizingVMReport.ts +101 -0
  187. package/src/models/StartInspectionRequest.ts +66 -0
  188. package/src/models/StopForecasterPair202Response.ts +83 -0
  189. package/src/models/VMs.ts +18 -0
  190. package/src/models/VirtualMachine.ts +43 -4
  191. package/src/models/VirtualMachineDetail.ts +11 -11
  192. package/src/models/VmInspectionConcern.ts +84 -0
  193. package/src/models/VmInspectionResults.ts +73 -0
  194. package/src/models/VmInspectionStatus.ts +1 -2
  195. package/src/models/VmUtilizationDetails.ts +192 -0
  196. package/src/models/index.ts +25 -1
  197. package/src/runtime.ts +1 -2
  198. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  199. package/dist/esm/models/InspectorStartRequest.js +0 -48
  200. package/dist/models/InspectorStartRequest.d.ts +0 -39
  201. package/dist/models/InspectorStartRequest.js +0 -55
  202. package/src/models/InspectorStartRequest.ts +0 -83
@@ -0,0 +1,57 @@
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.StopForecasterPair202ResponseStateEnum = void 0;
17
+ exports.instanceOfStopForecasterPair202Response = instanceOfStopForecasterPair202Response;
18
+ exports.StopForecasterPair202ResponseFromJSON = StopForecasterPair202ResponseFromJSON;
19
+ exports.StopForecasterPair202ResponseFromJSONTyped = StopForecasterPair202ResponseFromJSONTyped;
20
+ exports.StopForecasterPair202ResponseToJSON = StopForecasterPair202ResponseToJSON;
21
+ exports.StopForecasterPair202ResponseToJSONTyped = StopForecasterPair202ResponseToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.StopForecasterPair202ResponseStateEnum = {
26
+ Canceled: 'canceled'
27
+ };
28
+ /**
29
+ * Check if a given object implements the StopForecasterPair202Response interface.
30
+ */
31
+ function instanceOfStopForecasterPair202Response(value) {
32
+ return true;
33
+ }
34
+ function StopForecasterPair202ResponseFromJSON(json) {
35
+ return StopForecasterPair202ResponseFromJSONTyped(json, false);
36
+ }
37
+ function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'pairName': json['pairName'] == null ? undefined : json['pairName'],
43
+ 'state': json['state'] == null ? undefined : json['state'],
44
+ };
45
+ }
46
+ function StopForecasterPair202ResponseToJSON(json) {
47
+ return StopForecasterPair202ResponseToJSONTyped(json, false);
48
+ }
49
+ function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'pairName': value['pairName'],
55
+ 'state': value['state'],
56
+ };
57
+ }
@@ -58,6 +58,15 @@ export interface VMs {
58
58
  diskSizeTier?: {
59
59
  [key: string]: DiskSizeTierSummary;
60
60
  };
61
+ /**
62
+ * Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
63
+ *
64
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
65
+ * @memberof VMs
66
+ */
67
+ diskComplexityTier?: {
68
+ [key: string]: DiskSizeTierSummary;
69
+ };
61
70
  /**
62
71
  *
63
72
  * @type {{ [key: string]: DiskTypeSummary; }}
@@ -94,10 +103,19 @@ export interface VMs {
94
103
  * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
95
104
  * @type {{ [key: string]: number; }}
96
105
  * @memberof VMs
106
+ * @deprecated
97
107
  */
98
108
  distributionByComplexity?: {
99
109
  [key: string]: number;
100
110
  };
111
+ /**
112
+ * Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
113
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
114
+ * @memberof VMs
115
+ */
116
+ complexityDistribution?: {
117
+ [key: string]: DiskSizeTierSummary;
118
+ };
101
119
  /**
102
120
  *
103
121
  * @type {VMResourceBreakdown}
@@ -62,11 +62,13 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
63
63
  'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['cpuCores']),
64
64
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
65
+ 'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
65
66
  'diskTypes': json['diskTypes'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskTypes'], DiskTypeSummary_js_1.DiskTypeSummaryFromJSON)),
66
67
  'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
67
68
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
68
69
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
69
70
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
71
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
70
72
  'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
71
73
  'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
72
74
  'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
@@ -92,11 +94,13 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
92
94
  'totalWithSharedDisks': value['totalWithSharedDisks'],
93
95
  'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['cpuCores']),
94
96
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
97
+ 'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
95
98
  'diskTypes': value['diskTypes'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskTypes'], DiskTypeSummary_js_1.DiskTypeSummaryToJSON)),
96
99
  'distributionByCpuTier': value['distributionByCpuTier'],
97
100
  'distributionByMemoryTier': value['distributionByMemoryTier'],
98
101
  'distributionByNicCount': value['distributionByNicCount'],
99
102
  'distributionByComplexity': value['distributionByComplexity'],
103
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
100
104
  'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
101
105
  'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
102
106
  'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskCount']),
@@ -81,13 +81,43 @@ export interface VirtualMachine {
81
81
  * @type {VmInspectionStatus}
82
82
  * @memberof VirtualMachine
83
83
  */
84
- inspection: VmInspectionStatus;
84
+ inspectionStatus?: VmInspectionStatus;
85
+ /**
86
+ * Number of inspection concerns recorded for the latest persisted inspection result
87
+ * @type {number}
88
+ * @memberof VirtualMachine
89
+ */
90
+ inspectionConcernCount?: number;
85
91
  /**
86
92
  * Tags aggregated from matching groups
87
93
  * @type {Array<string>}
88
94
  * @memberof VirtualMachine
89
95
  */
90
96
  tags?: Array<string>;
97
+ /**
98
+ * CPU utilization at p95 (%); absent when no utilization data
99
+ * @type {number}
100
+ * @memberof VirtualMachine
101
+ */
102
+ utilizationCpuP95?: number;
103
+ /**
104
+ * Memory utilization at p95 (%); absent when no utilization data
105
+ * @type {number}
106
+ * @memberof VirtualMachine
107
+ */
108
+ utilizationMemP95?: number;
109
+ /**
110
+ * Disk utilization (%); absent when no utilization data
111
+ * @type {number}
112
+ * @memberof VirtualMachine
113
+ */
114
+ utilizationDisk?: number;
115
+ /**
116
+ * Data confidence — sample_count / expected_sample_count × 100
117
+ * @type {number}
118
+ * @memberof VirtualMachine
119
+ */
120
+ utilizationConfidence?: number;
91
121
  }
92
122
  /**
93
123
  * Check if a given object implements the VirtualMachine interface.
@@ -39,8 +39,6 @@ function instanceOfVirtualMachine(value) {
39
39
  return false;
40
40
  if (!('issueCount' in value) || value['issueCount'] === undefined)
41
41
  return false;
42
- if (!('inspection' in value) || value['inspection'] === undefined)
43
- return false;
44
42
  return true;
45
43
  }
46
44
  function VirtualMachineFromJSON(json) {
@@ -61,8 +59,13 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'issueCount': json['issueCount'],
62
60
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
63
61
  'template': json['template'] == null ? undefined : json['template'],
64
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
62
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
63
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
65
64
  'tags': json['tags'] == null ? undefined : json['tags'],
65
+ 'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
66
+ 'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
67
+ 'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
68
+ 'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
66
69
  };
67
70
  }
68
71
  function VirtualMachineToJSON(json) {
@@ -83,7 +86,12 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  'issueCount': value['issueCount'],
84
87
  'migratable': value['migratable'],
85
88
  'template': value['template'],
86
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
89
+ 'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
90
+ 'inspectionConcernCount': value['inspectionConcernCount'],
87
91
  'tags': value['tags'],
92
+ 'utilization_cpu_p95': value['utilizationCpuP95'],
93
+ 'utilization_mem_p95': value['utilizationMemP95'],
94
+ 'utilization_disk': value['utilizationDisk'],
95
+ 'utilization_confidence': value['utilizationConfidence'],
88
96
  };
89
97
  }
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VMNIC } from './VMNIC.js';
13
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
14
13
  import type { GuestNetwork } from './GuestNetwork.js';
15
14
  import type { VMIssue } from './VMIssue.js';
16
15
  import type { VMDevice } from './VMDevice.js';
17
16
  import type { VMDisk } from './VMDisk.js';
17
+ import type { VmInspectionResults } from './VmInspectionResults.js';
18
18
  /**
19
19
  *
20
20
  * @export
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
203
203
  issues?: Array<VMIssue>;
204
204
  /**
205
205
  *
206
- * @type {VmInspectionStatus}
206
+ * @type {VmInspectionResults}
207
207
  * @memberof VirtualMachineDetail
208
208
  */
209
- inspection?: VmInspectionStatus;
209
+ inspection?: VmInspectionResults;
210
210
  }
211
211
  /**
212
212
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -19,11 +19,11 @@ exports.VirtualMachineDetailFromJSONTyped = VirtualMachineDetailFromJSONTyped;
19
19
  exports.VirtualMachineDetailToJSON = VirtualMachineDetailToJSON;
20
20
  exports.VirtualMachineDetailToJSONTyped = VirtualMachineDetailToJSONTyped;
21
21
  const VMNIC_js_1 = require("./VMNIC.js");
22
- const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
23
22
  const GuestNetwork_js_1 = require("./GuestNetwork.js");
24
23
  const VMIssue_js_1 = require("./VMIssue.js");
25
24
  const VMDevice_js_1 = require("./VMDevice.js");
26
25
  const VMDisk_js_1 = require("./VMDisk.js");
26
+ const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
27
27
  /**
28
28
  * Check if a given object implements the VirtualMachineDetail interface.
29
29
  */
@@ -86,7 +86,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDevice_js_1.VMDeviceFromJSON)),
87
87
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
88
88
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
89
- 'inspection': json['inspection'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
89
+ 'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
90
90
  };
91
91
  }
92
92
  function VirtualMachineDetailToJSON(json) {
@@ -127,6 +127,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
127
127
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDevice_js_1.VMDeviceToJSON)),
128
128
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
129
129
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
130
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
130
+ 'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
131
131
  };
132
132
  }
@@ -0,0 +1,44 @@
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
+ * Represents the structure of vm-migration-detective library inspection concerns
14
+ * @export
15
+ * @interface VmInspectionConcern
16
+ */
17
+ export interface VmInspectionConcern {
18
+ /**
19
+ * Short label identifying the concern
20
+ * @type {string}
21
+ * @memberof VmInspectionConcern
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof VmInspectionConcern
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof VmInspectionConcern
34
+ */
35
+ category: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VmInspectionConcern interface.
39
+ */
40
+ export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
41
+ export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
42
+ export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
43
+ export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
44
+ export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfVmInspectionConcern = instanceOfVmInspectionConcern;
17
+ exports.VmInspectionConcernFromJSON = VmInspectionConcernFromJSON;
18
+ exports.VmInspectionConcernFromJSONTyped = VmInspectionConcernFromJSONTyped;
19
+ exports.VmInspectionConcernToJSON = VmInspectionConcernToJSON;
20
+ exports.VmInspectionConcernToJSONTyped = VmInspectionConcernToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VmInspectionConcern interface.
23
+ */
24
+ function instanceOfVmInspectionConcern(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('message' in value) || value['message'] === undefined)
28
+ return false;
29
+ if (!('category' in value) || value['category'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function VmInspectionConcernFromJSON(json) {
34
+ return VmInspectionConcernFromJSONTyped(json, false);
35
+ }
36
+ function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'label': json['label'],
42
+ 'message': json['message'],
43
+ 'category': json['category'],
44
+ };
45
+ }
46
+ function VmInspectionConcernToJSON(json) {
47
+ return VmInspectionConcernToJSONTyped(json, false);
48
+ }
49
+ function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'label': value['label'],
55
+ 'message': value['message'],
56
+ 'category': value['category'],
57
+ };
58
+ }
@@ -0,0 +1,33 @@
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 { VmInspectionConcern } from './VmInspectionConcern.js';
13
+ /**
14
+ * VirtualMachine Inspection results
15
+ * @export
16
+ * @interface VmInspectionResults
17
+ */
18
+ export interface VmInspectionResults {
19
+ /**
20
+ *
21
+ * @type {Array<VmInspectionConcern>}
22
+ * @memberof VmInspectionResults
23
+ */
24
+ concerns?: Array<VmInspectionConcern>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the VmInspectionResults interface.
28
+ */
29
+ export declare function instanceOfVmInspectionResults(value: object): value is VmInspectionResults;
30
+ export declare function VmInspectionResultsFromJSON(json: any): VmInspectionResults;
31
+ export declare function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults;
32
+ export declare function VmInspectionResultsToJSON(json: any): VmInspectionResults;
33
+ export declare function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfVmInspectionResults = instanceOfVmInspectionResults;
17
+ exports.VmInspectionResultsFromJSON = VmInspectionResultsFromJSON;
18
+ exports.VmInspectionResultsFromJSONTyped = VmInspectionResultsFromJSONTyped;
19
+ exports.VmInspectionResultsToJSON = VmInspectionResultsToJSON;
20
+ exports.VmInspectionResultsToJSONTyped = VmInspectionResultsToJSONTyped;
21
+ const VmInspectionConcern_js_1 = require("./VmInspectionConcern.js");
22
+ /**
23
+ * Check if a given object implements the VmInspectionResults interface.
24
+ */
25
+ function instanceOfVmInspectionResults(value) {
26
+ return true;
27
+ }
28
+ function VmInspectionResultsFromJSON(json) {
29
+ return VmInspectionResultsFromJSONTyped(json, false);
30
+ }
31
+ function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcern_js_1.VmInspectionConcernFromJSON)),
37
+ };
38
+ }
39
+ function VmInspectionResultsToJSON(json) {
40
+ return VmInspectionResultsToJSONTyped(json, false);
41
+ }
42
+ function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcern_js_1.VmInspectionConcernToJSON)),
48
+ };
49
+ }
@@ -43,7 +43,6 @@ export declare const VmInspectionStatusStateEnum: {
43
43
  readonly VmInspectionStatusStateCompleted: "completed";
44
44
  readonly VmInspectionStatusStateCanceled: "canceled";
45
45
  readonly VmInspectionStatusStateError: "error";
46
- readonly VmInspectionStatusStateNotFound: "not_found";
47
46
  };
48
47
  export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
49
48
  /**
@@ -27,8 +27,7 @@ exports.VmInspectionStatusStateEnum = {
27
27
  VmInspectionStatusStateRunning: 'running',
28
28
  VmInspectionStatusStateCompleted: 'completed',
29
29
  VmInspectionStatusStateCanceled: 'canceled',
30
- VmInspectionStatusStateError: 'error',
31
- VmInspectionStatusStateNotFound: 'not_found'
30
+ VmInspectionStatusStateError: 'error'
32
31
  };
33
32
  /**
34
33
  * Check if a given object implements the VmInspectionStatus interface.
@@ -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
+ vmName: string;
30
+ /**
31
+ * Number of vCPUs provisioned for this VM
32
+ * @type {number}
33
+ * @memberof VmUtilizationDetails
34
+ */
35
+ provisionedCpus: number;
36
+ /**
37
+ * Provisioned RAM (MB)
38
+ * @type {number}
39
+ * @memberof VmUtilizationDetails
40
+ */
41
+ provisionedMemoryMb: number;
42
+ /**
43
+ * Provisioned disk (KB)
44
+ * @type {number}
45
+ * @memberof VmUtilizationDetails
46
+ */
47
+ provisionedDiskKb: number;
48
+ /**
49
+ * CPU utilization average (%)
50
+ * @type {number}
51
+ * @memberof VmUtilizationDetails
52
+ */
53
+ cpuAvg: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof VmUtilizationDetails
58
+ */
59
+ cpuP95: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof VmUtilizationDetails
64
+ */
65
+ cpuMax: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof VmUtilizationDetails
70
+ */
71
+ cpuLatest: number;
72
+ /**
73
+ * Memory utilization average (%)
74
+ * @type {number}
75
+ * @memberof VmUtilizationDetails
76
+ */
77
+ memAvg: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof VmUtilizationDetails
82
+ */
83
+ memP95: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof VmUtilizationDetails
88
+ */
89
+ memMax: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof VmUtilizationDetails
94
+ */
95
+ memLatest: 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;