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

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 (217) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +33 -5
  4. package/dist/apis/DefaultApi.d.ts +546 -39
  5. package/dist/apis/DefaultApi.js +591 -30
  6. package/dist/esm/apis/DefaultApi.d.ts +546 -39
  7. package/dist/esm/apis/DefaultApi.js +591 -30
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  17. package/dist/esm/models/ClusterFeatures.js +54 -0
  18. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  19. package/dist/esm/models/ClusterUtilization.js +67 -0
  20. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  21. package/dist/esm/models/CollectorStartRequest.js +4 -0
  22. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  23. package/dist/esm/models/CreateGroupRequest.js +0 -2
  24. package/dist/esm/models/CredentialStatus.d.ts +38 -0
  25. package/dist/esm/models/CredentialStatus.js +47 -0
  26. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  27. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  28. package/dist/esm/models/Group.d.ts +0 -6
  29. package/dist/esm/models/Group.js +0 -2
  30. package/dist/esm/models/GroupResponse.d.ts +7 -0
  31. package/dist/esm/models/GroupResponse.js +3 -0
  32. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  33. package/dist/esm/models/InspectorStatus.js +1 -10
  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 +14 -0
  37. package/dist/esm/models/InventoryData.js +6 -0
  38. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  39. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  40. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  41. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  42. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  43. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  44. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  45. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  46. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  47. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  48. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  49. package/dist/esm/models/RightsizingReport.js +18 -18
  50. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  51. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  52. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  53. package/dist/esm/models/StartInspectionRequest.js +5 -0
  54. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  55. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  56. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  57. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  58. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  59. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  60. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  61. package/dist/esm/models/VMLabelsResponse.js +47 -0
  62. package/dist/esm/models/VMNIC.d.ts +12 -0
  63. package/dist/esm/models/VMNIC.js +4 -0
  64. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  65. package/dist/esm/models/VcenterCredentials.js +4 -0
  66. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  67. package/dist/esm/models/VirtualMachine.js +18 -10
  68. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  69. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  70. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  71. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  72. package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
  73. package/dist/esm/models/VmUtilizationDetails.js +39 -27
  74. package/dist/esm/models/index.d.ts +14 -0
  75. package/dist/esm/models/index.js +14 -0
  76. package/dist/esm/runtime.js +2 -1
  77. package/dist/models/AgentStatus.d.ts +1 -1
  78. package/dist/models/AgentStatus.js +3 -3
  79. package/dist/models/ApplicationListResponse.d.ts +33 -0
  80. package/dist/models/ApplicationListResponse.js +51 -0
  81. package/dist/models/ApplicationOverview.d.ts +51 -0
  82. package/dist/models/ApplicationOverview.js +63 -0
  83. package/dist/models/ApplicationVM.d.ts +38 -0
  84. package/dist/models/ApplicationVM.js +54 -0
  85. package/dist/models/ClusterFeatures.d.ts +54 -0
  86. package/dist/models/ClusterFeatures.js +62 -0
  87. package/dist/models/ClusterUtilization.d.ts +68 -0
  88. package/dist/models/ClusterUtilization.js +74 -0
  89. package/dist/models/CollectorStartRequest.d.ts +12 -0
  90. package/dist/models/CollectorStartRequest.js +4 -0
  91. package/dist/models/CreateGroupRequest.d.ts +0 -6
  92. package/dist/models/CreateGroupRequest.js +0 -2
  93. package/dist/models/CredentialStatus.d.ts +38 -0
  94. package/dist/models/CredentialStatus.js +54 -0
  95. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  96. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  97. package/dist/models/Group.d.ts +0 -6
  98. package/dist/models/Group.js +0 -2
  99. package/dist/models/GroupResponse.d.ts +7 -0
  100. package/dist/models/GroupResponse.js +3 -0
  101. package/dist/models/InspectorStatus.d.ts +0 -17
  102. package/dist/models/InspectorStatus.js +1 -10
  103. package/dist/models/Inventory.d.ts +7 -1
  104. package/dist/models/Inventory.js +5 -3
  105. package/dist/models/InventoryData.d.ts +14 -0
  106. package/dist/models/InventoryData.js +6 -0
  107. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  108. package/dist/models/RightsizingClusterListResponse.js +55 -0
  109. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  110. package/dist/models/RightsizingClusterResponse.js +55 -0
  111. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  112. package/dist/models/RightsizingClusterUtilization.js +102 -0
  113. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  114. package/dist/models/RightsizingCollectRequest.js +12 -12
  115. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  116. package/dist/models/RightsizingMetricStats.js +3 -3
  117. package/dist/models/RightsizingReport.d.ts +6 -6
  118. package/dist/models/RightsizingReport.js +18 -18
  119. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  120. package/dist/models/RightsizingReportSummary.js +18 -18
  121. package/dist/models/StartInspectionRequest.d.ts +8 -1
  122. package/dist/models/StartInspectionRequest.js +5 -0
  123. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  124. package/dist/models/UpdateGroupRequest.js +0 -2
  125. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  126. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  127. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  128. package/dist/models/VMFilterOptionsResponse.js +66 -0
  129. package/dist/models/VMLabelsResponse.d.ts +38 -0
  130. package/dist/models/VMLabelsResponse.js +54 -0
  131. package/dist/models/VMNIC.d.ts +12 -0
  132. package/dist/models/VMNIC.js +4 -0
  133. package/dist/models/VcenterCredentials.d.ts +12 -0
  134. package/dist/models/VcenterCredentials.js +4 -0
  135. package/dist/models/VirtualMachine.d.ts +30 -6
  136. package/dist/models/VirtualMachine.js +18 -10
  137. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  138. package/dist/models/VirtualMachineDetail.js +7 -0
  139. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  140. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  141. package/dist/models/VmUtilizationDetails.d.ts +27 -9
  142. package/dist/models/VmUtilizationDetails.js +39 -27
  143. package/dist/models/index.d.ts +14 -0
  144. package/dist/models/index.js +14 -0
  145. package/dist/runtime.js +2 -1
  146. package/docs/AgentStatus.md +2 -2
  147. package/docs/ApplicationListResponse.md +34 -0
  148. package/docs/ApplicationOverview.md +40 -0
  149. package/docs/ApplicationVM.md +36 -0
  150. package/docs/ClusterFeatures.md +38 -0
  151. package/docs/ClusterUtilization.md +46 -0
  152. package/docs/CollectorStartRequest.md +4 -0
  153. package/docs/CreateGroupRequest.md +0 -2
  154. package/docs/CredentialStatus.md +36 -0
  155. package/docs/DefaultApi.md +1127 -197
  156. package/docs/DeleteLabelGloballyResponse.md +36 -0
  157. package/docs/GetInventory200Response.md +4 -2
  158. package/docs/Group.md +0 -2
  159. package/docs/GroupResponse.md +2 -0
  160. package/docs/InspectorStatus.md +0 -4
  161. package/docs/Inventory.md +4 -2
  162. package/docs/InventoryData.md +4 -0
  163. package/docs/RightsizingClusterListResponse.md +36 -0
  164. package/docs/RightsizingClusterResponse.md +36 -0
  165. package/docs/RightsizingClusterUtilization.md +60 -0
  166. package/docs/RightsizingCollectRequest.md +12 -12
  167. package/docs/RightsizingMetricStats.md +2 -2
  168. package/docs/RightsizingReport.md +12 -12
  169. package/docs/RightsizingReportSummary.md +12 -12
  170. package/docs/StartInspectionRequest.md +3 -1
  171. package/docs/UpdateGroupRequest.md +0 -2
  172. package/docs/UpdateLabelVMsRequest.md +36 -0
  173. package/docs/VMFilterOptionsResponse.md +42 -0
  174. package/docs/VMLabelsResponse.md +36 -0
  175. package/docs/VMNIC.md +4 -0
  176. package/docs/VcenterCredentials.md +4 -0
  177. package/docs/VirtualMachine.md +18 -10
  178. package/docs/VirtualMachineDetail.md +6 -0
  179. package/docs/VirtualMachineUpdateRequest.md +36 -0
  180. package/docs/VmUtilizationDetails.md +24 -18
  181. package/package.json +1 -1
  182. package/src/apis/DefaultApi.ts +1136 -93
  183. package/src/models/AgentStatus.ts +4 -4
  184. package/src/models/ApplicationListResponse.ts +74 -0
  185. package/src/models/ApplicationOverview.ts +101 -0
  186. package/src/models/ApplicationVM.ts +75 -0
  187. package/src/models/ClusterFeatures.ts +94 -0
  188. package/src/models/ClusterUtilization.ts +120 -0
  189. package/src/models/CollectorStartRequest.ts +16 -0
  190. package/src/models/CreateGroupRequest.ts +0 -8
  191. package/src/models/CredentialStatus.ts +75 -0
  192. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  193. package/src/models/Group.ts +0 -8
  194. package/src/models/GroupResponse.ts +15 -0
  195. package/src/models/InspectorStatus.ts +1 -28
  196. package/src/models/Inventory.ts +12 -4
  197. package/src/models/InventoryData.ts +30 -0
  198. package/src/models/RightsizingClusterListResponse.ts +83 -0
  199. package/src/models/RightsizingClusterResponse.ts +83 -0
  200. package/src/models/RightsizingClusterUtilization.ts +185 -0
  201. package/src/models/RightsizingCollectRequest.ts +18 -18
  202. package/src/models/RightsizingMetricStats.ts +4 -4
  203. package/src/models/RightsizingReport.ts +24 -24
  204. package/src/models/RightsizingReportSummary.ts +24 -24
  205. package/src/models/StartInspectionRequest.ts +18 -1
  206. package/src/models/UpdateGroupRequest.ts +0 -8
  207. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  208. package/src/models/VMFilterOptionsResponse.ts +102 -0
  209. package/src/models/VMLabelsResponse.ts +75 -0
  210. package/src/models/VMNIC.ts +16 -0
  211. package/src/models/VcenterCredentials.ts +16 -0
  212. package/src/models/VirtualMachine.ts +48 -16
  213. package/src/models/VirtualMachineDetail.ts +31 -0
  214. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  215. package/src/models/VmUtilizationDetails.ts +63 -36
  216. package/src/models/index.ts +14 -0
  217. package/src/runtime.ts +1 -1
