@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747

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 (184) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +25 -5
  4. package/dist/apis/DefaultApi.d.ts +369 -38
  5. package/dist/apis/DefaultApi.js +410 -43
  6. package/dist/esm/apis/DefaultApi.d.ts +369 -38
  7. package/dist/esm/apis/DefaultApi.js +410 -43
  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/CreateGroupRequest.d.ts +0 -6
  21. package/dist/esm/models/CreateGroupRequest.js +0 -2
  22. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  23. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  24. package/dist/esm/models/Group.d.ts +0 -6
  25. package/dist/esm/models/Group.js +0 -2
  26. package/dist/esm/models/GroupResponse.d.ts +7 -0
  27. package/dist/esm/models/GroupResponse.js +3 -0
  28. package/dist/esm/models/Inventory.d.ts +7 -1
  29. package/dist/esm/models/Inventory.js +5 -3
  30. package/dist/esm/models/InventoryData.d.ts +14 -0
  31. package/dist/esm/models/InventoryData.js +6 -0
  32. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  33. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  34. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  35. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  37. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  38. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  39. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  40. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  41. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  42. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  43. package/dist/esm/models/RightsizingReport.js +18 -18
  44. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  45. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  46. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  47. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  48. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  49. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  50. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  51. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  52. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  53. package/dist/esm/models/VMLabelsResponse.js +47 -0
  54. package/dist/esm/models/VMNIC.d.ts +12 -0
  55. package/dist/esm/models/VMNIC.js +4 -0
  56. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  57. package/dist/esm/models/VirtualMachine.js +18 -10
  58. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  59. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  60. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  61. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  63. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  64. package/dist/esm/models/index.d.ts +11 -0
  65. package/dist/esm/models/index.js +11 -0
  66. package/dist/models/AgentStatus.d.ts +1 -1
  67. package/dist/models/AgentStatus.js +3 -3
  68. package/dist/models/ApplicationListResponse.d.ts +33 -0
  69. package/dist/models/ApplicationListResponse.js +51 -0
  70. package/dist/models/ApplicationOverview.d.ts +51 -0
  71. package/dist/models/ApplicationOverview.js +63 -0
  72. package/dist/models/ApplicationVM.d.ts +38 -0
  73. package/dist/models/ApplicationVM.js +54 -0
  74. package/dist/models/ClusterFeatures.d.ts +54 -0
  75. package/dist/models/ClusterFeatures.js +62 -0
  76. package/dist/models/ClusterUtilization.d.ts +68 -0
  77. package/dist/models/ClusterUtilization.js +74 -0
  78. package/dist/models/CreateGroupRequest.d.ts +0 -6
  79. package/dist/models/CreateGroupRequest.js +0 -2
  80. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  81. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  82. package/dist/models/Group.d.ts +0 -6
  83. package/dist/models/Group.js +0 -2
  84. package/dist/models/GroupResponse.d.ts +7 -0
  85. package/dist/models/GroupResponse.js +3 -0
  86. package/dist/models/Inventory.d.ts +7 -1
  87. package/dist/models/Inventory.js +5 -3
  88. package/dist/models/InventoryData.d.ts +14 -0
  89. package/dist/models/InventoryData.js +6 -0
  90. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  91. package/dist/models/RightsizingClusterListResponse.js +3 -3
  92. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  93. package/dist/models/RightsizingClusterResponse.js +55 -0
  94. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  95. package/dist/models/RightsizingClusterUtilization.js +36 -36
  96. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  97. package/dist/models/RightsizingCollectRequest.js +12 -12
  98. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  99. package/dist/models/RightsizingMetricStats.js +3 -3
  100. package/dist/models/RightsizingReport.d.ts +6 -6
  101. package/dist/models/RightsizingReport.js +18 -18
  102. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  103. package/dist/models/RightsizingReportSummary.js +18 -18
  104. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  105. package/dist/models/UpdateGroupRequest.js +0 -2
  106. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  107. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  108. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  109. package/dist/models/VMFilterOptionsResponse.js +66 -0
  110. package/dist/models/VMLabelsResponse.d.ts +38 -0
  111. package/dist/models/VMLabelsResponse.js +54 -0
  112. package/dist/models/VMNIC.d.ts +12 -0
  113. package/dist/models/VMNIC.js +4 -0
  114. package/dist/models/VirtualMachine.d.ts +30 -6
  115. package/dist/models/VirtualMachine.js +18 -10
  116. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  117. package/dist/models/VirtualMachineDetail.js +4 -0
  118. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  119. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  120. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  121. package/dist/models/VmUtilizationDetails.js +36 -36
  122. package/dist/models/index.d.ts +11 -0
  123. package/dist/models/index.js +11 -0
  124. package/docs/AgentStatus.md +2 -2
  125. package/docs/ApplicationListResponse.md +34 -0
  126. package/docs/ApplicationOverview.md +40 -0
  127. package/docs/ApplicationVM.md +36 -0
  128. package/docs/ClusterFeatures.md +38 -0
  129. package/docs/ClusterUtilization.md +46 -0
  130. package/docs/CreateGroupRequest.md +0 -2
  131. package/docs/DefaultApi.md +679 -79
  132. package/docs/DeleteLabelGloballyResponse.md +36 -0
  133. package/docs/GetInventory200Response.md +4 -2
  134. package/docs/Group.md +0 -2
  135. package/docs/GroupResponse.md +2 -0
  136. package/docs/Inventory.md +4 -2
  137. package/docs/InventoryData.md +4 -0
  138. package/docs/RightsizingClusterListResponse.md +2 -2
  139. package/docs/RightsizingClusterResponse.md +36 -0
  140. package/docs/RightsizingClusterUtilization.md +24 -24
  141. package/docs/RightsizingCollectRequest.md +12 -12
  142. package/docs/RightsizingMetricStats.md +2 -2
  143. package/docs/RightsizingReport.md +12 -12
  144. package/docs/RightsizingReportSummary.md +12 -12
  145. package/docs/UpdateGroupRequest.md +0 -2
  146. package/docs/UpdateLabelVMsRequest.md +36 -0
  147. package/docs/VMFilterOptionsResponse.md +42 -0
  148. package/docs/VMLabelsResponse.md +36 -0
  149. package/docs/VMNIC.md +4 -0
  150. package/docs/VirtualMachine.md +18 -10
  151. package/docs/VirtualMachineDetail.md +4 -0
  152. package/docs/VirtualMachineUpdateRequest.md +36 -0
  153. package/docs/VmUtilizationDetails.md +24 -24
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +806 -111
  156. package/src/models/AgentStatus.ts +4 -4
  157. package/src/models/ApplicationListResponse.ts +74 -0
  158. package/src/models/ApplicationOverview.ts +101 -0
  159. package/src/models/ApplicationVM.ts +75 -0
  160. package/src/models/ClusterFeatures.ts +94 -0
  161. package/src/models/ClusterUtilization.ts +120 -0
  162. package/src/models/CreateGroupRequest.ts +0 -8
  163. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  164. package/src/models/Group.ts +0 -8
  165. package/src/models/GroupResponse.ts +15 -0
  166. package/src/models/Inventory.ts +12 -4
  167. package/src/models/InventoryData.ts +30 -0
  168. package/src/models/RightsizingClusterListResponse.ts +4 -4
  169. package/src/models/RightsizingClusterResponse.ts +83 -0
  170. package/src/models/RightsizingClusterUtilization.ts +48 -48
  171. package/src/models/RightsizingCollectRequest.ts +18 -18
  172. package/src/models/RightsizingMetricStats.ts +4 -4
  173. package/src/models/RightsizingReport.ts +24 -24
  174. package/src/models/RightsizingReportSummary.ts +24 -24
  175. package/src/models/UpdateGroupRequest.ts +0 -8
  176. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  177. package/src/models/VMFilterOptionsResponse.ts +102 -0
  178. package/src/models/VMLabelsResponse.ts +75 -0
  179. package/src/models/VMNIC.ts +16 -0
  180. package/src/models/VirtualMachine.ts +48 -16
  181. package/src/models/VirtualMachineDetail.ts +16 -0
  182. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  183. package/src/models/VmUtilizationDetails.ts +48 -48
  184. package/src/models/index.ts +11 -0
