@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
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ docs/Assessment.md
|
|
|
9
9
|
docs/AssessmentApi.md
|
|
10
10
|
docs/AssessmentForm.md
|
|
11
11
|
docs/AssessmentSharing.md
|
|
12
|
+
docs/AssessmentSubsetInventory.md
|
|
12
13
|
docs/AssessmentUpdate.md
|
|
13
14
|
docs/ClusterFeatures.md
|
|
14
15
|
docs/ClusterRequirementsRequest.md
|
|
@@ -41,6 +42,7 @@ docs/Inventory.md
|
|
|
41
42
|
docs/InventoryData.md
|
|
42
43
|
docs/InventoryTotals.md
|
|
43
44
|
docs/Ipv4Config.md
|
|
45
|
+
docs/IssuesBreakdown.md
|
|
44
46
|
docs/Job.md
|
|
45
47
|
docs/JobApi.md
|
|
46
48
|
docs/JobStatus.md
|
|
@@ -105,6 +107,7 @@ src/models/AgentProxy.ts
|
|
|
105
107
|
src/models/Assessment.ts
|
|
106
108
|
src/models/AssessmentForm.ts
|
|
107
109
|
src/models/AssessmentSharing.ts
|
|
110
|
+
src/models/AssessmentSubsetInventory.ts
|
|
108
111
|
src/models/AssessmentUpdate.ts
|
|
109
112
|
src/models/ClusterFeatures.ts
|
|
110
113
|
src/models/ClusterRequirementsRequest.ts
|
|
@@ -134,6 +137,7 @@ src/models/Inventory.ts
|
|
|
134
137
|
src/models/InventoryData.ts
|
|
135
138
|
src/models/InventoryTotals.ts
|
|
136
139
|
src/models/Ipv4Config.ts
|
|
140
|
+
src/models/IssuesBreakdown.ts
|
|
137
141
|
src/models/Job.ts
|
|
138
142
|
src/models/JobStatus.ts
|
|
139
143
|
src/models/Label.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.15.0-40816ac44039
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -104,6 +104,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
104
104
|
- [Assessment](docs/Assessment.md)
|
|
105
105
|
- [AssessmentForm](docs/AssessmentForm.md)
|
|
106
106
|
- [AssessmentSharing](docs/AssessmentSharing.md)
|
|
107
|
+
- [AssessmentSubsetInventory](docs/AssessmentSubsetInventory.md)
|
|
107
108
|
- [AssessmentUpdate](docs/AssessmentUpdate.md)
|
|
108
109
|
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
109
110
|
- [ClusterRequirementsRequest](docs/ClusterRequirementsRequest.md)
|
|
@@ -133,6 +134,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
133
134
|
- [InventoryData](docs/InventoryData.md)
|
|
134
135
|
- [InventoryTotals](docs/InventoryTotals.md)
|
|
135
136
|
- [Ipv4Config](docs/Ipv4Config.md)
|
|
137
|
+
- [IssuesBreakdown](docs/IssuesBreakdown.md)
|
|
136
138
|
- [Job](docs/Job.md)
|
|
137
139
|
- [JobStatus](docs/JobStatus.md)
|
|
138
140
|
- [Label](docs/Label.md)
|
|
@@ -189,7 +191,7 @@ and is automatically generated by the
|
|
|
189
191
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
190
192
|
|
|
191
193
|
- API version: `v1alpha1`
|
|
192
|
-
- Package version: `0.
|
|
194
|
+
- Package version: `0.15.0-40816ac44039`
|
|
193
195
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
194
196
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
195
197
|
|
|
@@ -25,9 +25,9 @@ export function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'httpUrl': json['httpUrl']
|
|
29
|
-
'httpsUrl': json['httpsUrl']
|
|
30
|
-
'noProxy': json['noProxy']
|
|
28
|
+
'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
|
|
29
|
+
'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
|
|
30
|
+
'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export 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,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAssessmentSubsetInventory(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function AssessmentSubsetInventoryFromJSON(json) {
|
|
34
|
+
return AssessmentSubsetInventoryFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'vcenterId': json['vcenterId'],
|
|
44
|
+
'vmsCount': json['vmsCount'],
|
|
45
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
46
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function AssessmentSubsetInventoryToJSON(json) {
|
|
50
|
+
return AssessmentSubsetInventoryToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'vcenterId': value['vcenterId'],
|
|
60
|
+
'vmsCount': value['vmsCount'],
|
|
61
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
62
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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
|
}
|
|
@@ -49,7 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
50
|
'protocolType': json['protocolType'],
|
|
51
51
|
'model': json['model'],
|
|
52
|
-
'hostId': json['hostId']
|
|
52
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
export function DatastoreToJSON(json) {
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
33
|
'vendor': json['vendor'],
|
|
34
34
|
'model': json['model'],
|
|
35
|
-
'cpuCores': json['cpuCores']
|
|
36
|
-
'cpuSockets': json['cpuSockets']
|
|
37
|
-
'memoryMB': json['memoryMB']
|
|
35
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HostToJSON(json) {
|
|
@@ -40,8 +40,8 @@ export function IdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'username': json['username'],
|
|
42
42
|
'kind': json['kind'],
|
|
43
|
-
'groupId': json['groupId']
|
|
44
|
-
'partnerId': json['partnerId']
|
|
43
|
+
'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
|
|
44
|
+
'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
export function IdentityToJSON(json) {
|
package/dist/esm/models/Info.js
CHANGED
|
@@ -31,8 +31,8 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'gitCommit': json['gitCommit'],
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
|
-
'agentGitCommit': json['agentGitCommit']
|
|
35
|
-
'agentVersionName': json['agentVersionName']
|
|
34
|
+
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
35
|
+
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export 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,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIssuesBreakdown(value) {
|
|
18
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function IssuesBreakdownFromJSON(json) {
|
|
31
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'critical': json['critical'],
|
|
39
|
+
'warning': json['warning'],
|
|
40
|
+
'information': json['information'],
|
|
41
|
+
'advisory': json['advisory'],
|
|
42
|
+
'error': json['error'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function IssuesBreakdownToJSON(json) {
|
|
46
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'critical': value['critical'],
|
|
54
|
+
'warning': value['warning'],
|
|
55
|
+
'information': value['information'],
|
|
56
|
+
'advisory': value['advisory'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OsInfoSupportTierEnum = {
|
|
18
|
+
Certified: 'certified',
|
|
19
|
+
VendorSupported: 'vendor_supported',
|
|
20
|
+
CommunitySupported: 'community_supported',
|
|
21
|
+
SpecialHandling: 'special_handling'
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
24
|
* Check if a given object implements the OsInfo interface.
|
|
16
25
|
*/
|
|
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
40
|
return {
|
|
32
41
|
'count': json['count'],
|
|
33
42
|
'supported': json['supported'],
|
|
43
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
34
44
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
35
45
|
};
|
|
36
46
|
}
|
|
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
54
|
return {
|
|
45
55
|
'count': value['count'],
|
|
46
56
|
'supported': value['supported'],
|
|
57
|
+
'supportTier': value['supportTier'],
|
|
47
58
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
48
59
|
};
|
|
49
60
|
}
|
|
@@ -56,9 +56,9 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'contactPhone': json['contactPhone'],
|
|
57
57
|
'email': json['email'],
|
|
58
58
|
'location': json['location'],
|
|
59
|
-
'reason': json['reason']
|
|
60
|
-
'acceptedAt': json['acceptedAt']
|
|
61
|
-
'terminatedAt': json['terminatedAt']
|
|
59
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
60
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
|
|
61
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
|
|
62
62
|
'createdAt': (new Date(json['createdAt'])),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -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.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { AssessmentSubsetInventoryFromJSON, AssessmentSubsetInventoryToJSON, } from './AssessmentSubsetInventory.js';
|
|
14
15
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the Snapshot interface.
|
|
@@ -32,6 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
return {
|
|
33
34
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
34
35
|
'createdAt': (new Date(json['createdAt'])),
|
|
36
|
+
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function SnapshotToJSON(json) {
|
|
@@ -44,5 +46,6 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
46
|
return {
|
|
45
47
|
'inventory': InventoryToJSON(value['inventory']),
|
|
46
48
|
'createdAt': value['createdAt'].toISOString(),
|
|
49
|
+
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
|
|
47
50
|
};
|
|
48
51
|
}
|
|
@@ -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
|
*/
|
|
@@ -48,8 +55,9 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
55
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
49
56
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
50
57
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
51
|
-
'agentVersion': json['agentVersion']
|
|
52
|
-
'agentVersionWarning': json['agentVersionWarning']
|
|
58
|
+
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
59
|
+
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : 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
|
}
|
|
@@ -38,9 +38,9 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': json['name'],
|
|
41
|
-
'sshPublicKey': json['sshPublicKey']
|
|
41
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
42
42
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
43
|
-
'certificateChain': json['certificateChain']
|
|
43
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
44
44
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
45
45
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
46
46
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
@@ -28,7 +28,7 @@ export function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
31
|
-
'sshPublicKey': json['sshPublicKey']
|
|
31
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
32
32
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -37,8 +37,8 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return {
|
|
38
38
|
'name': json['name'] == null ? undefined : json['name'],
|
|
39
39
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
40
|
-
'sshPublicKey': json['sshPublicKey']
|
|
41
|
-
'certificateChain': json['certificateChain']
|
|
40
|
+
'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
|
|
41
|
+
'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
|
|
42
42
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
43
43
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
44
44
|
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|