@openshift-migration-advisor/planner-sdk 0.6.0-2f3328163282 → 0.6.0-72b0022c0833
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/README.md +2 -2
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +9 -0
- package/dist/esm/models/Info.d.ts +12 -0
- package/dist/esm/models/Info.js +4 -0
- package/dist/esm/models/VMs.d.ts +8 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/models/ClusterRequirementsRequest.js +10 -1
- package/dist/models/Info.d.ts +12 -0
- package/dist/models/Info.js +4 -0
- package/dist/models/VMs.d.ts +8 -0
- package/dist/models/VMs.js +2 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/Info.md +4 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/ClusterRequirementsRequest.ts +17 -0
- package/src/models/Info.ts +16 -0
- package/src/models/VMs.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.6.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.6.0-72b0022c0833
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -139,7 +139,7 @@ and is automatically generated by the
|
|
|
139
139
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
140
140
|
|
|
141
141
|
- API version: `undefined`
|
|
142
|
-
- Package version: `0.6.0-
|
|
142
|
+
- Package version: `0.6.0-72b0022c0833`
|
|
143
143
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
144
144
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
145
145
|
|
|
@@ -69,6 +69,12 @@ export interface ClusterRequirementsRequest {
|
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of control plane nodes (1 for single node, 3 for HA)
|
|
74
|
+
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
|
+
* @memberof ClusterRequirementsRequest
|
|
76
|
+
*/
|
|
77
|
+
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -89,6 +95,14 @@ export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
|
89
95
|
readonly MemoryOneToFour: "1:4";
|
|
90
96
|
};
|
|
91
97
|
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const ClusterRequirementsRequestControlPlaneNodeCountEnum: {
|
|
102
|
+
readonly NUMBER_1: 1;
|
|
103
|
+
readonly NUMBER_3: 3;
|
|
104
|
+
};
|
|
105
|
+
export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
92
106
|
/**
|
|
93
107
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
94
108
|
*/
|
|
@@ -28,6 +28,13 @@ export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
|
28
28
|
MemoryOneToTwo: '1:2',
|
|
29
29
|
MemoryOneToFour: '1:4'
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
35
|
+
NUMBER_1: 1,
|
|
36
|
+
NUMBER_3: 3
|
|
37
|
+
};
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
33
40
|
*/
|
|
@@ -61,6 +68,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
61
68
|
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
62
69
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
63
70
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
71
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
export function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -80,5 +88,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
80
88
|
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
81
89
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
82
90
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
91
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
83
92
|
};
|
|
84
93
|
}
|
|
@@ -27,6 +27,18 @@ export interface Info {
|
|
|
27
27
|
* @memberof Info
|
|
28
28
|
*/
|
|
29
29
|
versionName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Agent git commit hash
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Info
|
|
34
|
+
*/
|
|
35
|
+
agentGitCommit?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Agent version name, based on git tag
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Info
|
|
40
|
+
*/
|
|
41
|
+
agentVersionName?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the Info interface.
|
package/dist/esm/models/Info.js
CHANGED
|
@@ -31,6 +31,8 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'gitCommit': json['gitCommit'],
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
|
+
'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
|
|
35
|
+
'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
export function InfoToJSON(json) {
|
|
@@ -43,5 +45,7 @@ export function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
45
|
return {
|
|
44
46
|
'gitCommit': value['gitCommit'],
|
|
45
47
|
'versionName': value['versionName'],
|
|
48
|
+
'agentGitCommit': value['agentGitCommit'],
|
|
49
|
+
'agentVersionName': value['agentVersionName'],
|
|
46
50
|
};
|
|
47
51
|
}
|
package/dist/esm/models/VMs.d.ts
CHANGED
|
@@ -90,6 +90,14 @@ export interface VMs {
|
|
|
90
90
|
distributionByNicCount?: {
|
|
91
91
|
[key: string]: number;
|
|
92
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
|
+
* @type {{ [key: string]: number; }}
|
|
96
|
+
* @memberof VMs
|
|
97
|
+
*/
|
|
98
|
+
distributionByComplexity?: {
|
|
99
|
+
[key: string]: number;
|
|
100
|
+
};
|
|
93
101
|
/**
|
|
94
102
|
*
|
|
95
103
|
* @type {VMResourceBreakdown}
|
package/dist/esm/models/VMs.js
CHANGED
|
@@ -59,6 +59,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
60
60
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
61
61
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
62
|
+
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
62
63
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
63
64
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
64
65
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -88,6 +89,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
89
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
89
90
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
90
91
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
92
|
+
'distributionByComplexity': value['distributionByComplexity'],
|
|
91
93
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
92
94
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
93
95
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
|
@@ -69,6 +69,12 @@ export interface ClusterRequirementsRequest {
|
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of control plane nodes (1 for single node, 3 for HA)
|
|
74
|
+
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
|
+
* @memberof ClusterRequirementsRequest
|
|
76
|
+
*/
|
|
77
|
+
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -89,6 +95,14 @@ export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
|
89
95
|
readonly MemoryOneToFour: "1:4";
|
|
90
96
|
};
|
|
91
97
|
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const ClusterRequirementsRequestControlPlaneNodeCountEnum: {
|
|
102
|
+
readonly NUMBER_1: 1;
|
|
103
|
+
readonly NUMBER_3: 3;
|
|
104
|
+
};
|
|
105
|
+
export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
92
106
|
/**
|
|
93
107
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
94
108
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = void 0;
|
|
16
|
+
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = void 0;
|
|
17
17
|
exports.instanceOfClusterRequirementsRequest = instanceOfClusterRequirementsRequest;
|
|
18
18
|
exports.ClusterRequirementsRequestFromJSON = ClusterRequirementsRequestFromJSON;
|
|
19
19
|
exports.ClusterRequirementsRequestFromJSONTyped = ClusterRequirementsRequestFromJSONTyped;
|
|
@@ -36,6 +36,13 @@ exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
|
36
36
|
MemoryOneToTwo: '1:2',
|
|
37
37
|
MemoryOneToFour: '1:4'
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
43
|
+
NUMBER_1: 1,
|
|
44
|
+
NUMBER_3: 3
|
|
45
|
+
};
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
41
48
|
*/
|
|
@@ -69,6 +76,7 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
76
|
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
70
77
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
71
78
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
79
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -88,5 +96,6 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
88
96
|
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
89
97
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
90
98
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
99
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
91
100
|
};
|
|
92
101
|
}
|
package/dist/models/Info.d.ts
CHANGED
|
@@ -27,6 +27,18 @@ export interface Info {
|
|
|
27
27
|
* @memberof Info
|
|
28
28
|
*/
|
|
29
29
|
versionName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Agent git commit hash
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Info
|
|
34
|
+
*/
|
|
35
|
+
agentGitCommit?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Agent version name, based on git tag
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Info
|
|
40
|
+
*/
|
|
41
|
+
agentVersionName?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the Info interface.
|
package/dist/models/Info.js
CHANGED
|
@@ -38,6 +38,8 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'gitCommit': json['gitCommit'],
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
|
+
'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
|
|
42
|
+
'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
function InfoToJSON(json) {
|
|
@@ -50,5 +52,7 @@ function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
return {
|
|
51
53
|
'gitCommit': value['gitCommit'],
|
|
52
54
|
'versionName': value['versionName'],
|
|
55
|
+
'agentGitCommit': value['agentGitCommit'],
|
|
56
|
+
'agentVersionName': value['agentVersionName'],
|
|
53
57
|
};
|
|
54
58
|
}
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -90,6 +90,14 @@ export interface VMs {
|
|
|
90
90
|
distributionByNicCount?: {
|
|
91
91
|
[key: string]: number;
|
|
92
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
|
+
* @type {{ [key: string]: number; }}
|
|
96
|
+
* @memberof VMs
|
|
97
|
+
*/
|
|
98
|
+
distributionByComplexity?: {
|
|
99
|
+
[key: string]: number;
|
|
100
|
+
};
|
|
93
101
|
/**
|
|
94
102
|
*
|
|
95
103
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -66,6 +66,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
67
67
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
68
68
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
69
|
+
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
69
70
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
|
|
70
71
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
|
|
71
72
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
|
|
@@ -95,6 +96,7 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
96
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
96
97
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
97
98
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
99
|
+
'distributionByComplexity': value['distributionByComplexity'],
|
|
98
100
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
|
|
99
101
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
|
|
100
102
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskCount']),
|
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`controlPlaneSchedulable` | boolean
|
|
17
17
|
`controlPlaneCPU` | number
|
|
18
18
|
`controlPlaneMemory` | number
|
|
19
|
+
`controlPlaneNodeCount` | number
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -33,6 +34,7 @@ const example = {
|
|
|
33
34
|
"controlPlaneSchedulable": null,
|
|
34
35
|
"controlPlaneCPU": null,
|
|
35
36
|
"controlPlaneMemory": null,
|
|
37
|
+
"controlPlaneNodeCount": null,
|
|
36
38
|
} satisfies ClusterRequirementsRequest
|
|
37
39
|
|
|
38
40
|
console.log(example)
|
package/docs/Info.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`gitCommit` | string
|
|
11
11
|
`versionName` | string
|
|
12
|
+
`agentGitCommit` | string
|
|
13
|
+
`agentVersionName` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -19,6 +21,8 @@ import type { Info } from '@openshift-migration-advisor/planner-sdk'
|
|
|
19
21
|
const example = {
|
|
20
22
|
"gitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
|
|
21
23
|
"versionName": 0.1.4-40-gc5a1661,
|
|
24
|
+
"agentGitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
|
|
25
|
+
"agentVersionName": 0.1.4-40-gc5a1661,
|
|
22
26
|
} satisfies Info
|
|
23
27
|
|
|
24
28
|
console.log(example)
|
package/docs/VMs.md
CHANGED
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`distributionByCpuTier` | { [key: string]: number; }
|
|
17
17
|
`distributionByMemoryTier` | { [key: string]: number; }
|
|
18
18
|
`distributionByNicCount` | { [key: string]: number; }
|
|
19
|
+
`distributionByComplexity` | { [key: string]: number; }
|
|
19
20
|
`ramGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
20
21
|
`diskGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
21
22
|
`diskCount` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
@@ -43,6 +44,7 @@ const example = {
|
|
|
43
44
|
"distributionByCpuTier": null,
|
|
44
45
|
"distributionByMemoryTier": null,
|
|
45
46
|
"distributionByNicCount": null,
|
|
47
|
+
"distributionByComplexity": null,
|
|
46
48
|
"ramGB": null,
|
|
47
49
|
"diskGB": null,
|
|
48
50
|
"diskCount": null,
|
package/package.json
CHANGED
|
@@ -73,6 +73,12 @@ export interface ClusterRequirementsRequest {
|
|
|
73
73
|
* @memberof ClusterRequirementsRequest
|
|
74
74
|
*/
|
|
75
75
|
controlPlaneMemory?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Number of control plane nodes (1 for single node, 3 for HA)
|
|
78
|
+
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
79
|
+
* @memberof ClusterRequirementsRequest
|
|
80
|
+
*/
|
|
81
|
+
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
|
|
@@ -97,6 +103,15 @@ export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
|
97
103
|
} as const;
|
|
98
104
|
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
99
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
110
|
+
NUMBER_1: 1,
|
|
111
|
+
NUMBER_3: 3
|
|
112
|
+
} as const;
|
|
113
|
+
export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
114
|
+
|
|
100
115
|
|
|
101
116
|
/**
|
|
102
117
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
@@ -129,6 +144,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
129
144
|
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
130
145
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
131
146
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
147
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
132
148
|
};
|
|
133
149
|
}
|
|
134
150
|
|
|
@@ -152,6 +168,7 @@ export function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirement
|
|
|
152
168
|
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
153
169
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
154
170
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
171
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
155
172
|
};
|
|
156
173
|
}
|
|
157
174
|
|
package/src/models/Info.ts
CHANGED
|
@@ -31,6 +31,18 @@ export interface Info {
|
|
|
31
31
|
* @memberof Info
|
|
32
32
|
*/
|
|
33
33
|
versionName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Agent git commit hash
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Info
|
|
38
|
+
*/
|
|
39
|
+
agentGitCommit?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Agent version name, based on git tag
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Info
|
|
44
|
+
*/
|
|
45
|
+
agentVersionName?: string | null;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -54,6 +66,8 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
54
66
|
|
|
55
67
|
'gitCommit': json['gitCommit'],
|
|
56
68
|
'versionName': json['versionName'],
|
|
69
|
+
'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
|
|
70
|
+
'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
|
|
57
71
|
};
|
|
58
72
|
}
|
|
59
73
|
|
|
@@ -70,6 +84,8 @@ export function InfoToJSONTyped(value?: Info | null, ignoreDiscriminator: boolea
|
|
|
70
84
|
|
|
71
85
|
'gitCommit': value['gitCommit'],
|
|
72
86
|
'versionName': value['versionName'],
|
|
87
|
+
'agentGitCommit': value['agentGitCommit'],
|
|
88
|
+
'agentVersionName': value['agentVersionName'],
|
|
73
89
|
};
|
|
74
90
|
}
|
|
75
91
|
|
package/src/models/VMs.ts
CHANGED
|
@@ -115,6 +115,12 @@ export interface VMs {
|
|
|
115
115
|
* @memberof VMs
|
|
116
116
|
*/
|
|
117
117
|
distributionByNicCount?: { [key: string]: number; };
|
|
118
|
+
/**
|
|
119
|
+
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
120
|
+
* @type {{ [key: string]: number; }}
|
|
121
|
+
* @memberof VMs
|
|
122
|
+
*/
|
|
123
|
+
distributionByComplexity?: { [key: string]: number; };
|
|
118
124
|
/**
|
|
119
125
|
*
|
|
120
126
|
* @type {VMResourceBreakdown}
|
|
@@ -208,6 +214,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
208
214
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
209
215
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
210
216
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
217
|
+
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
211
218
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
212
219
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
213
220
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -241,6 +248,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
241
248
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
242
249
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
243
250
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
251
|
+
'distributionByComplexity': value['distributionByComplexity'],
|
|
244
252
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
245
253
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
246
254
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|