@@ -32,7 +32,13 @@ export interface Inventory {
32
32
  * @type {string}
33
33
  * @memberof Inventory
34
34
  */
35
- vcenterId: string;
35
+ vcenter_id: string;
36
+ /**
37
+ * Version of the vCenter api. For example "8.0.3.0"
38
+ * @type {string}
39
+ * @memberof Inventory
40
+ */
41
+ vcenter_version?: string;
36
42
  /**
37
43
  * Map of cluster names to their inventory data
38
44
  * @type {{ [key: string]: InventoryData; }}
@@ -51,7 +57,7 @@ export interface Inventory {
51
57
  * Check if a given object implements the Inventory interface.
52
58
  */
53
59
  export function instanceOfInventory(value: object): value is Inventory {
54
- if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
60
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
55
61
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
56
62
  return true;
57
63
  }
@@ -66,7 +72,8 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
72
  }
67
73
  return {
68
74
 
69
- 'vcenterId': json['vcenter_id'],
75
+ 'vcenter_id': json['vcenter_id'],
76
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
70
77
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
71
78
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
72
79
  };
@@ -83,7 +90,8 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
83
90
 
84
91
  return {
85
92
 
86
- 'vcenter_id': value['vcenterId'],
93
+ 'vcenter_id': value['vcenter_id'],
94
+ 'vcenter_version': value['vcenter_version'],
87
95
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
96
  'vcenter': InventoryDataToJSON(value['vcenter']),
89
97
  };
