@openshift-migration-advisor/planner-sdk 0.13.3-391ade47acd8 → 0.13.3-a0b90cb3da5f

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 (61) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +8 -2
  3. package/dist/apis/SizingApi.d.ts +61 -0
  4. package/dist/apis/SizingApi.js +74 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/SizingApi.d.ts +61 -0
  8. package/dist/esm/apis/SizingApi.js +70 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
  12. package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
  13. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  14. package/dist/esm/models/ClusterUtilization.js +67 -0
  15. package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
  16. package/dist/esm/models/CpuOverCommitRatio.js +45 -0
  17. package/dist/esm/models/InventoryData.d.ts +7 -0
  18. package/dist/esm/models/InventoryData.js +3 -0
  19. package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
  20. package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
  21. package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  22. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
  23. package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  24. package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
  25. package/dist/esm/models/index.d.ts +5 -0
  26. package/dist/esm/models/index.js +5 -0
  27. package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
  28. package/dist/models/ClusterRequirementsRequest.js +7 -22
  29. package/dist/models/ClusterUtilization.d.ts +68 -0
  30. package/dist/models/ClusterUtilization.js +74 -0
  31. package/dist/models/CpuOverCommitRatio.d.ts +27 -0
  32. package/dist/models/CpuOverCommitRatio.js +53 -0
  33. package/dist/models/InventoryData.d.ts +7 -0
  34. package/dist/models/InventoryData.js +3 -0
  35. package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
  36. package/dist/models/MemoryOverCommitRatio.js +52 -0
  37. package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  38. package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
  39. package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  40. package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/docs/ClusterRequirementsRequest.md +2 -2
  44. package/docs/ClusterUtilization.md +46 -0
  45. package/docs/CpuOverCommitRatio.md +33 -0
  46. package/docs/InventoryData.md +2 -0
  47. package/docs/MemoryOverCommitRatio.md +33 -0
  48. package/docs/SizingApi.md +80 -0
  49. package/docs/StandaloneClusterRequirementsRequest.md +59 -0
  50. package/docs/StandaloneClusterRequirementsResponse.md +37 -0
  51. package/package.json +1 -1
  52. package/src/apis/SizingApi.ts +114 -0
  53. package/src/apis/index.ts +1 -0
  54. package/src/models/ClusterRequirementsRequest.ts +23 -29
  55. package/src/models/ClusterUtilization.ts +120 -0
  56. package/src/models/CpuOverCommitRatio.ts +55 -0
  57. package/src/models/InventoryData.ts +15 -0
  58. package/src/models/MemoryOverCommitRatio.ts +54 -0
  59. package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
  60. package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
  61. package/src/models/index.ts +5 -0
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClusterUtilization
20
+ */
21
+ export interface ClusterUtilization {
22
+ /**
23
+ * Average CPU utilization percentage (0-100)
24
+ * @type {number}
25
+ * @memberof ClusterUtilization
26
+ */
27
+ cpuAvg: number;
28
+ /**
29
+ * 95th percentile CPU utilization percentage (0-100)
30
+ * @type {number}
31
+ * @memberof ClusterUtilization
32
+ */
33
+ cpuP95: number;
34
+ /**
35
+ * Maximum CPU utilization percentage (0-100)
36
+ * @type {number}
37
+ * @memberof ClusterUtilization
38
+ */
39
+ cpuMax: number;
40
+ /**
41
+ * Average memory utilization percentage (0-100)
42
+ * @type {number}
43
+ * @memberof ClusterUtilization
44
+ */
45
+ memAvg: number;
46
+ /**
47
+ * 95th percentile memory utilization percentage (0-100)
48
+ * @type {number}
49
+ * @memberof ClusterUtilization
50
+ */
51
+ memP95: number;
52
+ /**
53
+ * Maximum memory utilization percentage (0-100)
54
+ * @type {number}
55
+ * @memberof ClusterUtilization
56
+ */
57
+ memMax: number;
58
+ /**
59
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
60
+ * @type {number}
61
+ * @memberof ClusterUtilization
62
+ */
63
+ confidence: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ClusterUtilization interface.
68
+ */
69
+ export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
70
+ if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined)) return false;
71
+ if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined)) return false;
72
+ if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined)) return false;
73
+ if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined)) return false;
74
+ if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined)) return false;
75
+ if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined)) return false;
76
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function ClusterUtilizationFromJSON(json: any): ClusterUtilization {
81
+ return ClusterUtilizationFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'cpuAvg': json['cpu_avg'],
91
+ 'cpuP95': json['cpu_p95'],
92
+ 'cpuMax': json['cpu_max'],
93
+ 'memAvg': json['mem_avg'],
94
+ 'memP95': json['mem_p95'],
95
+ 'memMax': json['mem_max'],
96
+ 'confidence': json['confidence'],
97
+ };
98
+ }
99
+
100
+ export function ClusterUtilizationToJSON(json: any): ClusterUtilization {
101
+ return ClusterUtilizationToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'cpu_avg': value['cpuAvg'],
112
+ 'cpu_p95': value['cpuP95'],
113
+ 'cpu_max': value['cpuMax'],
114
+ 'mem_avg': value['memAvg'],
115
+ 'mem_p95': value['memP95'],
116
+ 'mem_max': value['memMax'],
117
+ 'confidence': value['confidence'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+
16
+ /**
17
+ * CPU over-commit ratio
18
+ * @export
19
+ */
20
+ export const CpuOverCommitRatio = {
21
+ CpuOneToOne: '1:1',
22
+ CpuOneToTwo: '1:2',
23
+ CpuOneToFour: '1:4',
24
+ CpuOneToSix: '1:6'
25
+ } as const;
26
+ export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
27
+
28
+
29
+ export function instanceOfCpuOverCommitRatio(value: any): boolean {
30
+ for (const key in CpuOverCommitRatio) {
31
+ if (Object.prototype.hasOwnProperty.call(CpuOverCommitRatio, key)) {
32
+ if (CpuOverCommitRatio[key as keyof typeof CpuOverCommitRatio] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function CpuOverCommitRatioFromJSON(json: any): CpuOverCommitRatio {
41
+ return CpuOverCommitRatioFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function CpuOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CpuOverCommitRatio {
45
+ return json as CpuOverCommitRatio;
46
+ }
47
+
48
+ export function CpuOverCommitRatioToJSON(value?: CpuOverCommitRatio | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function CpuOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): CpuOverCommitRatio {
53
+ return value as CpuOverCommitRatio;
54
+ }
55
+
@@ -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,
@@ -60,6 +67,12 @@ export interface InventoryData {
60
67
  * @memberof InventoryData
61
68
  */
62
69
  clusterFeatures?: ClusterFeatures;
70
+ /**
71
+ *
72
+ * @type {ClusterUtilization}
73
+ * @memberof InventoryData
74
+ */
75
+ clusterUtilization?: ClusterUtilization;
63
76
  /**
64
77
  *
65
78
  * @type {VMs}
@@ -95,6 +108,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
95
108
 
96
109
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
97
110
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
111
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
98
112
  'vms': VMsFromJSON(json['vms']),
99
113
  'infra': InfraFromJSON(json['infra']),
100
114
  };
@@ -113,6 +127,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
113
127
 
114
128
  'vcenter': VCenterToJSON(value['vcenter']),
115
129
  'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
130
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
116
131
  'vms': VMsToJSON(value['vms']),
117
132
  'infra': InfraToJSON(value['infra']),
118
133
  };
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+
16
+ /**
17
+ * Memory over-commit ratio
18
+ * @export
19
+ */
20
+ export const MemoryOverCommitRatio = {
21
+ MemoryOneToOne: '1:1',
22
+ MemoryOneToTwo: '1:2',
23
+ MemoryOneToFour: '1:4'
24
+ } as const;
25
+ export type MemoryOverCommitRatio = typeof MemoryOverCommitRatio[keyof typeof MemoryOverCommitRatio];
26
+
27
+
28
+ export function instanceOfMemoryOverCommitRatio(value: any): boolean {
29
+ for (const key in MemoryOverCommitRatio) {
30
+ if (Object.prototype.hasOwnProperty.call(MemoryOverCommitRatio, key)) {
31
+ if (MemoryOverCommitRatio[key as keyof typeof MemoryOverCommitRatio] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function MemoryOverCommitRatioFromJSON(json: any): MemoryOverCommitRatio {
40
+ return MemoryOverCommitRatioFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function MemoryOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio {
44
+ return json as MemoryOverCommitRatio;
45
+ }
46
+
47
+ export function MemoryOverCommitRatioToJSON(value?: MemoryOverCommitRatio | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function MemoryOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio {
52
+ return value as MemoryOverCommitRatio;
53
+ }
54
+
@@ -0,0 +1,194 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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 { CpuOverCommitRatio } from './CpuOverCommitRatio.js';
17
+ import {
18
+ CpuOverCommitRatioFromJSON,
19
+ CpuOverCommitRatioFromJSONTyped,
20
+ CpuOverCommitRatioToJSON,
21
+ CpuOverCommitRatioToJSONTyped,
22
+ } from './CpuOverCommitRatio.js';
23
+ import type { MemoryOverCommitRatio } from './MemoryOverCommitRatio.js';
24
+ import {
25
+ MemoryOverCommitRatioFromJSON,
26
+ MemoryOverCommitRatioFromJSONTyped,
27
+ MemoryOverCommitRatioToJSON,
28
+ MemoryOverCommitRatioToJSONTyped,
29
+ } from './MemoryOverCommitRatio.js';
30
+
31
+ /**
32
+ * Request payload for calculating cluster requirements with inline inventory data (no assessment required)
33
+ * @export
34
+ * @interface StandaloneClusterRequirementsRequest
35
+ */
36
+ export interface StandaloneClusterRequirementsRequest {
37
+ /**
38
+ * Total number of VMs to size for
39
+ * @type {number}
40
+ * @memberof StandaloneClusterRequirementsRequest
41
+ */
42
+ totalVMs: number;
43
+ /**
44
+ * Total CPU cores across all VMs
45
+ * @type {number}
46
+ * @memberof StandaloneClusterRequirementsRequest
47
+ */
48
+ totalCPU: number;
49
+ /**
50
+ * Total memory (GB) across all VMs
51
+ * @type {number}
52
+ * @memberof StandaloneClusterRequirementsRequest
53
+ */
54
+ totalMemory: number;
55
+ /**
56
+ * CPU over-commit ratio (e.g., "1:4")
57
+ * @type {CpuOverCommitRatio}
58
+ * @memberof StandaloneClusterRequirementsRequest
59
+ */
60
+ cpuOverCommitRatio: CpuOverCommitRatio;
61
+ /**
62
+ * Memory over-commit ratio (e.g., "1:2")
63
+ * @type {MemoryOverCommitRatio}
64
+ * @memberof StandaloneClusterRequirementsRequest
65
+ */
66
+ memoryOverCommitRatio: MemoryOverCommitRatio;
67
+ /**
68
+ * CPU cores per worker node
69
+ * @type {number}
70
+ * @memberof StandaloneClusterRequirementsRequest
71
+ */
72
+ workerNodeCPU: number;
73
+ /**
74
+ * Memory (GB) per worker node
75
+ * @type {number}
76
+ * @memberof StandaloneClusterRequirementsRequest
77
+ */
78
+ workerNodeMemory: number;
79
+ /**
80
+ * Number of CPU threads per worker node (for SMT calculation). If not provided, assumes no SMT (threads = cores). Must be >= workerNodeCPU
81
+ * @type {number}
82
+ * @memberof StandaloneClusterRequirementsRequest
83
+ */
84
+ workerNodeThreads?: number;
85
+ /**
86
+ * Allow workload scheduling on control plane nodes (default: false)
87
+ * @type {boolean}
88
+ * @memberof StandaloneClusterRequirementsRequest
89
+ */
90
+ controlPlaneSchedulable?: boolean;
91
+ /**
92
+ * CPU cores per control plane node (default: 6)
93
+ * @type {number}
94
+ * @memberof StandaloneClusterRequirementsRequest
95
+ */
96
+ controlPlaneCPU?: number;
97
+ /**
98
+ * Memory in GB per control plane node (default: 16)
99
+ * @type {number}
100
+ * @memberof StandaloneClusterRequirementsRequest
101
+ */
102
+ controlPlaneMemory?: number;
103
+ /**
104
+ * Number of control plane nodes: 1 or 3 (default: 3)
105
+ * @type {StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum}
106
+ * @memberof StandaloneClusterRequirementsRequest
107
+ */
108
+ controlPlaneNodeCount?: StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum;
109
+ /**
110
+ * If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
111
+ * @type {boolean}
112
+ * @memberof StandaloneClusterRequirementsRequest
113
+ */
114
+ hostedControlPlane?: boolean;
115
+ }
116
+
117
+
118
+ /**
119
+ * @export
120
+ */
121
+ export const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
122
+ NUMBER_1: 1,
123
+ NUMBER_3: 3
124
+ } as const;
125
+ export type StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum];
126
+
127
+
128
+ /**
129
+ * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
130
+ */
131
+ export function instanceOfStandaloneClusterRequirementsRequest(value: object): value is StandaloneClusterRequirementsRequest {
132
+ if (!('totalVMs' in value) || value['totalVMs'] === undefined) return false;
133
+ if (!('totalCPU' in value) || value['totalCPU'] === undefined) return false;
134
+ if (!('totalMemory' in value) || value['totalMemory'] === undefined) return false;
135
+ if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined) return false;
136
+ if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined) return false;
137
+ if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined) return false;
138
+ if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined) return false;
139
+ return true;
140
+ }
141
+
142
+ export function StandaloneClusterRequirementsRequestFromJSON(json: any): StandaloneClusterRequirementsRequest {
143
+ return StandaloneClusterRequirementsRequestFromJSONTyped(json, false);
144
+ }
145
+
146
+ export function StandaloneClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsRequest {
147
+ if (json == null) {
148
+ return json;
149
+ }
150
+ return {
151
+
152
+ 'totalVMs': json['totalVMs'],
153
+ 'totalCPU': json['totalCPU'],
154
+ 'totalMemory': json['totalMemory'],
155
+ 'cpuOverCommitRatio': CpuOverCommitRatioFromJSON(json['cpuOverCommitRatio']),
156
+ 'memoryOverCommitRatio': MemoryOverCommitRatioFromJSON(json['memoryOverCommitRatio']),
157
+ 'workerNodeCPU': json['workerNodeCPU'],
158
+ 'workerNodeMemory': json['workerNodeMemory'],
159
+ 'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
160
+ 'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
161
+ 'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
162
+ 'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
163
+ 'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
164
+ 'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
165
+ };
166
+ }
167
+
168
+ export function StandaloneClusterRequirementsRequestToJSON(json: any): StandaloneClusterRequirementsRequest {
169
+ return StandaloneClusterRequirementsRequestToJSONTyped(json, false);
170
+ }
171
+
172
+ export function StandaloneClusterRequirementsRequestToJSONTyped(value?: StandaloneClusterRequirementsRequest | null, ignoreDiscriminator: boolean = false): any {
173
+ if (value == null) {
174
+ return value;
175
+ }
176
+
177
+ return {
178
+
179
+ 'totalVMs': value['totalVMs'],
180
+ 'totalCPU': value['totalCPU'],
181
+ 'totalMemory': value['totalMemory'],
182
+ 'cpuOverCommitRatio': CpuOverCommitRatioToJSON(value['cpuOverCommitRatio']),
183
+ 'memoryOverCommitRatio': MemoryOverCommitRatioToJSON(value['memoryOverCommitRatio']),
184
+ 'workerNodeCPU': value['workerNodeCPU'],
185
+ 'workerNodeMemory': value['workerNodeMemory'],
186
+ 'workerNodeThreads': value['workerNodeThreads'],
187
+ 'controlPlaneSchedulable': value['controlPlaneSchedulable'],
188
+ 'controlPlaneCPU': value['controlPlaneCPU'],
189
+ 'controlPlaneMemory': value['controlPlaneMemory'],
190
+ 'controlPlaneNodeCount': value['controlPlaneNodeCount'],
191
+ 'hostedControlPlane': value['hostedControlPlane'],
192
+ };
193
+ }
194
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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 { SizingResourceConsumption } from './SizingResourceConsumption.js';
17
+ import {
18
+ SizingResourceConsumptionFromJSON,
19
+ SizingResourceConsumptionFromJSONTyped,
20
+ SizingResourceConsumptionToJSON,
21
+ SizingResourceConsumptionToJSONTyped,
22
+ } from './SizingResourceConsumption.js';
23
+ import type { ClusterSizing } from './ClusterSizing.js';
24
+ import {
25
+ ClusterSizingFromJSON,
26
+ ClusterSizingFromJSONTyped,
27
+ ClusterSizingToJSON,
28
+ ClusterSizingToJSONTyped,
29
+ } from './ClusterSizing.js';
30
+
31
+ /**
32
+ * Sizing results; omits inventoryTotals (already in the request).
33
+ * @export
34
+ * @interface StandaloneClusterRequirementsResponse
35
+ */
36
+ export interface StandaloneClusterRequirementsResponse {
37
+ /**
38
+ *
39
+ * @type {ClusterSizing}
40
+ * @memberof StandaloneClusterRequirementsResponse
41
+ */
42
+ clusterSizing: ClusterSizing;
43
+ /**
44
+ *
45
+ * @type {SizingResourceConsumption}
46
+ * @memberof StandaloneClusterRequirementsResponse
47
+ */
48
+ resourceConsumption: SizingResourceConsumption;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the StandaloneClusterRequirementsResponse interface.
53
+ */
54
+ export function instanceOfStandaloneClusterRequirementsResponse(value: object): value is StandaloneClusterRequirementsResponse {
55
+ if (!('clusterSizing' in value) || value['clusterSizing'] === undefined) return false;
56
+ if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function StandaloneClusterRequirementsResponseFromJSON(json: any): StandaloneClusterRequirementsResponse {
61
+ return StandaloneClusterRequirementsResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function StandaloneClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
71
+ 'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
72
+ };
73
+ }
74
+
75
+ export function StandaloneClusterRequirementsResponseToJSON(json: any): StandaloneClusterRequirementsResponse {
76
+ return StandaloneClusterRequirementsResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function StandaloneClusterRequirementsResponseToJSONTyped(value?: StandaloneClusterRequirementsResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
87
+ 'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
88
+ };
89
+ }
90
+
@@ -11,9 +11,11 @@ export * from './ClusterRequirementsRequest.js';
11
11
  export * from './ClusterRequirementsResponse.js';
12
12
  export * from './ClusterRequirementsStoredInput.js';
13
13
  export * from './ClusterSizing.js';
14
+ export * from './ClusterUtilization.js';
14
15
  export * from './ComplexityDiskScoreEntry.js';
15
16
  export * from './ComplexityOSNameEntry.js';
16
17
  export * from './ComplexityOSScoreEntry.js';
18
+ export * from './CpuOverCommitRatio.js';
17
19
  export * from './Customer.js';
18
20
  export * from './Datastore.js';
19
21
  export * from './DiskSizeTierSummary.js';
@@ -38,6 +40,7 @@ export * from './Label.js';
38
40
  export * from './Member.js';
39
41
  export * from './MemberCreate.js';
40
42
  export * from './MemberUpdate.js';
43
+ export * from './MemoryOverCommitRatio.js';
41
44
  export * from './MigrationComplexityRequest.js';
42
45
  export * from './MigrationComplexityResponse.js';
43
46
  export * from './MigrationEstimationByComplexityResponse.js';
@@ -64,6 +67,8 @@ export * from './Source.js';
64
67
  export * from './SourceCreate.js';
65
68
  export * from './SourceInfra.js';
66
69
  export * from './SourceUpdate.js';
70
+ export * from './StandaloneClusterRequirementsRequest.js';
71
+ export * from './StandaloneClusterRequirementsResponse.js';
67
72
  export * from './Status.js';
68
73
  export * from './UpdateInventory.js';
69
74
  export * from './VCenter.js';