@@ -21,7 +21,13 @@ export interface Inventory {
21
21
  * @type {string}
22
22
  * @memberof Inventory
23
23
  */
24
- vcenterId: string;
24
+ vcenter_id: string;
25
+ /**
26
+ * Version of the vCenter api. For example "8.0.3.0"
27
+ * @type {string}
28
+ * @memberof Inventory
29
+ */
30
+ vcenter_version?: string;
25
31
  /**
26
32
  * Map of cluster names to their inventory data
27
33
  * @type {{ [key: string]: InventoryData; }}
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
24
24
  * Check if a given object implements the Inventory interface.
25
25
  */
26
26
  function instanceOfInventory(value) {
27
- if (!('vcenterId' in value) || value['vcenterId'] === undefined)
27
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
28
28
  return false;
29
29
  if (!('clusters' in value) || value['clusters'] === undefined)
30
30
  return false;
@@ -38,7 +38,8 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return json;
39
39
  }
40
40
  return {
41
- 'vcenterId': json['vcenter_id'],
41
+ 'vcenter_id': json['vcenter_id'],
42
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
42
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
43
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
44
45
  };
@@ -51,7 +52,8 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  return value;
52
53
  }
53
54
  return {
54
- 'vcenter_id': value['vcenterId'],
55
+ 'vcenter_id': value['vcenter_id'],
56
+ 'vcenter_version': value['vcenter_version'],
55
57
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
56
58
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
57
59
  };