@@ -27,6 +27,13 @@ import {
27
27
  InfraToJSON,
28
28
  InfraToJSONTyped,
29
29
  } from './Infra.js';
30
+ import type { ClusterUtilization } from './ClusterUtilization.js';
31
+ import {
32
+ ClusterUtilizationFromJSON,
33
+ ClusterUtilizationFromJSONTyped,
34
+ ClusterUtilizationToJSON,
35
+ ClusterUtilizationToJSONTyped,
36
+ } from './ClusterUtilization.js';
30
37
  import type { VMs } from './VMs.js';
31
38
  import {
32
39
  VMsFromJSON,
@@ -34,6 +41,13 @@ import {
34
41
  VMsToJSON,
35
42
  VMsToJSONTyped,
36
43
  } from './VMs.js';
44
+ import type { ClusterFeatures } from './ClusterFeatures.js';
45
+ import {
46
+ ClusterFeaturesFromJSON,
47
+ ClusterFeaturesFromJSONTyped,
48
+ ClusterFeaturesToJSON,
49
+ ClusterFeaturesToJSONTyped,
50
+ } from './ClusterFeatures.js';
37
51
 
38
52
  /**
39
53
  *
@@ -47,6 +61,18 @@ export interface InventoryData {
47
61
  * @memberof InventoryData
48
62
  */
49
63
  vcenter?: VCenter;
64
+ /**
65
+ *
66
+ * @type {ClusterFeatures}
67
+ * @memberof InventoryData
68
+ */
69
+ clusterFeatures?: ClusterFeatures;
70
+ /**
71
+ *
72
+ * @type {ClusterUtilization}
73
+ * @memberof InventoryData
74
+ */
75
+ clusterUtilization?: ClusterUtilization;
50
76
  /**
51
77
  *
52
78
  * @type {VMs}
@@ -81,6 +107,8 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
81
107
  return {
82
108
 
83
109
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
110
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
111
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
84
112
  'vms': VMsFromJSON(json['vms']),
85
113
  'infra': InfraFromJSON(json['infra']),
86
114
  };
@@ -98,6 +126,8 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
98
126
  return {
99
127
 
100
128
  'vcenter': VCenterToJSON(value['vcenter']),
129
+ 'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
130
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
101
131
  'vms': VMsToJSON(value['vms']),
102
132
  'infra': InfraToJSON(value['infra']),
103
133
  };
@@ -32,7 +32,7 @@ export interface RightsizingClusterListResponse {
32
32
  * @type {string}
33
33
  * @memberof RightsizingClusterListResponse
34
34
  */
35
- reportId: string;
35
+ report_id: string;
36
36
  /**
37
37
  *
38
38
  * @type {Array<RightsizingClusterUtilization>}
@@ -45,7 +45,7 @@ export interface RightsizingClusterListResponse {
45
45
  * Check if a given object implements the RightsizingClusterListResponse interface.
46
46
  */
47
47
  export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
48
- if (!('reportId' in value) || value['reportId'] === undefined) return false;
48
+ if (!('report_id' in value) || value['report_id'] === undefined) return false;
49
49
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
50
50
  return true;
51
51
  }
