@openshift-migration-advisor/planner-sdk 0.14.0 → 0.15.0
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 +6 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
- package/dist/esm/models/ClusterRequirementsStoredInput.d.ts +6 -0
- package/dist/esm/models/ClusterRequirementsStoredInput.js +2 -0
- package/dist/esm/models/Source.d.ts +14 -0
- package/dist/esm/models/Source.js +9 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +2 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +6 -0
- package/dist/models/ClusterRequirementsRequest.js +2 -0
- package/dist/models/ClusterRequirementsStoredInput.d.ts +6 -0
- package/dist/models/ClusterRequirementsStoredInput.js +2 -0
- package/dist/models/Source.d.ts +14 -0
- package/dist/models/Source.js +10 -0
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
- package/dist/models/StandaloneClusterRequirementsRequest.js +2 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/ClusterRequirementsStoredInput.md +2 -0
- package/docs/Source.md +2 -0
- package/docs/StandaloneClusterRequirementsRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/ClusterRequirementsRequest.ts +8 -0
- package/src/models/ClusterRequirementsStoredInput.ts +8 -0
- package/src/models/Source.ts +19 -0
- package/src/models/StandaloneClusterRequirementsRequest.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.15.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -189,7 +189,7 @@ and is automatically generated by the
|
|
|
189
189
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
190
190
|
|
|
191
191
|
- API version: `v1alpha1`
|
|
192
|
-
- Package version: `0.
|
|
192
|
+
- Package version: `0.15.0`
|
|
193
193
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
194
194
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
195
195
|
|
|
@@ -83,6 +83,12 @@ export interface ClusterRequirementsRequest {
|
|
|
83
83
|
* @memberof ClusterRequirementsRequest
|
|
84
84
|
*/
|
|
85
85
|
hostedControlPlane?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof ClusterRequirementsRequest
|
|
90
|
+
*/
|
|
91
|
+
compactMode?: boolean;
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
88
94
|
* @export
|
|
@@ -55,6 +55,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
55
55
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
56
56
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
57
57
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
58
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
export function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -76,5 +77,6 @@ export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
76
77
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
77
78
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
78
79
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
80
|
+
'compactMode': value['compactMode'],
|
|
79
81
|
};
|
|
80
82
|
}
|
|
@@ -81,6 +81,12 @@ export interface ClusterRequirementsStoredInput {
|
|
|
81
81
|
* @memberof ClusterRequirementsStoredInput
|
|
82
82
|
*/
|
|
83
83
|
hostedControlPlane?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* If true, creates a 3-node compact cluster with no dedicated workers
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof ClusterRequirementsStoredInput
|
|
88
|
+
*/
|
|
89
|
+
compactMode?: boolean;
|
|
84
90
|
}
|
|
85
91
|
/**
|
|
86
92
|
* @export
|
|
@@ -63,6 +63,7 @@ export function ClusterRequirementsStoredInputFromJSONTyped(json, ignoreDiscrimi
|
|
|
63
63
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
64
64
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
65
65
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
66
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
export function ClusterRequirementsStoredInputToJSON(json) {
|
|
@@ -84,5 +85,6 @@ export function ClusterRequirementsStoredInputToJSONTyped(value, ignoreDiscrimin
|
|
|
84
85
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
85
86
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
86
87
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
88
|
+
'compactMode': value['compactMode'],
|
|
87
89
|
};
|
|
88
90
|
}
|
|
@@ -85,7 +85,21 @@ export interface Source {
|
|
|
85
85
|
* @memberof Source
|
|
86
86
|
*/
|
|
87
87
|
agentVersionWarning?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
90
|
+
* @type {SourceUpdateTypeEnum}
|
|
91
|
+
* @memberof Source
|
|
92
|
+
*/
|
|
93
|
+
updateType?: SourceUpdateTypeEnum;
|
|
88
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const SourceUpdateTypeEnum: {
|
|
99
|
+
readonly Auto: "auto";
|
|
100
|
+
readonly Manual: "manual";
|
|
101
|
+
};
|
|
102
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
89
103
|
/**
|
|
90
104
|
* Check if a given object implements the Source interface.
|
|
91
105
|
*/
|
|
@@ -15,6 +15,13 @@ import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
|
|
|
15
15
|
import { AgentFromJSON, AgentToJSON, } from './Agent.js';
|
|
16
16
|
import { LabelFromJSON, LabelToJSON, } from './Label.js';
|
|
17
17
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const SourceUpdateTypeEnum = {
|
|
22
|
+
Auto: 'auto',
|
|
23
|
+
Manual: 'manual'
|
|
24
|
+
};
|
|
18
25
|
/**
|
|
19
26
|
* Check if a given object implements the Source interface.
|
|
20
27
|
*/
|
|
@@ -50,6 +57,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
57
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
51
58
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
52
59
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
60
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
53
61
|
};
|
|
54
62
|
}
|
|
55
63
|
export function SourceToJSON(json) {
|
|
@@ -71,5 +79,6 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
79
|
'infra': SourceInfraToJSON(value['infra']),
|
|
72
80
|
'agentVersion': value['agentVersion'],
|
|
73
81
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
82
|
+
'updateType': value['updateType'],
|
|
74
83
|
};
|
|
75
84
|
}
|
|
@@ -95,6 +95,12 @@ export interface StandaloneClusterRequirementsRequest {
|
|
|
95
95
|
* @memberof StandaloneClusterRequirementsRequest
|
|
96
96
|
*/
|
|
97
97
|
hostedControlPlane?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
102
|
+
*/
|
|
103
|
+
compactMode?: boolean;
|
|
98
104
|
}
|
|
99
105
|
/**
|
|
100
106
|
* @export
|
|
@@ -61,6 +61,7 @@ export function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDi
|
|
|
61
61
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
62
62
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
63
63
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
64
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
67
|
export function StandaloneClusterRequirementsRequestToJSON(json) {
|
|
@@ -84,5 +85,6 @@ export function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDis
|
|
|
84
85
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
85
86
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
86
87
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
88
|
+
'compactMode': value['compactMode'],
|
|
87
89
|
};
|
|
88
90
|
}
|
|
@@ -83,6 +83,12 @@ export interface ClusterRequirementsRequest {
|
|
|
83
83
|
* @memberof ClusterRequirementsRequest
|
|
84
84
|
*/
|
|
85
85
|
hostedControlPlane?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof ClusterRequirementsRequest
|
|
90
|
+
*/
|
|
91
|
+
compactMode?: boolean;
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
88
94
|
* @export
|
|
@@ -63,6 +63,7 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
64
64
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
65
65
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
66
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -84,5 +85,6 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
84
85
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
85
86
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
86
87
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
88
|
+
'compactMode': value['compactMode'],
|
|
87
89
|
};
|
|
88
90
|
}
|
|
@@ -81,6 +81,12 @@ export interface ClusterRequirementsStoredInput {
|
|
|
81
81
|
* @memberof ClusterRequirementsStoredInput
|
|
82
82
|
*/
|
|
83
83
|
hostedControlPlane?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* If true, creates a 3-node compact cluster with no dedicated workers
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof ClusterRequirementsStoredInput
|
|
88
|
+
*/
|
|
89
|
+
compactMode?: boolean;
|
|
84
90
|
}
|
|
85
91
|
/**
|
|
86
92
|
* @export
|
|
@@ -71,6 +71,7 @@ function ClusterRequirementsStoredInputFromJSONTyped(json, ignoreDiscriminator)
|
|
|
71
71
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
72
72
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
73
73
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
74
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
function ClusterRequirementsStoredInputToJSON(json) {
|
|
@@ -92,5 +93,6 @@ function ClusterRequirementsStoredInputToJSONTyped(value, ignoreDiscriminator =
|
|
|
92
93
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
93
94
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
94
95
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
96
|
+
'compactMode': value['compactMode'],
|
|
95
97
|
};
|
|
96
98
|
}
|
package/dist/models/Source.d.ts
CHANGED
|
@@ -85,7 +85,21 @@ export interface Source {
|
|
|
85
85
|
* @memberof Source
|
|
86
86
|
*/
|
|
87
87
|
agentVersionWarning?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
90
|
+
* @type {SourceUpdateTypeEnum}
|
|
91
|
+
* @memberof Source
|
|
92
|
+
*/
|
|
93
|
+
updateType?: SourceUpdateTypeEnum;
|
|
88
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const SourceUpdateTypeEnum: {
|
|
99
|
+
readonly Auto: "auto";
|
|
100
|
+
readonly Manual: "manual";
|
|
101
|
+
};
|
|
102
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
89
103
|
/**
|
|
90
104
|
* Check if a given object implements the Source interface.
|
|
91
105
|
*/
|
package/dist/models/Source.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SourceUpdateTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfSource = instanceOfSource;
|
|
17
18
|
exports.SourceFromJSON = SourceFromJSON;
|
|
18
19
|
exports.SourceFromJSONTyped = SourceFromJSONTyped;
|
|
@@ -22,6 +23,13 @@ const SourceInfra_js_1 = require("./SourceInfra.js");
|
|
|
22
23
|
const Agent_js_1 = require("./Agent.js");
|
|
23
24
|
const Label_js_1 = require("./Label.js");
|
|
24
25
|
const Inventory_js_1 = require("./Inventory.js");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.SourceUpdateTypeEnum = {
|
|
30
|
+
Auto: 'auto',
|
|
31
|
+
Manual: 'manual'
|
|
32
|
+
};
|
|
25
33
|
/**
|
|
26
34
|
* Check if a given object implements the Source interface.
|
|
27
35
|
*/
|
|
@@ -57,6 +65,7 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
65
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
58
66
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
59
67
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
68
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
function SourceToJSON(json) {
|
|
@@ -78,5 +87,6 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
87
|
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
79
88
|
'agentVersion': value['agentVersion'],
|
|
80
89
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
90
|
+
'updateType': value['updateType'],
|
|
81
91
|
};
|
|
82
92
|
}
|
|
@@ -95,6 +95,12 @@ export interface StandaloneClusterRequirementsRequest {
|
|
|
95
95
|
* @memberof StandaloneClusterRequirementsRequest
|
|
96
96
|
*/
|
|
97
97
|
hostedControlPlane?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
102
|
+
*/
|
|
103
|
+
compactMode?: boolean;
|
|
98
104
|
}
|
|
99
105
|
/**
|
|
100
106
|
* @export
|
|
@@ -69,6 +69,7 @@ function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDiscrimin
|
|
|
69
69
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
70
70
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
71
71
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
72
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
function StandaloneClusterRequirementsRequestToJSON(json) {
|
|
@@ -92,5 +93,6 @@ function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDiscrimina
|
|
|
92
93
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
93
94
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
94
95
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
96
|
+
'compactMode': value['compactMode'],
|
|
95
97
|
};
|
|
96
98
|
}
|
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`controlPlaneMemory` | number
|
|
19
19
|
`controlPlaneNodeCount` | number
|
|
20
20
|
`hostedControlPlane` | boolean
|
|
21
|
+
`compactMode` | boolean
|
|
21
22
|
|
|
22
23
|
## Example
|
|
23
24
|
|
|
@@ -37,6 +38,7 @@ const example = {
|
|
|
37
38
|
"controlPlaneMemory": null,
|
|
38
39
|
"controlPlaneNodeCount": null,
|
|
39
40
|
"hostedControlPlane": null,
|
|
41
|
+
"compactMode": null,
|
|
40
42
|
} satisfies ClusterRequirementsRequest
|
|
41
43
|
|
|
42
44
|
console.log(example)
|
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`controlPlaneMemory` | number
|
|
19
19
|
`controlPlaneNodeCount` | number
|
|
20
20
|
`hostedControlPlane` | boolean
|
|
21
|
+
`compactMode` | boolean
|
|
21
22
|
|
|
22
23
|
## Example
|
|
23
24
|
|
|
@@ -37,6 +38,7 @@ const example = {
|
|
|
37
38
|
"controlPlaneMemory": null,
|
|
38
39
|
"controlPlaneNodeCount": null,
|
|
39
40
|
"hostedControlPlane": null,
|
|
41
|
+
"compactMode": null,
|
|
40
42
|
} satisfies ClusterRequirementsStoredInput
|
|
41
43
|
|
|
42
44
|
console.log(example)
|
package/docs/Source.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`infra` | [SourceInfra](SourceInfra.md)
|
|
18
18
|
`agentVersion` | string
|
|
19
19
|
`agentVersionWarning` | string
|
|
20
|
+
`updateType` | string
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"infra": null,
|
|
37
38
|
"agentVersion": null,
|
|
38
39
|
"agentVersionWarning": null,
|
|
40
|
+
"updateType": null,
|
|
39
41
|
} satisfies Source
|
|
40
42
|
|
|
41
43
|
console.log(example)
|
|
@@ -20,6 +20,7 @@ Name | Type
|
|
|
20
20
|
`controlPlaneMemory` | number
|
|
21
21
|
`controlPlaneNodeCount` | number
|
|
22
22
|
`hostedControlPlane` | boolean
|
|
23
|
+
`compactMode` | boolean
|
|
23
24
|
|
|
24
25
|
## Example
|
|
25
26
|
|
|
@@ -41,6 +42,7 @@ const example = {
|
|
|
41
42
|
"controlPlaneMemory": null,
|
|
42
43
|
"controlPlaneNodeCount": null,
|
|
43
44
|
"hostedControlPlane": null,
|
|
45
|
+
"compactMode": null,
|
|
44
46
|
} satisfies StandaloneClusterRequirementsRequest
|
|
45
47
|
|
|
46
48
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -100,6 +100,12 @@ export interface ClusterRequirementsRequest {
|
|
|
100
100
|
* @memberof ClusterRequirementsRequest
|
|
101
101
|
*/
|
|
102
102
|
hostedControlPlane?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof ClusterRequirementsRequest
|
|
107
|
+
*/
|
|
108
|
+
compactMode?: boolean;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
|
|
@@ -146,6 +152,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
146
152
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
147
153
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
148
154
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
155
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
149
156
|
};
|
|
150
157
|
}
|
|
151
158
|
|
|
@@ -171,6 +178,7 @@ export function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirement
|
|
|
171
178
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
172
179
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
173
180
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
181
|
+
'compactMode': value['compactMode'],
|
|
174
182
|
};
|
|
175
183
|
}
|
|
176
184
|
|
|
@@ -85,6 +85,12 @@ export interface ClusterRequirementsStoredInput {
|
|
|
85
85
|
* @memberof ClusterRequirementsStoredInput
|
|
86
86
|
*/
|
|
87
87
|
hostedControlPlane?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* If true, creates a 3-node compact cluster with no dedicated workers
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof ClusterRequirementsStoredInput
|
|
92
|
+
*/
|
|
93
|
+
compactMode?: boolean;
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
|
|
@@ -149,6 +155,7 @@ export function ClusterRequirementsStoredInputFromJSONTyped(json: any, ignoreDis
|
|
|
149
155
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
150
156
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
151
157
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
158
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
152
159
|
};
|
|
153
160
|
}
|
|
154
161
|
|
|
@@ -174,6 +181,7 @@ export function ClusterRequirementsStoredInputToJSONTyped(value?: ClusterRequire
|
|
|
174
181
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
175
182
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
176
183
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
184
|
+
'compactMode': value['compactMode'],
|
|
177
185
|
};
|
|
178
186
|
}
|
|
179
187
|
|
package/src/models/Source.ts
CHANGED
|
@@ -114,8 +114,25 @@ export interface Source {
|
|
|
114
114
|
* @memberof Source
|
|
115
115
|
*/
|
|
116
116
|
agentVersionWarning?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
119
|
+
* @type {SourceUpdateTypeEnum}
|
|
120
|
+
* @memberof Source
|
|
121
|
+
*/
|
|
122
|
+
updateType?: SourceUpdateTypeEnum;
|
|
117
123
|
}
|
|
118
124
|
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @export
|
|
128
|
+
*/
|
|
129
|
+
export const SourceUpdateTypeEnum = {
|
|
130
|
+
Auto: 'auto',
|
|
131
|
+
Manual: 'manual'
|
|
132
|
+
} as const;
|
|
133
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
134
|
+
|
|
135
|
+
|
|
119
136
|
/**
|
|
120
137
|
* Check if a given object implements the Source interface.
|
|
121
138
|
*/
|
|
@@ -149,6 +166,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
149
166
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
150
167
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
151
168
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
169
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
152
170
|
};
|
|
153
171
|
}
|
|
154
172
|
|
|
@@ -174,6 +192,7 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
174
192
|
'infra': SourceInfraToJSON(value['infra']),
|
|
175
193
|
'agentVersion': value['agentVersion'],
|
|
176
194
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
195
|
+
'updateType': value['updateType'],
|
|
177
196
|
};
|
|
178
197
|
}
|
|
179
198
|
|
|
@@ -112,6 +112,12 @@ export interface StandaloneClusterRequirementsRequest {
|
|
|
112
112
|
* @memberof StandaloneClusterRequirementsRequest
|
|
113
113
|
*/
|
|
114
114
|
hostedControlPlane?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof StandaloneClusterRequirementsRequest
|
|
119
|
+
*/
|
|
120
|
+
compactMode?: boolean;
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
|
|
@@ -162,6 +168,7 @@ export function StandaloneClusterRequirementsRequestFromJSONTyped(json: any, ign
|
|
|
162
168
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
163
169
|
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
164
170
|
'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
|
|
171
|
+
'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
|
|
165
172
|
};
|
|
166
173
|
}
|
|
167
174
|
|
|
@@ -189,6 +196,7 @@ export function StandaloneClusterRequirementsRequestToJSONTyped(value?: Standalo
|
|
|
189
196
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
190
197
|
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
191
198
|
'hostedControlPlane': value['hostedControlPlane'],
|
|
199
|
+
'compactMode': value['compactMode'],
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
202
|
|