@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0
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 +8 -2
- package/README.md +6 -3
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- 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 +10 -0
- package/dist/esm/models/Host.js +6 -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/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDetail.js +5 -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 +4 -1
- package/dist/esm/models/index.js +4 -1
- 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 +10 -0
- package/dist/models/Host.js +6 -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/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +9 -0
- package/dist/models/VirtualMachineDetail.js +5 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
- package/docs/GroupResponse.md +1 -1
- package/docs/Host.md +4 -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/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +27 -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/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +19 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +4 -1
- 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
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* 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/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
|
|
|
@@ -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,13 @@ 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';
|
|
51
58
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
52
59
|
import {
|
|
53
60
|
VmUtilizationDetailsFromJSON,
|
|
@@ -91,6 +98,10 @@ export interface VirtualMachineDetail {
|
|
|
91
98
|
* Display name of the VirtualMachine
|
|
92
99
|
*/
|
|
93
100
|
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
103
|
+
*/
|
|
104
|
+
annotation?: string;
|
|
94
105
|
/**
|
|
95
106
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
96
107
|
*/
|
|
@@ -207,6 +218,10 @@ export interface VirtualMachineDetail {
|
|
|
207
218
|
*
|
|
208
219
|
*/
|
|
209
220
|
disks: Array<VirtualMachineDisk>;
|
|
221
|
+
/**
|
|
222
|
+
* Physical NICs reported on the VM's host. An empty array means no records were retained.
|
|
223
|
+
*/
|
|
224
|
+
hostPhysicalNics?: Array<HostPhysicalNIC>;
|
|
210
225
|
/**
|
|
211
226
|
* Adapter count reported by the source; 0 when unavailable
|
|
212
227
|
*/
|
|
@@ -271,6 +286,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
271
286
|
|
|
272
287
|
'id': json['id'],
|
|
273
288
|
'name': json['name'],
|
|
289
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
274
290
|
'vCenterID': json['vCenterID'],
|
|
275
291
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
276
292
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -300,6 +316,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
300
316
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
301
317
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
302
318
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
319
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : ((json['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICFromJSON)),
|
|
303
320
|
'nicCount': json['nicCount'],
|
|
304
321
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
305
322
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
@@ -324,6 +341,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
324
341
|
|
|
325
342
|
'id': value['id'],
|
|
326
343
|
'name': value['name'],
|
|
344
|
+
'annotation': value['annotation'],
|
|
327
345
|
'vCenterID': value['vCenterID'],
|
|
328
346
|
'uuid': value['uuid'],
|
|
329
347
|
'firmware': value['firmware'],
|
|
@@ -352,6 +370,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
352
370
|
'toolsStatus': value['toolsStatus'],
|
|
353
371
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
354
372
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
373
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : ((value['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICToJSON)),
|
|
355
374
|
'nicCount': value['nicCount'],
|
|
356
375
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
357
376
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
@@ -23,6 +23,18 @@ export interface VirtualMachineNIC {
|
|
|
23
23
|
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
24
24
|
*/
|
|
25
25
|
adapter?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Port-group VLAN configuration when supplied; empty when unknown.
|
|
28
|
+
*/
|
|
29
|
+
vlanId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
32
|
+
*/
|
|
33
|
+
ipv4Addresses?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
36
|
+
*/
|
|
37
|
+
ipv6Addresses?: Array<string>;
|
|
26
38
|
/**
|
|
27
39
|
* MAC address
|
|
28
40
|
*/
|
|
@@ -55,6 +67,9 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
55
67
|
return {
|
|
56
68
|
|
|
57
69
|
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
70
|
+
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
71
|
+
'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
|
|
72
|
+
'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
|
|
58
73
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
59
74
|
'network': json['network'] == null ? undefined : json['network'],
|
|
60
75
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -73,6 +88,9 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
|
|
|
73
88
|
return {
|
|
74
89
|
|
|
75
90
|
'adapter': value['adapter'],
|
|
91
|
+
'vlanId': value['vlanId'],
|
|
92
|
+
'ipv4Addresses': value['ipv4Addresses'],
|
|
93
|
+
'ipv6Addresses': value['ipv6Addresses'],
|
|
76
94
|
'mac': value['mac'],
|
|
77
95
|
'network': value['network'],
|
|
78
96
|
'index': value['index'],
|
package/src/models/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './CapabilityStatus.js';
|
|
|
12
12
|
export * from './CapabilityStatusCapabilities.js';
|
|
13
13
|
export * from './ClusterFeatures.js';
|
|
14
14
|
export * from './ClusterUtilization.js';
|
|
15
|
+
export * from './CollectedInventory.js';
|
|
15
16
|
export * from './Collection.js';
|
|
16
17
|
export * from './CollectionAggregate.js';
|
|
17
18
|
export * from './CollectionComparisonDiff.js';
|
|
@@ -39,11 +40,13 @@ export * from './GroupResponse.js';
|
|
|
39
40
|
export * from './GuestNetwork.js';
|
|
40
41
|
export * from './Histogram.js';
|
|
41
42
|
export * from './Host.js';
|
|
43
|
+
export * from './HostPhysicalNIC.js';
|
|
44
|
+
export * from './HostStorageAdapter.js';
|
|
45
|
+
export * from './HostStorageLun.js';
|
|
42
46
|
export * from './Infra.js';
|
|
43
47
|
export * from './InspectionStatus.js';
|
|
44
48
|
export * from './InspectorStatus.js';
|
|
45
49
|
export * from './Inventory.js';
|
|
46
|
-
export * from './Inventory1.js';
|
|
47
50
|
export * from './InventoryData.js';
|
|
48
51
|
export * from './IssuesBreakdown.js';
|
|
49
52
|
export * from './MigrationIssue.js';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assisted Migration Agent API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v2
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { InventoryData } from './InventoryData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Inventory1
|
|
17
|
-
*/
|
|
18
|
-
export interface Inventory1 {
|
|
19
|
-
/**
|
|
20
|
-
* ID of the vCenter
|
|
21
|
-
*/
|
|
22
|
-
vcenter_id: string;
|
|
23
|
-
/**
|
|
24
|
-
* Version of the vCenter api. For example "8.0.3.0"
|
|
25
|
-
*/
|
|
26
|
-
vcenter_version?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Map of cluster names to their inventory data
|
|
29
|
-
*/
|
|
30
|
-
clusters: {
|
|
31
|
-
[key: string]: InventoryData;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
vcenter?: InventoryData;
|
|
37
|
-
/**
|
|
38
|
-
* Timestamp when the inventory document was built
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
/**
|
|
42
|
-
* 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.
|
|
43
|
-
*/
|
|
44
|
-
collection_time?: Date | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Check if a given object implements the Inventory1 interface.
|
|
48
|
-
*/
|
|
49
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
50
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
51
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
52
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
53
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
|
-
import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
|
|
16
|
-
/**
|
|
17
|
-
* Check if a given object implements the Inventory1 interface.
|
|
18
|
-
*/
|
|
19
|
-
export function instanceOfInventory1(value) {
|
|
20
|
-
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
export function Inventory1FromJSON(json) {
|
|
27
|
-
return Inventory1FromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'vcenter_id': json['vcenter_id'],
|
|
35
|
-
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
36
|
-
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
|
-
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
|
-
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
-
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export function Inventory1ToJSON(json) {
|
|
43
|
-
return Inventory1ToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'vcenter_id': value['vcenter_id'],
|
|
51
|
-
'vcenter_version': value['vcenter_version'],
|
|
52
|
-
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
53
|
-
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
54
|
-
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
55
|
-
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assisted Migration Agent API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v2
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { InventoryData } from './InventoryData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Inventory1
|
|
17
|
-
*/
|
|
18
|
-
export interface Inventory1 {
|
|
19
|
-
/**
|
|
20
|
-
* ID of the vCenter
|
|
21
|
-
*/
|
|
22
|
-
vcenter_id: string;
|
|
23
|
-
/**
|
|
24
|
-
* Version of the vCenter api. For example "8.0.3.0"
|
|
25
|
-
*/
|
|
26
|
-
vcenter_version?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Map of cluster names to their inventory data
|
|
29
|
-
*/
|
|
30
|
-
clusters: {
|
|
31
|
-
[key: string]: InventoryData;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
vcenter?: InventoryData;
|
|
37
|
-
/**
|
|
38
|
-
* Timestamp when the inventory document was built
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
/**
|
|
42
|
-
* 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.
|
|
43
|
-
*/
|
|
44
|
-
collection_time?: Date | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Check if a given object implements the Inventory1 interface.
|
|
48
|
-
*/
|
|
49
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
50
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
51
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
52
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
53
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Assisted Migration Agent API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v2
|
|
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.instanceOfInventory1 = instanceOfInventory1;
|
|
17
|
-
exports.Inventory1FromJSON = Inventory1FromJSON;
|
|
18
|
-
exports.Inventory1FromJSONTyped = Inventory1FromJSONTyped;
|
|
19
|
-
exports.Inventory1ToJSON = Inventory1ToJSON;
|
|
20
|
-
exports.Inventory1ToJSONTyped = Inventory1ToJSONTyped;
|
|
21
|
-
const runtime_js_1 = require("../runtime.js");
|
|
22
|
-
const InventoryData_js_1 = require("./InventoryData.js");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the Inventory1 interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfInventory1(value) {
|
|
27
|
-
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function Inventory1FromJSON(json) {
|
|
34
|
-
return Inventory1FromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'vcenter_id': json['vcenter_id'],
|
|
42
|
-
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
43
|
-
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
|
-
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
|
-
'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
|
-
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function Inventory1ToJSON(json) {
|
|
50
|
-
return Inventory1ToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'vcenter_id': value['vcenter_id'],
|
|
58
|
-
'vcenter_version': value['vcenter_version'],
|
|
59
|
-
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
60
|
-
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
61
|
-
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
62
|
-
'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
|
|
63
|
-
};
|
|
64
|
-
}
|