@@ -11,7 +11,9 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
16
+ import type { ClusterFeatures } from './ClusterFeatures.js';
15
17
  /**
16
18
  *
17
19
  * @export
@@ -24,6 +26,18 @@ export interface InventoryData {
24
26
  * @memberof InventoryData
25
27
  */
26
28
  vcenter?: VCenter;
29
+ /**
30
+ *
31
+ * @type {ClusterFeatures}
32
+ * @memberof InventoryData
33
+ */
34
+ clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
27
41
  /**
28
42
  *
29
43
  * @type {VMs}
@@ -20,7 +20,9 @@ exports.InventoryDataToJSON = InventoryDataToJSON;
20
20
  exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
21
21
  const VCenter_js_1 = require("./VCenter.js");
22
22
  const Infra_js_1 = require("./Infra.js");
23
+ const ClusterUtilization_js_1 = require("./ClusterUtilization.js");
23
24
  const VMs_js_1 = require("./VMs.js");
25
+ const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
24
26
  /**
25
27
  * Check if a given object implements the InventoryData interface.
26
28
  */
@@ -40,6 +42,8 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
40
42
  }
41
43
  return {
42
44
  'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
45
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
46
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : (0, ClusterUtilization_js_1.ClusterUtilizationFromJSON)(json['clusterUtilization']),
43
47
  'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
44
48
  'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
45
49
  };
