@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,83 @@
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
+ * Start inspection request
26
+ * @export
27
+ * @interface StartInspectionRequest
28
+ */
29
+ export interface StartInspectionRequest {
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof StartInspectionRequest
34
+ */
35
+ vmIds: Array<string>;
36
+ /**
37
+ *
38
+ * @type {VcenterCredentials}
39
+ * @memberof StartInspectionRequest
40
+ */
41
+ credentials: VcenterCredentials;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the StartInspectionRequest interface.
46
+ */
47
+ export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
48
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
49
+ if (!('credentials' in value) || value['credentials'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function StartInspectionRequestFromJSON(json: any): StartInspectionRequest {
54
+ return StartInspectionRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'vmIds': json['vmIds'],
64
+ 'credentials': VcenterCredentialsFromJSON(json['credentials']),
65
+ };
66
+ }
67
+
68
+ export function StartInspectionRequestToJSON(json: any): StartInspectionRequest {
69
+ return StartInspectionRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'vmIds': value['vmIds'],
80
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
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 StopForecasterPair202Response
20
+ */
21
+ export interface StopForecasterPair202Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof StopForecasterPair202Response
26
+ */
27
+ pairName?: string;
28
+ /**
29
+ *
30
+ * @type {StopForecasterPair202ResponseStateEnum}
31
+ * @memberof StopForecasterPair202Response
32
+ */
33
+ state?: StopForecasterPair202ResponseStateEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const StopForecasterPair202ResponseStateEnum = {
41
+ Canceled: 'canceled'
42
+ } as const;
43
+ export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the StopForecasterPair202Response interface.
48
+ */
49
+ export function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response {
50
+ return true;
51
+ }
52
+
53
+ export function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response {
54
+ return StopForecasterPair202ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'pairName': json['pairName'] == null ? undefined : json['pairName'],
64
+ 'state': json['state'] == null ? undefined : json['state'],
65
+ };
66
+ }
67
+
68
+ export function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response {
69
+ return StopForecasterPair202ResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'pairName': value['pairName'],
80
+ 'state': value['state'],
81
+ };
82
+ }
83
+
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateLabelVMsRequest
20
+ */
21
+ export interface UpdateLabelVMsRequest {
22
+ /**
23
+ * VMs to add the label to
24
+ * @type {Array<string>}
25
+ * @memberof UpdateLabelVMsRequest
26
+ */
27
+ add?: Array<string>;
28
+ /**
29
+ * VMs to remove the label from
30
+ * @type {Array<string>}
31
+ * @memberof UpdateLabelVMsRequest
32
+ */
33
+ remove?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UpdateLabelVMsRequest interface.
38
+ */
39
+ export function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest {
40
+ return true;
41
+ }
42
+
43
+ export function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest {
44
+ return UpdateLabelVMsRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'add': json['add'] == null ? undefined : json['add'],
54
+ 'remove': json['remove'] == null ? undefined : json['remove'],
55
+ };
56
+ }
57
+
58
+ export function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest {
59
+ return UpdateLabelVMsRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'add': value['add'],
70
+ 'remove': value['remove'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,75 @@
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 VMLabelsResponse
20
+ */
21
+ export interface VMLabelsResponse {
22
+ /**
23
+ * Distinct labels currently in use
24
+ * @type {Array<string>}
25
+ * @memberof VMLabelsResponse
26
+ */
27
+ labels: Array<string>;
28
+ /**
29
+ * Number of VMs with each label (same order as labels array)
30
+ * @type {Array<number>}
31
+ * @memberof VMLabelsResponse
32
+ */
33
+ counts: Array<number>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VMLabelsResponse interface.
38
+ */
39
+ export function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse {
40
+ if (!('labels' in value) || value['labels'] === undefined) return false;
41
+ if (!('counts' in value) || value['counts'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function VMLabelsResponseFromJSON(json: any): VMLabelsResponse {
46
+ return VMLabelsResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'labels': json['labels'],
56
+ 'counts': json['counts'],
57
+ };
58
+ }
59
+
60
+ export function VMLabelsResponseToJSON(json: any): VMLabelsResponse {
61
+ return VMLabelsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'labels': value['labels'],
72
+ 'counts': value['counts'],
73
+ };
74
+ }
75
+
package/src/models/VMs.ts CHANGED
@@ -91,6 +91,13 @@ export interface VMs {
91
91
  * @memberof VMs
92
92
  */
93
93
  diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
94
+ /**
95
+ * Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
96
+ *
97
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
98
+ * @memberof VMs
99
+ */
100
+ diskComplexityTier?: { [key: string]: DiskSizeTierSummary; };
94
101
  /**
95
102
  *
96
103
  * @type {{ [key: string]: DiskTypeSummary; }}
@@ -119,8 +126,15 @@ export interface VMs {
119
126
  * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
120
127
  * @type {{ [key: string]: number; }}
121
128
  * @memberof VMs
129
+ * @deprecated
122
130
  */
123
131
  distributionByComplexity?: { [key: string]: number; };
132
+ /**
133
+ * Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
134
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
135
+ * @memberof VMs
136
+ */
137
+ complexityDistribution?: { [key: string]: DiskSizeTierSummary; };
124
138
  /**
125
139
  *
126
140
  * @type {VMResourceBreakdown}
@@ -210,11 +224,13 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
210
224
  'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
211
225
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
212
226
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
227
+ 'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
213
228
  'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
214
229
  'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
215
230
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
216
231
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
217
232
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
233
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
218
234
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
219
235
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
220
236
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -244,11 +260,13 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
244
260
  'totalWithSharedDisks': value['totalWithSharedDisks'],
245
261
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
246
262
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
263
+ 'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
247
264
  'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
248
265
  'distributionByCpuTier': value['distributionByCpuTier'],
249
266
  'distributionByMemoryTier': value['distributionByMemoryTier'],
250
267
  'distributionByNicCount': value['distributionByNicCount'],
251
268
  'distributionByComplexity': value['distributionByComplexity'],
269
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
252
270
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
253
271
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
254
272
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -87,18 +87,60 @@ export interface VirtualMachine {
87
87
  * @memberof VirtualMachine
88
88
  */
89
89
  template?: boolean;
90
+ /**
91
+ * Whether this VM is excluded from migration
92
+ * @type {boolean}
93
+ * @memberof VirtualMachine
94
+ */
95
+ migrationExcluded?: boolean;
90
96
  /**
91
97
  *
92
98
  * @type {VmInspectionStatus}
93
99
  * @memberof VirtualMachine
94
100
  */
95
- inspection: VmInspectionStatus;
101
+ inspectionStatus?: VmInspectionStatus;
102
+ /**
103
+ * Number of inspection concerns recorded for the latest persisted inspection result
104
+ * @type {number}
105
+ * @memberof VirtualMachine
106
+ */
107
+ inspectionConcernCount?: number;
96
108
  /**
97
109
  * Tags aggregated from matching groups
98
110
  * @type {Array<string>}
99
111
  * @memberof VirtualMachine
100
112
  */
101
113
  tags?: Array<string>;
114
+ /**
115
+ * User-defined labels for this VM
116
+ * @type {Array<string>}
117
+ * @memberof VirtualMachine
118
+ */
119
+ labels?: Array<string>;
120
+ /**
121
+ * CPU utilization at p95 (%); absent when no utilization data
122
+ * @type {number}
123
+ * @memberof VirtualMachine
124
+ */
125
+ utilization_cpu_p95?: number;
126
+ /**
127
+ * Memory utilization at p95 (%); absent when no utilization data
128
+ * @type {number}
129
+ * @memberof VirtualMachine
130
+ */
131
+ utilization_mem_p95?: number;
132
+ /**
133
+ * Disk utilization (%); absent when no utilization data
134
+ * @type {number}
135
+ * @memberof VirtualMachine
136
+ */
137
+ utilization_disk?: number;
138
+ /**
139
+ * Data confidence — sample_count / expected_sample_count × 100
140
+ * @type {number}
141
+ * @memberof VirtualMachine
142
+ */
143
+ utilization_confidence?: number;
102
144
  }
103
145
 
104
146
  /**
@@ -113,7 +155,6 @@ export function instanceOfVirtualMachine(value: object): value is VirtualMachine
113
155
  if (!('diskSize' in value) || value['diskSize'] === undefined) return false;
114
156
  if (!('memory' in value) || value['memory'] === undefined) return false;
115
157
  if (!('issueCount' in value) || value['issueCount'] === undefined) return false;
116
- if (!('inspection' in value) || value['inspection'] === undefined) return false;
117
158
  return true;
118
159
  }
119
160
 
@@ -137,8 +178,15 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
137
178
  'issueCount': json['issueCount'],
138
179
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
139
180
  'template': json['template'] == null ? undefined : json['template'],
140
- 'inspection': VmInspectionStatusFromJSON(json['inspection']),
181
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
182
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
183
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
141
184
  'tags': json['tags'] == null ? undefined : json['tags'],
185
+ 'labels': json['labels'] == null ? undefined : json['labels'],
186
+ 'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
187
+ 'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
188
+ 'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
189
+ 'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
142
190
  };
143
191
  }
144
192
 
@@ -163,8 +211,15 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
163
211
  'issueCount': value['issueCount'],
164
212
  'migratable': value['migratable'],
165
213
  'template': value['template'],
166
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
214
+ 'migrationExcluded': value['migrationExcluded'],
215
+ 'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
216
+ 'inspectionConcernCount': value['inspectionConcernCount'],
167
217
  'tags': value['tags'],
218
+ 'labels': value['labels'],
219
+ 'utilization_cpu_p95': value['utilization_cpu_p95'],
220
+ 'utilization_mem_p95': value['utilization_mem_p95'],
221
+ 'utilization_disk': value['utilization_disk'],
222
+ 'utilization_confidence': value['utilization_confidence'],
168
223
  };
169
224
  }
170
225
 
@@ -20,13 +20,6 @@ import {
20
20
  VMNICToJSON,
21
21
  VMNICToJSONTyped,
22
22
  } from './VMNIC.js';
23
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
24
- import {
25
- VmInspectionStatusFromJSON,
26
- VmInspectionStatusFromJSONTyped,
27
- VmInspectionStatusToJSON,
28
- VmInspectionStatusToJSONTyped,
29
- } from './VmInspectionStatus.js';
30
23
  import type { GuestNetwork } from './GuestNetwork.js';
31
24
  import {
32
25
  GuestNetworkFromJSON,
@@ -48,6 +41,13 @@ import {
48
41
  VMDeviceToJSON,
49
42
  VMDeviceToJSONTyped,
50
43
  } from './VMDevice.js';
44
+ import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
45
+ import {
46
+ VmUtilizationDetailsFromJSON,
47
+ VmUtilizationDetailsFromJSONTyped,
48
+ VmUtilizationDetailsToJSON,
49
+ VmUtilizationDetailsToJSONTyped,
50
+ } from './VmUtilizationDetails.js';
51
51
  import type { VMDisk } from './VMDisk.js';
52
52
  import {
53
53
  VMDiskFromJSON,
@@ -55,6 +55,13 @@ import {
55
55
  VMDiskToJSON,
56
56
  VMDiskToJSONTyped,
57
57
  } from './VMDisk.js';
58
+ import type { VmInspectionResults } from './VmInspectionResults.js';
59
+ import {
60
+ VmInspectionResultsFromJSON,
61
+ VmInspectionResultsFromJSONTyped,
62
+ VmInspectionResultsToJSON,
63
+ VmInspectionResultsToJSONTyped,
64
+ } from './VmInspectionResults.js';
58
65
 
59
66
  /**
60
67
  *
@@ -188,6 +195,18 @@ export interface VirtualMachineDetail {
188
195
  * @memberof VirtualMachineDetail
189
196
  */
190
197
  migratable?: boolean;
198
+ /**
199
+ * Whether this VM is excluded from migration
200
+ * @type {boolean}
201
+ * @memberof VirtualMachineDetail
202
+ */
203
+ migrationExcluded?: boolean;
204
+ /**
205
+ * User-defined labels for this VM
206
+ * @type {Array<string>}
207
+ * @memberof VirtualMachineDetail
208
+ */
209
+ labels?: Array<string>;
191
210
  /**
192
211
  * Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
193
212
  * @type {boolean}
@@ -244,10 +263,16 @@ export interface VirtualMachineDetail {
244
263
  issues?: Array<VMIssue>;
245
264
  /**
246
265
  *
247
- * @type {VmInspectionStatus}
266
+ * @type {VmInspectionResults}
267
+ * @memberof VirtualMachineDetail
268
+ */
269
+ inspection?: VmInspectionResults;
270
+ /**
271
+ *
272
+ * @type {VmUtilizationDetails}
248
273
  * @memberof VirtualMachineDetail
249
274
  */
250
- inspection?: VmInspectionStatus;
275
+ utilization?: VmUtilizationDetails;
251
276
  }
252
277
 
253
278
  /**
@@ -297,6 +322,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
297
322
  'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
298
323
  'template': json['template'] == null ? undefined : json['template'],
299
324
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
325
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
326
+ 'labels': json['labels'] == null ? undefined : json['labels'],
300
327
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
301
328
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
302
329
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
@@ -306,7 +333,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
306
333
  'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VMDeviceFromJSON)),
307
334
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
308
335
  'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
309
- 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
336
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
337
+ 'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
310
338
  };
311
339
  }
312
340
 
@@ -342,6 +370,8 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
342
370
  'storageUsed': value['storageUsed'],
343
371
  'template': value['template'],
344
372
  'migratable': value['migratable'],
373
+ 'migrationExcluded': value['migrationExcluded'],
374
+ 'labels': value['labels'],
345
375
  'faultToleranceEnabled': value['faultToleranceEnabled'],
346
376
  'nestedHVEnabled': value['nestedHVEnabled'],
347
377
  'toolsStatus': value['toolsStatus'],
@@ -351,7 +381,8 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
351
381
  'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VMDeviceToJSON)),
352
382
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
353
383
  'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
354
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
384
+ 'inspection': VmInspectionResultsToJSON(value['inspection']),
385
+ 'utilization': VmUtilizationDetailsToJSON(value['utilization']),
355
386
  };
356
387
  }
357
388
 
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface VirtualMachineUpdateRequest
20
+ */
21
+ export interface VirtualMachineUpdateRequest {
22
+ /**
23
+ * Whether to exclude this VM from migration
24
+ * @type {boolean}
25
+ * @memberof VirtualMachineUpdateRequest
26
+ */
27
+ migrationExcluded?: boolean;
28
+ /**
29
+ * User-defined labels (replaces existing labels)
30
+ * @type {Array<string>}
31
+ * @memberof VirtualMachineUpdateRequest
32
+ */
33
+ labels?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VirtualMachineUpdateRequest interface.
38
+ */
39
+ export function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest {
40
+ return true;
41
+ }
42
+
43
+ export function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest {
44
+ return VirtualMachineUpdateRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
54
+ 'labels': json['labels'] == null ? undefined : json['labels'],
55
+ };
56
+ }
57
+
58
+ export function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest {
59
+ return VirtualMachineUpdateRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'migrationExcluded': value['migrationExcluded'],
70
+ 'labels': value['labels'],
71
+ };
72
+ }
73
+