@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0-ce8ec7f258cb
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 +12 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +9 -4
- 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/Datastore.d.ts +14 -2
- package/dist/esm/models/Datastore.js +6 -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/RDMBacking.d.ts +30 -0
- package/dist/esm/models/RDMBacking.js +41 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/esm/models/VirtualMachineDatastore.js +59 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +13 -0
- package/dist/esm/models/VirtualMachineDetail.js +9 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
- package/dist/esm/models/VirtualMachineDisk.js +6 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +16 -0
- package/dist/esm/models/VirtualMachineNIC.js +8 -0
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/Datastore.d.ts +14 -2
- package/dist/models/Datastore.js +6 -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/RDMBacking.d.ts +30 -0
- package/dist/models/RDMBacking.js +48 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/models/VirtualMachineDatastore.js +66 -0
- package/dist/models/VirtualMachineDetail.d.ts +13 -0
- package/dist/models/VirtualMachineDetail.js +9 -0
- package/dist/models/VirtualMachineDisk.d.ts +10 -0
- package/dist/models/VirtualMachineDisk.js +6 -0
- package/dist/models/VirtualMachineNIC.d.ts +16 -0
- package/dist/models/VirtualMachineNIC.js +8 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/docs/CollectedInventory.md +34 -0
- package/docs/Datastore.md +6 -0
- 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/{Inventory1.md → RDMBacking.md} +7 -14
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDatastore.md +53 -0
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineNIC.md +8 -0
- package/package.json +1 -1
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/Datastore.ts +20 -2
- 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/RDMBacking.ts +63 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDatastore.ts +117 -0
- package/src/models/VirtualMachineDetail.ts +26 -0
- package/src/models/VirtualMachineDisk.ts +27 -0
- package/src/models/VirtualMachineNIC.ts +24 -0
- package/src/models/index.ts +6 -1
- package/dist/esm/models/Inventory1.d.ts +0 -49
- package/dist/esm/models/Inventory1.js +0 -55
- package/dist/models/Inventory1.d.ts +0 -49
- package/dist/models/Inventory1.js +0 -62
- package/src/models/Inventory1.ts +0 -97
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
* Datastore backing this virtual disk
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VirtualMachineDatastore
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineDatastore {
|
|
22
|
+
/**
|
|
23
|
+
* Datastore object ID
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Datastore name
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Datastore type (VMFS, NFS, vSAN, vVol)
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Datastore filesystem type
|
|
36
|
+
*/
|
|
37
|
+
filesystemType?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Datastore filesystem major version when available
|
|
40
|
+
*/
|
|
41
|
+
filesystemMajorVersion?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
|
|
44
|
+
*/
|
|
45
|
+
protocolType?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Datastore storage access category when available (Block, File, or Object)
|
|
48
|
+
*/
|
|
49
|
+
storageProtocol?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
52
|
+
*/
|
|
53
|
+
backingDeviceIds?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Vendor reported by matching backing devices when available
|
|
56
|
+
*/
|
|
57
|
+
vendor?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Model reported by matching backing devices when available
|
|
60
|
+
*/
|
|
61
|
+
model?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore {
|
|
72
|
+
return VirtualMachineDatastoreFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
82
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
83
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
84
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
85
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
86
|
+
'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
|
|
87
|
+
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
88
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
89
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
90
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore {
|
|
95
|
+
return VirtualMachineDatastoreToJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator: boolean = false): any {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': value['id'],
|
|
106
|
+
'name': value['name'],
|
|
107
|
+
'type': value['type'],
|
|
108
|
+
'filesystemType': value['filesystemType'],
|
|
109
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
110
|
+
'protocolType': value['protocolType'],
|
|
111
|
+
'storageProtocol': value['storageProtocol'],
|
|
112
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
113
|
+
'vendor': value['vendor'],
|
|
114
|
+
'model': value['model'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -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,14 @@ 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>;
|
|
225
|
+
/**
|
|
226
|
+
* Adapter count reported by the source; 0 when unavailable
|
|
227
|
+
*/
|
|
228
|
+
nicCount: number;
|
|
210
229
|
/**
|
|
211
230
|
*
|
|
212
231
|
*/
|
|
@@ -250,6 +269,7 @@ export function instanceOfVirtualMachineDetail(value: object): value is VirtualM
|
|
|
250
269
|
if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
|
|
251
270
|
if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
|
|
252
271
|
if (!('disks' in value) || value['disks'] === undefined) return false;
|
|
272
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined) return false;
|
|
253
273
|
if (!('nics' in value) || value['nics'] === undefined) return false;
|
|
254
274
|
return true;
|
|
255
275
|
}
|
|
@@ -266,6 +286,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
266
286
|
|
|
267
287
|
'id': json['id'],
|
|
268
288
|
'name': json['name'],
|
|
289
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
269
290
|
'vCenterID': json['vCenterID'],
|
|
270
291
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
271
292
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -295,6 +316,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
295
316
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
296
317
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
297
318
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
319
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : ((json['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICFromJSON)),
|
|
320
|
+
'nicCount': json['nicCount'],
|
|
298
321
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
299
322
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
300
323
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
@@ -318,6 +341,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
318
341
|
|
|
319
342
|
'id': value['id'],
|
|
320
343
|
'name': value['name'],
|
|
344
|
+
'annotation': value['annotation'],
|
|
321
345
|
'vCenterID': value['vCenterID'],
|
|
322
346
|
'uuid': value['uuid'],
|
|
323
347
|
'firmware': value['firmware'],
|
|
@@ -346,6 +370,8 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
346
370
|
'toolsStatus': value['toolsStatus'],
|
|
347
371
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
348
372
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
373
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : ((value['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICToJSON)),
|
|
374
|
+
'nicCount': value['nicCount'],
|
|
349
375
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
350
376
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
351
377
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RDMBacking } from './RDMBacking.js';
|
|
17
|
+
import {
|
|
18
|
+
RDMBackingFromJSON,
|
|
19
|
+
RDMBackingFromJSONTyped,
|
|
20
|
+
RDMBackingToJSON,
|
|
21
|
+
RDMBackingToJSONTyped,
|
|
22
|
+
} from './RDMBacking.js';
|
|
23
|
+
import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
|
|
24
|
+
import {
|
|
25
|
+
VirtualMachineDatastoreFromJSON,
|
|
26
|
+
VirtualMachineDatastoreFromJSONTyped,
|
|
27
|
+
VirtualMachineDatastoreToJSON,
|
|
28
|
+
VirtualMachineDatastoreToJSONTyped,
|
|
29
|
+
} from './VirtualMachineDatastore.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -39,6 +54,10 @@ export interface VirtualMachineDisk {
|
|
|
39
54
|
* Whether this is a Raw Device Mapping
|
|
40
55
|
*/
|
|
41
56
|
rdm?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
rdmBacking?: RDMBacking;
|
|
42
61
|
/**
|
|
43
62
|
* Bus type (scsi, ide, sata, nvme)
|
|
44
63
|
*/
|
|
@@ -47,6 +66,10 @@ export interface VirtualMachineDisk {
|
|
|
47
66
|
* Disk mode (persistent, independent_persistent, independent_nonpersistent)
|
|
48
67
|
*/
|
|
49
68
|
mode?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
datastore?: VirtualMachineDatastore;
|
|
50
73
|
}
|
|
51
74
|
|
|
52
75
|
/**
|
|
@@ -71,8 +94,10 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
71
94
|
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
72
95
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
73
96
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
97
|
+
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
74
98
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
75
99
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
100
|
+
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
76
101
|
};
|
|
77
102
|
}
|
|
78
103
|
|
|
@@ -92,8 +117,10 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
|
|
|
92
117
|
'capacity': value['capacity'],
|
|
93
118
|
'shared': value['shared'],
|
|
94
119
|
'rdm': value['rdm'],
|
|
120
|
+
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
95
121
|
'bus': value['bus'],
|
|
96
122
|
'mode': value['mode'],
|
|
123
|
+
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
97
124
|
};
|
|
98
125
|
}
|
|
99
126
|
|
|
@@ -19,6 +19,22 @@ import { mapValues } from '../runtime.js';
|
|
|
19
19
|
* @interface VirtualMachineNIC
|
|
20
20
|
*/
|
|
21
21
|
export interface VirtualMachineNIC {
|
|
22
|
+
/**
|
|
23
|
+
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
24
|
+
*/
|
|
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>;
|
|
22
38
|
/**
|
|
23
39
|
* MAC address
|
|
24
40
|
*/
|
|
@@ -50,6 +66,10 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
50
66
|
}
|
|
51
67
|
return {
|
|
52
68
|
|
|
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'],
|
|
53
73
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
54
74
|
'network': json['network'] == null ? undefined : json['network'],
|
|
55
75
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -67,6 +87,10 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
|
|
|
67
87
|
|
|
68
88
|
return {
|
|
69
89
|
|
|
90
|
+
'adapter': value['adapter'],
|
|
91
|
+
'vlanId': value['vlanId'],
|
|
92
|
+
'ipv4Addresses': value['ipv4Addresses'],
|
|
93
|
+
'ipv6Addresses': value['ipv6Addresses'],
|
|
70
94
|
'mac': value['mac'],
|
|
71
95
|
'network': value['network'],
|
|
72
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';
|
|
@@ -53,6 +56,7 @@ export * from './OsInfo.js';
|
|
|
53
56
|
export * from './PairCapability.js';
|
|
54
57
|
export * from './PairCapabilityRequest.js';
|
|
55
58
|
export * from './Process.js';
|
|
59
|
+
export * from './RDMBacking.js';
|
|
56
60
|
export * from './RightsizingClusterResponse.js';
|
|
57
61
|
export * from './RightsizingClusterUtilization.js';
|
|
58
62
|
export * from './StartForecasterRequest.js';
|
|
@@ -71,6 +75,7 @@ export * from './VcenterCredentials.js';
|
|
|
71
75
|
export * from './VddkProperties.js';
|
|
72
76
|
export * from './VersionInfo.js';
|
|
73
77
|
export * from './VirtualMachine.js';
|
|
78
|
+
export * from './VirtualMachineDatastore.js';
|
|
74
79
|
export * from './VirtualMachineDetail.js';
|
|
75
80
|
export * from './VirtualMachineDevice.js';
|
|
76
81
|
export * from './VirtualMachineDisk.js';
|
|
@@ -1,49 +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 data was created or collected
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the Inventory1 interface.
|
|
44
|
-
*/
|
|
45
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
46
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
47
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
48
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
49
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +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
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export function Inventory1ToJSON(json) {
|
|
42
|
-
return Inventory1ToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'vcenter_id': value['vcenter_id'],
|
|
50
|
-
'vcenter_version': value['vcenter_version'],
|
|
51
|
-
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
52
|
-
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
53
|
-
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,49 +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 data was created or collected
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the Inventory1 interface.
|
|
44
|
-
*/
|
|
45
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
46
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
47
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
48
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
49
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,62 +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
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function Inventory1ToJSON(json) {
|
|
49
|
-
return Inventory1ToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'vcenter_id': value['vcenter_id'],
|
|
57
|
-
'vcenter_version': value['vcenter_version'],
|
|
58
|
-
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
59
|
-
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
60
|
-
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
61
|
-
};
|
|
62
|
-
}
|
package/src/models/Inventory1.ts
DELETED
|
@@ -1,97 +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
|
-
|
|
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 Inventory1
|
|
28
|
-
*/
|
|
29
|
-
export interface Inventory1 {
|
|
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; };
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
vcenter?: InventoryData;
|
|
46
|
-
/**
|
|
47
|
-
* Timestamp when the inventory data was created or collected
|
|
48
|
-
*/
|
|
49
|
-
created_at?: Date;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Check if a given object implements the Inventory1 interface.
|
|
54
|
-
*/
|
|
55
|
-
export function instanceOfInventory1(value: object): value is Inventory1 {
|
|
56
|
-
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
|
|
57
|
-
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function Inventory1FromJSON(json: any): Inventory1 {
|
|
62
|
-
return Inventory1FromJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1 {
|
|
66
|
-
if (json == null) {
|
|
67
|
-
return json;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'vcenter_id': json['vcenter_id'],
|
|
72
|
-
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
73
|
-
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
74
|
-
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
75
|
-
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function Inventory1ToJSON(json: any): Inventory1 {
|
|
80
|
-
return Inventory1ToJSONTyped(json, false);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
-
if (value == null) {
|
|
85
|
-
return value;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
'vcenter_id': value['vcenter_id'],
|
|
91
|
-
'vcenter_version': value['vcenter_version'],
|
|
92
|
-
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
93
|
-
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
94
|
-
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|