@openshift-migration-advisor/planner-sdk 0.17.0 → 0.18.0-b5e8e71564be
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/Datastore.d.ts +7 -0
- package/dist/esm/models/Datastore.js +3 -0
- 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/StorageIoConfiguration.d.ts +58 -0
- package/dist/esm/models/StorageIoConfiguration.js +54 -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/models/Datastore.d.ts +7 -0
- package/dist/models/Datastore.js +3 -0
- 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/StorageIoConfiguration.d.ts +58 -0
- package/dist/models/StorageIoConfiguration.js +62 -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/docs/Datastore.md +2 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/Datastore.ts +16 -0
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -42,6 +42,7 @@ docs/Inventory.md
|
|
|
42
42
|
docs/InventoryData.md
|
|
43
43
|
docs/InventoryTotals.md
|
|
44
44
|
docs/Ipv4Config.md
|
|
45
|
+
docs/IssuesBreakdown.md
|
|
45
46
|
docs/Job.md
|
|
46
47
|
docs/JobApi.md
|
|
47
48
|
docs/JobStatus.md
|
|
@@ -84,6 +85,7 @@ docs/SourceUpdate.md
|
|
|
84
85
|
docs/StandaloneClusterRequirementsRequest.md
|
|
85
86
|
docs/StandaloneClusterRequirementsResponse.md
|
|
86
87
|
docs/Status.md
|
|
88
|
+
docs/StorageIoConfiguration.md
|
|
87
89
|
docs/UpdateInventory.md
|
|
88
90
|
docs/VCenter.md
|
|
89
91
|
docs/VMResourceBreakdown.md
|
|
@@ -136,6 +138,7 @@ src/models/Inventory.ts
|
|
|
136
138
|
src/models/InventoryData.ts
|
|
137
139
|
src/models/InventoryTotals.ts
|
|
138
140
|
src/models/Ipv4Config.ts
|
|
141
|
+
src/models/IssuesBreakdown.ts
|
|
139
142
|
src/models/Job.ts
|
|
140
143
|
src/models/JobStatus.ts
|
|
141
144
|
src/models/Label.ts
|
|
@@ -174,6 +177,7 @@ src/models/SourceUpdate.ts
|
|
|
174
177
|
src/models/StandaloneClusterRequirementsRequest.ts
|
|
175
178
|
src/models/StandaloneClusterRequirementsResponse.ts
|
|
176
179
|
src/models/Status.ts
|
|
180
|
+
src/models/StorageIoConfiguration.ts
|
|
177
181
|
src/models/UpdateInventory.ts
|
|
178
182
|
src/models/VCenter.ts
|
|
179
183
|
src/models/VMResourceBreakdown.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.18.0-b5e8e71564be
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -134,6 +134,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
134
134
|
- [InventoryData](docs/InventoryData.md)
|
|
135
135
|
- [InventoryTotals](docs/InventoryTotals.md)
|
|
136
136
|
- [Ipv4Config](docs/Ipv4Config.md)
|
|
137
|
+
- [IssuesBreakdown](docs/IssuesBreakdown.md)
|
|
137
138
|
- [Job](docs/Job.md)
|
|
138
139
|
- [JobStatus](docs/JobStatus.md)
|
|
139
140
|
- [Label](docs/Label.md)
|
|
@@ -172,6 +173,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
172
173
|
- [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
|
|
173
174
|
- [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
|
|
174
175
|
- [Status](docs/Status.md)
|
|
176
|
+
- [StorageIoConfiguration](docs/StorageIoConfiguration.md)
|
|
175
177
|
- [UpdateInventory](docs/UpdateInventory.md)
|
|
176
178
|
- [VCenter](docs/VCenter.md)
|
|
177
179
|
- [VMResourceBreakdown](docs/VMResourceBreakdown.md)
|
|
@@ -190,7 +192,7 @@ and is automatically generated by the
|
|
|
190
192
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
191
193
|
|
|
192
194
|
- API version: `v1alpha1`
|
|
193
|
-
- Package version: `0.
|
|
195
|
+
- Package version: `0.18.0-b5e8e71564be`
|
|
194
196
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
195
197
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
196
198
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface Datastore {
|
|
|
69
70
|
* @memberof Datastore
|
|
70
71
|
*/
|
|
71
72
|
hostId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {StorageIoConfiguration}
|
|
76
|
+
* @memberof Datastore
|
|
77
|
+
*/
|
|
78
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the Datastore interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Datastore interface.
|
|
16
17
|
*/
|
|
@@ -50,6 +51,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'protocolType': json['protocolType'],
|
|
51
52
|
'model': json['model'],
|
|
52
53
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
54
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
export function DatastoreToJSON(json) {
|
|
@@ -69,5 +71,6 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'protocolType': value['protocolType'],
|
|
70
72
|
'model': value['model'],
|
|
71
73
|
'hostId': value['hostId'],
|
|
74
|
+
'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 StorageIoConfiguration
|
|
16
|
+
*/
|
|
17
|
+
export interface StorageIoConfiguration {
|
|
18
|
+
/**
|
|
19
|
+
* Whether Storage I/O Control is enabled for this datastore
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof StorageIoConfiguration
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Latency threshold in milliseconds beyond which the storage array is considered congested
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StorageIoConfiguration
|
|
28
|
+
*/
|
|
29
|
+
congestionThreshold?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Mode for congestion threshold calculation
|
|
32
|
+
* @type {StorageIoConfigurationCongestionThresholdModeEnum}
|
|
33
|
+
* @memberof StorageIoConfiguration
|
|
34
|
+
*/
|
|
35
|
+
congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Percent of peak throughput
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StorageIoConfiguration
|
|
40
|
+
*/
|
|
41
|
+
percentOfPeakThroughput?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
|
|
47
|
+
readonly Automatic: "automatic";
|
|
48
|
+
readonly Manual: "manual";
|
|
49
|
+
};
|
|
50
|
+
export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
|
|
55
|
+
export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
|
|
56
|
+
export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
|
|
57
|
+
export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
|
|
58
|
+
export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const StorageIoConfigurationCongestionThresholdModeEnum = {
|
|
18
|
+
Automatic: 'automatic',
|
|
19
|
+
Manual: 'manual'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StorageIoConfiguration interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfStorageIoConfiguration(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function StorageIoConfigurationFromJSON(json) {
|
|
28
|
+
return StorageIoConfigurationFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
|
|
37
|
+
'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
|
|
38
|
+
'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function StorageIoConfigurationToJSON(json) {
|
|
42
|
+
return StorageIoConfigurationToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'enabled': value['enabled'],
|
|
50
|
+
'congestionThreshold': value['congestionThreshold'],
|
|
51
|
+
'congestionThresholdMode': value['congestionThresholdMode'],
|
|
52
|
+
'percentOfPeakThroughput': value['percentOfPeakThroughput'],
|
|
53
|
+
};
|
|
54
|
+
}
|
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
|
}
|
|
@@ -33,6 +33,7 @@ export * from './Inventory.js';
|
|
|
33
33
|
export * from './InventoryData.js';
|
|
34
34
|
export * from './InventoryTotals.js';
|
|
35
35
|
export * from './Ipv4Config.js';
|
|
36
|
+
export * from './IssuesBreakdown.js';
|
|
36
37
|
export * from './Job.js';
|
|
37
38
|
export * from './JobStatus.js';
|
|
38
39
|
export * from './Label.js';
|
|
@@ -71,6 +72,7 @@ export * from './SourceUpdate.js';
|
|
|
71
72
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
72
73
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
73
74
|
export * from './Status.js';
|
|
75
|
+
export * from './StorageIoConfiguration.js';
|
|
74
76
|
export * from './UpdateInventory.js';
|
|
75
77
|
export * from './VCenter.js';
|
|
76
78
|
export * from './VMResourceBreakdown.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export * from './Inventory.js';
|
|
|
35
35
|
export * from './InventoryData.js';
|
|
36
36
|
export * from './InventoryTotals.js';
|
|
37
37
|
export * from './Ipv4Config.js';
|
|
38
|
+
export * from './IssuesBreakdown.js';
|
|
38
39
|
export * from './Job.js';
|
|
39
40
|
export * from './JobStatus.js';
|
|
40
41
|
export * from './Label.js';
|
|
@@ -73,6 +74,7 @@ export * from './SourceUpdate.js';
|
|
|
73
74
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
74
75
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
75
76
|
export * from './Status.js';
|
|
77
|
+
export * from './StorageIoConfiguration.js';
|
|
76
78
|
export * from './UpdateInventory.js';
|
|
77
79
|
export * from './VCenter.js';
|
|
78
80
|
export * from './VMResourceBreakdown.js';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface Datastore {
|
|
|
69
70
|
* @memberof Datastore
|
|
70
71
|
*/
|
|
71
72
|
hostId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {StorageIoConfiguration}
|
|
76
|
+
* @memberof Datastore
|
|
77
|
+
*/
|
|
78
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.DatastoreFromJSON = DatastoreFromJSON;
|
|
|
18
18
|
exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
|
|
19
19
|
exports.DatastoreToJSON = DatastoreToJSON;
|
|
20
20
|
exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
|
|
21
|
+
const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Datastore interface.
|
|
23
24
|
*/
|
|
@@ -57,6 +58,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'protocolType': json['protocolType'],
|
|
58
59
|
'model': json['model'],
|
|
59
60
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
61
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : (0, StorageIoConfiguration_js_1.StorageIoConfigurationFromJSON)(json['storageIoConfiguration']),
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
function DatastoreToJSON(json) {
|
|
@@ -76,5 +78,6 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
78
|
'protocolType': value['protocolType'],
|
|
77
79
|
'model': value['model'],
|
|
78
80
|
'hostId': value['hostId'],
|
|
81
|
+
'storageIoConfiguration': (0, StorageIoConfiguration_js_1.StorageIoConfigurationToJSON)(value['storageIoConfiguration']),
|
|
79
82
|
};
|
|
80
83
|
}
|
|
@@ -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
|
*/
|