@@ -60,7 +60,7 @@ export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDis
60
60
  }
61
61
  return {
62
62
 
63
- 'reportId': json['report_id'],
63
+ 'report_id': json['report_id'],
64
64
  'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
65
65
  };
66
66
  }
@@ -76,7 +76,7 @@ export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClu
76
76
 
77
77
  return {
78
78
 
79
- 'report_id': value['reportId'],
79
+ 'report_id': value['report_id'],
80
80
  'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
81
81
  };
82
82
  }
@@ -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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
17
+ import {
18
+ RightsizingClusterUtilizationFromJSON,
19
+ RightsizingClusterUtilizationFromJSONTyped,
20
+ RightsizingClusterUtilizationToJSON,
21
+ RightsizingClusterUtilizationToJSONTyped,
22
+ } from './RightsizingClusterUtilization.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RightsizingClusterResponse
28
+ */
29
+ export interface RightsizingClusterResponse {
30
+ /**
31
+ * The report ID this data was aggregated from
32
+ * @type {string}
33
+ * @memberof RightsizingClusterResponse
34
+ */
35
+ report_id: string;
36
+ /**
37
+ *
38
+ * @type {RightsizingClusterUtilization}
39
+ * @memberof RightsizingClusterResponse
40
+ */
41
+ cluster: RightsizingClusterUtilization;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the RightsizingClusterResponse interface.
46
+ */
47
+ export function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse {
48
+ if (!('report_id' in value) || value['report_id'] === undefined) return false;
49
+ if (!('cluster' in value) || value['cluster'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse {
54
+ return RightsizingClusterResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'report_id': json['report_id'],
64
+ 'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
65
+ };
66
+ }
67
+
68
+ export function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse {
69
+ return RightsizingClusterResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'report_id': value['report_id'],
80
+ 'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
81
+ };
82
+ }
83
+
@@ -24,56 +24,56 @@ export interface RightsizingClusterUtilization {
24
24
  * @type {string}
25
25
  * @memberof RightsizingClusterUtilization
26
26
  */
27
- clusterId: string;
27
+ cluster_id: string;
28
28
  /**
29
29
  * Display name of the cluster as reported by vCenter (e.g. "production-cluster").
30
30
  * @type {string}
31
31
  * @memberof RightsizingClusterUtilization
32
32
  */
33
- clusterName: string;
33
+ cluster_name: string;
34
34
  /**
35
35
  * Number of VMs with utilization data in this cluster
36
36
  * @type {number}
37
37
  * @memberof RightsizingClusterUtilization
38
38
  */
39
- vmCount: number;
39
+ vm_count: number;
40
40
  /**
41
41
  * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
42
42
  * @type {number}
43
43
  * @memberof RightsizingClusterUtilization
44
44
  */
45
- cpuAvg: number;
45
+ cpu_avg: number;
46
46
  /**
47
47
  * 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).
48
48
  *
49
49
  * @type {number}
50
50
  * @memberof RightsizingClusterUtilization
51
51
  */
52
- cpuP95: number;
52
+ cpu_p95: number;
53
53
  /**
54
54
  * Weighted summary of per-VM max values (see cpu_p95 note)
55
55
  * @type {number}
56
56
  * @memberof RightsizingClusterUtilization
57
57
  */
58
- cpuMax: number;
58
+ cpu_max: number;
59
59
  /**
60
60
  * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
61
61
  * @type {number}
62
62
  * @memberof RightsizingClusterUtilization
63
63
  */
64
- memAvg: number;
64
+ mem_avg: number;
65
65
  /**
66
66
  * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
67
67
  * @type {number}
68
68
  * @memberof RightsizingClusterUtilization
69
69
  */
70
- memP95: number;
70
+ mem_p95: number;
71
71
  /**
72
72
  * Weighted summary of per-VM memory max values (see cpu_p95 note)
73
73
  * @type {number}
74
74
  * @memberof RightsizingClusterUtilization
75
75
  */
76
- memMax: number;
76
+ mem_max: number;
77
77
  /**
78
78
  * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
79
79
  * @type {number}
@@ -92,39 +92,39 @@ export interface RightsizingClusterUtilization {
92
92
  * @type {number}
93
93
  * @memberof RightsizingClusterUtilization
94
94
  */
95
- totalProvisionedCpus: number;
95
+ total_provisioned_cpus: number;
96
96
  /**
97
97
  * Sum of provisioned RAM (MB) across all VMs in the cluster
98
98
  * @type {number}
99
99
  * @memberof RightsizingClusterUtilization
100
100
  */
101
- totalProvisionedMemoryMb: number;
101
+ total_provisioned_memory_mb: number;
102
102
  /**
103
103
  * Sum of provisioned disk (KB) across all VMs in the cluster
104
104
  * @type {number}
105
105
  * @memberof RightsizingClusterUtilization
106
106
  */
107
- totalProvisionedDiskKb: number;
107
+ total_provisioned_disk_kb: number;
108
108
  }
109
109
 
110
110
  /**
111
111
  * Check if a given object implements the RightsizingClusterUtilization interface.
112
112
  */
113
113
  export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
114
- if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
115
- if (!('clusterName' in value) || value['clusterName'] === undefined) return false;
116
- if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
117
- if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
118
- if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
119
- if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
120
- if (!('memAvg' in value) || value['memAvg'] === undefined) return false;
121
- if (!('memP95' in value) || value['memP95'] === undefined) return false;
122
- if (!('memMax' in value) || value['memMax'] === undefined) return false;
114
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
115
+ if (!('cluster_name' in value) || value['cluster_name'] === undefined) return false;
116
+ if (!('vm_count' in value) || value['vm_count'] === undefined) return false;
117
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
118
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
119
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
120
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
121
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
122
+ if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
123
123
  if (!('disk' in value) || value['disk'] === undefined) return false;
124
124
  if (!('confidence' in value) || value['confidence'] === undefined) return false;
125
- if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined) return false;
126
- if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined) return false;
127
- if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined) return false;
125
+ if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined) return false;
126
+ if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined) return false;
127
+ if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined) return false;
128
128
  return true;
