@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,32 @@
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
+ * Array of VirtualMachine id
14
+ * @export
15
+ * @interface StartInspectionRequest
16
+ */
17
+ export interface StartInspectionRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof StartInspectionRequest
22
+ */
23
+ vmIds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the StartInspectionRequest interface.
27
+ */
28
+ export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
29
+ export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
30
+ export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
31
+ export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
32
+ export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the StartInspectionRequest interface.
16
+ */
17
+ export function instanceOfStartInspectionRequest(value) {
18
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function StartInspectionRequestFromJSON(json) {
23
+ return StartInspectionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'vmIds': json['vmIds'],
31
+ };
32
+ }
33
+ export function StartInspectionRequestToJSON(json) {
34
+ return StartInspectionRequestToJSONTyped(json, false);
35
+ }
36
+ export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'vmIds': value['vmIds'],
42
+ };
43
+ }
@@ -0,0 +1,45 @@
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 StopForecasterPair202Response
16
+ */
17
+ export interface StopForecasterPair202Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StopForecasterPair202Response
22
+ */
23
+ pairName?: string;
24
+ /**
25
+ *
26
+ * @type {StopForecasterPair202ResponseStateEnum}
27
+ * @memberof StopForecasterPair202Response
28
+ */
29
+ state?: StopForecasterPair202ResponseStateEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const StopForecasterPair202ResponseStateEnum: {
35
+ readonly Canceled: "canceled";
36
+ };
37
+ export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
38
+ /**
39
+ * Check if a given object implements the StopForecasterPair202Response interface.
40
+ */
41
+ export declare function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response;
42
+ export declare function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response;
43
+ export declare function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response;
44
+ export declare function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response;
45
+ export declare function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ * @export
16
+ */
17
+ export const StopForecasterPair202ResponseStateEnum = {
18
+ Canceled: 'canceled'
19
+ };
20
+ /**
21
+ * Check if a given object implements the StopForecasterPair202Response interface.
22
+ */
23
+ export function instanceOfStopForecasterPair202Response(value) {
24
+ return true;
25
+ }
26
+ export function StopForecasterPair202ResponseFromJSON(json) {
27
+ return StopForecasterPair202ResponseFromJSONTyped(json, false);
28
+ }
29
+ export function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'pairName': json['pairName'] == null ? undefined : json['pairName'],
35
+ 'state': json['state'] == null ? undefined : json['state'],
36
+ };
37
+ }
38
+ export function StopForecasterPair202ResponseToJSON(json) {
39
+ return StopForecasterPair202ResponseToJSONTyped(json, false);
40
+ }
41
+ export function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'pairName': value['pairName'],
47
+ 'state': value['state'],
48
+ };
49
+ }
@@ -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}
@@ -55,11 +55,13 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
56
56
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
57
57
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
58
+ 'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
58
59
  'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
59
60
  'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
60
61
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
61
62
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
62
63
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
64
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
63
65
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
64
66
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
65
67
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -85,11 +87,13 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
85
87
  'totalWithSharedDisks': value['totalWithSharedDisks'],
86
88
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
87
89
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
90
+ 'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
88
91
  'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
89
92
  'distributionByCpuTier': value['distributionByCpuTier'],
90
93
  'distributionByMemoryTier': value['distributionByMemoryTier'],
91
94
  'distributionByNicCount': value['distributionByNicCount'],
92
95
  'distributionByComplexity': value['distributionByComplexity'],
96
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
93
97
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
94
98
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
95
99
  'diskCount': 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.
@@ -32,8 +32,6 @@ export function instanceOfVirtualMachine(value) {
32
32
  return false;
33
33
  if (!('issueCount' in value) || value['issueCount'] === undefined)
34
34
  return false;
35
- if (!('inspection' in value) || value['inspection'] === undefined)
36
- return false;
37
35
  return true;
38
36
  }
