@openshift-migration-advisor/planner-sdk 0.13.3 → 0.13.4
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/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
|
@@ -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;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = void 0;
|
|
17
|
+
exports.instanceOfStandaloneClusterRequirementsRequest = instanceOfStandaloneClusterRequirementsRequest;
|
|
18
|
+
exports.StandaloneClusterRequirementsRequestFromJSON = StandaloneClusterRequirementsRequestFromJSON;
|
|
19
|
+
exports.StandaloneClusterRequirementsRequestFromJSONTyped = StandaloneClusterRequirementsRequestFromJSONTyped;
|
|
20
|
+
exports.StandaloneClusterRequirementsRequestToJSON = StandaloneClusterRequirementsRequestToJSON;
|
|
21
|
+
exports.StandaloneClusterRequirementsRequestToJSONTyped = StandaloneClusterRequirementsRequestToJSONTyped;
|
|
22
|
+
const CpuOverCommitRatio_js_1 = require("./CpuOverCommitRatio.js");
|
|
23
|
+
const MemoryOverCommitRatio_js_1 = require("./MemoryOverCommitRatio.js");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
28
|
+
NUMBER_1: 1,
|
|
29
|
+
NUMBER_3: 3
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the StandaloneClusterRequirementsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfStandaloneClusterRequirementsRequest(value) {
|
|
35
|
+
if (!('totalVMs' in value) || value['totalVMs'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalCPU' in value) || value['totalCPU'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('totalMemory' in value) || value['totalMemory'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function StandaloneClusterRequirementsRequestFromJSON(json) {
|
|
52
|
+
return StandaloneClusterRequirementsRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'totalVMs': json['totalVMs'],
|
|
60
|
+
'totalCPU': json['totalCPU'],
|
|
61
|
+
'totalMemory': json['totalMemory'],
|
|
62
|
+
'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioFromJSON)(json['cpuOverCommitRatio']),
|
|
63
|
+
'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioFromJSON)(json['memoryOverCommitRatio']),
|
|
64
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
65
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
66
|
+
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
67
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
68
|
+
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
69
|
+
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
70
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
71
|
+
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function StandaloneClusterRequirementsRequestToJSON(json) {
|
|
75
|
+
return StandaloneClusterRequirementsRequestToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'totalVMs': value['totalVMs'],
|
|
83
|
+
'totalCPU': value['totalCPU'],
|
|
84
|
+
'totalMemory': value['totalMemory'],
|
|
85
|
+
'cpuOverCommitRatio': (0, CpuOverCommitRatio_js_1.CpuOverCommitRatioToJSON)(value['cpuOverCommitRatio']),
|
|
86
|
+
'memoryOverCommitRatio': (0, MemoryOverCommitRatio_js_1.MemoryOverCommitRatioToJSON)(value['memoryOverCommitRatio']),
|
|
87
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
88
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
89
|
+
'workerNodeThreads': value['workerNodeThreads'],
|
|
90
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
91
|
+
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
92
|
+
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
93
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
94
|
+
'hostedControlPlane': value['hostedControlPlane'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { SizingResourceConsumption } from './SizingResourceConsumption.js';
|
|
13
|
+
import type { ClusterSizing } from './ClusterSizing.js';
|
|
14
|
+
/**
|
|
15
|
+
* Sizing results; omits inventoryTotals (already in the request).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface StandaloneClusterRequirementsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface StandaloneClusterRequirementsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ClusterSizing}
|
|
23
|
+
* @memberof StandaloneClusterRequirementsResponse
|
|
24
|
+
*/
|
|
25
|
+
clusterSizing: ClusterSizing;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SizingResourceConsumption}
|
|
29
|
+
* @memberof StandaloneClusterRequirementsResponse
|
|
30
|
+
*/
|
|
31
|
+
resourceConsumption: SizingResourceConsumption;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the StandaloneClusterRequirementsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfStandaloneClusterRequirementsResponse(value: object): value is StandaloneClusterRequirementsResponse;
|
|
37
|
+
export declare function StandaloneClusterRequirementsResponseFromJSON(json: any): StandaloneClusterRequirementsResponse;
|
|
38
|
+
export declare function StandaloneClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandaloneClusterRequirementsResponse;
|
|
39
|
+
export declare function StandaloneClusterRequirementsResponseToJSON(json: any): StandaloneClusterRequirementsResponse;
|
|
40
|
+
export declare function StandaloneClusterRequirementsResponseToJSONTyped(value?: StandaloneClusterRequirementsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfStandaloneClusterRequirementsResponse = instanceOfStandaloneClusterRequirementsResponse;
|
|
17
|
+
exports.StandaloneClusterRequirementsResponseFromJSON = StandaloneClusterRequirementsResponseFromJSON;
|
|
18
|
+
exports.StandaloneClusterRequirementsResponseFromJSONTyped = StandaloneClusterRequirementsResponseFromJSONTyped;
|
|
19
|
+
exports.StandaloneClusterRequirementsResponseToJSON = StandaloneClusterRequirementsResponseToJSON;
|
|
20
|
+
exports.StandaloneClusterRequirementsResponseToJSONTyped = StandaloneClusterRequirementsResponseToJSONTyped;
|
|
21
|
+
const SizingResourceConsumption_js_1 = require("./SizingResourceConsumption.js");
|
|
22
|
+
const ClusterSizing_js_1 = require("./ClusterSizing.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the StandaloneClusterRequirementsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfStandaloneClusterRequirementsResponse(value) {
|
|
27
|
+
if (!('clusterSizing' in value) || value['clusterSizing'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function StandaloneClusterRequirementsResponseFromJSON(json) {
|
|
34
|
+
return StandaloneClusterRequirementsResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function StandaloneClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingFromJSON)(json['clusterSizing']),
|
|
42
|
+
'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionFromJSON)(json['resourceConsumption']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function StandaloneClusterRequirementsResponseToJSON(json) {
|
|
46
|
+
return StandaloneClusterRequirementsResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function StandaloneClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingToJSON)(value['clusterSizing']),
|
|
54
|
+
'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionToJSON)(value['resourceConsumption']),
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,13 +4,16 @@ export * from './Assessment.js';
|
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
5
|
export * from './AssessmentSharing.js';
|
|
6
6
|
export * from './AssessmentUpdate.js';
|
|
7
|
+
export * from './ClusterFeatures.js';
|
|
7
8
|
export * from './ClusterRequirementsRequest.js';
|
|
8
9
|
export * from './ClusterRequirementsResponse.js';
|
|
9
10
|
export * from './ClusterRequirementsStoredInput.js';
|
|
10
11
|
export * from './ClusterSizing.js';
|
|
12
|
+
export * from './ClusterUtilization.js';
|
|
11
13
|
export * from './ComplexityDiskScoreEntry.js';
|
|
12
14
|
export * from './ComplexityOSNameEntry.js';
|
|
13
15
|
export * from './ComplexityOSScoreEntry.js';
|
|
16
|
+
export * from './CpuOverCommitRatio.js';
|
|
14
17
|
export * from './Customer.js';
|
|
15
18
|
export * from './Datastore.js';
|
|
16
19
|
export * from './DiskSizeTierSummary.js';
|
|
@@ -35,6 +38,7 @@ export * from './Label.js';
|
|
|
35
38
|
export * from './Member.js';
|
|
36
39
|
export * from './MemberCreate.js';
|
|
37
40
|
export * from './MemberUpdate.js';
|
|
41
|
+
export * from './MemoryOverCommitRatio.js';
|
|
38
42
|
export * from './MigrationComplexityRequest.js';
|
|
39
43
|
export * from './MigrationComplexityResponse.js';
|
|
40
44
|
export * from './MigrationEstimationByComplexityResponse.js';
|
|
@@ -61,6 +65,8 @@ export * from './Source.js';
|
|
|
61
65
|
export * from './SourceCreate.js';
|
|
62
66
|
export * from './SourceInfra.js';
|
|
63
67
|
export * from './SourceUpdate.js';
|
|
68
|
+
export * from './StandaloneClusterRequirementsRequest.js';
|
|
69
|
+
export * from './StandaloneClusterRequirementsResponse.js';
|
|
64
70
|
export * from './Status.js';
|
|
65
71
|
export * from './UpdateInventory.js';
|
|
66
72
|
export * from './VCenter.js';
|
package/dist/models/index.js
CHANGED
|
@@ -22,13 +22,16 @@ __exportStar(require("./Assessment.js"), exports);
|
|
|
22
22
|
__exportStar(require("./AssessmentForm.js"), exports);
|
|
23
23
|
__exportStar(require("./AssessmentSharing.js"), exports);
|
|
24
24
|
__exportStar(require("./AssessmentUpdate.js"), exports);
|
|
25
|
+
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
25
26
|
__exportStar(require("./ClusterRequirementsRequest.js"), exports);
|
|
26
27
|
__exportStar(require("./ClusterRequirementsResponse.js"), exports);
|
|
27
28
|
__exportStar(require("./ClusterRequirementsStoredInput.js"), exports);
|
|
28
29
|
__exportStar(require("./ClusterSizing.js"), exports);
|
|
30
|
+
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
29
31
|
__exportStar(require("./ComplexityDiskScoreEntry.js"), exports);
|
|
30
32
|
__exportStar(require("./ComplexityOSNameEntry.js"), exports);
|
|
31
33
|
__exportStar(require("./ComplexityOSScoreEntry.js"), exports);
|
|
34
|
+
__exportStar(require("./CpuOverCommitRatio.js"), exports);
|
|
32
35
|
__exportStar(require("./Customer.js"), exports);
|
|
33
36
|
__exportStar(require("./Datastore.js"), exports);
|
|
34
37
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
@@ -53,6 +56,7 @@ __exportStar(require("./Label.js"), exports);
|
|
|
53
56
|
__exportStar(require("./Member.js"), exports);
|
|
54
57
|
__exportStar(require("./MemberCreate.js"), exports);
|
|
55
58
|
__exportStar(require("./MemberUpdate.js"), exports);
|
|
59
|
+
__exportStar(require("./MemoryOverCommitRatio.js"), exports);
|
|
56
60
|
__exportStar(require("./MigrationComplexityRequest.js"), exports);
|
|
57
61
|
__exportStar(require("./MigrationComplexityResponse.js"), exports);
|
|
58
62
|
__exportStar(require("./MigrationEstimationByComplexityResponse.js"), exports);
|
|
@@ -79,6 +83,8 @@ __exportStar(require("./Source.js"), exports);
|
|
|
79
83
|
__exportStar(require("./SourceCreate.js"), exports);
|
|
80
84
|
__exportStar(require("./SourceInfra.js"), exports);
|
|
81
85
|
__exportStar(require("./SourceUpdate.js"), exports);
|
|
86
|
+
__exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
|
|
87
|
+
__exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
|
|
82
88
|
__exportStar(require("./Status.js"), exports);
|
|
83
89
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
84
90
|
__exportStar(require("./VCenter.js"), exports);
|
package/docs/AccountApi.md
CHANGED
|
@@ -82,6 +82,7 @@ No authorization required
|
|
|
82
82
|
| **201** | Created | - |
|
|
83
83
|
| **400** | Bad Request | - |
|
|
84
84
|
| **401** | Unauthorized | - |
|
|
85
|
+
| **403** | Forbidden | - |
|
|
85
86
|
| **500** | Internal error | - |
|
|
86
87
|
|
|
87
88
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -155,6 +156,7 @@ No authorization required
|
|
|
155
156
|
| **201** | Created | - |
|
|
156
157
|
| **400** | Bad Request | - |
|
|
157
158
|
| **401** | Unauthorized | - |
|
|
159
|
+
| **403** | Forbidden | - |
|
|
158
160
|
| **404** | Not Found | - |
|
|
159
161
|
| **409** | Conflict | - |
|
|
160
162
|
| **500** | Internal error | - |
|
|
@@ -226,6 +228,7 @@ No authorization required
|
|
|
226
228
|
|-------------|-------------|------------------|
|
|
227
229
|
| **200** | OK | - |
|
|
228
230
|
| **401** | Unauthorized | - |
|
|
231
|
+
| **403** | Forbidden | - |
|
|
229
232
|
| **404** | Not Found | - |
|
|
230
233
|
| **500** | Internal error | - |
|
|
231
234
|
|
|
@@ -296,6 +299,7 @@ No authorization required
|
|
|
296
299
|
|-------------|-------------|------------------|
|
|
297
300
|
| **200** | OK | - |
|
|
298
301
|
| **401** | Unauthorized | - |
|
|
302
|
+
| **403** | Forbidden | - |
|
|
299
303
|
| **404** | Not Found | - |
|
|
300
304
|
| **500** | Internal error | - |
|
|
301
305
|
|
|
@@ -427,6 +431,7 @@ No authorization required
|
|
|
427
431
|
|-------------|-------------|------------------|
|
|
428
432
|
| **200** | OK | - |
|
|
429
433
|
| **401** | Unauthorized | - |
|
|
434
|
+
| **403** | Forbidden | - |
|
|
430
435
|
| **404** | Not Found | - |
|
|
431
436
|
| **500** | Internal error | - |
|
|
432
437
|
|
|
@@ -503,6 +508,7 @@ No authorization required
|
|
|
503
508
|
|-------------|-------------|------------------|
|
|
504
509
|
| **200** | OK | - |
|
|
505
510
|
| **401** | Unauthorized | - |
|
|
511
|
+
| **403** | Forbidden | - |
|
|
506
512
|
| **500** | Internal error | - |
|
|
507
513
|
|
|
508
514
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -575,6 +581,7 @@ No authorization required
|
|
|
575
581
|
|-------------|-------------|------------------|
|
|
576
582
|
| **200** | OK | - |
|
|
577
583
|
| **401** | Unauthorized | - |
|
|
584
|
+
| **403** | Forbidden | - |
|
|
578
585
|
| **400** | Bad Request | - |
|
|
579
586
|
| **404** | Not Found | - |
|
|
580
587
|
| **500** | Internal error | - |
|
|
@@ -650,6 +657,7 @@ No authorization required
|
|
|
650
657
|
| **200** | OK | - |
|
|
651
658
|
| **400** | Bad Request | - |
|
|
652
659
|
| **401** | Unauthorized | - |
|
|
660
|
+
| **403** | Forbidden | - |
|
|
653
661
|
| **404** | Not Found | - |
|
|
654
662
|
| **500** | Internal error | - |
|
|
655
663
|
|
|
@@ -727,6 +735,7 @@ No authorization required
|
|
|
727
735
|
| **200** | OK | - |
|
|
728
736
|
| **400** | Bad Request | - |
|
|
729
737
|
| **401** | Unauthorized | - |
|
|
738
|
+
| **403** | Forbidden | - |
|
|
730
739
|
| **404** | Not Found | - |
|
|
731
740
|
| **500** | Internal error | - |
|
|
732
741
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterFeatures
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`drsEnabled` | boolean
|
|
10
|
+
`drsMode` | string
|
|
11
|
+
`storageDrsEnabled` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ClusterFeatures } from '@openshift-migration-advisor/planner-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"drsEnabled": null,
|
|
21
|
+
"drsMode": null,
|
|
22
|
+
"storageDrsEnabled": null,
|
|
23
|
+
} satisfies ClusterFeatures
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterFeatures
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -8,8 +8,8 @@ Request payload for calculating cluster requirements
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`clusterId` | string
|
|
11
|
-
`cpuOverCommitRatio` |
|
|
12
|
-
`memoryOverCommitRatio` |
|
|
11
|
+
`cpuOverCommitRatio` | [CpuOverCommitRatio](CpuOverCommitRatio.md)
|
|
12
|
+
`memoryOverCommitRatio` | [MemoryOverCommitRatio](MemoryOverCommitRatio.md)
|
|
13
13
|
`workerNodeCPU` | number
|
|
14
14
|
`workerNodeMemory` | number
|
|
15
15
|
`workerNodeThreads` | number
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterUtilization
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cpuAvg` | number
|
|
10
|
+
`cpuP95` | number
|
|
11
|
+
`cpuMax` | number
|
|
12
|
+
`memAvg` | number
|
|
13
|
+
`memP95` | number
|
|
14
|
+
`memMax` | number
|
|
15
|
+
`confidence` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ClusterUtilization } from '@openshift-migration-advisor/planner-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cpuAvg": null,
|
|
25
|
+
"cpuP95": null,
|
|
26
|
+
"cpuMax": null,
|
|
27
|
+
"memAvg": null,
|
|
28
|
+
"memP95": null,
|
|
29
|
+
"memMax": null,
|
|
30
|
+
"confidence": null,
|
|
31
|
+
} satisfies ClusterUtilization
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# CpuOverCommitRatio
|
|
3
|
+
|
|
4
|
+
CPU over-commit ratio
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CpuOverCommitRatio } from '@openshift-migration-advisor/planner-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies CpuOverCommitRatio
|
|
19
|
+
|
|
20
|
+
console.log(example)
|
|
21
|
+
|
|
22
|
+
// Convert the instance to a JSON string
|
|
23
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
24
|
+
console.log(exampleJSON)
|
|
25
|
+
|
|
26
|
+
// Parse the JSON string back to an object
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as CpuOverCommitRatio
|
|
28
|
+
console.log(exampleParsed)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
32
|
+
|
|
33
|
+
|
package/docs/InventoryData.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`vcenter` | [VCenter](VCenter.md)
|
|
10
|
+
`clusterFeatures` | [ClusterFeatures](ClusterFeatures.md)
|
|
11
|
+
`clusterUtilization` | [ClusterUtilization](ClusterUtilization.md)
|
|
10
12
|
`vms` | [VMs](VMs.md)
|
|
11
13
|
`infra` | [Infra](Infra.md)
|
|
12
14
|
|
|
@@ -18,6 +20,8 @@ import type { InventoryData } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
20
|
// TODO: Update the object below with actual values
|
|
19
21
|
const example = {
|
|
20
22
|
"vcenter": null,
|
|
23
|
+
"clusterFeatures": null,
|
|
24
|
+
"clusterUtilization": null,
|
|
21
25
|
"vms": null,
|
|
22
26
|
"infra": null,
|
|
23
27
|
} satisfies InventoryData
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# MemoryOverCommitRatio
|
|
3
|
+
|
|
4
|
+
Memory over-commit ratio
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { MemoryOverCommitRatio } from '@openshift-migration-advisor/planner-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies MemoryOverCommitRatio
|
|
19
|
+
|
|
20
|
+
console.log(example)
|
|
21
|
+
|
|
22
|
+
// Convert the instance to a JSON string
|
|
23
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
24
|
+
console.log(exampleJSON)
|
|
25
|
+
|
|
26
|
+
// Parse the JSON string back to an object
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as MemoryOverCommitRatio
|
|
28
|
+
console.log(exampleParsed)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
32
|
+
|
|
33
|
+
|