@openshift-migration-advisor/planner-sdk 0.13.3 → 0.13.4-db4c7857bd8f
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 -3
- package/dist/apis/SizingApi.d.ts +61 -0
- package/dist/apis/SizingApi.js +74 -0
- package/dist/apis/SourceApi.d.ts +0 -30
- package/dist/apis/SourceApi.js +0 -36
- 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/SourceApi.d.ts +0 -30
- package/dist/esm/apis/SourceApi.js +0 -36
- 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/SourceApi.md +0 -62
- 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/SourceApi.ts +0 -62
- 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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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 ClusterFeatures
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterFeatures {
|
|
18
|
+
/**
|
|
19
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClusterFeatures
|
|
22
|
+
*/
|
|
23
|
+
drsEnabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* DRS automation mode for the cluster
|
|
26
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
27
|
+
* @memberof ClusterFeatures
|
|
28
|
+
*/
|
|
29
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Storage DRS is enabled for this cluster
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClusterFeatures
|
|
34
|
+
*/
|
|
35
|
+
storageDrsEnabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ClusterFeaturesDrsModeEnum: {
|
|
41
|
+
readonly FullyAutomated: "Fully Automated";
|
|
42
|
+
readonly PartiallyAutomated: "Partially Automated";
|
|
43
|
+
readonly Manual: "Manual";
|
|
44
|
+
readonly None: "None";
|
|
45
|
+
};
|
|
46
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
|
|
51
|
+
export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
|
|
52
|
+
export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
|
|
53
|
+
export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
|
|
54
|
+
export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ClusterFeaturesDrsModeEnum = {
|
|
18
|
+
FullyAutomated: 'Fully Automated',
|
|
19
|
+
PartiallyAutomated: 'Partially Automated',
|
|
20
|
+
Manual: 'Manual',
|
|
21
|
+
None: 'None'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfClusterFeatures(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ClusterFeaturesFromJSON(json) {
|
|
30
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
38
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
39
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ClusterFeaturesToJSON(json) {
|
|
43
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'drsEnabled': value['drsEnabled'],
|
|
51
|
+
'drsMode': value['drsMode'],
|
|
52
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CpuOverCommitRatio } from './CpuOverCommitRatio.js';
|
|
13
|
+
import type { MemoryOverCommitRatio } from './MemoryOverCommitRatio.js';
|
|
12
14
|
/**
|
|
13
15
|
* Request payload for calculating cluster requirements
|
|
14
16
|
* @export
|
|
@@ -23,16 +25,16 @@ export interface ClusterRequirementsRequest {
|
|
|
23
25
|
clusterId: string;
|
|
24
26
|
/**
|
|
25
27
|
* CPU over-commit ratio (e.g., "1:4")
|
|
26
|
-
* @type {
|
|
28
|
+
* @type {CpuOverCommitRatio}
|
|
27
29
|
* @memberof ClusterRequirementsRequest
|
|
28
30
|
*/
|
|
29
|
-
cpuOverCommitRatio:
|
|
31
|
+
cpuOverCommitRatio: CpuOverCommitRatio;
|
|
30
32
|
/**
|
|
31
33
|
* Memory over-commit ratio (e.g., "1:2")
|
|
32
|
-
* @type {
|
|
34
|
+
* @type {MemoryOverCommitRatio}
|
|
33
35
|
* @memberof ClusterRequirementsRequest
|
|
34
36
|
*/
|
|
35
|
-
memoryOverCommitRatio:
|
|
37
|
+
memoryOverCommitRatio: MemoryOverCommitRatio;
|
|
36
38
|
/**
|
|
37
39
|
* CPU cores per worker node
|
|
38
40
|
* @type {number}
|
|
@@ -82,25 +84,6 @@ export interface ClusterRequirementsRequest {
|
|
|
82
84
|
*/
|
|
83
85
|
hostedControlPlane?: boolean;
|
|
84
86
|
}
|
|
85
|
-
/**
|
|
86
|
-
* @export
|
|
87
|
-
*/
|
|
88
|
-
export declare const ClusterRequirementsRequestCpuOverCommitRatioEnum: {
|
|
89
|
-
readonly CpuOneToOne: "1:1";
|
|
90
|
-
readonly CpuOneToTwo: "1:2";
|
|
91
|
-
readonly CpuOneToFour: "1:4";
|
|
92
|
-
readonly CpuOneToSix: "1:6";
|
|
93
|
-
};
|
|
94
|
-
export type ClusterRequirementsRequestCpuOverCommitRatioEnum = typeof ClusterRequirementsRequestCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestCpuOverCommitRatioEnum];
|
|
95
|
-
/**
|
|
96
|
-
* @export
|
|
97
|
-
*/
|
|
98
|
-
export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
99
|
-
readonly MemoryOneToOne: "1:1";
|
|
100
|
-
readonly MemoryOneToTwo: "1:2";
|
|
101
|
-
readonly MemoryOneToFour: "1:4";
|
|
102
|
-
};
|
|
103
|
-
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
104
87
|
/**
|
|
105
88
|
* @export
|
|
106
89
|
*/
|
|
@@ -11,23 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
export const ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
18
|
-
CpuOneToOne: '1:1',
|
|
19
|
-
CpuOneToTwo: '1:2',
|
|
20
|
-
CpuOneToFour: '1:4',
|
|
21
|
-
CpuOneToSix: '1:6'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
27
|
-
MemoryOneToOne: '1:1',
|
|
28
|
-
MemoryOneToTwo: '1:2',
|
|
29
|
-
MemoryOneToFour: '1:4'
|
|
30
|
-
};
|
|
14
|
+
import { CpuOverCommitRatioFromJSON, CpuOverCommitRatioToJSON, } from './CpuOverCommitRatio.js';
|
|
15
|
+
import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './MemoryOverCommitRatio.js';
|
|
31
16
|
/**
|
|
32
17
|
* @export
|
|
33
18
|
*/
|
|
@@ -60,8 +45,8 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
60
45
|
}
|
|
61
46
|
return {
|
|
62
47
|
'clusterId': json['clusterId'],
|
|
63
|
-
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
64
|
-
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
48
|
+
'cpuOverCommitRatio': CpuOverCommitRatioFromJSON(json['cpuOverCommitRatio']),
|
|
49
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioFromJSON(json['memoryOverCommitRatio']),
|
|
65
50
|
'workerNodeCPU': json['workerNodeCPU'],
|
|
66
51
|
'workerNodeMemory': json['workerNodeMemory'],
|
|
67
52
|
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
@@ -81,8 +66,8 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
81
66
|
}
|
|
82
67
|
return {
|
|
83
68
|
'clusterId': value['clusterId'],
|
|
84
|
-
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
85
|
-
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
69
|
+
'cpuOverCommitRatio': CpuOverCommitRatioToJSON(value['cpuOverCommitRatio']),
|
|
70
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioToJSON(value['memoryOverCommitRatio']),
|
|
86
71
|
'workerNodeCPU': value['workerNodeCPU'],
|
|
87
72
|
'workerNodeMemory': value['workerNodeMemory'],
|
|
88
73
|
'workerNodeThreads': value['workerNodeThreads'],
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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 ClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* Average CPU utilization percentage (0-100)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cpuAvg: number;
|
|
24
|
+
/**
|
|
25
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cpuP95: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum CPU utilization percentage (0-100)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpuMax: number;
|
|
36
|
+
/**
|
|
37
|
+
* Average memory utilization percentage (0-100)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
memAvg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterUtilization
|
|
46
|
+
*/
|
|
47
|
+
memP95: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum memory utilization percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterUtilization
|
|
52
|
+
*/
|
|
53
|
+
memMax: number;
|
|
54
|
+
/**
|
|
55
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ClusterUtilization
|
|
58
|
+
*/
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
|
|
65
|
+
export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
|
|
66
|
+
export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
|
|
67
|
+
export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
|
|
68
|
+
export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClusterUtilization(value) {
|
|
18
|
+
if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
|
|
25
|
+
return false;
|
|
26
|
+
if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ClusterUtilizationFromJSON(json) {
|
|
35
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'cpuAvg': json['cpu_avg'],
|
|
43
|
+
'cpuP95': json['cpu_p95'],
|
|
44
|
+
'cpuMax': json['cpu_max'],
|
|
45
|
+
'memAvg': json['mem_avg'],
|
|
46
|
+
'memP95': json['mem_p95'],
|
|
47
|
+
'memMax': json['mem_max'],
|
|
48
|
+
'confidence': json['confidence'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ClusterUtilizationToJSON(json) {
|
|
52
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'cpu_avg': value['cpuAvg'],
|
|
60
|
+
'cpu_p95': value['cpuP95'],
|
|
61
|
+
'cpu_max': value['cpuMax'],
|
|
62
|
+
'mem_avg': value['memAvg'],
|
|
63
|
+
'mem_p95': value['memP95'],
|
|
64
|
+
'mem_max': value['memMax'],
|
|
65
|
+
'confidence': value['confidence'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* CPU over-commit ratio
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const CpuOverCommitRatio: {
|
|
17
|
+
readonly CpuOneToOne: "1:1";
|
|
18
|
+
readonly CpuOneToTwo: "1:2";
|
|
19
|
+
readonly CpuOneToFour: "1:4";
|
|
20
|
+
readonly CpuOneToSix: "1:6";
|
|
21
|
+
};
|
|
22
|
+
export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
|
|
23
|
+
export declare function instanceOfCpuOverCommitRatio(value: any): boolean;
|
|
24
|
+
export declare function CpuOverCommitRatioFromJSON(json: any): CpuOverCommitRatio;
|
|
25
|
+
export declare function CpuOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
|
|
26
|
+
export declare function CpuOverCommitRatioToJSON(value?: CpuOverCommitRatio | null): any;
|
|
27
|
+
export declare function CpuOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): CpuOverCommitRatio;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* CPU over-commit ratio
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CpuOverCommitRatio = {
|
|
19
|
+
CpuOneToOne: '1:1',
|
|
20
|
+
CpuOneToTwo: '1:2',
|
|
21
|
+
CpuOneToFour: '1:4',
|
|
22
|
+
CpuOneToSix: '1:6'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfCpuOverCommitRatio(value) {
|
|
25
|
+
for (const key in CpuOverCommitRatio) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(CpuOverCommitRatio, key)) {
|
|
27
|
+
if (CpuOverCommitRatio[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function CpuOverCommitRatioFromJSON(json) {
|
|
35
|
+
return CpuOverCommitRatioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CpuOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function CpuOverCommitRatioToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function CpuOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -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}
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
|
+
import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
|
|
16
17
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
18
|
+
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the InventoryData interface.
|
|
19
21
|
*/
|
|
@@ -33,6 +35,8 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
37
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
38
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
39
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
36
40
|
'vms': VMsFromJSON(json['vms']),
|
|
37
41
|
'infra': InfraFromJSON(json['infra']),
|
|
38
42
|
};
|
|
@@ -46,6 +50,8 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
53
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
54
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
49
55
|
'vms': VMsToJSON(value['vms']),
|
|
50
56
|
'infra': InfraToJSON(value['infra']),
|
|
51
57
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* Memory over-commit ratio
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const MemoryOverCommitRatio: {
|
|
17
|
+
readonly MemoryOneToOne: "1:1";
|
|
18
|
+
readonly MemoryOneToTwo: "1:2";
|
|
19
|
+
readonly MemoryOneToFour: "1:4";
|
|
20
|
+
};
|
|
21
|
+
export type MemoryOverCommitRatio = typeof MemoryOverCommitRatio[keyof typeof MemoryOverCommitRatio];
|
|
22
|
+
export declare function instanceOfMemoryOverCommitRatio(value: any): boolean;
|
|
23
|
+
export declare function MemoryOverCommitRatioFromJSON(json: any): MemoryOverCommitRatio;
|
|
24
|
+
export declare function MemoryOverCommitRatioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
|
|
25
|
+
export declare function MemoryOverCommitRatioToJSON(value?: MemoryOverCommitRatio | null): any;
|
|
26
|
+
export declare function MemoryOverCommitRatioToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryOverCommitRatio;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Memory over-commit ratio
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const MemoryOverCommitRatio = {
|
|
19
|
+
MemoryOneToOne: '1:1',
|
|
20
|
+
MemoryOneToTwo: '1:2',
|
|
21
|
+
MemoryOneToFour: '1:4'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfMemoryOverCommitRatio(value) {
|
|
24
|
+
for (const key in MemoryOverCommitRatio) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(MemoryOverCommitRatio, key)) {
|
|
26
|
+
if (MemoryOverCommitRatio[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function MemoryOverCommitRatioFromJSON(json) {
|
|
34
|
+
return MemoryOverCommitRatioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function MemoryOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function MemoryOverCommitRatioToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function MemoryOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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 { CpuOverCommitRatio } from './CpuOverCommitRatio.js';
|
|
13
|
+
import type { MemoryOverCommitRatio } from './MemoryOverCommitRatio.js';
|
|
14
|
+
/**
|
|
15
|
+
* Request payload for calculating cluster requirements with inline inventory data (no assessment required)
|
|
16
|
+
* @export
|
|
17
|
+
* @interface StandaloneClusterRequirementsRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface StandaloneClusterRequirementsRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Total number of VMs to size for
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
24
|
+
*/
|
|
25
|
+
totalVMs: number;
|
|
26
|
+
/**
|
|
27
|
+
* Total CPU cores across all VMs
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
30
|
+
*/
|
|
31
|
+
totalCPU: number;
|
|
32
|
+
/**
|
|
33
|
+
* Total memory (GB) across all VMs
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
36
|
+
*/
|
|
37
|
+
totalMemory: number;
|
|
38
|
+
/**
|
|
39
|
+
* CPU over-commit ratio (e.g., "1:4")
|
|
40
|
+
* @type {CpuOverCommitRatio}
|
|
41
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
42
|
+
*/
|
|
43
|
+
cpuOverCommitRatio: CpuOverCommitRatio;
|
|
44
|
+
/**
|
|
45
|
+
* Memory over-commit ratio (e.g., "1:2")
|
|
46
|
+
* @type {MemoryOverCommitRatio}
|
|
47
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
48
|
+
*/
|
|
49
|
+
memoryOverCommitRatio: MemoryOverCommitRatio;
|
|
50
|
+
/**
|
|
51
|
+
* CPU cores per worker node
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
54
|
+
*/
|
|
55
|
+
workerNodeCPU: number;
|
|
56
|
+
/**
|
|
57
|
+
* Memory (GB) per worker node
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
60
|
+
*/
|
|
61
|
+
workerNodeMemory: number;
|
|
62
|
+
/**
|
|
63
|
+
* Number of CPU threads per worker node (for SMT calculation). If not provided, assumes no SMT (threads = cores). Must be >= workerNodeCPU
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
66
|
+
*/
|
|
67
|
+
workerNodeThreads?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Allow workload scheduling on control plane nodes (default: false)
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
72
|
+
*/
|
|
73
|
+
controlPlaneSchedulable?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* CPU cores per control plane node (default: 6)
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
78
|
+
*/
|
|
79
|
+
controlPlaneCPU?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Memory in GB per control plane node (default: 16)
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
84
|
+
*/
|
|
85
|
+
controlPlaneMemory?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Number of control plane nodes: 1 or 3 (default: 3)
|
|
88
|
+
* @type {StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
89
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
90
|
+
*/
|
|
91
|
+
controlPlaneNodeCount?: StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
92
|
+
/**
|
|
93
|
+
* If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
96
|
+
*/
|
|
97
|
+
hostedControlPlane?: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum: {
|
|
103
|
+
readonly NUMBER_1: 1;
|
|
104
|
+
readonly NUMBER_3: 3;
|
|
105
|
+
};
|
|
106
|
+
export type StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the StandaloneClusterRequirementsRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfStandaloneClusterRequirementsRequest(value: object): value is StandaloneClusterRequirementsRequest;
|
|
111
|
+
export declare function StandaloneClusterRequirementsRequestFromJSON(json: any): StandaloneClusterRequirementsRequest;
|
|
112
|
+
export declare function StandaloneClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsRequest;
|
|
113
|
+
export declare function StandaloneClusterRequirementsRequestToJSON(json: any): StandaloneClusterRequirementsRequest;
|
|
114
|
+
export declare function StandaloneClusterRequirementsRequestToJSONTyped(value?: StandaloneClusterRequirementsRequest | null, ignoreDiscriminator?: boolean): any;
|