@@ -53,6 +57,8 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
53
57
  }
54
58
  return {
55
59
  'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
60
+ 'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
61
+ 'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
56
62
  'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
57
63
  'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
58
64
  };
@@ -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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterListResponse
17
+ */
18
+ export interface RightsizingClusterListResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterListResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {Array<RightsizingClusterUtilization>}
28
+ * @memberof RightsizingClusterListResponse
29
+ */
30
+ clusters: Array<RightsizingClusterUtilization>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
36
+ export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
37
+ export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
38
+ export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
39
+ export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRightsizingClusterListResponse = instanceOfRightsizingClusterListResponse;
17
+ exports.RightsizingClusterListResponseFromJSON = RightsizingClusterListResponseFromJSON;
18
+ exports.RightsizingClusterListResponseFromJSONTyped = RightsizingClusterListResponseFromJSONTyped;
19
+ exports.RightsizingClusterListResponseToJSON = RightsizingClusterListResponseToJSON;
20
+ exports.RightsizingClusterListResponseToJSONTyped = RightsizingClusterListResponseToJSONTyped;
21
+ const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilization.js");
22
+ /**
23
+ * Check if a given object implements the RightsizingClusterListResponse interface.
24
+ */
25
+ function instanceOfRightsizingClusterListResponse(value) {
26
+ if (!('report_id' in value) || value['report_id'] === undefined)
27
+ return false;
28
+ if (!('clusters' in value) || value['clusters'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function RightsizingClusterListResponseFromJSON(json) {
33
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
34
+ }
35
+ function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'report_id': json['report_id'],
41
+ 'clusters': (json['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)),
42
+ };
43
+ }
44
+ function RightsizingClusterListResponseToJSON(json) {
45
+ return RightsizingClusterListResponseToJSONTyped(json, false);
46
+ }
47
+ function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'report_id': value['report_id'],
53
+ 'clusters': (value['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)),
54
+ };
55
+ }
@@ -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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterResponse
17
+ */
18
+ export interface RightsizingClusterResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterResponse
23
+ */
24
+ report_id: string;
25
+ /**
26
+ *
27
+ * @type {RightsizingClusterUtilization}
28
+ * @memberof RightsizingClusterResponse
29
+ */
30
+ cluster: RightsizingClusterUtilization;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
36
+ export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
37
+ export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
38
+ export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
39
+ export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRightsizingClusterResponse = instanceOfRightsizingClusterResponse;
17
+ exports.RightsizingClusterResponseFromJSON = RightsizingClusterResponseFromJSON;
18
+ exports.RightsizingClusterResponseFromJSONTyped = RightsizingClusterResponseFromJSONTyped;
19
+ exports.RightsizingClusterResponseToJSON = RightsizingClusterResponseToJSON;
20
+ exports.RightsizingClusterResponseToJSONTyped = RightsizingClusterResponseToJSONTyped;
21
+ const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilization.js");
22
+ /**
23
+ * Check if a given object implements the RightsizingClusterResponse interface.
24
+ */
25
+ function instanceOfRightsizingClusterResponse(value) {
26
+ if (!('report_id' in value) || value['report_id'] === undefined)
27
+ return false;
28
+ if (!('cluster' in value) || value['cluster'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function RightsizingClusterResponseFromJSON(json) {
33
+ return RightsizingClusterResponseFromJSONTyped(json, false);
34
+ }
35
+ function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'report_id': json['report_id'],
41
+ 'cluster': (0, RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)(json['cluster']),
42
+ };
43
+ }
44
+ function RightsizingClusterResponseToJSON(json) {
45
+ return RightsizingClusterResponseToJSONTyped(json, false);
46
+ }
47
+ function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'report_id': value['report_id'],
53
+ 'cluster': (0, RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)(value['cluster']),
54
+ };
55
+ }
@@ -0,0 +1,112 @@
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 RightsizingClusterUtilization
16
+ */
17
+ export interface RightsizingClusterUtilization {
18
+ /**
19
+ * vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
20
+ * @type {string}
21
+ * @memberof RightsizingClusterUtilization
22
+ */
23
+ cluster_id: string;
24
+ /**
25
+ * Display name of the cluster as reported by vCenter (e.g. "production-cluster").
26
+ * @type {string}
27
+ * @memberof RightsizingClusterUtilization
28
+ */
29
+ cluster_name: string;
30
+ /**
31
+ * Number of VMs with utilization data in this cluster
32
+ * @type {number}
33
+ * @memberof RightsizingClusterUtilization
34
+ */
35
+ vm_count: number;
36
+ /**
37
+ * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
38
+ * @type {number}
39
+ * @memberof RightsizingClusterUtilization
40
+ */
41
+ cpu_avg: number;
42
+ /**
43
+ * SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
44
+ *
45
+ * @type {number}
46
+ * @memberof RightsizingClusterUtilization
47
+ */
48
+ cpu_p95: number;
49
+ /**
50
+ * Weighted summary of per-VM max values (see cpu_p95 note)
51
+ * @type {number}
52
+ * @memberof RightsizingClusterUtilization
53
+ */
54
+ cpu_max: number;
55
+ /**
56
+ * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
57
+ * @type {number}
58
+ * @memberof RightsizingClusterUtilization
59
+ */
60
+ mem_avg: number;
61
+ /**
62
+ * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
63
+ * @type {number}
64
+ * @memberof RightsizingClusterUtilization
65
+ */
66
+ mem_p95: number;
67
+ /**
68
+ * Weighted summary of per-VM memory max values (see cpu_p95 note)
69
+ * @type {number}
70
+ * @memberof RightsizingClusterUtilization
71
+ */
72
+ mem_max: number;
73
+ /**
74
+ * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
75
+ * @type {number}
76
+ * @memberof RightsizingClusterUtilization
77
+ */
78
+ disk: number;
79
+ /**
80
+ * SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
81
+ *
82
+ * @type {number}
83
+ * @memberof RightsizingClusterUtilization
84
+ */
85
+ confidence: number;
86
+ /**
87
+ * Sum of vCPU counts across all VMs in the cluster
88
+ * @type {number}
89
+ * @memberof RightsizingClusterUtilization
90
+ */
91
+ total_provisioned_cpus: number;
92
+ /**
93
+ * Sum of provisioned RAM (MB) across all VMs in the cluster
94
+ * @type {number}
95
+ * @memberof RightsizingClusterUtilization
96
+ */
97
+ total_provisioned_memory_mb: number;
98
+ /**
99
+ * Sum of provisioned disk (KB) across all VMs in the cluster
100
+ * @type {number}
101
+ * @memberof RightsizingClusterUtilization
102
+ */
103
+ total_provisioned_disk_kb: number;
104
+ }
105
+ /**
106
+ * Check if a given object implements the RightsizingClusterUtilization interface.
107
+ */
108
+ export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
109
+ export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
110
+ export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
111
+ export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
112
+ export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRightsizingClusterUtilization = instanceOfRightsizingClusterUtilization;
17
+ exports.RightsizingClusterUtilizationFromJSON = RightsizingClusterUtilizationFromJSON;
18
+ exports.RightsizingClusterUtilizationFromJSONTyped = RightsizingClusterUtilizationFromJSONTyped;
19
+ exports.RightsizingClusterUtilizationToJSON = RightsizingClusterUtilizationToJSON;
20
+ exports.RightsizingClusterUtilizationToJSONTyped = RightsizingClusterUtilizationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RightsizingClusterUtilization interface.
23
+ */
24
+ function instanceOfRightsizingClusterUtilization(value) {
25
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined)
26
+ return false;
27
+ if (!('cluster_name' in value) || value['cluster_name'] === undefined)
28
+ return false;
29
+ if (!('vm_count' in value) || value['vm_count'] === undefined)
30
+ return false;
31
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
32
+ return false;
33
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
34
+ return false;
35
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
36
+ return false;
37
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
38
+ return false;
39
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
40
+ return false;
41
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
42
+ return false;
43
+ if (!('disk' in value) || value['disk'] === undefined)
44
+ return false;
45
+ if (!('confidence' in value) || value['confidence'] === undefined)
46
+ return false;
47
+ if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
48
+ return false;
49
+ if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
50
+ return false;
51
+ if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function RightsizingClusterUtilizationFromJSON(json) {
56
+ return RightsizingClusterUtilizationFromJSONTyped(json, false);
57
+ }
58
+ function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'cluster_id': json['cluster_id'],
64
+ 'cluster_name': json['cluster_name'],
65
+ 'vm_count': json['vm_count'],
66
+ 'cpu_avg': json['cpu_avg'],
67
+ 'cpu_p95': json['cpu_p95'],
68
+ 'cpu_max': json['cpu_max'],
69
+ 'mem_avg': json['mem_avg'],
70
+ 'mem_p95': json['mem_p95'],
71
+ 'mem_max': json['mem_max'],
72
+ 'disk': json['disk'],
73
+ 'confidence': json['confidence'],
74
+ 'total_provisioned_cpus': json['total_provisioned_cpus'],
75
+ 'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
76
+ 'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
77
+ };
78
+ }
79
+ function RightsizingClusterUtilizationToJSON(json) {
80
+ return RightsizingClusterUtilizationToJSONTyped(json, false);
81
+ }
82
+ function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'cluster_id': value['cluster_id'],
88
+ 'cluster_name': value['cluster_name'],
89
+ 'vm_count': value['vm_count'],
90
+ 'cpu_avg': value['cpu_avg'],
91
+ 'cpu_p95': value['cpu_p95'],
92
+ 'cpu_max': value['cpu_max'],
93
+ 'mem_avg': value['mem_avg'],
94
+ 'mem_p95': value['mem_p95'],
95
+ 'mem_max': value['mem_max'],
96
+ 'disk': value['disk'],
97
+ 'confidence': value['confidence'],
98
+ 'total_provisioned_cpus': value['total_provisioned_cpus'],
99
+ 'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
100
+ 'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
101
+ };
102
+ }
@@ -27,38 +27,38 @@ export interface RightsizingCollectRequest {
27
27
  * @type {number}
28
28
  * @memberof RightsizingCollectRequest
29
29
  */
30
- lookbackHours?: number;
30
+ lookback_hours?: number;
31
31
  /**
32
32
  * vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
33
33
  * @type {number}
34
34
  * @memberof RightsizingCollectRequest
35
35
  */
36
- intervalId?: number;
36
+ interval_id?: number;
37
37
  /**
38
38
  * Filter VMs by name substring
39
39
  * @type {string}
40
40
  * @memberof RightsizingCollectRequest
41
41
  */
42
- nameFilter?: string;
42
+ name_filter?: string;
43
43
  /**
44
44
  * MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
45
45
  * @type {string}
46
46
  * @memberof RightsizingCollectRequest
47
47
  */
48
- clusterId?: string;
48
+ cluster_id?: string;
49
49
  /**
50
50
  * Number of VMs per QueryPerf round-trip
51
51
  * @type {number}
52
52
  * @memberof RightsizingCollectRequest
53
53
  */
54
- batchSize?: number;
54
+ batch_size?: number;
55
55
  /**
56
56
  * If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
57
57
  *
58
58
  * @type {boolean}
59
59
  * @memberof RightsizingCollectRequest
60
60
  */
61
- discoverVms?: boolean;
61
+ discover_vms?: boolean;
62
62
  }
