@openshift-migration-advisor/planner-sdk 0.7.0-4ccf2aa66adf → 0.8.0-37720cca68e5
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 +9 -3
- package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
- package/dist/esm/models/Source.d.ts +12 -0
- package/dist/esm/models/Source.js +4 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +9 -3
- package/dist/models/ClusterRequirementsRequest.js +2 -0
- package/dist/models/Source.d.ts +12 -0
- package/dist/models/Source.js +4 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/Source.md +4 -0
- package/package.json +1 -1
- package/src/models/ClusterRequirementsRequest.ts +11 -3
- package/src/models/Source.ts +16 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.8.0-37720cca68e5
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -140,7 +140,7 @@ and is automatically generated by the
|
|
|
140
140
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
141
141
|
|
|
142
142
|
- API version: `undefined`
|
|
143
|
-
- Package version: `0.
|
|
143
|
+
- Package version: `0.8.0-37720cca68e5`
|
|
144
144
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
145
145
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
146
146
|
|
|
@@ -52,7 +52,7 @@ export interface ClusterRequirementsRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
workerNodeThreads?: number;
|
|
54
54
|
/**
|
|
55
|
-
* Allow workload scheduling on control plane nodes
|
|
55
|
+
* Allow workload scheduling on control plane nodes (default: false)
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof ClusterRequirementsRequest
|
|
58
58
|
*/
|
|
@@ -64,17 +64,23 @@ export interface ClusterRequirementsRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
controlPlaneCPU?: number;
|
|
66
66
|
/**
|
|
67
|
-
* Memory
|
|
67
|
+
* Memory in GB per control plane node (default: 16)
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
72
|
/**
|
|
73
|
-
* Number of control plane nodes
|
|
73
|
+
* Number of control plane nodes: 1 or 3 (default: 3)
|
|
74
74
|
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
75
|
* @memberof ClusterRequirementsRequest
|
|
76
76
|
*/
|
|
77
77
|
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
78
|
+
/**
|
|
79
|
+
* If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof ClusterRequirementsRequest
|
|
82
|
+
*/
|
|
83
|
+
hostedControlPlane?: boolean;
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* @export
|
|
@@ -69,6 +69,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
69
69
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
70
70
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
71
71
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
72
|
+
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
export function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -89,5 +90,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
89
90
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
90
91
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
91
92
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
93
|
+
'hostedControlPlane': value['hostedControlPlane'],
|
|
92
94
|
};
|
|
93
95
|
}
|
|
@@ -73,6 +73,18 @@ export interface Source {
|
|
|
73
73
|
* @memberof Source
|
|
74
74
|
*/
|
|
75
75
|
infra?: SourceInfra;
|
|
76
|
+
/**
|
|
77
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Source
|
|
80
|
+
*/
|
|
81
|
+
agentVersion?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Warning message if stored agent version differs from current agent version
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Source
|
|
86
|
+
*/
|
|
87
|
+
agentVersionWarning?: string | null;
|
|
76
88
|
}
|
|
77
89
|
/**
|
|
78
90
|
* Check if a given object implements the Source interface.
|
|
@@ -48,6 +48,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
49
49
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
50
50
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
51
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
52
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
export function SourceToJSON(json) {
|
|
@@ -67,5 +69,7 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
69
|
'agent': AgentToJSON(value['agent']),
|
|
68
70
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|
|
69
71
|
'infra': SourceInfraToJSON(value['infra']),
|
|
72
|
+
'agentVersion': value['agentVersion'],
|
|
73
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
70
74
|
};
|
|
71
75
|
}
|
|
@@ -52,7 +52,7 @@ export interface ClusterRequirementsRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
workerNodeThreads?: number;
|
|
54
54
|
/**
|
|
55
|
-
* Allow workload scheduling on control plane nodes
|
|
55
|
+
* Allow workload scheduling on control plane nodes (default: false)
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof ClusterRequirementsRequest
|
|
58
58
|
*/
|
|
@@ -64,17 +64,23 @@ export interface ClusterRequirementsRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
controlPlaneCPU?: number;
|
|
66
66
|
/**
|
|
67
|
-
* Memory
|
|
67
|
+
* Memory in GB per control plane node (default: 16)
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
72
|
/**
|
|
73
|
-
* Number of control plane nodes
|
|
73
|
+
* Number of control plane nodes: 1 or 3 (default: 3)
|
|
74
74
|
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
75
|
* @memberof ClusterRequirementsRequest
|
|
76
76
|
*/
|
|
77
77
|
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
78
|
+
/**
|
|
79
|
+
* If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof ClusterRequirementsRequest
|
|
82
|
+
*/
|
|
83
|
+
hostedControlPlane?: boolean;
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* @export
|
|
@@ -77,6 +77,7 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
77
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
78
78
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
79
79
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
80
|
+
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -97,5 +98,6 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
97
98
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
98
99
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
99
100
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
101
|
+
'hostedControlPlane': value['hostedControlPlane'],
|
|
100
102
|
};
|
|
101
103
|
}
|
package/dist/models/Source.d.ts
CHANGED
|
@@ -73,6 +73,18 @@ export interface Source {
|
|
|
73
73
|
* @memberof Source
|
|
74
74
|
*/
|
|
75
75
|
infra?: SourceInfra;
|
|
76
|
+
/**
|
|
77
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Source
|
|
80
|
+
*/
|
|
81
|
+
agentVersion?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Warning message if stored agent version differs from current agent version
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Source
|
|
86
|
+
*/
|
|
87
|
+
agentVersionWarning?: string | null;
|
|
76
88
|
}
|
|
77
89
|
/**
|
|
78
90
|
* Check if a given object implements the Source interface.
|
package/dist/models/Source.js
CHANGED
|
@@ -55,6 +55,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
|
|
56
56
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
57
57
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
58
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
59
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
function SourceToJSON(json) {
|
|
@@ -74,5 +76,7 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
76
|
'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
|
|
75
77
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
76
78
|
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
79
|
+
'agentVersion': value['agentVersion'],
|
|
80
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
77
81
|
};
|
|
78
82
|
}
|
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`controlPlaneCPU` | number
|
|
18
18
|
`controlPlaneMemory` | number
|
|
19
19
|
`controlPlaneNodeCount` | number
|
|
20
|
+
`hostedControlPlane` | boolean
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -35,6 +36,7 @@ const example = {
|
|
|
35
36
|
"controlPlaneCPU": null,
|
|
36
37
|
"controlPlaneMemory": null,
|
|
37
38
|
"controlPlaneNodeCount": null,
|
|
39
|
+
"hostedControlPlane": null,
|
|
38
40
|
} satisfies ClusterRequirementsRequest
|
|
39
41
|
|
|
40
42
|
console.log(example)
|
package/docs/Source.md
CHANGED
|
@@ -15,6 +15,8 @@ Name | Type
|
|
|
15
15
|
`agent` | [Agent](Agent.md)
|
|
16
16
|
`labels` | [Array<Label>](Label.md)
|
|
17
17
|
`infra` | [SourceInfra](SourceInfra.md)
|
|
18
|
+
`agentVersion` | string
|
|
19
|
+
`agentVersionWarning` | string
|
|
18
20
|
|
|
19
21
|
## Example
|
|
20
22
|
|
|
@@ -32,6 +34,8 @@ const example = {
|
|
|
32
34
|
"agent": null,
|
|
33
35
|
"labels": null,
|
|
34
36
|
"infra": null,
|
|
37
|
+
"agentVersion": null,
|
|
38
|
+
"agentVersionWarning": null,
|
|
35
39
|
} satisfies Source
|
|
36
40
|
|
|
37
41
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ export interface ClusterRequirementsRequest {
|
|
|
56
56
|
*/
|
|
57
57
|
workerNodeThreads?: number;
|
|
58
58
|
/**
|
|
59
|
-
* Allow workload scheduling on control plane nodes
|
|
59
|
+
* Allow workload scheduling on control plane nodes (default: false)
|
|
60
60
|
* @type {boolean}
|
|
61
61
|
* @memberof ClusterRequirementsRequest
|
|
62
62
|
*/
|
|
@@ -68,17 +68,23 @@ export interface ClusterRequirementsRequest {
|
|
|
68
68
|
*/
|
|
69
69
|
controlPlaneCPU?: number;
|
|
70
70
|
/**
|
|
71
|
-
* Memory
|
|
71
|
+
* Memory in GB per control plane node (default: 16)
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof ClusterRequirementsRequest
|
|
74
74
|
*/
|
|
75
75
|
controlPlaneMemory?: number;
|
|
76
76
|
/**
|
|
77
|
-
* Number of control plane nodes
|
|
77
|
+
* Number of control plane nodes: 1 or 3 (default: 3)
|
|
78
78
|
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
79
79
|
* @memberof ClusterRequirementsRequest
|
|
80
80
|
*/
|
|
81
81
|
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
82
|
+
/**
|
|
83
|
+
* If true, control plane is hosted externally. Incompatible with control plane fields (default: false)
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof ClusterRequirementsRequest
|
|
86
|
+
*/
|
|
87
|
+
hostedControlPlane?: boolean;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
|
|
@@ -145,6 +151,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
145
151
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
146
152
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
147
153
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
154
|
+
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
148
155
|
};
|
|
149
156
|
}
|
|
150
157
|
|
|
@@ -169,6 +176,7 @@ export function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirement
|
|
|
169
176
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
170
177
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
171
178
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
179
|
+
'hostedControlPlane': value['hostedControlPlane'],
|
|
172
180
|
};
|
|
173
181
|
}
|
|
174
182
|
|
package/src/models/Source.ts
CHANGED
|
@@ -102,6 +102,18 @@ export interface Source {
|
|
|
102
102
|
* @memberof Source
|
|
103
103
|
*/
|
|
104
104
|
infra?: SourceInfra;
|
|
105
|
+
/**
|
|
106
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof Source
|
|
109
|
+
*/
|
|
110
|
+
agentVersion?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Warning message if stored agent version differs from current agent version
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof Source
|
|
115
|
+
*/
|
|
116
|
+
agentVersionWarning?: string | null;
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
/**
|
|
@@ -135,6 +147,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
135
147
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
136
148
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
137
149
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
150
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
151
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
138
152
|
};
|
|
139
153
|
}
|
|
140
154
|
|
|
@@ -158,6 +172,8 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
158
172
|
'agent': AgentToJSON(value['agent']),
|
|
159
173
|
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
160
174
|
'infra': SourceInfraToJSON(value['infra']),
|
|
175
|
+
'agentVersion': value['agentVersion'],
|
|
176
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
161
177
|
};
|
|
162
178
|
}
|
|
163
179
|
|