129
129
  }
130
130
 
@@ -138,20 +138,20 @@ export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDisc
138
138
  }
139
139
  return {
140
140
 
141
- 'clusterId': json['cluster_id'],
142
- 'clusterName': json['cluster_name'],
143
- 'vmCount': json['vm_count'],
144
- 'cpuAvg': json['cpu_avg'],
145
- 'cpuP95': json['cpu_p95'],
146
- 'cpuMax': json['cpu_max'],
147
- 'memAvg': json['mem_avg'],
148
- 'memP95': json['mem_p95'],
149
- 'memMax': json['mem_max'],
141
+ 'cluster_id': json['cluster_id'],
142
+ 'cluster_name': json['cluster_name'],
143
+ 'vm_count': json['vm_count'],
144
+ 'cpu_avg': json['cpu_avg'],
145
+ 'cpu_p95': json['cpu_p95'],
146
+ 'cpu_max': json['cpu_max'],
147
+ 'mem_avg': json['mem_avg'],
148
+ 'mem_p95': json['mem_p95'],
149
+ 'mem_max': json['mem_max'],
150
150
  'disk': json['disk'],
151
151
  'confidence': json['confidence'],
152
- 'totalProvisionedCpus': json['total_provisioned_cpus'],
153
- 'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
154
- 'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
152
+ 'total_provisioned_cpus': json['total_provisioned_cpus'],
153
+ 'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
154
+ 'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
155
155
  };
156
156
  }
157
157
 
@@ -166,20 +166,20 @@ export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClus
166
166
 