63
63
  /**
64
64
  * Check if a given object implements the RightsizingCollectRequest interface.
@@ -36,12 +36,12 @@ function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  }
37
37
  return {
38
38
  'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
39
- 'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
40
- 'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
41
- 'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
42
- 'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
43
- 'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
44
- 'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
39
+ 'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
40
+ 'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
41
+ 'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
42
+ 'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
43
+ 'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
44
+ 'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
45
45
  };
46
46
  }
47
47
  function RightsizingCollectRequestToJSON(json) {
@@ -53,11 +53,11 @@ function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false
53
53
  }
54
54
  return {
55
55
  'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
56
- 'lookback_hours': value['lookbackHours'],
57
- 'interval_id': value['intervalId'],
58
- 'name_filter': value['nameFilter'],
59
- 'cluster_id': value['clusterId'],
60
- 'batch_size': value['batchSize'],
61
- 'discover_vms': value['discoverVms'],
56
+ 'lookback_hours': value['lookback_hours'],
57
+ 'interval_id': value['interval_id'],
58
+ 'name_filter': value['name_filter'],
59
+ 'cluster_id': value['cluster_id'],
60
+ 'batch_size': value['batch_size'],
61
+ 'discover_vms': value['discover_vms'],
62
62
  };
63
63
  }
@@ -20,7 +20,7 @@ export interface RightsizingMetricStats {
20
20
  * @type {number}
21
21
  * @memberof RightsizingMetricStats
22
22
  */
