@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-1f1dc16fb9e5

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 (190) hide show
  1. package/.openapi-generator/FILES +46 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +52 -17
  4. package/dist/apis/DefaultApi.d.ts +632 -126
  5. package/dist/apis/DefaultApi.js +710 -160
  6. package/dist/esm/apis/DefaultApi.d.ts +632 -126
  7. package/dist/esm/apis/DefaultApi.js +724 -174
  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/RightsizingCollectRequest.d.ts +70 -0
  35. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  36. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  37. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  38. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  39. package/dist/esm/models/RightsizingReport.js +76 -0
  40. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  41. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  42. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  43. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  44. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  45. package/dist/esm/models/RightsizingVMReport.js +57 -0
  46. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  47. package/dist/esm/models/StartInspectionRequest.js +43 -0
  48. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  49. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  50. package/dist/esm/models/VMs.d.ts +18 -0
  51. package/dist/esm/models/VMs.js +4 -0
  52. package/dist/esm/models/VirtualMachine.d.ts +31 -1
  53. package/dist/esm/models/VirtualMachine.js +12 -4
  54. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  55. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  56. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  57. package/dist/esm/models/VmInspectionConcern.js +51 -0
  58. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  59. package/dist/esm/models/VmInspectionResults.js +42 -0
  60. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  61. package/dist/esm/models/VmInspectionStatus.js +1 -2
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
  63. package/dist/esm/models/VmUtilizationDetails.js +87 -0
  64. package/dist/esm/models/index.d.ts +23 -1
  65. package/dist/esm/models/index.js +23 -1
  66. package/dist/esm/runtime.js +1 -1
  67. package/dist/models/BenchmarkRun.d.ts +104 -0
  68. package/dist/models/BenchmarkRun.js +92 -0
  69. package/dist/models/DatastoreDetail.d.ts +90 -0
  70. package/dist/models/DatastoreDetail.js +82 -0
  71. package/dist/models/DatastorePair.d.ts +50 -0
  72. package/dist/models/DatastorePair.js +60 -0
  73. package/dist/models/EstimateRange.d.ts +44 -0
  74. package/dist/models/EstimateRange.js +52 -0
  75. package/dist/models/ForecastStats.d.ts +87 -0
  76. package/dist/models/ForecastStats.js +71 -0
  77. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  78. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  79. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  80. package/dist/models/ForecasterPairStatus.js +90 -0
  81. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  82. package/dist/models/ForecasterStartRequest.js +60 -0
  83. package/dist/models/ForecasterStatus.d.ts +47 -0
  84. package/dist/models/ForecasterStatus.js +61 -0
  85. package/dist/models/InspectorStatus.d.ts +20 -7
  86. package/dist/models/InspectorStatus.js +12 -7
  87. package/dist/models/PairCapability.d.ts +60 -0
  88. package/dist/models/PairCapability.js +72 -0
  89. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  90. package/dist/models/PairCapabilityRequest.js +54 -0
  91. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  92. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  93. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  94. package/dist/models/RightsizingCollectRequest.js +63 -0
  95. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  96. package/dist/models/RightsizingMetricStats.js +70 -0
  97. package/dist/models/RightsizingReport.d.ts +81 -0
  98. package/dist/models/RightsizingReport.js +83 -0
  99. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  100. package/dist/models/RightsizingReportListResponse.js +55 -0
  101. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  102. package/dist/models/RightsizingReportSummary.js +78 -0
  103. package/dist/models/RightsizingVMReport.d.ts +53 -0
  104. package/dist/models/RightsizingVMReport.js +64 -0
  105. package/dist/models/StartInspectionRequest.d.ts +32 -0
  106. package/dist/models/StartInspectionRequest.js +50 -0
  107. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  108. package/dist/models/StopForecasterPair202Response.js +57 -0
  109. package/dist/models/VMs.d.ts +18 -0
  110. package/dist/models/VMs.js +4 -0
  111. package/dist/models/VirtualMachine.d.ts +31 -1
  112. package/dist/models/VirtualMachine.js +12 -4
  113. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  114. package/dist/models/VirtualMachineDetail.js +3 -3
  115. package/dist/models/VmInspectionConcern.d.ts +44 -0
  116. package/dist/models/VmInspectionConcern.js +58 -0
  117. package/dist/models/VmInspectionResults.d.ts +33 -0
  118. package/dist/models/VmInspectionResults.js +49 -0
  119. package/dist/models/VmInspectionStatus.d.ts +0 -1
  120. package/dist/models/VmInspectionStatus.js +1 -2
  121. package/dist/models/VmUtilizationDetails.d.ts +98 -0
  122. package/dist/models/VmUtilizationDetails.js +94 -0
  123. package/dist/models/index.d.ts +23 -1
  124. package/dist/models/index.js +23 -1
  125. package/dist/runtime.js +1 -1
  126. package/docs/BenchmarkRun.md +58 -0
  127. package/docs/DatastoreDetail.md +50 -0
  128. package/docs/DatastorePair.md +40 -0
  129. package/docs/DefaultApi.md +1123 -237
  130. package/docs/EstimateRange.md +39 -0
  131. package/docs/ForecastStats.md +52 -0
  132. package/docs/ForecasterDatastoresRequest.md +34 -0
  133. package/docs/ForecasterPairStatus.md +52 -0
  134. package/docs/ForecasterStartRequest.md +42 -0
  135. package/docs/ForecasterStatus.md +36 -0
  136. package/docs/InspectorStatus.md +4 -0
  137. package/docs/PairCapability.md +40 -0
  138. package/docs/PairCapabilityRequest.md +36 -0
  139. package/docs/PutForecasterCredentials403Response.md +36 -0
  140. package/docs/RightsizingCollectRequest.md +46 -0
  141. package/docs/RightsizingMetricStats.md +44 -0
  142. package/docs/RightsizingReport.md +50 -0
  143. package/docs/RightsizingReportListResponse.md +36 -0
  144. package/docs/RightsizingReportSummary.md +49 -0
  145. package/docs/RightsizingVMReport.md +40 -0
  146. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  147. package/docs/StopForecasterPair202Response.md +36 -0
  148. package/docs/VMs.md +4 -0
  149. package/docs/VirtualMachine.md +12 -2
  150. package/docs/VirtualMachineDetail.md +1 -1
  151. package/docs/VmInspectionConcern.md +39 -0
  152. package/docs/VmInspectionResults.md +35 -0
  153. package/docs/VmUtilizationDetails.md +56 -0
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +1396 -350
  156. package/src/models/BenchmarkRun.ts +171 -0
  157. package/src/models/DatastoreDetail.ts +146 -0
  158. package/src/models/DatastorePair.ts +92 -0
  159. package/src/models/EstimateRange.ts +81 -0
  160. package/src/models/ForecastStats.ts +147 -0
  161. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  162. package/src/models/ForecasterPairStatus.ts +158 -0
  163. package/src/models/ForecasterStartRequest.ts +113 -0
  164. package/src/models/ForecasterStatus.ts +93 -0
  165. package/src/models/InspectorStatus.ts +37 -7
  166. package/src/models/PairCapability.ts +106 -0
  167. package/src/models/PairCapabilityRequest.ts +89 -0
  168. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  169. package/src/models/RightsizingCollectRequest.ts +123 -0
  170. package/src/models/RightsizingMetricStats.ts +111 -0
  171. package/src/models/RightsizingReport.ts +146 -0
  172. package/src/models/RightsizingReportListResponse.ts +83 -0
  173. package/src/models/RightsizingReportSummary.ts +129 -0
  174. package/src/models/RightsizingVMReport.ts +101 -0
  175. package/src/models/StartInspectionRequest.ts +66 -0
  176. package/src/models/StopForecasterPair202Response.ts +83 -0
  177. package/src/models/VMs.ts +18 -0
  178. package/src/models/VirtualMachine.ts +43 -4
  179. package/src/models/VirtualMachineDetail.ts +11 -11
  180. package/src/models/VmInspectionConcern.ts +84 -0
  181. package/src/models/VmInspectionResults.ts +73 -0
  182. package/src/models/VmInspectionStatus.ts +1 -2
  183. package/src/models/VmUtilizationDetails.ts +165 -0
  184. package/src/models/index.ts +23 -1
  185. package/src/runtime.ts +1 -2
  186. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  187. package/dist/esm/models/InspectorStartRequest.js +0 -48
  188. package/dist/models/InspectorStartRequest.d.ts +0 -39
  189. package/dist/models/InspectorStartRequest.js +0 -55
  190. package/src/models/InspectorStartRequest.ts +0 -83