167
167
  return {
168
168
 
169
- 'cluster_id': value['clusterId'],
170
- 'cluster_name': value['clusterName'],
171
- 'vm_count': value['vmCount'],
172
- 'cpu_avg': value['cpuAvg'],
173
- 'cpu_p95': value['cpuP95'],
174
- 'cpu_max': value['cpuMax'],
175
- 'mem_avg': value['memAvg'],
176
- 'mem_p95': value['memP95'],
177
- 'mem_max': value['memMax'],
169
+ 'cluster_id': value['cluster_id'],
170
+ 'cluster_name': value['cluster_name'],
171
+ 'vm_count': value['vm_count'],
172
+ 'cpu_avg': value['cpu_avg'],
173
+ 'cpu_p95': value['cpu_p95'],
174
+ 'cpu_max': value['cpu_max'],
175
+ 'mem_avg': value['mem_avg'],
176
+ 'mem_p95': value['mem_p95'],
177
+ 'mem_max': value['mem_max'],
178
178
  'disk': value['disk'],
179
179
  'confidence': value['confidence'],
180
- 'total_provisioned_cpus': value['totalProvisionedCpus'],
181
- 'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
182
- 'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
180
+ 'total_provisioned_cpus': value['total_provisioned_cpus'],
181
+ 'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
182
+ 'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
183
183
  };
184
184
  }
185
185
 
@@ -38,38 +38,38 @@ export interface RightsizingCollectRequest {
38
38
  * @type {number}
39
39
  * @memberof RightsizingCollectRequest
40
40
  */
41
- lookbackHours?: number;
41
+ lookback_hours?: number;
42
42
  /**
43
43
  * vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
44
44
  * @type {number}
45
45
  * @memberof RightsizingCollectRequest
46
46
  */
47
- intervalId?: number;
47
+ interval_id?: number;
48
48
  /**
49
49
  * Filter VMs by name substring
50
50
  * @type {string}
51
51
  * @memberof RightsizingCollectRequest
52
52
  */
53
- nameFilter?: string;
53
+ name_filter?: string;
54
54
  /**
55
55
  * MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
56
56
  * @type {string}
57
57
  * @memberof RightsizingCollectRequest
58
58
  */
59
- clusterId?: string;
59
+ cluster_id?: string;
60
60
  /**
61
61
  * Number of VMs per QueryPerf round-trip
62
62
  * @type {number}
63
63
  * @memberof RightsizingCollectRequest
64
64
  */
65
- batchSize?: number;
65
+ batch_size?: number;
66
66
  /**
67
67
  * If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
68
68
  *
69
69
  * @type {boolean}
70
70
  * @memberof RightsizingCollectRequest
71
71
  */
72
- discoverVms?: boolean;
72
+ discover_vms?: boolean;
73
73
  }
74
74
 
75
75
  /**
@@ -91,12 +91,12 @@ export function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscrimi
91
91
  return {
92
92
 
93
93
  'credentials': VcenterCredentialsFromJSON(json['credentials']),
94
- 'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
95
- 'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
96
- 'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
97
- 'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
98
- 'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
99
- 'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
94
+ 'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
95
+ 'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
96
+ 'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
97
+ 'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
98
+ 'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
99
+ 'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
100
100
  };
101
101
  }
102
102
 
@@ -112,12 +112,12 @@ export function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectR
112
112
  return {
113
113
 
114
114
  'credentials': VcenterCredentialsToJSON(value['credentials']),
115
- 'lookback_hours': value['lookbackHours'],
116
- 'interval_id': value['intervalId'],
117
- 'name_filter': value['nameFilter'],
118
- 'cluster_id': value['clusterId'],
119
- 'batch_size': value['batchSize'],
120
- 'discover_vms': value['discoverVms'],
115
+ 'lookback_hours': value['lookback_hours'],
116
+ 'interval_id': value['interval_id'],
117
+ 'name_filter': value['name_filter'],
118
+ 'cluster_id': value['cluster_id'],
119
+ 'batch_size': value['batch_size'],
120
+ 'discover_vms': value['discover_vms'],
121
121
  };
122
122
  }
123
123
 
@@ -24,7 +24,7 @@ export interface RightsizingMetricStats {
24
24
  * @type {number}
25
25
  * @memberof RightsizingMetricStats
26
26
  */