23
- sampleCount: number;
23
+ sample_count: number;
24
24
  /**
25
25
  *
26
26
  * @type {number}
@@ -22,7 +22,7 @@ exports.RightsizingMetricStatsToJSONTyped = RightsizingMetricStatsToJSONTyped;
22
22
  * Check if a given object implements the RightsizingMetricStats interface.
23
23
  */
24
24
  function instanceOfRightsizingMetricStats(value) {
25
- if (!('sampleCount' in value) || value['sampleCount'] === undefined)
25
+ if (!('sample_count' in value) || value['sample_count'] === undefined)
26
26
  return false;
27
27
  if (!('average' in value) || value['average'] === undefined)
28
28
  return false;
@@ -44,7 +44,7 @@ function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
44
44
  return json;
45
45
  }
46
46
  return {
47
- 'sampleCount': json['sample_count'],
47
+ 'sample_count': json['sample_count'],
48
48
  'average': json['average'],
49
49
  'p95': json['p95'],
50
50
  'p99': json['p99'],
@@ -60,7 +60,7 @@ function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
60
60
  return value;
61
61
  }
62
62
  return {
63
- 'sample_count': value['sampleCount'],
63
+ 'sample_count': value['sample_count'],
64
64
  'average': value['average'],
65
65
  'p95': value['p95'],
66
66
  'p99': value['p99'],