@openshift-migration-advisor/planner-sdk 0.13.2 → 0.13.3-4f3d8bb515ec
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 +12 -0
- package/README.md +8 -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/CpuOverCommitRatio.d.ts +27 -0
- package/dist/esm/models/CpuOverCommitRatio.js +45 -0
- package/dist/esm/models/Inventory.d.ts +6 -0
- package/dist/esm/models/Inventory.js +3 -1
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/JobStatus.d.ts +3 -3
- package/dist/esm/models/JobStatus.js +3 -3
- 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 +5 -0
- package/dist/esm/models/index.js +5 -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/CpuOverCommitRatio.d.ts +27 -0
- package/dist/models/CpuOverCommitRatio.js +53 -0
- package/dist/models/Inventory.d.ts +6 -0
- package/dist/models/Inventory.js +3 -1
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/JobStatus.d.ts +3 -3
- package/dist/models/JobStatus.js +3 -3
- 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 +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AccountApi.md +9 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterRequirementsRequest.md +2 -2
- package/docs/CpuOverCommitRatio.md +33 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/JobStatus.md +1 -1
- 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/CpuOverCommitRatio.ts +55 -0
- package/src/models/Inventory.ts +9 -1
- package/src/models/InventoryData.ts +15 -0
- package/src/models/JobStatus.ts +3 -3
- 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 +5 -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,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClusterFeaturesDrsModeEnum = void 0;
|
|
17
|
+
exports.instanceOfClusterFeatures = instanceOfClusterFeatures;
|
|
18
|
+
exports.ClusterFeaturesFromJSON = ClusterFeaturesFromJSON;
|
|
19
|
+
exports.ClusterFeaturesFromJSONTyped = ClusterFeaturesFromJSONTyped;
|
|
20
|
+
exports.ClusterFeaturesToJSON = ClusterFeaturesToJSON;
|
|
21
|
+
exports.ClusterFeaturesToJSONTyped = ClusterFeaturesToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ClusterFeaturesDrsModeEnum = {
|
|
26
|
+
FullyAutomated: 'Fully Automated',
|
|
27
|
+
PartiallyAutomated: 'Partially Automated',
|
|
28
|
+
Manual: 'Manual',
|
|
29
|
+
None: 'None'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfClusterFeatures(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ClusterFeaturesFromJSON(json) {
|
|
38
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
46
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
47
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ClusterFeaturesToJSON(json) {
|
|
51
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'drsEnabled': value['drsEnabled'],
|
|
59
|
+
'drsMode': value['drsMode'],
|
|
60
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -13,29 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum =
|
|
16
|
+
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = void 0;
|
|
17
17
|
exports.instanceOfClusterRequirementsRequest = instanceOfClusterRequirementsRequest;
|
|
18
18
|
exports.ClusterRequirementsRequestFromJSON = ClusterRequirementsRequestFromJSON;
|
|
19
19
|
exports.ClusterRequirementsRequestFromJSONTyped = ClusterRequirementsRequestFromJSONTyped;
|
|
20
20
|
exports.ClusterRequirementsRequestToJSON = ClusterRequirementsRequestToJSON;
|
|
21
21
|
exports.ClusterRequirementsRequestToJSONTyped = ClusterRequirementsRequestToJSONTyped;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
26
|
-
CpuOneToOne: '1:1',
|
|
27
|
-
CpuOneToTwo: '1:2',
|
|
28
|
-
CpuOneToFour: '1:4',
|
|
29
|
-
CpuOneToSix: '1:6'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
35
|
-
MemoryOneToOne: '1:1',
|
|
36
|
-
MemoryOneToTwo: '1:2',
|
|
37
|
-
MemoryOneToFour: '1:4'
|
|
38
|
-
};
|
|
22
|
+
const CpuOverCommitRatio_js_1 = require("./CpuOverCommitRatio.js");
|
|
23
|
+
const MemoryOverCommitRatio_js_1 = require("./MemoryOverCommitRatio.js");
|
|
39
24
|
/**
|
|
40
25
|
* @export
|
|
41
26
|
*/
|
|
@@ -68,8 +53,8 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
53
|
}
|
|
69
54
|
return {
|
|
70
55
|
'clusterId': json['clusterId'],
|
|
71
|
-
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
72
|
-
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
56
|
+
'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioFromJSON)(json['cpuOverCommitRatio']),
|
|
57
|
+
'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioFromJSON)(json['memoryOverCommitRatio']),
|
|
73
58
|
'workerNodeCPU': json['workerNodeCPU'],
|
|
74
59
|
'workerNodeMemory': json['workerNodeMemory'],
|
|
75
60
|
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
@@ -89,8 +74,8 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
89
74
|
}
|
|
90
75
|
return {
|
|
91
76
|
'clusterId': value['clusterId'],
|
|
92
|
-
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
93
|
-
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
77
|
+
'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioToJSON)(value['cpuOverCommitRatio']),
|
|
78
|
+
'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioToJSON)(value['memoryOverCommitRatio']),
|
|
94
79
|
'workerNodeCPU': value['workerNodeCPU'],
|
|
95
80
|
'workerNodeMemory': value['workerNodeMemory'],
|
|
96
81
|
'workerNodeThreads': value['workerNodeThreads'],
|
|
@@ -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,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CpuOverCommitRatio = void 0;
|
|
17
|
+
exports.instanceOfCpuOverCommitRatio = instanceOfCpuOverCommitRatio;
|
|
18
|
+
exports.CpuOverCommitRatioFromJSON = CpuOverCommitRatioFromJSON;
|
|
19
|
+
exports.CpuOverCommitRatioFromJSONTyped = CpuOverCommitRatioFromJSONTyped;
|
|
20
|
+
exports.CpuOverCommitRatioToJSON = CpuOverCommitRatioToJSON;
|
|
21
|
+
exports.CpuOverCommitRatioToJSONTyped = CpuOverCommitRatioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* CPU over-commit ratio
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CpuOverCommitRatio = {
|
|
27
|
+
CpuOneToOne: '1:1',
|
|
28
|
+
CpuOneToTwo: '1:2',
|
|
29
|
+
CpuOneToFour: '1:4',
|
|
30
|
+
CpuOneToSix: '1:6'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfCpuOverCommitRatio(value) {
|
|
33
|
+
for (const key in exports.CpuOverCommitRatio) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.CpuOverCommitRatio, key)) {
|
|
35
|
+
if (exports.CpuOverCommitRatio[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function CpuOverCommitRatioFromJSON(json) {
|
|
43
|
+
return CpuOverCommitRatioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CpuOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function CpuOverCommitRatioToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function CpuOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface Inventory {
|
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
24
|
vcenterId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
package/dist/models/Inventory.js
CHANGED
|
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
|
|
|
24
24
|
* Check if a given object implements the Inventory interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfInventory(value) {
|
|
27
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
27
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined))
|
|
28
28
|
return false;
|
|
29
29
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -39,6 +39,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'vcenterId': json['vcenter_id'],
|
|
42
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
42
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
43
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
44
45
|
};
|
|
@@ -52,6 +53,7 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
55
|
'vcenter_id': value['vcenterId'],
|
|
56
|
+
'vcenter_version': value['vcenterVersion'],
|
|
55
57
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
56
58
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
57
59
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
14
|
import type { VMs } from './VMs.js';
|
|
15
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -24,6 +25,12 @@ export interface InventoryData {
|
|
|
24
25
|
* @memberof InventoryData
|
|
25
26
|
*/
|
|
26
27
|
vcenter?: VCenter;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ClusterFeatures}
|
|
31
|
+
* @memberof InventoryData
|
|
32
|
+
*/
|
|
33
|
+
clusterFeatures?: ClusterFeatures;
|
|
27
34
|
/**
|
|
28
35
|
*
|
|
29
36
|
* @type {VMs}
|
|
@@ -21,6 +21,7 @@ exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
|
|
|
21
21
|
const VCenter_js_1 = require("./VCenter.js");
|
|
22
22
|
const Infra_js_1 = require("./Infra.js");
|
|
23
23
|
const VMs_js_1 = require("./VMs.js");
|
|
24
|
+
const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the InventoryData interface.
|
|
26
27
|
*/
|
|
@@ -40,6 +41,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
|
|
44
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
|
|
43
45
|
'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
|
|
44
46
|
'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
|
|
45
47
|
};
|
|
@@ -53,6 +55,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
|
|
58
|
+
'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
|
|
56
59
|
'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
|
|
57
60
|
'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
|
|
58
61
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Job status:
|
|
14
14
|
* * `pending` - Job is queued
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
15
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
16
|
+
* * `parsing` - Building inventory from validated data
|
|
17
17
|
* * `completed` - Assessment created successfully
|
|
18
18
|
* * `failed` - Job failed with error
|
|
19
19
|
* * `cancelled` - Job was cancelled
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const JobStatus: {
|
|
24
24
|
readonly Pending: "pending";
|
|
25
|
-
readonly Parsing: "parsing";
|
|
26
25
|
readonly Validating: "validating";
|
|
26
|
+
readonly Parsing: "parsing";
|
|
27
27
|
readonly Completed: "completed";
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly Cancelled: "cancelled";
|
package/dist/models/JobStatus.js
CHANGED
|
@@ -22,8 +22,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
22
22
|
/**
|
|
23
23
|
* Job status:
|
|
24
24
|
* * `pending` - Job is queued
|
|
25
|
-
* * `
|
|
26
|
-
* * `
|
|
25
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
26
|
+
* * `parsing` - Building inventory from validated data
|
|
27
27
|
* * `completed` - Assessment created successfully
|
|
28
28
|
* * `failed` - Job failed with error
|
|
29
29
|
* * `cancelled` - Job was cancelled
|
|
@@ -32,8 +32,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
32
32
|
*/
|
|
33
33
|
exports.JobStatus = {
|
|
34
34
|
Pending: 'pending',
|
|
35
|
-
Parsing: 'parsing',
|
|
36
35
|
Validating: 'validating',
|
|
36
|
+
Parsing: 'parsing',
|
|
37
37
|
Completed: 'completed',
|
|
38
38
|
Failed: 'failed',
|
|
39
39
|
Cancelled: 'cancelled'
|
|
@@ -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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MemoryOverCommitRatio = void 0;
|
|
17
|
+
exports.instanceOfMemoryOverCommitRatio = instanceOfMemoryOverCommitRatio;
|
|
18
|
+
exports.MemoryOverCommitRatioFromJSON = MemoryOverCommitRatioFromJSON;
|
|
19
|
+
exports.MemoryOverCommitRatioFromJSONTyped = MemoryOverCommitRatioFromJSONTyped;
|
|
20
|
+
exports.MemoryOverCommitRatioToJSON = MemoryOverCommitRatioToJSON;
|
|
21
|
+
exports.MemoryOverCommitRatioToJSONTyped = MemoryOverCommitRatioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Memory over-commit ratio
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MemoryOverCommitRatio = {
|
|
27
|
+
MemoryOneToOne: '1:1',
|
|
28
|
+
MemoryOneToTwo: '1:2',
|
|
29
|
+
MemoryOneToFour: '1:4'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfMemoryOverCommitRatio(value) {
|
|
32
|
+
for (const key in exports.MemoryOverCommitRatio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.MemoryOverCommitRatio, key)) {
|
|
34
|
+
if (exports.MemoryOverCommitRatio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function MemoryOverCommitRatioFromJSON(json) {
|
|
42
|
+
return MemoryOverCommitRatioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MemoryOverCommitRatioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function MemoryOverCommitRatioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function MemoryOverCommitRatioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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;
|