@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-187c2d948808
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 +16 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -3
- package/dist/apis/AssessmentApi.d.ts +257 -0
- package/dist/apis/AssessmentApi.js +257 -0
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/apis/JobApi.d.ts +86 -0
- package/dist/apis/JobApi.js +124 -0
- package/dist/esm/apis/AssessmentApi.d.ts +257 -0
- package/dist/esm/apis/AssessmentApi.js +257 -0
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -0
- package/dist/esm/apis/JobApi.d.ts +86 -0
- package/dist/esm/apis/JobApi.js +124 -0
- package/dist/esm/models/AssessmentV2.d.ts +36 -0
- package/dist/esm/models/AssessmentV2.js +49 -0
- package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/esm/models/AssessmentV2Summary.js +99 -0
- package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/esm/models/AssessmentVCenterV2.js +49 -0
- package/dist/esm/models/Datastore.d.ts +18 -2
- package/dist/esm/models/Datastore.js +8 -0
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -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/Info.d.ts +4 -0
- package/dist/esm/models/Info.js +2 -0
- package/dist/esm/models/Inventory.d.ts +5 -1
- package/dist/esm/models/Inventory.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +47 -0
- package/dist/esm/models/InventoryV2.js +55 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/SubResource.d.ts +30 -0
- package/dist/esm/models/SubResource.js +43 -0
- package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
- package/dist/esm/models/VsphereCoreInput.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AssessmentV2.d.ts +36 -0
- package/dist/models/AssessmentV2.js +56 -0
- package/dist/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/models/AssessmentV2Summary.js +107 -0
- package/dist/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/models/AssessmentVCenterV2.js +56 -0
- package/dist/models/Datastore.d.ts +18 -2
- package/dist/models/Datastore.js +8 -0
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -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/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/Inventory.d.ts +5 -1
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryV2.d.ts +47 -0
- package/dist/models/InventoryV2.js +62 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/SubResource.d.ts +30 -0
- package/dist/models/SubResource.js +50 -0
- package/dist/models/VsphereCoreInput.d.ts +8 -0
- package/dist/models/VsphereCoreInput.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +447 -0
- package/docs/AssessmentV2.md +36 -0
- package/docs/AssessmentV2Summary.md +58 -0
- package/docs/AssessmentVCenterV2.md +36 -0
- package/docs/Datastore.md +8 -0
- package/docs/Host.md +12 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/ImageApi.md +5 -2
- package/docs/Info.md +2 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +42 -0
- package/docs/JobApi.md +152 -0
- package/docs/OsInfo.md +2 -0
- package/docs/SourceType.md +32 -0
- package/docs/SubResource.md +34 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +536 -0
- package/src/apis/ImageApi.ts +19 -0
- package/src/apis/JobApi.ts +219 -0
- package/src/models/AssessmentV2.ts +86 -0
- package/src/models/AssessmentV2Summary.ts +173 -0
- package/src/models/AssessmentVCenterV2.ts +86 -0
- package/src/models/Datastore.ts +26 -2
- package/src/models/Host.ts +51 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Info.ts +6 -0
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +97 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/SourceType.ts +54 -0
- package/src/models/SubResource.ts +64 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +11 -11
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
|
|
@@ -31,6 +46,22 @@ export interface Host {
|
|
|
31
46
|
*
|
|
32
47
|
*/
|
|
33
48
|
model: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source datacenter name, when available.
|
|
51
|
+
*/
|
|
52
|
+
datacenter?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Source cluster name; omitted for standalone hosts.
|
|
55
|
+
*/
|
|
56
|
+
cluster?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Source-reported CPU model, when available.
|
|
59
|
+
*/
|
|
60
|
+
cpuModel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
63
|
+
*/
|
|
64
|
+
serialNumber?: string;
|
|
34
65
|
/**
|
|
35
66
|
* Number of CPU cores
|
|
36
67
|
*/
|
|
@@ -51,6 +82,14 @@ export interface Host {
|
|
|
51
82
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
52
83
|
*/
|
|
53
84
|
storageVmotionSupported?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
87
|
+
*/
|
|
88
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
89
|
+
/**
|
|
90
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
91
|
+
*/
|
|
92
|
+
storageLuns?: Array<HostStorageLun>;
|
|
54
93
|
}
|
|
55
94
|
|
|
56
95
|
/**
|
|
@@ -75,11 +114,17 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
75
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
76
115
|
'vendor': json['vendor'],
|
|
77
116
|
'model': json['model'],
|
|
117
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
118
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
119
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
120
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
78
121
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
79
122
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
80
123
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
81
124
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
82
125
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
126
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : ((json['storageAdapters'] as Array<any>).map(HostStorageAdapterFromJSON)),
|
|
127
|
+
'storageLuns': json['storageLuns'] == null ? undefined : ((json['storageLuns'] as Array<any>).map(HostStorageLunFromJSON)),
|
|
83
128
|
};
|
|
84
129
|
}
|
|
85
130
|
|
|
@@ -97,11 +142,17 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
97
142
|
'id': value['id'],
|
|
98
143
|
'vendor': value['vendor'],
|
|
99
144
|
'model': value['model'],
|
|
145
|
+
'datacenter': value['datacenter'],
|
|
146
|
+
'cluster': value['cluster'],
|
|
147
|
+
'cpuModel': value['cpuModel'],
|
|
148
|
+
'serialNumber': value['serialNumber'],
|
|
100
149
|
'cpuCores': value['cpuCores'],
|
|
101
150
|
'cpuSockets': value['cpuSockets'],
|
|
102
151
|
'memoryMB': value['memoryMB'],
|
|
103
152
|
'vmotionSupported': value['vmotionSupported'],
|
|
104
153
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
154
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : ((value['storageAdapters'] as Array<any>).map(HostStorageAdapterToJSON)),
|
|
155
|
+
'storageLuns': value['storageLuns'] == null ? undefined : ((value['storageLuns'] as Array<any>).map(HostStorageLunToJSON)),
|
|
105
156
|
};
|
|
106
157
|
}
|
|
107
158
|
|
|
@@ -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/Info.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface Info {
|
|
|
35
35
|
* Agent version name, based on git tag
|
|
36
36
|
*/
|
|
37
37
|
agentVersionName?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
40
|
+
*/
|
|
41
|
+
minApplianceVersion?: string | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
/**
|
|
@@ -60,6 +64,7 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
60
64
|
'versionName': json['versionName'],
|
|
61
65
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
62
66
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
67
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -78,6 +83,7 @@ export function InfoToJSONTyped(value?: Info | null, ignoreDiscriminator: boolea
|
|
|
78
83
|
'versionName': value['versionName'],
|
|
79
84
|
'agentGitCommit': value['agentGitCommit'],
|
|
80
85
|
'agentVersionName': value['agentVersionName'],
|
|
86
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
81
87
|
};
|
|
82
88
|
}
|
|
83
89
|
|
package/src/models/Inventory.ts
CHANGED
|
@@ -44,9 +44,13 @@ export interface Inventory {
|
|
|
44
44
|
*/
|
|
45
45
|
vcenter?: InventoryData;
|
|
46
46
|
/**
|
|
47
|
-
* Timestamp when the inventory
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
48
|
*/
|
|
49
49
|
createdAt?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
52
|
+
*/
|
|
53
|
+
collectionTime?: Date | null;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -73,6 +77,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
73
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
74
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
75
79
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
|
|
@@ -92,6 +97,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
92
97
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
93
98
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
94
99
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
100
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
95
101
|
};
|
|
96
102
|
}
|
|
97
103
|
|
|
@@ -0,0 +1,97 @@
|
|
|
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, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
import type { InventoryData } from './InventoryData.js';
|
|
17
|
+
import {
|
|
18
|
+
InventoryDataFromJSON,
|
|
19
|
+
InventoryDataFromJSONTyped,
|
|
20
|
+
InventoryDataToJSON,
|
|
21
|
+
InventoryDataToJSONTyped,
|
|
22
|
+
} from './InventoryData.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface InventoryV2
|
|
28
|
+
*/
|
|
29
|
+
export interface InventoryV2 {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
data: InventoryData;
|
|
38
|
+
/**
|
|
39
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
40
|
+
*/
|
|
41
|
+
vcenterVersion?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp when the inventory data was created or collected
|
|
44
|
+
*/
|
|
45
|
+
createdAt?: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Oldest known source collection time. Null when unknown.
|
|
48
|
+
*/
|
|
49
|
+
collectionTime?: Date | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the InventoryV2 interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfInventoryV2(value: object): value is InventoryV2 {
|
|
56
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
57
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function InventoryV2FromJSON(json: any): InventoryV2 {
|
|
62
|
+
return InventoryV2FromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryV2 {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'],
|
|
72
|
+
'data': InventoryDataFromJSON(json['data']),
|
|
73
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
74
|
+
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
75
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function InventoryV2ToJSON(json: any): InventoryV2 {
|
|
80
|
+
return InventoryV2ToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function InventoryV2ToJSONTyped(value?: InventoryV2 | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'data': InventoryDataToJSON(value['data']),
|
|
92
|
+
'vcenter_version': value['vcenterVersion'],
|
|
93
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
94
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
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
|
}
|
|
@@ -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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SourceType = {
|
|
21
|
+
Inventory: 'inventory',
|
|
22
|
+
Rvtools: 'rvtools',
|
|
23
|
+
Source: 'source',
|
|
24
|
+
} as const;
|
|
25
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSourceType(value: any): boolean {
|
|
29
|
+
for (const key in SourceType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
|
|
31
|
+
if (SourceType[key as keyof typeof SourceType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SourceTypeFromJSON(json: any): SourceType {
|
|
40
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType {
|
|
44
|
+
return json as SourceType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SourceTypeToJSON(value?: SourceType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType {
|
|
52
|
+
return value as SourceType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SubResource
|
|
20
|
+
*/
|
|
21
|
+
export interface SubResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the SubResource interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfSubResource(value: object): value is SubResource {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function SubResourceFromJSON(json: any): SubResource {
|
|
37
|
+
return SubResourceFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function SubResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubResource {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SubResourceToJSON(json: any): SubResource {
|
|
51
|
+
return SubResourceToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SubResourceToJSONTyped(value?: SubResource | null, ignoreDiscriminator: boolean = false): any {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -31,6 +31,14 @@ export interface VsphereCoreInput {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
srmEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether Network I/O Control is enabled
|
|
36
|
+
*/
|
|
37
|
+
niocEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* How NIOC is configured and which traffic is prioritized
|
|
40
|
+
*/
|
|
41
|
+
niocDetails?: string;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -53,6 +61,8 @@ export function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
53
61
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
54
62
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
55
63
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
64
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
65
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
56
66
|
};
|
|
57
67
|
}
|
|
58
68
|
|
|
@@ -70,6 +80,8 @@ export function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ign
|
|
|
70
80
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
71
81
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
72
82
|
'srmEnabled': value['srmEnabled'],
|
|
83
|
+
'niocEnabled': value['niocEnabled'],
|
|
84
|
+
'niocDetails': value['niocDetails'],
|
|
73
85
|
};
|
|
74
86
|
}
|
|
75
87
|
|
package/src/models/index.ts
CHANGED
|
@@ -11,6 +11,9 @@ export * from './AssessmentForm.js';
|
|
|
11
11
|
export * from './AssessmentSharing.js';
|
|
12
12
|
export * from './AssessmentSubsetInventory.js';
|
|
13
13
|
export * from './AssessmentUpdate.js';
|
|
14
|
+
export * from './AssessmentV2.js';
|
|
15
|
+
export * from './AssessmentV2Summary.js';
|
|
16
|
+
export * from './AssessmentVCenterV2.js';
|
|
14
17
|
export * from './ClusterFeatures.js';
|
|
15
18
|
export * from './ClusterRequirementsRequest.js';
|
|
16
19
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -35,12 +38,15 @@ export * from './GroupCreate.js';
|
|
|
35
38
|
export * from './GroupUpdate.js';
|
|
36
39
|
export * from './Histogram.js';
|
|
37
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
38
43
|
export * from './Identity.js';
|
|
39
44
|
export * from './Info.js';
|
|
40
45
|
export * from './Infra.js';
|
|
41
46
|
export * from './Inventory.js';
|
|
42
47
|
export * from './InventoryData.js';
|
|
43
48
|
export * from './InventoryTotals.js';
|
|
49
|
+
export * from './InventoryV2.js';
|
|
44
50
|
export * from './Ipv4Config.js';
|
|
45
51
|
export * from './IssuesBreakdown.js';
|
|
46
52
|
export * from './Job.js';
|
|
@@ -78,11 +84,13 @@ export * from './Snapshot.js';
|
|
|
78
84
|
export * from './Source.js';
|
|
79
85
|
export * from './SourceCreate.js';
|
|
80
86
|
export * from './SourceInfra.js';
|
|
87
|
+
export * from './SourceType.js';
|
|
81
88
|
export * from './SourceUpdate.js';
|
|
82
89
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
83
90
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
84
91
|
export * from './Status.js';
|
|
85
92
|
export * from './StorageIoConfiguration.js';
|
|
93
|
+
export * from './SubResource.js';
|
|
86
94
|
export * from './UpdateInventory.js';
|
|
87
95
|
export * from './VCenter.js';
|
|
88
96
|
export * from './VMResourceBreakdown.js';
|