@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-1e681f2e74af
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 +20 -2
- package/README.md +13 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -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/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/esm/models/VirtualMachineNIC.js +6 -0
- package/dist/esm/models/index.d.ts +9 -1
- package/dist/esm/models/index.js +9 -1
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -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/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/runtime.js +4 -3
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +12 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/{Inventory1.md → RDMHostLun.md} +13 -16
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +51 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +9 -1
- package/src/runtime.ts +3 -3
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
package/src/models/Inventory.ts
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type {
|
|
15
|
+
import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
import type { InventoryData } from './InventoryData.js';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
InventoryDataFromJSON,
|
|
19
|
+
InventoryDataFromJSONTyped,
|
|
20
|
+
InventoryDataToJSON,
|
|
21
|
+
InventoryDataToJSONTyped,
|
|
22
|
+
} from './InventoryData.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -27,17 +27,38 @@ import {
|
|
|
27
27
|
* @interface Inventory
|
|
28
28
|
*/
|
|
29
29
|
export interface Inventory {
|
|
30
|
+
/**
|
|
31
|
+
* ID of the vCenter
|
|
32
|
+
*/
|
|
33
|
+
vcenter_id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
36
|
+
*/
|
|
37
|
+
vcenter_version?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Map of cluster names to their inventory data
|
|
40
|
+
*/
|
|
41
|
+
clusters: { [key: string]: InventoryData; };
|
|
30
42
|
/**
|
|
31
43
|
*
|
|
32
44
|
*/
|
|
33
|
-
|
|
45
|
+
vcenter?: InventoryData;
|
|
46
|
+
/**
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
|
+
*/
|
|
49
|
+
created_at?: 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
|
+
collection_time?: Date | null;
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
/**
|
|
37
57
|
* Check if a given object implements the Inventory interface.
|
|
38
58
|
*/
|
|
39
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
40
|
-
if (!('
|
|
60
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
|
|
61
|
+
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
41
62
|
return true;
|
|
42
63
|
}
|
|
43
64
|
|
|
@@ -51,7 +72,12 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
51
72
|
}
|
|
52
73
|
return {
|
|
53
74
|
|
|
54
|
-
'
|
|
75
|
+
'vcenter_id': json['vcenter_id'],
|
|
76
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
77
|
+
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
78
|
+
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
79
|
+
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
55
81
|
};
|
|
56
82
|
}
|
|
57
83
|
|
|
@@ -66,7 +92,12 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
66
92
|
|
|
67
93
|
return {
|
|
68
94
|
|
|
69
|
-
'
|
|
95
|
+
'vcenter_id': value['vcenter_id'],
|
|
96
|
+
'vcenter_version': value['vcenter_version'],
|
|
97
|
+
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
98
|
+
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
99
|
+
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
100
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
70
101
|
};
|
|
71
102
|
}
|
|
72
103
|
|
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,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 Product
|
|
20
|
+
*/
|
|
21
|
+
export interface Product {
|
|
22
|
+
/**
|
|
23
|
+
* Product key
|
|
24
|
+
*/
|
|
25
|
+
key: number;
|
|
26
|
+
/**
|
|
27
|
+
* Product class identifier
|
|
28
|
+
*/
|
|
29
|
+
classId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Product instance identifier
|
|
32
|
+
*/
|
|
33
|
+
instanceId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Product name
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Product vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Product version
|
|
44
|
+
*/
|
|
45
|
+
version?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full product version
|
|
48
|
+
*/
|
|
49
|
+
fullVersion?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Product vendor URL
|
|
52
|
+
*/
|
|
53
|
+
vendorUrl?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Product URL
|
|
56
|
+
*/
|
|
57
|
+
productUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Application URL
|
|
60
|
+
*/
|
|
61
|
+
appUrl?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the Product interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfProduct(value: object): value is Product {
|
|
68
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProductFromJSON(json: any): Product {
|
|
73
|
+
return ProductFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'key': json['key'],
|
|
83
|
+
'classId': json['classId'] == null ? undefined : json['classId'],
|
|
84
|
+
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
85
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
86
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
87
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
88
|
+
'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
|
|
89
|
+
'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
|
|
90
|
+
'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
|
|
91
|
+
'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProductToJSON(json: any): Product {
|
|
96
|
+
return ProductToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'key': value['key'],
|
|
107
|
+
'classId': value['classId'],
|
|
108
|
+
'instanceId': value['instanceId'],
|
|
109
|
+
'name': value['name'],
|
|
110
|
+
'vendor': value['vendor'],
|
|
111
|
+
'version': value['version'],
|
|
112
|
+
'fullVersion': value['fullVersion'],
|
|
113
|
+
'vendorUrl': value['vendorUrl'],
|
|
114
|
+
'productUrl': value['productUrl'],
|
|
115
|
+
'appUrl': value['appUrl'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
package/src/models/RDMBacking.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RDMHostLun } from './RDMHostLun.js';
|
|
17
|
+
import {
|
|
18
|
+
RDMHostLunFromJSON,
|
|
19
|
+
RDMHostLunFromJSONTyped,
|
|
20
|
+
RDMHostLunToJSON,
|
|
21
|
+
RDMHostLunToJSONTyped,
|
|
22
|
+
} from './RDMHostLun.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
18
26
|
* @export
|
|
@@ -23,8 +31,36 @@ export interface RDMBacking {
|
|
|
23
31
|
* LUN UUID reported directly by the RDM disk backing, when available
|
|
24
32
|
*/
|
|
25
33
|
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Device name reported directly by the RDM disk backing
|
|
36
|
+
*/
|
|
37
|
+
deviceName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Source-normalized RDM compatibility mode
|
|
40
|
+
*/
|
|
41
|
+
compatibilityMode?: RDMBackingCompatibilityModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* UUID explicitly identifying the RDM backing, when available
|
|
44
|
+
*/
|
|
45
|
+
backingUuid?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
hostLun?: RDMHostLun;
|
|
26
50
|
}
|
|
27
51
|
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export const RDMBackingCompatibilityModeEnum = {
|
|
57
|
+
Physical: 'physical',
|
|
58
|
+
Virtual: 'virtual',
|
|
59
|
+
Unknown: 'unknown',
|
|
60
|
+
} as const;
|
|
61
|
+
export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
|
|
62
|
+
|
|
63
|
+
|
|
28
64
|
/**
|
|
29
65
|
* Check if a given object implements the RDMBacking interface.
|
|
30
66
|
*/
|
|
@@ -43,6 +79,10 @@ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
43
79
|
return {
|
|
44
80
|
|
|
45
81
|
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
82
|
+
'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
|
|
83
|
+
'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
|
|
84
|
+
'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
|
|
85
|
+
'hostLun': json['hostLun'] == null ? undefined : RDMHostLunFromJSON(json['hostLun']),
|
|
46
86
|
};
|
|
47
87
|
}
|
|
48
88
|
|
|
@@ -58,6 +98,10 @@ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscrimin
|
|
|
58
98
|
return {
|
|
59
99
|
|
|
60
100
|
'lunUuid': value['lunUuid'],
|
|
101
|
+
'deviceName': value['deviceName'],
|
|
102
|
+
'compatibilityMode': value['compatibilityMode'],
|
|
103
|
+
'backingUuid': value['backingUuid'],
|
|
104
|
+
'hostLun': RDMHostLunToJSON(value['hostLun']),
|
|
61
105
|
};
|
|
62
106
|
}
|
|
63
107
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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
|
+
* Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RDMHostLun
|
|
20
|
+
*/
|
|
21
|
+
export interface RDMHostLun {
|
|
22
|
+
/**
|
|
23
|
+
* Object ID of the uniquely resolved running host that owns the matched LUN
|
|
24
|
+
*/
|
|
25
|
+
hostId: string;
|
|
26
|
+
/**
|
|
27
|
+
* SCSI disk key of the matched host LUN, when available
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Canonical name (e.g. NAA) of the matched host LUN, when available
|
|
32
|
+
*/
|
|
33
|
+
canonicalName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN UUID of the matched host LUN, when available
|
|
36
|
+
*/
|
|
37
|
+
lunUuid?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfRDMHostLun(value: object): value is RDMHostLun {
|
|
44
|
+
if (!('hostId' in value) || value['hostId'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function RDMHostLunFromJSON(json: any): RDMHostLun {
|
|
49
|
+
return RDMHostLunFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'hostId': json['hostId'],
|
|
59
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
60
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
61
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RDMHostLunToJSON(json: any): RDMHostLun {
|
|
66
|
+
return RDMHostLunToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'hostId': value['hostId'],
|
|
77
|
+
'key': value['key'],
|
|
78
|
+
'canonicalName': value['canonicalName'],
|
|
79
|
+
'lunUuid': value['lunUuid'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type {
|
|
16
|
+
import type { Inventory } from './Inventory.js';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
InventoryToJSONTyped,
|
|
22
|
+
} from './Inventory.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -34,7 +34,7 @@ export interface UpdateInventory {
|
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
inventory:
|
|
37
|
+
inventory: Inventory;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -57,7 +57,7 @@ export function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
57
57
|
return {
|
|
58
58
|
|
|
59
59
|
'agentId': json['agentId'],
|
|
60
|
-
'inventory':
|
|
60
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -73,7 +73,7 @@ export function UpdateInventoryToJSONTyped(value?: UpdateInventory | null, ignor
|
|
|
73
73
|
return {
|
|
74
74
|
|
|
75
75
|
'agentId': value['agentId'],
|
|
76
|
-
'inventory':
|
|
76
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -48,6 +48,20 @@ import {
|
|
|
48
48
|
VirtualMachineDeviceToJSON,
|
|
49
49
|
VirtualMachineDeviceToJSONTyped,
|
|
50
50
|
} from './VirtualMachineDevice.js';
|
|
51
|
+
import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
|
|
52
|
+
import {
|
|
53
|
+
HostPhysicalNICFromJSON,
|
|
54
|
+
HostPhysicalNICFromJSONTyped,
|
|
55
|
+
HostPhysicalNICToJSON,
|
|
56
|
+
HostPhysicalNICToJSONTyped,
|
|
57
|
+
} from './HostPhysicalNIC.js';
|
|
58
|
+
import type { Product } from './Product.js';
|
|
59
|
+
import {
|
|
60
|
+
ProductFromJSON,
|
|
61
|
+
ProductFromJSONTyped,
|
|
62
|
+
ProductToJSON,
|
|
63
|
+
ProductToJSONTyped,
|
|
64
|
+
} from './Product.js';
|
|
51
65
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
52
66
|
import {
|
|
53
67
|
VmUtilizationDetailsFromJSON,
|
|
@@ -91,6 +105,10 @@ export interface VirtualMachineDetail {
|
|
|
91
105
|
* Display name of the VirtualMachine
|
|
92
106
|
*/
|
|
93
107
|
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
110
|
+
*/
|
|
111
|
+
annotation?: string;
|
|
94
112
|
/**
|
|
95
113
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
96
114
|
*/
|
|
@@ -207,6 +225,10 @@ export interface VirtualMachineDetail {
|
|
|
207
225
|
*
|
|
208
226
|
*/
|
|
209
227
|
disks: Array<VirtualMachineDisk>;
|
|
228
|
+
/**
|
|
229
|
+
* Physical NICs reported on the VM's host. An empty array means no records were retained.
|
|
230
|
+
*/
|
|
231
|
+
hostPhysicalNics?: Array<HostPhysicalNIC>;
|
|
210
232
|
/**
|
|
211
233
|
* Adapter count reported by the source; 0 when unavailable
|
|
212
234
|
*/
|
|
@@ -239,6 +261,10 @@ export interface VirtualMachineDetail {
|
|
|
239
261
|
* List of processes detected on this VM
|
|
240
262
|
*/
|
|
241
263
|
processes?: Array<Process>;
|
|
264
|
+
/**
|
|
265
|
+
* Products configured in the VM's vApp settings
|
|
266
|
+
*/
|
|
267
|
+
products?: Array<Product>;
|
|
242
268
|
}
|
|
243
269
|
|
|
244
270
|
/**
|
|
@@ -271,6 +297,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
271
297
|
|
|
272
298
|
'id': json['id'],
|
|
273
299
|
'name': json['name'],
|
|
300
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
274
301
|
'vCenterID': json['vCenterID'],
|
|
275
302
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
276
303
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -300,6 +327,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
300
327
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
301
328
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
302
329
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
330
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : ((json['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICFromJSON)),
|
|
303
331
|
'nicCount': json['nicCount'],
|
|
304
332
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
305
333
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
@@ -308,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
308
336
|
'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
|
|
309
337
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
310
338
|
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
339
|
+
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
311
340
|
};
|
|
312
341
|
}
|
|
313
342
|
|
|
@@ -324,6 +353,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
324
353
|
|
|
325
354
|
'id': value['id'],
|
|
326
355
|
'name': value['name'],
|
|
356
|
+
'annotation': value['annotation'],
|
|
327
357
|
'vCenterID': value['vCenterID'],
|
|
328
358
|
'uuid': value['uuid'],
|
|
329
359
|
'firmware': value['firmware'],
|
|
@@ -352,6 +382,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
352
382
|
'toolsStatus': value['toolsStatus'],
|
|
353
383
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
354
384
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
385
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : ((value['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICToJSON)),
|
|
355
386
|
'nicCount': value['nicCount'],
|
|
356
387
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
357
388
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
@@ -360,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
360
391
|
'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
|
|
361
392
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
362
393
|
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
394
|
+
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
363
395
|
};
|
|
364
396
|
}
|
|
365
397
|
|
|
@@ -58,6 +58,14 @@ export interface VirtualMachineDisk {
|
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
60
|
rdmBacking?: RDMBacking;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported thin provisioning; omitted when unavailable
|
|
63
|
+
*/
|
|
64
|
+
thinProvisioned?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Source-reported eager scrubbing; omitted when unavailable
|
|
67
|
+
*/
|
|
68
|
+
eagerlyScrubbed?: boolean;
|
|
61
69
|
/**
|
|
62
70
|
* Bus type (scsi, ide, sata, nvme)
|
|
63
71
|
*/
|
|
@@ -95,6 +103,8 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
103
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
96
104
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
97
105
|
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
106
|
+
'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
|
|
107
|
+
'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
|
|
98
108
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
99
109
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
100
110
|
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
@@ -118,6 +128,8 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
|
|
|
118
128
|
'shared': value['shared'],
|
|
119
129
|
'rdm': value['rdm'],
|
|
120
130
|
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
131
|
+
'thinProvisioned': value['thinProvisioned'],
|
|
132
|
+
'eagerlyScrubbed': value['eagerlyScrubbed'],
|
|
121
133
|
'bus': value['bus'],
|
|
122
134
|
'mode': value['mode'],
|
|
123
135
|
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 VirtualMachineIdentity
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineIdentity {
|
|
22
|
+
/**
|
|
23
|
+
* VM ID
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* VM name
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the VirtualMachineIdentity interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity {
|
|
42
|
+
return VirtualMachineIdentityFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity {
|
|
57
|
+
return VirtualMachineIdentityToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|