@openshift-migration-advisor/planner-sdk 0.13.3 → 0.13.4-ec47a336a620
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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +9 -2
- package/dist/apis/SizingApi.d.ts +61 -0
- package/dist/apis/SizingApi.js +74 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/SizingApi.d.ts +61 -0
- package/dist/esm/apis/SizingApi.js +70 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/esm/models/CpuOverCommitRatio.js +45 -0
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/models/ClusterRequirementsRequest.js +7 -22
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/models/CpuOverCommitRatio.js +53 -0
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/models/MemoryOverCommitRatio.js +52 -0
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
- package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/AccountApi.md +9 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterRequirementsRequest.md +2 -2
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CpuOverCommitRatio.md +33 -0
- package/docs/ImageApi.md +2 -0
- package/docs/InventoryData.md +4 -0
- package/docs/MemoryOverCommitRatio.md +33 -0
- package/docs/SizingApi.md +80 -0
- package/docs/StandaloneClusterRequirementsRequest.md +59 -0
- package/docs/StandaloneClusterRequirementsResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/SizingApi.ts +114 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterRequirementsRequest.ts +23 -29
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CpuOverCommitRatio.ts +55 -0
- package/src/models/InventoryData.ts +30 -0
- package/src/models/MemoryOverCommitRatio.ts +54 -0
- package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
- package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
- package/src/models/index.ts +6 -0
|
@@ -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
|
};
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -6,13 +6,16 @@ export * from './Assessment.js';
|
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
8
|
export * from './AssessmentUpdate.js';
|
|
9
|
+
export * from './ClusterFeatures.js';
|
|
9
10
|
export * from './ClusterRequirementsRequest.js';
|
|
10
11
|
export * from './ClusterRequirementsResponse.js';
|
|
11
12
|
export * from './ClusterRequirementsStoredInput.js';
|
|
12
13
|
export * from './ClusterSizing.js';
|
|
14
|
+
export * from './ClusterUtilization.js';
|
|
13
15
|
export * from './ComplexityDiskScoreEntry.js';
|
|
14
16
|
export * from './ComplexityOSNameEntry.js';
|
|
15
17
|
export * from './ComplexityOSScoreEntry.js';
|
|
18
|
+
export * from './CpuOverCommitRatio.js';
|
|
16
19
|
export * from './Customer.js';
|
|
17
20
|
export * from './Datastore.js';
|
|
18
21
|
export * from './DiskSizeTierSummary.js';
|
|
@@ -37,6 +40,7 @@ export * from './Label.js';
|
|
|
37
40
|
export * from './Member.js';
|
|
38
41
|
export * from './MemberCreate.js';
|
|
39
42
|
export * from './MemberUpdate.js';
|
|
43
|
+
export * from './MemoryOverCommitRatio.js';
|
|
40
44
|
export * from './MigrationComplexityRequest.js';
|
|
41
45
|
export * from './MigrationComplexityResponse.js';
|
|
42
46
|
export * from './MigrationEstimationByComplexityResponse.js';
|
|
@@ -63,6 +67,8 @@ export * from './Source.js';
|
|
|
63
67
|
export * from './SourceCreate.js';
|
|
64
68
|
export * from './SourceInfra.js';
|
|
65
69
|
export * from './SourceUpdate.js';
|
|
70
|
+
export * from './StandaloneClusterRequirementsRequest.js';
|
|
71
|
+
export * from './StandaloneClusterRequirementsResponse.js';
|
|
66
72
|
export * from './Status.js';
|
|
67
73
|
export * from './UpdateInventory.js';
|
|
68
74
|
export * from './VCenter.js';
|