@openshift-migration-advisor/planner-sdk 0.14.0 → 0.15.0-40816ac44039
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 +4 -0
- package/README.md +4 -2
- package/dist/esm/models/AgentProxy.js +3 -3
- package/dist/esm/models/AssessmentSubsetInventory.d.ts +63 -0
- package/dist/esm/models/AssessmentSubsetInventory.js +64 -0
- 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/Datastore.js +1 -1
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/Identity.js +2 -2
- package/dist/esm/models/Info.js +2 -2
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/PartnerRequest.js +3 -3
- package/dist/esm/models/Snapshot.d.ts +7 -0
- package/dist/esm/models/Snapshot.js +3 -0
- package/dist/esm/models/Source.d.ts +14 -0
- package/dist/esm/models/Source.js +11 -2
- package/dist/esm/models/SourceCreate.js +2 -2
- package/dist/esm/models/SourceInfra.js +1 -1
- package/dist/esm/models/SourceUpdate.js +2 -2
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +2 -0
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/AgentProxy.js +3 -3
- package/dist/models/AssessmentSubsetInventory.d.ts +63 -0
- package/dist/models/AssessmentSubsetInventory.js +71 -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/Datastore.js +1 -1
- package/dist/models/Host.js +3 -3
- package/dist/models/Identity.js +2 -2
- package/dist/models/Info.js +2 -2
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/PartnerRequest.js +3 -3
- package/dist/models/Snapshot.d.ts +7 -0
- package/dist/models/Snapshot.js +3 -0
- package/dist/models/Source.d.ts +14 -0
- package/dist/models/Source.js +12 -2
- package/dist/models/SourceCreate.js +2 -2
- package/dist/models/SourceInfra.js +1 -1
- package/dist/models/SourceUpdate.js +2 -2
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
- package/dist/models/StandaloneClusterRequirementsRequest.js +2 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/AssessmentSubsetInventory.md +44 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/ClusterRequirementsStoredInput.md +2 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Snapshot.md +2 -0
- package/docs/Source.md +2 -0
- package/docs/StandaloneClusterRequirementsRequest.md +2 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/AgentProxy.ts +3 -3
- package/src/models/AssessmentSubsetInventory.ts +119 -0
- package/src/models/ClusterRequirementsRequest.ts +8 -0
- package/src/models/ClusterRequirementsStoredInput.ts +8 -0
- package/src/models/ClusterUtilization.ts +6 -6
- package/src/models/Datastore.ts +1 -1
- package/src/models/Host.ts +3 -3
- package/src/models/Identity.ts +2 -2
- package/src/models/Info.ts +2 -2
- package/src/models/Inventory.ts +1 -1
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/PartnerRequest.ts +3 -3
- package/src/models/Snapshot.ts +15 -0
- package/src/models/Source.ts +21 -2
- package/src/models/SourceCreate.ts +2 -2
- package/src/models/SourceInfra.ts +1 -1
- package/src/models/SourceUpdate.ts +2 -2
- package/src/models/StandaloneClusterRequirementsRequest.ts +8 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -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
|
}
|
package/dist/esm/models/VMs.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MigrationIssue } from './MigrationIssue.js';
|
|
13
13
|
import type { OsInfo } from './OsInfo.js';
|
|
14
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
14
15
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
15
16
|
import type { DiskTypeSummary } from './DiskTypeSummary.js';
|
|
16
17
|
import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
|
|
@@ -177,6 +178,12 @@ export interface VMs {
|
|
|
177
178
|
* @memberof VMs
|
|
178
179
|
*/
|
|
179
180
|
migrationWarnings: Array<MigrationIssue>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {IssuesBreakdown}
|
|
184
|
+
* @memberof VMs
|
|
185
|
+
*/
|
|
186
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
180
187
|
}
|
|
181
188
|
/**
|
|
182
189
|
* Check if a given object implements the VMs interface.
|
package/dist/esm/models/VMs.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { mapValues } from '../runtime.js';
|
|
15
15
|
import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue.js';
|
|
16
16
|
import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo.js';
|
|
17
|
+
import { IssuesBreakdownFromJSON, IssuesBreakdownToJSON, } from './IssuesBreakdown.js';
|
|
17
18
|
import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary.js';
|
|
18
19
|
import { DiskTypeSummaryFromJSON, DiskTypeSummaryToJSON, } from './DiskTypeSummary.js';
|
|
19
20
|
import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown.js';
|
|
@@ -71,6 +72,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
72
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
72
73
|
'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
|
|
73
74
|
'migrationWarnings': (json['migrationWarnings'].map(MigrationIssueFromJSON)),
|
|
75
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
export function VMsToJSON(json) {
|
|
@@ -103,5 +105,6 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
105
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
|
104
106
|
'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssueToJSON)),
|
|
105
107
|
'migrationWarnings': (value['migrationWarnings'].map(MigrationIssueToJSON)),
|
|
108
|
+
'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
|
|
106
109
|
};
|
|
107
110
|
}
|
|
@@ -3,6 +3,7 @@ export * from './AgentProxy.js';
|
|
|
3
3
|
export * from './Assessment.js';
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
5
|
export * from './AssessmentSharing.js';
|
|
6
|
+
export * from './AssessmentSubsetInventory.js';
|
|
6
7
|
export * from './AssessmentUpdate.js';
|
|
7
8
|
export * from './ClusterFeatures.js';
|
|
8
9
|
export * from './ClusterRequirementsRequest.js';
|
|
@@ -32,6 +33,7 @@ export * from './Inventory.js';
|
|
|
32
33
|
export * from './InventoryData.js';
|
|
33
34
|
export * from './InventoryTotals.js';
|
|
34
35
|
export * from './Ipv4Config.js';
|
|
36
|
+
export * from './IssuesBreakdown.js';
|
|
35
37
|
export * from './Job.js';
|
|
36
38
|
export * from './JobStatus.js';
|
|
37
39
|
export * from './Label.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AgentProxy.js';
|
|
|
5
5
|
export * from './Assessment.js';
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
|
+
export * from './AssessmentSubsetInventory.js';
|
|
8
9
|
export * from './AssessmentUpdate.js';
|
|
9
10
|
export * from './ClusterFeatures.js';
|
|
10
11
|
export * from './ClusterRequirementsRequest.js';
|
|
@@ -34,6 +35,7 @@ export * from './Inventory.js';
|
|
|
34
35
|
export * from './InventoryData.js';
|
|
35
36
|
export * from './InventoryTotals.js';
|
|
36
37
|
export * from './Ipv4Config.js';
|
|
38
|
+
export * from './IssuesBreakdown.js';
|
|
37
39
|
export * from './Job.js';
|
|
38
40
|
export * from './JobStatus.js';
|
|
39
41
|
export * from './Label.js';
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
|
|
|
127
127
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
128
|
[key: string]: any;
|
|
129
129
|
};
|
|
130
|
+
export declare function anyToJSON(value: any): any;
|
|
130
131
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
132
|
export interface Consume {
|
|
132
133
|
contentType: string;
|
package/dist/esm/runtime.js
CHANGED
|
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
|
|
|
296
296
|
}
|
|
297
297
|
return result;
|
|
298
298
|
}
|
|
299
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
300
|
+
export function anyToJSON(value) {
|
|
301
|
+
return value;
|
|
302
|
+
}
|
|
299
303
|
export function canConsumeForm(consumes) {
|
|
300
304
|
var _a;
|
|
301
305
|
for (const consume of consumes) {
|
|
@@ -32,9 +32,9 @@ function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'httpUrl': json['httpUrl']
|
|
36
|
-
'httpsUrl': json['httpsUrl']
|
|
37
|
-
'noProxy': json['noProxy']
|
|
35
|
+
'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
|
|
36
|
+
'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
|
|
37
|
+
'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function AgentProxyToJSON(json) {
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentSubsetInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentSubsetInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AssessmentSubsetInventory
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AssessmentSubsetInventory
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AssessmentSubsetInventory
|
|
35
|
+
*/
|
|
36
|
+
vcenterId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AssessmentSubsetInventory
|
|
41
|
+
*/
|
|
42
|
+
vmsCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Inventory}
|
|
46
|
+
* @memberof AssessmentSubsetInventory
|
|
47
|
+
*/
|
|
48
|
+
inventory: Inventory;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AssessmentSubsetInventory
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAssessmentSubsetInventory(value: object): value is AssessmentSubsetInventory;
|
|
60
|
+
export declare function AssessmentSubsetInventoryFromJSON(json: any): AssessmentSubsetInventory;
|
|
61
|
+
export declare function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSubsetInventory;
|
|
62
|
+
export declare function AssessmentSubsetInventoryToJSON(json: any): AssessmentSubsetInventory;
|
|
63
|
+
export declare function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInventory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfAssessmentSubsetInventory = instanceOfAssessmentSubsetInventory;
|
|
17
|
+
exports.AssessmentSubsetInventoryFromJSON = AssessmentSubsetInventoryFromJSON;
|
|
18
|
+
exports.AssessmentSubsetInventoryFromJSONTyped = AssessmentSubsetInventoryFromJSONTyped;
|
|
19
|
+
exports.AssessmentSubsetInventoryToJSON = AssessmentSubsetInventoryToJSON;
|
|
20
|
+
exports.AssessmentSubsetInventoryToJSONTyped = AssessmentSubsetInventoryToJSONTyped;
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssessmentSubsetInventory(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AssessmentSubsetInventoryFromJSON(json) {
|
|
41
|
+
return AssessmentSubsetInventoryFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'vcenterId': json['vcenterId'],
|
|
51
|
+
'vmsCount': json['vmsCount'],
|
|
52
|
+
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AssessmentSubsetInventoryToJSON(json) {
|
|
57
|
+
return AssessmentSubsetInventoryToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'vcenterId': value['vcenterId'],
|
|
67
|
+
'vmsCount': value['vmsCount'],
|
|
68
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
69
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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/Datastore.js
CHANGED
|
@@ -56,7 +56,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
57
57
|
'protocolType': json['protocolType'],
|
|
58
58
|
'model': json['model'],
|
|
59
|
-
'hostId': json['hostId']
|
|
59
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function DatastoreToJSON(json) {
|
package/dist/models/Host.js
CHANGED
|
@@ -39,9 +39,9 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
40
|
'vendor': json['vendor'],
|
|
41
41
|
'model': json['model'],
|
|
42
|
-
'cpuCores': json['cpuCores']
|
|
43
|
-
'cpuSockets': json['cpuSockets']
|
|
44
|
-
'memoryMB': json['memoryMB']
|
|
42
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
43
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
44
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function HostToJSON(json) {
|
package/dist/models/Identity.js
CHANGED
|
@@ -48,8 +48,8 @@ function IdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
return {
|
|
49
49
|
'username': json['username'],
|
|
50
50
|
'kind': json['kind'],
|
|
51
|
-
'groupId': json['groupId']
|
|
52
|
-
'partnerId': json['partnerId']
|
|
51
|
+
'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
|
|
52
|
+
'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function IdentityToJSON(json) {
|
package/dist/models/Info.js
CHANGED
|
@@ -38,8 +38,8 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'gitCommit': json['gitCommit'],
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
|
-
'agentGitCommit': json['agentGitCommit']
|
|
42
|
-
'agentVersionName': json['agentVersionName']
|
|
41
|
+
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
42
|
+
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function InfoToJSON(json) {
|
|
@@ -0,0 +1,56 @@
|
|
|
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 IssuesBreakdown
|
|
16
|
+
*/
|
|
17
|
+
export interface IssuesBreakdown {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs with at least one Critical issue
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IssuesBreakdown
|
|
22
|
+
*/
|
|
23
|
+
critical: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with at least one Warning issue
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IssuesBreakdown
|
|
28
|
+
*/
|
|
29
|
+
warning: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with at least one Information issue
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IssuesBreakdown
|
|
34
|
+
*/
|
|
35
|
+
information: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of VMs with at least one Advisory issue
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IssuesBreakdown
|
|
40
|
+
*/
|
|
41
|
+
advisory: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of VMs with at least one Error issue
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IssuesBreakdown
|
|
46
|
+
*/
|
|
47
|
+
error: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
|
|
53
|
+
export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
|
|
54
|
+
export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
|
|
55
|
+
export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
|
|
56
|
+
export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfIssuesBreakdown = instanceOfIssuesBreakdown;
|
|
17
|
+
exports.IssuesBreakdownFromJSON = IssuesBreakdownFromJSON;
|
|
18
|
+
exports.IssuesBreakdownFromJSONTyped = IssuesBreakdownFromJSONTyped;
|
|
19
|
+
exports.IssuesBreakdownToJSON = IssuesBreakdownToJSON;
|
|
20
|
+
exports.IssuesBreakdownToJSONTyped = IssuesBreakdownToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIssuesBreakdown(value) {
|
|
25
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function IssuesBreakdownFromJSON(json) {
|
|
38
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'critical': json['critical'],
|
|
46
|
+
'warning': json['warning'],
|
|
47
|
+
'information': json['information'],
|
|
48
|
+
'advisory': json['advisory'],
|
|
49
|
+
'error': json['error'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function IssuesBreakdownToJSON(json) {
|
|
53
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'critical': value['critical'],
|
|
61
|
+
'warning': value['warning'],
|
|
62
|
+
'information': value['information'],
|
|
63
|
+
'advisory': value['advisory'],
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export interface OsInfo {
|
|
|
27
27
|
* @memberof OsInfo
|
|
28
28
|
*/
|
|
29
29
|
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* OS support tier per Red Hat KCS article 4234591
|
|
32
|
+
* @type {OsInfoSupportTierEnum}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
supportTier?: OsInfoSupportTierEnum;
|
|
30
36
|
/**
|
|
31
37
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
38
|
* @type {string}
|
|
@@ -34,6 +40,16 @@ export interface OsInfo {
|
|
|
34
40
|
*/
|
|
35
41
|
upgradeRecommendation?: string;
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const OsInfoSupportTierEnum: {
|
|
47
|
+
readonly Certified: "certified";
|
|
48
|
+
readonly VendorSupported: "vendor_supported";
|
|
49
|
+
readonly CommunitySupported: "community_supported";
|
|
50
|
+
readonly SpecialHandling: "special_handling";
|
|
51
|
+
};
|
|
52
|
+
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
37
53
|
/**
|
|
38
54
|
* Check if a given object implements the OsInfo interface.
|
|
39
55
|
*/
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -13,11 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OsInfoSupportTierEnum = void 0;
|
|
16
17
|
exports.instanceOfOsInfo = instanceOfOsInfo;
|
|
17
18
|
exports.OsInfoFromJSON = OsInfoFromJSON;
|
|
18
19
|
exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
|
|
19
20
|
exports.OsInfoToJSON = OsInfoToJSON;
|
|
20
21
|
exports.OsInfoToJSONTyped = OsInfoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OsInfoSupportTierEnum = {
|
|
26
|
+
Certified: 'certified',
|
|
27
|
+
VendorSupported: 'vendor_supported',
|
|
28
|
+
CommunitySupported: 'community_supported',
|
|
29
|
+
SpecialHandling: 'special_handling'
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the OsInfo interface.
|
|
23
33
|
*/
|
|
@@ -38,6 +48,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
48
|
return {
|
|
39
49
|
'count': json['count'],
|
|
40
50
|
'supported': json['supported'],
|
|
51
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
41
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
42
53
|
};
|
|
43
54
|
}
|
|
@@ -51,6 +62,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
62
|
return {
|
|
52
63
|
'count': value['count'],
|
|
53
64
|
'supported': value['supported'],
|
|
65
|
+
'supportTier': value['supportTier'],
|
|
54
66
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
55
67
|
};
|
|
56
68
|
}
|
|
@@ -63,9 +63,9 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'contactPhone': json['contactPhone'],
|
|
64
64
|
'email': json['email'],
|
|
65
65
|
'location': json['location'],
|
|
66
|
-
'reason': json['reason']
|
|
67
|
-
'acceptedAt': json['acceptedAt']
|
|
68
|
-
'terminatedAt': json['terminatedAt']
|
|
66
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
67
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
|
|
68
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
|
|
69
69
|
'createdAt': (new Date(json['createdAt'])),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AssessmentSubsetInventory } from './AssessmentSubsetInventory.js';
|
|
12
13
|
import type { Inventory } from './Inventory.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,12 @@ export interface Snapshot {
|
|
|
28
29
|
* @memberof Snapshot
|
|
29
30
|
*/
|
|
30
31
|
createdAt: Date;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<AssessmentSubsetInventory>}
|
|
35
|
+
* @memberof Snapshot
|
|
36
|
+
*/
|
|
37
|
+
subsetInventories?: Array<AssessmentSubsetInventory> | null;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* Check if a given object implements the Snapshot interface.
|
package/dist/models/Snapshot.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.SnapshotFromJSON = SnapshotFromJSON;
|
|
|
18
18
|
exports.SnapshotFromJSONTyped = SnapshotFromJSONTyped;
|
|
19
19
|
exports.SnapshotToJSON = SnapshotToJSON;
|
|
20
20
|
exports.SnapshotToJSONTyped = SnapshotToJSONTyped;
|
|
21
|
+
const AssessmentSubsetInventory_js_1 = require("./AssessmentSubsetInventory.js");
|
|
21
22
|
const Inventory_js_1 = require("./Inventory.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the Snapshot interface.
|
|
@@ -39,6 +40,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
return {
|
|
40
41
|
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
41
42
|
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
function SnapshotToJSON(json) {
|
|
@@ -51,5 +53,6 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
53
|
return {
|
|
52
54
|
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
53
55
|
'createdAt': value['createdAt'].toISOString(),
|
|
56
|
+
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
|
|
54
57
|
};
|
|
55
58
|
}
|