@@ -0,0 +1,76 @@
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 { RightsizingVMReportFromJSON, RightsizingVMReportToJSON, } from './RightsizingVMReport.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingReport interface.
17
+ */
18
+ export function instanceOfRightsizingReport(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('vcenter' in value) || value['vcenter'] === undefined)
22
+ return false;
23
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
24
+ return false;
25
+ if (!('windowStart' in value) || value['windowStart'] === undefined)
26
+ return false;
27
+ if (!('windowEnd' in value) || value['windowEnd'] === undefined)
28
+ return false;
29
+ if (!('intervalId' in value) || value['intervalId'] === undefined)
30
+ return false;
31
+ if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
32
+ return false;
33
+ if (!('vms' in value) || value['vms'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function RightsizingReportFromJSON(json) {
40
+ return RightsizingReportFromJSONTyped(json, false);
41
+ }
42
+ export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'vcenter': json['vcenter'],
49
+ 'clusterId': json['cluster_id'],
50
+ 'windowStart': (new Date(json['window_start'])),
51
+ 'windowEnd': (new Date(json['window_end'])),
52
+ 'intervalId': json['interval_id'],
53
+ 'expectedSampleCount': json['expected_sample_count'],
54
+ 'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
55
+ 'createdAt': (new Date(json['created_at'])),
56
+ };
57
+ }
58
+ export function RightsizingReportToJSON(json) {
59
+ return RightsizingReportToJSONTyped(json, false);
60
+ }
61
+ export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'vcenter': value['vcenter'],
68
+ 'cluster_id': value['clusterId'],
69
+ 'window_start': value['windowStart'].toISOString(),
70
+ 'window_end': value['windowEnd'].toISOString(),
71
+ 'interval_id': value['intervalId'],
72
+ 'expected_sample_count': value['expectedSampleCount'],
73
+ 'vms': (value['vms'].map(RightsizingVMReportToJSON)),
74
+ 'created_at': value['createdAt'].toISOString(),
75
+ };
76
+ }
@@ -0,0 +1,39 @@
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 { RightsizingReportSummary } from './RightsizingReportSummary.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingReportListResponse
17
+ */
18
+ export interface RightsizingReportListResponse {
19
+ /**
20
+ * List of report summaries. Use GET /rightsizing/{id} for full VM metrics.
21
+ * @type {Array<RightsizingReportSummary>}
22
+ * @memberof RightsizingReportListResponse
23
+ */
24
+ reports: Array<RightsizingReportSummary>;
25
+ /**
26
+ * Total number of stored reports
27
+ * @type {number}
28
+ * @memberof RightsizingReportListResponse
29
+ */
30
+ total: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingReportListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingReportListResponse(value: object): value is RightsizingReportListResponse;
36
+ export declare function RightsizingReportListResponseFromJSON(json: any): RightsizingReportListResponse;
37
+ export declare function RightsizingReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportListResponse;
38
+ export declare function RightsizingReportListResponseToJSON(json: any): RightsizingReportListResponse;
39
+ export declare function RightsizingReportListResponseToJSONTyped(value?: RightsizingReportListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { RightsizingReportSummaryFromJSON, RightsizingReportSummaryToJSON, } from './RightsizingReportSummary.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingReportListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingReportListResponse(value) {
19
+ if (!('reports' in value) || value['reports'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingReportListResponseFromJSON(json) {
26
+ return RightsizingReportListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'reports': (json['reports'].map(RightsizingReportSummaryFromJSON)),
34
+ 'total': json['total'],
35
+ };
36
+ }
37
+ export function RightsizingReportListResponseToJSON(json) {
38
+ return RightsizingReportListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'reports': (value['reports'].map(RightsizingReportSummaryToJSON)),
46
+ 'total': value['total'],
47
+ };
48
+ }
@@ -0,0 +1,74 @@
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
+ * Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
14
+ * @export
15
+ * @interface RightsizingReportSummary
16
+ */
17
+ export interface RightsizingReportSummary {
18
+ /**
19
+ * UUID of the report
20
+ * @type {string}
21
+ * @memberof RightsizingReportSummary
22
+ */
23
+ id: string;
24
+ /**
25
+ * vCenter URL used for this collection
26
+ * @type {string}
27
+ * @memberof RightsizingReportSummary
28
+ */
29
+ vcenter: string;
30
+ /**
31
+ * MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
32
+ * @type {string}
33
+ * @memberof RightsizingReportSummary
34
+ */
35
+ clusterId: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof RightsizingReportSummary
40
+ */
41
+ windowStart: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof RightsizingReportSummary
46
+ */
47
+ windowEnd: Date;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof RightsizingReportSummary
52
+ */
53
+ intervalId: number;
54
+ /**
55
+ * Theoretical maximum samples for the window (lookback / interval)
56
+ * @type {number}
57
+ * @memberof RightsizingReportSummary
58
+ */
59
+ expectedSampleCount: number;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof RightsizingReportSummary
64
+ */
65
+ createdAt: Date;
66
+ }
67
+ /**
68
+ * Check if a given object implements the RightsizingReportSummary interface.
69
+ */
70
+ export declare function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary;
71
+ export declare function RightsizingReportSummaryFromJSON(json: any): RightsizingReportSummary;
72
+ export declare function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportSummary;
73
+ export declare function RightsizingReportSummaryToJSON(json: any): RightsizingReportSummary;
74
+ export declare function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 RightsizingReportSummary interface.
16
+ */
17
+ export function instanceOfRightsizingReportSummary(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('vcenter' in value) || value['vcenter'] === undefined)
21
+ return false;
22
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
23
+ return false;
24
+ if (!('windowStart' in value) || value['windowStart'] === undefined)
25
+ return false;
26
+ if (!('windowEnd' in value) || value['windowEnd'] === undefined)
27
+ return false;
28
+ if (!('intervalId' in value) || value['intervalId'] === undefined)
29
+ return false;
30
+ if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function RightsizingReportSummaryFromJSON(json) {
37
+ return RightsizingReportSummaryFromJSONTyped(json, false);
38
+ }
39
+ export function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'vcenter': json['vcenter'],
46
+ 'clusterId': json['cluster_id'],
47
+ 'windowStart': (new Date(json['window_start'])),
48
+ 'windowEnd': (new Date(json['window_end'])),
49
+ 'intervalId': json['interval_id'],
50
+ 'expectedSampleCount': json['expected_sample_count'],
51
+ 'createdAt': (new Date(json['created_at'])),
52
+ };
53
+ }
54
+ export function RightsizingReportSummaryToJSON(json) {
55
+ return RightsizingReportSummaryToJSONTyped(json, false);
56
+ }
57
+ export function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'vcenter': value['vcenter'],
64
+ 'cluster_id': value['clusterId'],
65
+ 'window_start': value['windowStart'].toISOString(),
66
+ 'window_end': value['windowEnd'].toISOString(),
67
+ 'interval_id': value['intervalId'],
68
+ 'expected_sample_count': value['expectedSampleCount'],
69
+ 'created_at': value['createdAt'].toISOString(),
70
+ };
71
+ }
@@ -0,0 +1,53 @@
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 { RightsizingMetricStats } from './RightsizingMetricStats.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingVMReport
17
+ */
18
+ export interface RightsizingVMReport {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof RightsizingVMReport
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof RightsizingVMReport
29
+ */
30
+ moid: string;
31
+ /**
32
+ *
33
+ * @type {{ [key: string]: RightsizingMetricStats; }}
34
+ * @memberof RightsizingVMReport
35
+ */
36
+ metrics: {
37
+ [key: string]: RightsizingMetricStats;
38
+ };
39
+ /**
40
+ * Non-empty when the VM was queried but had no historical metrics data.
41
+ * @type {Array<string>}
42
+ * @memberof RightsizingVMReport
43
+ */
44
+ warnings: Array<string>;
45
+ }
46
+ /**
47
+ * Check if a given object implements the RightsizingVMReport interface.
48
+ */
49
+ export declare function instanceOfRightsizingVMReport(value: object): value is RightsizingVMReport;
50
+ export declare function RightsizingVMReportFromJSON(json: any): RightsizingVMReport;
51
+ export declare function RightsizingVMReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingVMReport;
52
+ export declare function RightsizingVMReportToJSON(json: any): RightsizingVMReport;
53
+ export declare function RightsizingVMReportToJSONTyped(value?: RightsizingVMReport | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 { mapValues } from '../runtime.js';
15
+ import { RightsizingMetricStatsFromJSON, RightsizingMetricStatsToJSON, } from './RightsizingMetricStats.js';
16
+ /**
17
+ * Check if a given object implements the RightsizingVMReport interface.
18
+ */
19
+ export function instanceOfRightsizingVMReport(value) {
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('moid' in value) || value['moid'] === undefined)
23
+ return false;
24
+ if (!('metrics' in value) || value['metrics'] === undefined)
25
+ return false;
26
+ if (!('warnings' in value) || value['warnings'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function RightsizingVMReportFromJSON(json) {
31
+ return RightsizingVMReportFromJSONTyped(json, false);
32
+ }
33
+ export function RightsizingVMReportFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'moid': json['moid'],
40
+ 'metrics': (mapValues(json['metrics'], RightsizingMetricStatsFromJSON)),
41
+ 'warnings': json['warnings'],
42
+ };
43
+ }
44
+ export function RightsizingVMReportToJSON(json) {
45
+ return RightsizingVMReportToJSONTyped(json, false);
46
+ }
47
+ export function RightsizingVMReportToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'moid': value['moid'],
54
+ 'metrics': (mapValues(value['metrics'], RightsizingMetricStatsToJSON)),
55
+ 'warnings': value['warnings'],
56
+ };
57
+ }
@@ -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']),