@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,88 @@
|
|
|
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
|
+
import { CpuOverCommitRatioFromJSON, CpuOverCommitRatioToJSON, } from './CpuOverCommitRatio.js';
|
|
15
|
+
import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './MemoryOverCommitRatio.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
20
|
+
NUMBER_1: 1,
|
|
21
|
+
NUMBER_3: 3
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the StandaloneClusterRequirementsRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfStandaloneClusterRequirementsRequest(value) {
|
|
27
|
+
if (!('totalVMs' in value) || value['totalVMs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('totalCPU' in value) || value['totalCPU'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('totalMemory' in value) || value['totalMemory'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function StandaloneClusterRequirementsRequestFromJSON(json) {
|
|
44
|
+
return StandaloneClusterRequirementsRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'totalVMs': json['totalVMs'],
|
|
52
|
+
'totalCPU': json['totalCPU'],
|
|
53
|
+
'totalMemory': json['totalMemory'],
|
|
54
|
+
'cpuOverCommitRatio': CpuOverCommitRatioFromJSON(json['cpuOverCommitRatio']),
|
|
55
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioFromJSON(json['memoryOverCommitRatio']),
|
|
56
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
57
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
58
|
+
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
59
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
60
|
+
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
61
|
+
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
62
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
63
|
+
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function StandaloneClusterRequirementsRequestToJSON(json) {
|
|
67
|
+
return StandaloneClusterRequirementsRequestToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'totalVMs': value['totalVMs'],
|
|
75
|
+
'totalCPU': value['totalCPU'],
|
|
76
|
+
'totalMemory': value['totalMemory'],
|
|
77
|
+
'cpuOverCommitRatio': CpuOverCommitRatioToJSON(value['cpuOverCommitRatio']),
|
|
78
|
+
'memoryOverCommitRatio': MemoryOverCommitRatioToJSON(value['memoryOverCommitRatio']),
|
|
79
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
80
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
81
|
+
'workerNodeThreads': value['workerNodeThreads'],
|
|
82
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
83
|
+
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
84
|
+
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
85
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
86
|
+
'hostedControlPlane': value['hostedControlPlane'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -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,49 @@
|
|
|
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
|
+
import { SizingResourceConsumptionFromJSON, SizingResourceConsumptionToJSON, } from './SizingResourceConsumption.js';
|
|
15
|
+
import { ClusterSizingFromJSON, ClusterSizingToJSON, } from './ClusterSizing.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the StandaloneClusterRequirementsResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfStandaloneClusterRequirementsResponse(value) {
|
|
20
|
+
if (!('clusterSizing' in value) || value['clusterSizing'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function StandaloneClusterRequirementsResponseFromJSON(json) {
|
|
27
|
+
return StandaloneClusterRequirementsResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function StandaloneClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
|
|
35
|
+
'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function StandaloneClusterRequirementsResponseToJSON(json) {
|
|
39
|
+
return StandaloneClusterRequirementsResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function StandaloneClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
|
|
47
|
+
'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -6,13 +6,16 @@ export * from './Assessment.js';
|
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
8
|
export * from './AssessmentUpdate.js';
|
|
9
|
+
export * from './ClusterFeatures.js';
|
|
9
10
|
export * from './ClusterRequirementsRequest.js';
|
|
10
11
|
export * from './ClusterRequirementsResponse.js';
|
|
11
12
|
export * from './ClusterRequirementsStoredInput.js';
|
|
12
13
|
export * from './ClusterSizing.js';
|
|
14
|
+
export * from './ClusterUtilization.js';
|
|
13
15
|
export * from './ComplexityDiskScoreEntry.js';
|
|
14
16
|
export * from './ComplexityOSNameEntry.js';
|
|
15
17
|
export * from './ComplexityOSScoreEntry.js';
|
|
18
|
+
export * from './CpuOverCommitRatio.js';
|
|
16
19
|
export * from './Customer.js';
|
|
17
20
|
export * from './Datastore.js';
|
|
18
21
|
export * from './DiskSizeTierSummary.js';
|
|
@@ -37,6 +40,7 @@ export * from './Label.js';
|
|
|
37
40
|
export * from './Member.js';
|
|
38
41
|
export * from './MemberCreate.js';
|
|
39
42
|
export * from './MemberUpdate.js';
|
|
43
|
+
export * from './MemoryOverCommitRatio.js';
|
|
40
44
|
export * from './MigrationComplexityRequest.js';
|
|
41
45
|
export * from './MigrationComplexityResponse.js';
|
|
42
46
|
export * from './MigrationEstimationByComplexityResponse.js';
|
|
@@ -63,6 +67,8 @@ export * from './Source.js';
|
|
|
63
67
|
export * from './SourceCreate.js';
|
|
64
68
|
export * from './SourceInfra.js';
|
|
65
69
|
export * from './SourceUpdate.js';
|
|
70
|
+
export * from './StandaloneClusterRequirementsRequest.js';
|
|
71
|
+
export * from './StandaloneClusterRequirementsResponse.js';
|
|
66
72
|
export * from './Status.js';
|
|
67
73
|
export * from './UpdateInventory.js';
|
|
68
74
|
export * from './VCenter.js';
|
|
@@ -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,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,74 @@
|
|
|
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.instanceOfClusterUtilization = instanceOfClusterUtilization;
|
|
17
|
+
exports.ClusterUtilizationFromJSON = ClusterUtilizationFromJSON;
|
|
18
|
+
exports.ClusterUtilizationFromJSONTyped = ClusterUtilizationFromJSONTyped;
|
|
19
|
+
exports.ClusterUtilizationToJSON = ClusterUtilizationToJSON;
|
|
20
|
+
exports.ClusterUtilizationToJSONTyped = ClusterUtilizationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfClusterUtilization(value) {
|
|
25
|
+
if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ClusterUtilizationFromJSON(json) {
|
|
42
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'cpuAvg': json['cpu_avg'],
|
|
50
|
+
'cpuP95': json['cpu_p95'],
|
|
51
|
+
'cpuMax': json['cpu_max'],
|
|
52
|
+
'memAvg': json['mem_avg'],
|
|
53
|
+
'memP95': json['mem_p95'],
|
|
54
|
+
'memMax': json['mem_max'],
|
|
55
|
+
'confidence': json['confidence'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ClusterUtilizationToJSON(json) {
|
|
59
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'cpu_avg': value['cpuAvg'],
|
|
67
|
+
'cpu_p95': value['cpuP95'],
|
|
68
|
+
'cpu_max': value['cpuMax'],
|
|
69
|
+
'mem_avg': value['memAvg'],
|
|
70
|
+
'mem_p95': value['memP95'],
|
|
71
|
+
'mem_max': value['memMax'],
|
|
72
|
+
'confidence': value['confidence'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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;
|