39
37
  export function VirtualMachineFromJSON(json) {
@@ -54,8 +52,13 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'issueCount': json['issueCount'],
55
53
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
56
54
  'template': json['template'] == null ? undefined : json['template'],
57
- 'inspection': VmInspectionStatusFromJSON(json['inspection']),
55
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
56
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
58
57
  'tags': json['tags'] == null ? undefined : json['tags'],
58
+ 'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
59
+ 'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
60
+ 'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
61
+ 'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
59
62
  };
60
63
  }
61
64
  export function VirtualMachineToJSON(json) {
@@ -76,7 +79,12 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
76
79
  'issueCount': value['issueCount'],
77
80
  'migratable': value['migratable'],
78
81
  'template': value['template'],
79
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
82
+ 'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
83
+ 'inspectionConcernCount': value['inspectionConcernCount'],
80
84
  'tags': value['tags'],
85
+ 'utilization_cpu_p95': value['utilizationCpuP95'],
86
+ 'utilization_mem_p95': value['utilizationMemP95'],
87
+ 'utilization_disk': value['utilizationDisk'],
88
+ 'utilization_confidence': value['utilizationConfidence'],
81
89
  };
82
90
  }
@@ -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.
@@ -12,11 +12,11 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
15
- import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
16
15
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
16
  import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
18
17
  import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
19
18
  import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
19
+ import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
20
20
  /**
21
21
  * Check if a given object implements the VirtualMachineDetail interface.
22
22
  */
@@ -79,7 +79,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
79
79
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDeviceFromJSON)),
80
80
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
81
81
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
82
- 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
82
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
83
83
  };
84
84
  }
85
85
  export function VirtualMachineDetailToJSON(json) {
@@ -120,6 +120,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
120
120
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDeviceToJSON)),
121
121
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
122
122
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
123
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
123
+ 'inspection': VmInspectionResultsToJSON(value['inspection']),
124
124
  };
125
125
  }
@@ -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,51 @@
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
+ * Check if a given object implements the VmInspectionConcern interface.
16
+ */
17
+ export function instanceOfVmInspectionConcern(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('message' in value) || value['message'] === undefined)
21
+ return false;
22
+ if (!('category' in value) || value['category'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function VmInspectionConcernFromJSON(json) {
27
+ return VmInspectionConcernFromJSONTyped(json, false);
28
+ }
29
+ export function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'label': json['label'],
35
+ 'message': json['message'],
36
+ 'category': json['category'],
37
+ };
38
+ }
39
+ export function VmInspectionConcernToJSON(json) {
40
+ return VmInspectionConcernToJSONTyped(json, false);
41
+ }
42
+ export function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'label': value['label'],
48
+ 'message': value['message'],
49
+ 'category': value['category'],
50
+ };
51
+ }
@@ -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,42 @@
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
+ import { VmInspectionConcernFromJSON, VmInspectionConcernToJSON, } from './VmInspectionConcern.js';
15
+ /**
16
+ * Check if a given object implements the VmInspectionResults interface.
17
+ */
18
+ export function instanceOfVmInspectionResults(value) {
19
+ return true;
20
+ }
21
+ export function VmInspectionResultsFromJSON(json) {
22
+ return VmInspectionResultsFromJSONTyped(json, false);
23
+ }
24
+ export function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcernFromJSON)),
30
+ };
31
+ }
32
+ export function VmInspectionResultsToJSON(json) {
33
+ return VmInspectionResultsToJSONTyped(json, false);
34
+ }
35
+ export function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcernToJSON)),
41
+ };
42
+ }
@@ -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
  /**
@@ -19,8 +19,7 @@ export const VmInspectionStatusStateEnum = {
19
19
  VmInspectionStatusStateRunning: 'running',
20
20
  VmInspectionStatusStateCompleted: 'completed',
21
21
  VmInspectionStatusStateCanceled: 'canceled',
22
- VmInspectionStatusStateError: 'error',
23
- VmInspectionStatusStateNotFound: 'not_found'
22
+ VmInspectionStatusStateError: 'error'
24
23
  };
25
24
  /**
26
25
  * Check if a given object implements the VmInspectionStatus interface.