@openshift-migration-advisor/planner-sdk 0.31.0-399d228f1c9b → 0.31.0-753befe33bbe
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/Host.d.ts +10 -0
- package/dist/esm/models/Host.js +6 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Host.d.ts +10 -0
- package/dist/models/Host.js +6 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/Host.md +4 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/models/Host.ts +27 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -43,6 +43,8 @@ docs/GroupUpdate.md
|
|
|
43
43
|
docs/HealthApi.md
|
|
44
44
|
docs/Histogram.md
|
|
45
45
|
docs/Host.md
|
|
46
|
+
docs/HostStorageAdapter.md
|
|
47
|
+
docs/HostStorageLun.md
|
|
46
48
|
docs/Identity.md
|
|
47
49
|
docs/ImageApi.md
|
|
48
50
|
docs/Info.md
|
|
@@ -157,6 +159,8 @@ src/models/GroupCreate.ts
|
|
|
157
159
|
src/models/GroupUpdate.ts
|
|
158
160
|
src/models/Histogram.ts
|
|
159
161
|
src/models/Host.ts
|
|
162
|
+
src/models/HostStorageAdapter.ts
|
|
163
|
+
src/models/HostStorageLun.ts
|
|
160
164
|
src/models/Identity.ts
|
|
161
165
|
src/models/Info.ts
|
|
162
166
|
src/models/Infra.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.31.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.31.0-753befe33bbe
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -147,6 +147,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
147
147
|
- [GroupUpdate](docs/GroupUpdate.md)
|
|
148
148
|
- [Histogram](docs/Histogram.md)
|
|
149
149
|
- [Host](docs/Host.md)
|
|
150
|
+
- [HostStorageAdapter](docs/HostStorageAdapter.md)
|
|
151
|
+
- [HostStorageLun](docs/HostStorageLun.md)
|
|
150
152
|
- [Identity](docs/Identity.md)
|
|
151
153
|
- [Info](docs/Info.md)
|
|
152
154
|
- [Infra](docs/Infra.md)
|
|
@@ -218,7 +220,7 @@ and is automatically generated by the
|
|
|
218
220
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
219
221
|
|
|
220
222
|
- API version: `v1alpha1`
|
|
221
|
-
- Package version: `0.31.0-
|
|
223
|
+
- Package version: `0.31.0-753befe33bbe`
|
|
222
224
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
223
225
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
224
226
|
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -47,6 +49,14 @@ export interface Host {
|
|
|
47
49
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
50
|
*/
|
|
49
51
|
storageVmotionSupported?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
54
|
+
*/
|
|
55
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
56
|
+
/**
|
|
57
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
58
|
+
*/
|
|
59
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
60
|
}
|
|
51
61
|
/**
|
|
52
62
|
* Check if a given object implements the Host interface.
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostStorageAdapterFromJSON, HostStorageAdapterToJSON, } from './HostStorageAdapter.js';
|
|
15
|
+
import { HostStorageLunFromJSON, HostStorageLunToJSON, } from './HostStorageLun.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the Host interface.
|
|
16
18
|
*/
|
|
@@ -37,6 +39,8 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
40
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
39
41
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
42
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
|
|
43
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
|
|
40
44
|
};
|
|
41
45
|
}
|
|
42
46
|
export function HostToJSON(json) {
|
|
@@ -55,5 +59,7 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
59
|
'memoryMB': value['memoryMB'],
|
|
56
60
|
'vmotionSupported': value['vmotionSupported'],
|
|
57
61
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
62
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
|
|
63
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
|
|
58
64
|
};
|
|
59
65
|
}
|
|
@@ -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
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageAdapter
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageAdapter {
|
|
18
|
+
/**
|
|
19
|
+
* Host-local adapter device name.
|
|
20
|
+
*/
|
|
21
|
+
device?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source adapter key; distinct from device name.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adapter type as supplied by the source.
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter protocol as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
protocol?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter driver.
|
|
40
|
+
*/
|
|
41
|
+
driver?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
44
|
+
*/
|
|
45
|
+
nodeWwn?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
portWwn?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
|
|
55
|
+
export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
|
|
56
|
+
export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
|
|
57
|
+
export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
|
|
58
|
+
export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 HostStorageAdapter interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageAdapter(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageAdapterFromJSON(json) {
|
|
21
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
34
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
35
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function HostStorageAdapterToJSON(json) {
|
|
39
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'device': value['device'],
|
|
47
|
+
'key': value['key'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'protocol': value['protocol'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'driver': value['driver'],
|
|
52
|
+
'nodeWwn': value['nodeWwn'],
|
|
53
|
+
'portWwn': value['portWwn'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageLun
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageLun {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
20
|
+
*/
|
|
21
|
+
canonicalName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source SCSI disk key.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
28
|
+
*/
|
|
29
|
+
lunUuid?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN vendor.
|
|
32
|
+
*/
|
|
33
|
+
vendor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
40
|
+
*/
|
|
41
|
+
adapterDevices?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
|
|
47
|
+
export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
|
|
48
|
+
export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
|
|
49
|
+
export declare function HostStorageLunToJSON(json: any): HostStorageLun;
|
|
50
|
+
export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 HostStorageLun interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageLun(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageLunFromJSON(json) {
|
|
21
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
31
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HostStorageLunToJSON(json) {
|
|
37
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canonicalName': value['canonicalName'],
|
|
45
|
+
'key': value['key'],
|
|
46
|
+
'lunUuid': value['lunUuid'],
|
|
47
|
+
'vendor': value['vendor'],
|
|
48
|
+
'model': value['model'],
|
|
49
|
+
'adapterDevices': value['adapterDevices'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -27,6 +27,10 @@ export interface OsInfo {
|
|
|
27
27
|
* OS support tier per Red Hat KCS article 4234591
|
|
28
28
|
*/
|
|
29
29
|
supportTier?: OsInfoSupportTierEnum;
|
|
30
|
+
/**
|
|
31
|
+
* MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
|
|
32
|
+
*/
|
|
33
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
30
34
|
/**
|
|
31
35
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
36
|
*/
|
|
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
|
|
|
42
46
|
readonly SpecialHandling: "special_handling";
|
|
43
47
|
};
|
|
44
48
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const OsInfoMtvStatusEnum: {
|
|
53
|
+
readonly Green: "green";
|
|
54
|
+
readonly Blue: "blue";
|
|
55
|
+
};
|
|
56
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
45
57
|
/**
|
|
46
58
|
* Check if a given object implements the OsInfo interface.
|
|
47
59
|
*/
|
|
@@ -20,6 +20,13 @@ export const OsInfoSupportTierEnum = {
|
|
|
20
20
|
CommunitySupported: 'community_supported',
|
|
21
21
|
SpecialHandling: 'special_handling',
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const OsInfoMtvStatusEnum = {
|
|
27
|
+
Green: 'green',
|
|
28
|
+
Blue: 'blue',
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the OsInfo interface.
|
|
25
32
|
*/
|
|
@@ -41,6 +48,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
48
|
'count': json['count'],
|
|
42
49
|
'supported': json['supported'],
|
|
43
50
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
51
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
44
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
45
53
|
};
|
|
46
54
|
}
|
|
@@ -55,6 +63,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
63
|
'count': value['count'],
|
|
56
64
|
'supported': value['supported'],
|
|
57
65
|
'supportTier': value['supportTier'],
|
|
66
|
+
'mtvStatus': value['mtvStatus'],
|
|
58
67
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
59
68
|
};
|
|
60
69
|
}
|
|
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
|
|
|
36
36
|
export * from './GroupUpdate.js';
|
|
37
37
|
export * from './Histogram.js';
|
|
38
38
|
export * from './Host.js';
|
|
39
|
+
export * from './HostStorageAdapter.js';
|
|
40
|
+
export * from './HostStorageLun.js';
|
|
39
41
|
export * from './Identity.js';
|
|
40
42
|
export * from './Info.js';
|
|
41
43
|
export * from './Infra.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
|
|
|
38
38
|
export * from './GroupUpdate.js';
|
|
39
39
|
export * from './Histogram.js';
|
|
40
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
41
43
|
export * from './Identity.js';
|
|
42
44
|
export * from './Info.js';
|
|
43
45
|
export * from './Infra.js';
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -47,6 +49,14 @@ export interface Host {
|
|
|
47
49
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
50
|
*/
|
|
49
51
|
storageVmotionSupported?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
54
|
+
*/
|
|
55
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
56
|
+
/**
|
|
57
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
58
|
+
*/
|
|
59
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
60
|
}
|
|
51
61
|
/**
|
|
52
62
|
* Check if a given object implements the Host interface.
|
package/dist/models/Host.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
|
|
|
18
18
|
exports.HostFromJSONTyped = HostFromJSONTyped;
|
|
19
19
|
exports.HostToJSON = HostToJSON;
|
|
20
20
|
exports.HostToJSONTyped = HostToJSONTyped;
|
|
21
|
+
const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
|
|
22
|
+
const HostStorageLun_js_1 = require("./HostStorageLun.js");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the Host interface.
|
|
23
25
|
*/
|
|
@@ -44,6 +46,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
47
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
46
48
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
49
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
|
|
50
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
function HostToJSON(json) {
|
|
@@ -62,5 +66,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
66
|
'memoryMB': value['memoryMB'],
|
|
63
67
|
'vmotionSupported': value['vmotionSupported'],
|
|
64
68
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
69
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
|
|
70
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
|
|
65
71
|
};
|
|
66
72
|
}
|
|
@@ -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
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageAdapter
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageAdapter {
|
|
18
|
+
/**
|
|
19
|
+
* Host-local adapter device name.
|
|
20
|
+
*/
|
|
21
|
+
device?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source adapter key; distinct from device name.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adapter type as supplied by the source.
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter protocol as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
protocol?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter driver.
|
|
40
|
+
*/
|
|
41
|
+
driver?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
44
|
+
*/
|
|
45
|
+
nodeWwn?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
portWwn?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
|
|
55
|
+
export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
|
|
56
|
+
export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
|
|
57
|
+
export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
|
|
58
|
+
export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfHostStorageAdapter = instanceOfHostStorageAdapter;
|
|
17
|
+
exports.HostStorageAdapterFromJSON = HostStorageAdapterFromJSON;
|
|
18
|
+
exports.HostStorageAdapterFromJSONTyped = HostStorageAdapterFromJSONTyped;
|
|
19
|
+
exports.HostStorageAdapterToJSON = HostStorageAdapterToJSON;
|
|
20
|
+
exports.HostStorageAdapterToJSONTyped = HostStorageAdapterToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHostStorageAdapter(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HostStorageAdapterFromJSON(json) {
|
|
28
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
36
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
37
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
38
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
39
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
41
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
42
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function HostStorageAdapterToJSON(json) {
|
|
46
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'device': value['device'],
|
|
54
|
+
'key': value['key'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
'protocol': value['protocol'],
|
|
57
|
+
'model': value['model'],
|
|
58
|
+
'driver': value['driver'],
|
|
59
|
+
'nodeWwn': value['nodeWwn'],
|
|
60
|
+
'portWwn': value['portWwn'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageLun
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageLun {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
20
|
+
*/
|
|
21
|
+
canonicalName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source SCSI disk key.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
28
|
+
*/
|
|
29
|
+
lunUuid?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN vendor.
|
|
32
|
+
*/
|
|
33
|
+
vendor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
40
|
+
*/
|
|
41
|
+
adapterDevices?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
|
|
47
|
+
export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
|
|
48
|
+
export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
|
|
49
|
+
export declare function HostStorageLunToJSON(json: any): HostStorageLun;
|
|
50
|
+
export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfHostStorageLun = instanceOfHostStorageLun;
|
|
17
|
+
exports.HostStorageLunFromJSON = HostStorageLunFromJSON;
|
|
18
|
+
exports.HostStorageLunFromJSONTyped = HostStorageLunFromJSONTyped;
|
|
19
|
+
exports.HostStorageLunToJSON = HostStorageLunToJSON;
|
|
20
|
+
exports.HostStorageLunToJSONTyped = HostStorageLunToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHostStorageLun(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HostStorageLunFromJSON(json) {
|
|
28
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
36
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
37
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
38
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
39
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function HostStorageLunToJSON(json) {
|
|
44
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'canonicalName': value['canonicalName'],
|
|
52
|
+
'key': value['key'],
|
|
53
|
+
'lunUuid': value['lunUuid'],
|
|
54
|
+
'vendor': value['vendor'],
|
|
55
|
+
'model': value['model'],
|
|
56
|
+
'adapterDevices': value['adapterDevices'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export interface OsInfo {
|
|
|
27
27
|
* OS support tier per Red Hat KCS article 4234591
|
|
28
28
|
*/
|
|
29
29
|
supportTier?: OsInfoSupportTierEnum;
|
|
30
|
+
/**
|
|
31
|
+
* MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
|
|
32
|
+
*/
|
|
33
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
30
34
|
/**
|
|
31
35
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
36
|
*/
|
|
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
|
|
|
42
46
|
readonly SpecialHandling: "special_handling";
|
|
43
47
|
};
|
|
44
48
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const OsInfoMtvStatusEnum: {
|
|
53
|
+
readonly Green: "green";
|
|
54
|
+
readonly Blue: "blue";
|
|
55
|
+
};
|
|
56
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
45
57
|
/**
|
|
46
58
|
* Check if a given object implements the OsInfo interface.
|
|
47
59
|
*/
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OsInfoSupportTierEnum = void 0;
|
|
16
|
+
exports.OsInfoMtvStatusEnum = exports.OsInfoSupportTierEnum = void 0;
|
|
17
17
|
exports.instanceOfOsInfo = instanceOfOsInfo;
|
|
18
18
|
exports.OsInfoFromJSON = OsInfoFromJSON;
|
|
19
19
|
exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
|
|
@@ -28,6 +28,13 @@ exports.OsInfoSupportTierEnum = {
|
|
|
28
28
|
CommunitySupported: 'community_supported',
|
|
29
29
|
SpecialHandling: 'special_handling',
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.OsInfoMtvStatusEnum = {
|
|
35
|
+
Green: 'green',
|
|
36
|
+
Blue: 'blue',
|
|
37
|
+
};
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the OsInfo interface.
|
|
33
40
|
*/
|
|
@@ -49,6 +56,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
56
|
'count': json['count'],
|
|
50
57
|
'supported': json['supported'],
|
|
51
58
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
59
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
52
60
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
53
61
|
};
|
|
54
62
|
}
|
|
@@ -63,6 +71,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
71
|
'count': value['count'],
|
|
64
72
|
'supported': value['supported'],
|
|
65
73
|
'supportTier': value['supportTier'],
|
|
74
|
+
'mtvStatus': value['mtvStatus'],
|
|
66
75
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
67
76
|
};
|
|
68
77
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
|
|
|
36
36
|
export * from './GroupUpdate.js';
|
|
37
37
|
export * from './Histogram.js';
|
|
38
38
|
export * from './Host.js';
|
|
39
|
+
export * from './HostStorageAdapter.js';
|
|
40
|
+
export * from './HostStorageLun.js';
|
|
39
41
|
export * from './Identity.js';
|
|
40
42
|
export * from './Info.js';
|
|
41
43
|
export * from './Infra.js';
|
package/dist/models/index.js
CHANGED
|
@@ -54,6 +54,8 @@ __exportStar(require("./GroupCreate.js"), exports);
|
|
|
54
54
|
__exportStar(require("./GroupUpdate.js"), exports);
|
|
55
55
|
__exportStar(require("./Histogram.js"), exports);
|
|
56
56
|
__exportStar(require("./Host.js"), exports);
|
|
57
|
+
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
58
|
+
__exportStar(require("./HostStorageLun.js"), exports);
|
|
57
59
|
__exportStar(require("./Identity.js"), exports);
|
|
58
60
|
__exportStar(require("./Info.js"), exports);
|
|
59
61
|
__exportStar(require("./Infra.js"), exports);
|
package/docs/Host.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`memoryMB` | number
|
|
15
15
|
`vmotionSupported` | boolean
|
|
16
16
|
`storageVmotionSupported` | boolean
|
|
17
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
18
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"memoryMB": null,
|
|
31
33
|
"vmotionSupported": null,
|
|
32
34
|
"storageVmotionSupported": null,
|
|
35
|
+
"storageAdapters": null,
|
|
36
|
+
"storageLuns": null,
|
|
33
37
|
} satisfies Host
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageAdapter
|
|
3
|
+
|
|
4
|
+
Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`device` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`protocol` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`driver` | string
|
|
16
|
+
`nodeWwn` | string
|
|
17
|
+
`portWwn` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { HostStorageAdapter } from '@openshift-migration-advisor/planner-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"device": null,
|
|
27
|
+
"key": null,
|
|
28
|
+
"type": null,
|
|
29
|
+
"protocol": null,
|
|
30
|
+
"model": null,
|
|
31
|
+
"driver": null,
|
|
32
|
+
"nodeWwn": null,
|
|
33
|
+
"portWwn": null,
|
|
34
|
+
} satisfies HostStorageAdapter
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageLun
|
|
3
|
+
|
|
4
|
+
A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`canonicalName` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`lunUuid` | string
|
|
13
|
+
`vendor` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`adapterDevices` | Array<string>
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { HostStorageLun } from '@openshift-migration-advisor/planner-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"canonicalName": null,
|
|
25
|
+
"key": null,
|
|
26
|
+
"lunUuid": null,
|
|
27
|
+
"vendor": null,
|
|
28
|
+
"model": null,
|
|
29
|
+
"adapterDevices": null,
|
|
30
|
+
} satisfies HostStorageLun
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|
package/docs/OsInfo.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`count` | number
|
|
10
10
|
`supported` | boolean
|
|
11
11
|
`supportTier` | string
|
|
12
|
+
`mtvStatus` | string
|
|
12
13
|
`upgradeRecommendation` | string
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const example = {
|
|
|
21
22
|
"count": null,
|
|
22
23
|
"supported": null,
|
|
23
24
|
"supportTier": null,
|
|
25
|
+
"mtvStatus": null,
|
|
24
26
|
"upgradeRecommendation": null,
|
|
25
27
|
} satisfies OsInfo
|
|
26
28
|
|
package/package.json
CHANGED
package/src/models/Host.ts
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
17
|
+
import {
|
|
18
|
+
HostStorageAdapterFromJSON,
|
|
19
|
+
HostStorageAdapterFromJSONTyped,
|
|
20
|
+
HostStorageAdapterToJSON,
|
|
21
|
+
HostStorageAdapterToJSONTyped,
|
|
22
|
+
} from './HostStorageAdapter.js';
|
|
23
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
24
|
+
import {
|
|
25
|
+
HostStorageLunFromJSON,
|
|
26
|
+
HostStorageLunFromJSONTyped,
|
|
27
|
+
HostStorageLunToJSON,
|
|
28
|
+
HostStorageLunToJSONTyped,
|
|
29
|
+
} from './HostStorageLun.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -51,6 +66,14 @@ export interface Host {
|
|
|
51
66
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
52
67
|
*/
|
|
53
68
|
storageVmotionSupported?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
71
|
+
*/
|
|
72
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
73
|
+
/**
|
|
74
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
75
|
+
*/
|
|
76
|
+
storageLuns?: Array<HostStorageLun>;
|
|
54
77
|
}
|
|
55
78
|
|
|
56
79
|
/**
|
|
@@ -80,6 +103,8 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
80
103
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
81
104
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
82
105
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
106
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
|
|
107
|
+
'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
|
|
83
108
|
};
|
|
84
109
|
}
|
|
85
110
|
|
|
@@ -102,6 +127,8 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
102
127
|
'memoryMB': value['memoryMB'],
|
|
103
128
|
'vmotionSupported': value['vmotionSupported'],
|
|
104
129
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
130
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
|
|
131
|
+
'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
|
|
105
132
|
};
|
|
106
133
|
}
|
|
107
134
|
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageAdapter
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageAdapter {
|
|
22
|
+
/**
|
|
23
|
+
* Host-local adapter device name.
|
|
24
|
+
*/
|
|
25
|
+
device?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source adapter key; distinct from device name.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter type as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter protocol as supplied by the source.
|
|
36
|
+
*/
|
|
37
|
+
protocol?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Adapter driver.
|
|
44
|
+
*/
|
|
45
|
+
driver?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
nodeWwn?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
52
|
+
*/
|
|
53
|
+
portWwn?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function HostStorageAdapterFromJSON(json: any): HostStorageAdapter {
|
|
64
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
74
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
75
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
76
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
77
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
78
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
79
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
80
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function HostStorageAdapterToJSON(json: any): HostStorageAdapter {
|
|
85
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'device': value['device'],
|
|
96
|
+
'key': value['key'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'protocol': value['protocol'],
|
|
99
|
+
'model': value['model'],
|
|
100
|
+
'driver': value['driver'],
|
|
101
|
+
'nodeWwn': value['nodeWwn'],
|
|
102
|
+
'portWwn': value['portWwn'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageLun
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageLun {
|
|
22
|
+
/**
|
|
23
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
24
|
+
*/
|
|
25
|
+
canonicalName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source SCSI disk key.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN vendor.
|
|
36
|
+
*/
|
|
37
|
+
vendor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LUN model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
44
|
+
*/
|
|
45
|
+
adapterDevices?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfHostStorageLun(value: object): value is HostStorageLun {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HostStorageLunFromJSON(json: any): HostStorageLun {
|
|
56
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
66
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
67
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
68
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
69
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
70
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function HostStorageLunToJSON(json: any): HostStorageLun {
|
|
75
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'canonicalName': value['canonicalName'],
|
|
86
|
+
'key': value['key'],
|
|
87
|
+
'lunUuid': value['lunUuid'],
|
|
88
|
+
'vendor': value['vendor'],
|
|
89
|
+
'model': value['model'],
|
|
90
|
+
'adapterDevices': value['adapterDevices'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/OsInfo.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface OsInfo {
|
|
|
31
31
|
* OS support tier per Red Hat KCS article 4234591
|
|
32
32
|
*/
|
|
33
33
|
supportTier?: OsInfoSupportTierEnum;
|
|
34
|
+
/**
|
|
35
|
+
* MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
|
|
36
|
+
*/
|
|
37
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
34
38
|
/**
|
|
35
39
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
36
40
|
*/
|
|
@@ -49,6 +53,15 @@ export const OsInfoSupportTierEnum = {
|
|
|
49
53
|
} as const;
|
|
50
54
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
51
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export const OsInfoMtvStatusEnum = {
|
|
60
|
+
Green: 'green',
|
|
61
|
+
Blue: 'blue',
|
|
62
|
+
} as const;
|
|
63
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
64
|
+
|
|
52
65
|
|
|
53
66
|
/**
|
|
54
67
|
* Check if a given object implements the OsInfo interface.
|
|
@@ -72,6 +85,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
|
|
|
72
85
|
'count': json['count'],
|
|
73
86
|
'supported': json['supported'],
|
|
74
87
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
88
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
75
89
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
76
90
|
};
|
|
77
91
|
}
|
|
@@ -90,6 +104,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
|
|
|
90
104
|
'count': value['count'],
|
|
91
105
|
'supported': value['supported'],
|
|
92
106
|
'supportTier': value['supportTier'],
|
|
107
|
+
'mtvStatus': value['mtvStatus'],
|
|
93
108
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
94
109
|
};
|
|
95
110
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
|
|
|
38
38
|
export * from './GroupUpdate.js';
|
|
39
39
|
export * from './Histogram.js';
|
|
40
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
41
43
|
export * from './Identity.js';
|
|
42
44
|
export * from './Info.js';
|
|
43
45
|
export * from './Infra.js';
|