27
- sampleCount: number;
27
+ sample_count: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -61,7 +61,7 @@ export interface RightsizingMetricStats {
61
61
  * Check if a given object implements the RightsizingMetricStats interface.
62
62
  */
63
63
  export function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats {
64
- if (!('sampleCount' in value) || value['sampleCount'] === undefined) return false;
64
+ if (!('sample_count' in value) || value['sample_count'] === undefined) return false;
65
65
  if (!('average' in value) || value['average'] === undefined) return false;
66
66
  if (!('p95' in value) || value['p95'] === undefined) return false;
67
67
  if (!('p99' in value) || value['p99'] === undefined) return false;
@@ -80,7 +80,7 @@ export function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminat
80
80
  }
81
81
  return {
82
82
 
83
- 'sampleCount': json['sample_count'],
83
+ 'sample_count': json['sample_count'],
84
84
  'average': json['average'],
85
85
  'p95': json['p95'],
86
86
  'p99': json['p99'],
@@ -100,7 +100,7 @@ export function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats
100
100
 
101
101
  return {
102
102
 
103
- 'sample_count': value['sampleCount'],
103
+ 'sample_count': value['sample_count'],
104
104
  'average': value['average'],
105
105
  'p95': value['p95'],
106
106
  'p99': value['p99'],
@@ -44,31 +44,31 @@ export interface RightsizingReport {
44
44
  * @type {string}
45
45
  * @memberof RightsizingReport
46
46
  */
47
- clusterId: string;
47
+ cluster_id: string;
48
48
  /**
49
49
  *
50
50
  * @type {Date}
51
51
  * @memberof RightsizingReport
52
52
  */
53
- windowStart: Date;
53
+ window_start: Date;
54
54
  /**
55
55
  *
56
56
  * @type {Date}
57
57
  * @memberof RightsizingReport
58
58
  */
59
- windowEnd: Date;
59
+ window_end: Date;
60
60
  /**
61
61
  *
62
62
  * @type {number}
63
63
  * @memberof RightsizingReport
64
64
  */
65
- intervalId: number;
65
+ interval_id: number;
66
66
  /**
67
67
  * Theoretical maximum samples for the window (lookback / interval)
68
68
  * @type {number}
69
69
  * @memberof RightsizingReport
70
70
  */
71
- expectedSampleCount: number;
71
+ expected_sample_count: number;
72
72
  /**
73
73
  *
74
74
  * @type {Array<RightsizingVMReport>}
@@ -80,7 +80,7 @@ export interface RightsizingReport {
80
80
  * @type {Date}
81
81
  * @memberof RightsizingReport
82
82
  */
83
- createdAt: Date;
83
+ created_at: Date;
84
84
  }
85
85
 
86
86
  /**
@@ -89,13 +89,13 @@ export interface RightsizingReport {
89
89
  export function instanceOfRightsizingReport(value: object): value is RightsizingReport {
90
90
  if (!('id' in value) || value['id'] === undefined) return false;
91
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;
92
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
93
+ if (!('window_start' in value) || value['window_start'] === undefined) return false;
94
+ if (!('window_end' in value) || value['window_end'] === undefined) return false;
95
+ if (!('interval_id' in value) || value['interval_id'] === undefined) return false;
96
+ if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined) return false;
97
97
  if (!('vms' in value) || value['vms'] === undefined) return false;
98
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
98
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
99
99
  return true;
100
100
  }
101
101
 
@@ -111,13 +111,13 @@ export function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: b
111
111
 
112
112
  'id': json['id'],
113
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'],
114
+ 'cluster_id': json['cluster_id'],
115
+ 'window_start': (new Date(json['window_start'])),
116
+ 'window_end': (new Date(json['window_end'])),
117
+ 'interval_id': json['interval_id'],
118
+ 'expected_sample_count': json['expected_sample_count'],
119
119
  'vms': ((json['vms'] as Array<any>).map(RightsizingVMReportFromJSON)),
120
- 'createdAt': (new Date(json['created_at'])),
120
+ 'created_at': (new Date(json['created_at'])),
121
121
  };
122
122
  }
123
123
 
@@ -134,13 +134,13 @@ export function RightsizingReportToJSONTyped(value?: RightsizingReport | null, i
134
134
 
135
135
  'id': value['id'],
136
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'],
137
+ 'cluster_id': value['cluster_id'],
138
+ 'window_start': value['window_start'].toISOString(),
139
+ 'window_end': value['window_end'].toISOString(),
140
+ 'interval_id': value['interval_id'],
141
+ 'expected_sample_count': value['expected_sample_count'],
142
142
  'vms': ((value['vms'] as Array<any>).map(RightsizingVMReportToJSON)),
143
- 'created_at': value['createdAt'].toISOString(),
143
+ 'created_at': value['created_at'].toISOString(),
144
144
  };
145
145
  }
146
146