@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,146 @@
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 { RightsizingVMReport } from './RightsizingVMReport.js';
17
+ import {
18
+ RightsizingVMReportFromJSON,
19
+ RightsizingVMReportFromJSONTyped,
20
+ RightsizingVMReportToJSON,
21
+ RightsizingVMReportToJSONTyped,
22
+ } from './RightsizingVMReport.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingReport
28
+ */
29
+ export interface RightsizingReport {
30
+ /**
31
+ * UUID of the report
32
+ * @type {string}
33
+ * @memberof RightsizingReport
34
+ */
35
+ id: string;
36
+ /**
37
+ * vCenter URL used for this collection
38
+ * @type {string}
39
+ * @memberof RightsizingReport
40
+ */
41
+ vcenter: string;
42
+ /**
43
+ * MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
44
+ * @type {string}
45
+ * @memberof RightsizingReport
46
+ */
47
+ clusterId: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof RightsizingReport
52
+ */
53
+ windowStart: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof RightsizingReport
58
+ */
59
+ windowEnd: Date;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof RightsizingReport
64
+ */
65
+ intervalId: number;
66
+ /**
67
+ * Theoretical maximum samples for the window (lookback / interval)
68
+ * @type {number}
69
+ * @memberof RightsizingReport
70
+ */
71
+ expectedSampleCount: number;
72
+ /**
73
+ *
74
+ * @type {Array<RightsizingVMReport>}
75
+ * @memberof RightsizingReport
76
+ */
77
+ vms: Array<RightsizingVMReport>;
78
+ /**
79
+ *
80
+ * @type {Date}
81
+ * @memberof RightsizingReport
82
+ */
83
+ createdAt: Date;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the RightsizingReport interface.
88
+ */
89
+ export function instanceOfRightsizingReport(value: object): value is RightsizingReport {
90
+ if (!('id' in value) || value['id'] === undefined) return false;
91
+ if (!('vcenter' in value) || value['vcenter'] === undefined) return false;
92
+ if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
93
+ if (!('windowStart' in value) || value['windowStart'] === undefined) return false;
94
+ if (!('windowEnd' in value) || value['windowEnd'] === undefined) return false;
95
+ if (!('intervalId' in value) || value['intervalId'] === undefined) return false;
96
+ if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined) return false;
97
+ if (!('vms' in value) || value['vms'] === undefined) return false;
98
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function RightsizingReportFromJSON(json: any): RightsizingReport {
103
+ return RightsizingReportFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReport {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'id': json['id'],
113
+ 'vcenter': json['vcenter'],
114
+ 'clusterId': json['cluster_id'],
115
+ 'windowStart': (new Date(json['window_start'])),
116
+ 'windowEnd': (new Date(json['window_end'])),
117
+ 'intervalId': json['interval_id'],
118
+ 'expectedSampleCount': json['expected_sample_count'],
119
+ 'vms': ((json['vms'] as Array<any>).map(RightsizingVMReportFromJSON)),
120
+ 'createdAt': (new Date(json['created_at'])),
121
+ };
122
+ }
123
+
124
+ export function RightsizingReportToJSON(json: any): RightsizingReport {
125
+ return RightsizingReportToJSONTyped(json, false);
126
+ }
127
+
128
+ export function RightsizingReportToJSONTyped(value?: RightsizingReport | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'vcenter': value['vcenter'],
137
+ 'cluster_id': value['clusterId'],
138
+ 'window_start': value['windowStart'].toISOString(),
139
+ 'window_end': value['windowEnd'].toISOString(),
140
+ 'interval_id': value['intervalId'],
141
+ 'expected_sample_count': value['expectedSampleCount'],
142
+ 'vms': ((value['vms'] as Array<any>).map(RightsizingVMReportToJSON)),
143
+ 'created_at': value['createdAt'].toISOString(),
144
+ };
145
+ }
146
+
@@ -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 { RightsizingReportSummary } from './RightsizingReportSummary.js';
17
+ import {
18
+ RightsizingReportSummaryFromJSON,
19
+ RightsizingReportSummaryFromJSONTyped,
20
+ RightsizingReportSummaryToJSON,
21
+ RightsizingReportSummaryToJSONTyped,
22
+ } from './RightsizingReportSummary.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingReportListResponse
28
+ */
29
+ export interface RightsizingReportListResponse {
30
+ /**
31
+ * List of report summaries. Use GET /rightsizing/{id} for full VM metrics.
32
+ * @type {Array<RightsizingReportSummary>}
33
+ * @memberof RightsizingReportListResponse
34
+ */
35
+ reports: Array<RightsizingReportSummary>;
36
+ /**
37
+ * Total number of stored reports
38
+ * @type {number}
39
+ * @memberof RightsizingReportListResponse
40
+ */
41
+ total: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the RightsizingReportListResponse interface.
46
+ */
47
+ export function instanceOfRightsizingReportListResponse(value: object): value is RightsizingReportListResponse {
48
+ if (!('reports' in value) || value['reports'] === undefined) return false;
49
+ if (!('total' in value) || value['total'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function RightsizingReportListResponseFromJSON(json: any): RightsizingReportListResponse {
54
+ return RightsizingReportListResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RightsizingReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportListResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'reports': ((json['reports'] as Array<any>).map(RightsizingReportSummaryFromJSON)),
64
+ 'total': json['total'],
65
+ };
66
+ }
67
+
68
+ export function RightsizingReportListResponseToJSON(json: any): RightsizingReportListResponse {
69
+ return RightsizingReportListResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RightsizingReportListResponseToJSONTyped(value?: RightsizingReportListResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'reports': ((value['reports'] as Array<any>).map(RightsizingReportSummaryToJSON)),
80
+ 'total': value['total'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,129 @@
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
+ * Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
18
+ * @export
19
+ * @interface RightsizingReportSummary
20
+ */
21
+ export interface RightsizingReportSummary {
22
+ /**
23
+ * UUID of the report
24
+ * @type {string}
25
+ * @memberof RightsizingReportSummary
26
+ */
27
+ id: string;
28
+ /**
29
+ * vCenter URL used for this collection
30
+ * @type {string}
31
+ * @memberof RightsizingReportSummary
32
+ */
33
+ vcenter: string;
34
+ /**
35
+ * MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
36
+ * @type {string}
37
+ * @memberof RightsizingReportSummary
38
+ */
39
+ clusterId: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof RightsizingReportSummary
44
+ */
45
+ windowStart: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof RightsizingReportSummary
50
+ */
51
+ windowEnd: Date;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof RightsizingReportSummary
56
+ */
57
+ intervalId: number;
58
+ /**
59
+ * Theoretical maximum samples for the window (lookback / interval)
60
+ * @type {number}
61
+ * @memberof RightsizingReportSummary
62
+ */
63
+ expectedSampleCount: number;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof RightsizingReportSummary
68
+ */
69
+ createdAt: Date;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the RightsizingReportSummary interface.
74
+ */
75
+ export function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary {
76
+ if (!('id' in value) || value['id'] === undefined) return false;
77
+ if (!('vcenter' in value) || value['vcenter'] === undefined) return false;
78
+ if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
79
+ if (!('windowStart' in value) || value['windowStart'] === undefined) return false;
80
+ if (!('windowEnd' in value) || value['windowEnd'] === undefined) return false;
81
+ if (!('intervalId' in value) || value['intervalId'] === undefined) return false;
82
+ if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined) return false;
83
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
84
+ return true;
85
+ }
86
+
87
+ export function RightsizingReportSummaryFromJSON(json: any): RightsizingReportSummary {
88
+ return RightsizingReportSummaryFromJSONTyped(json, false);
89
+ }
90
+
91
+ export function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportSummary {
92
+ if (json == null) {
93
+ return json;
94
+ }
95
+ return {
96
+
97
+ 'id': json['id'],
98
+ 'vcenter': json['vcenter'],
99
+ 'clusterId': json['cluster_id'],
100
+ 'windowStart': (new Date(json['window_start'])),
101
+ 'windowEnd': (new Date(json['window_end'])),
102
+ 'intervalId': json['interval_id'],
103
+ 'expectedSampleCount': json['expected_sample_count'],
104
+ 'createdAt': (new Date(json['created_at'])),
105
+ };
106
+ }
107
+
108
+ export function RightsizingReportSummaryToJSON(json: any): RightsizingReportSummary {
109
+ return RightsizingReportSummaryToJSONTyped(json, false);
110
+ }
111
+
112
+ export function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSummary | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'vcenter': value['vcenter'],
121
+ 'cluster_id': value['clusterId'],
122
+ 'window_start': value['windowStart'].toISOString(),
123
+ 'window_end': value['windowEnd'].toISOString(),
124
+ 'interval_id': value['intervalId'],
125
+ 'expected_sample_count': value['expectedSampleCount'],
126
+ 'created_at': value['createdAt'].toISOString(),
127
+ };
128
+ }
129
+
@@ -0,0 +1,101 @@
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 { RightsizingMetricStats } from './RightsizingMetricStats.js';
17
+ import {
18
+ RightsizingMetricStatsFromJSON,
19
+ RightsizingMetricStatsFromJSONTyped,
20
+ RightsizingMetricStatsToJSON,
21
+ RightsizingMetricStatsToJSONTyped,
22
+ } from './RightsizingMetricStats.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingVMReport
28
+ */
29
+ export interface RightsizingVMReport {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof RightsizingVMReport
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RightsizingVMReport
40
+ */
41
+ moid: string;
42
+ /**
43
+ *
44
+ * @type {{ [key: string]: RightsizingMetricStats; }}
45
+ * @memberof RightsizingVMReport
46
+ */
47
+ metrics: { [key: string]: RightsizingMetricStats; };
48
+ /**
49
+ * Non-empty when the VM was queried but had no historical metrics data.
50
+ * @type {Array<string>}
51
+ * @memberof RightsizingVMReport
52
+ */
53
+ warnings: Array<string>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the RightsizingVMReport interface.
58
+ */
59
+ export function instanceOfRightsizingVMReport(value: object): value is RightsizingVMReport {
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('moid' in value) || value['moid'] === undefined) return false;
62
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
63
+ if (!('warnings' in value) || value['warnings'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function RightsizingVMReportFromJSON(json: any): RightsizingVMReport {
68
+ return RightsizingVMReportFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function RightsizingVMReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingVMReport {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'name': json['name'],
78
+ 'moid': json['moid'],
79
+ 'metrics': (mapValues(json['metrics'], RightsizingMetricStatsFromJSON)),
80
+ 'warnings': json['warnings'],
81
+ };
82
+ }
83
+
84
+ export function RightsizingVMReportToJSON(json: any): RightsizingVMReport {
85
+ return RightsizingVMReportToJSONTyped(json, false);
86
+ }
87
+
88
+ export function RightsizingVMReportToJSONTyped(value?: RightsizingVMReport | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'name': value['name'],
96
+ 'moid': value['moid'],
97
+ 'metrics': (mapValues(value['metrics'], RightsizingMetricStatsToJSON)),
98
+ 'warnings': value['warnings'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,66 @@
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
+ * Array of VirtualMachine id
18
+ * @export
19
+ * @interface StartInspectionRequest
20
+ */
21
+ export interface StartInspectionRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof StartInspectionRequest
26
+ */
27
+ vmIds: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the StartInspectionRequest interface.
32
+ */
33
+ export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
34
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function StartInspectionRequestFromJSON(json: any): StartInspectionRequest {
39
+ return StartInspectionRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'vmIds': json['vmIds'],
49
+ };
50
+ }
51
+
52
+ export function StartInspectionRequestToJSON(json: any): StartInspectionRequest {
53
+ return StartInspectionRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'vmIds': value['vmIds'],
64
+ };
65
+ }
66
+
@@ -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
+
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']),