@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0-8fbde84d9594
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 +10 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -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/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 +8 -0
- package/dist/esm/models/VirtualMachineDetail.js +6 -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 +5 -1
- package/dist/esm/models/index.js +5 -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/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 +8 -0
- package/dist/models/VirtualMachineDetail.js +6 -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 +5 -1
- package/dist/models/index.js +5 -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/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 +4 -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/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 +13 -0
- package/src/models/VirtualMachineDisk.ts +27 -0
- package/src/models/VirtualMachineNIC.ts +24 -0
- package/src/models/index.ts +5 -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,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
|
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RDMBacking
|
|
20
|
+
*/
|
|
21
|
+
export interface RDMBacking {
|
|
22
|
+
/**
|
|
23
|
+
* LUN UUID reported directly by the RDM disk backing, when available
|
|
24
|
+
*/
|
|
25
|
+
lunUuid?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RDMBacking interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfRDMBacking(value: object): value is RDMBacking {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function RDMBackingFromJSON(json: any): RDMBacking {
|
|
36
|
+
return RDMBackingFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
|
|
45
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RDMBackingToJSON(json: any): RDMBacking {
|
|
50
|
+
return RDMBackingToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator: boolean = false): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'lunUuid': value['lunUuid'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -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
|
|
|
@@ -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
|
+
|
|
@@ -91,6 +91,10 @@ export interface VirtualMachineDetail {
|
|
|
91
91
|
* Display name of the VirtualMachine
|
|
92
92
|
*/
|
|
93
93
|
name: string;
|
|
94
|
+
/**
|
|
95
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
96
|
+
*/
|
|
97
|
+
annotation?: string;
|
|
94
98
|
/**
|
|
95
99
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
96
100
|
*/
|
|
@@ -207,6 +211,10 @@ export interface VirtualMachineDetail {
|
|
|
207
211
|
*
|
|
208
212
|
*/
|
|
209
213
|
disks: Array<VirtualMachineDisk>;
|
|
214
|
+
/**
|
|
215
|
+
* Adapter count reported by the source; 0 when unavailable
|
|
216
|
+
*/
|
|
217
|
+
nicCount: number;
|
|
210
218
|
/**
|
|
211
219
|
*
|
|
212
220
|
*/
|
|
@@ -250,6 +258,7 @@ export function instanceOfVirtualMachineDetail(value: object): value is VirtualM
|
|
|
250
258
|
if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
|
|
251
259
|
if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
|
|
252
260
|
if (!('disks' in value) || value['disks'] === undefined) return false;
|
|
261
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined) return false;
|
|
253
262
|
if (!('nics' in value) || value['nics'] === undefined) return false;
|
|
254
263
|
return true;
|
|
255
264
|
}
|
|
@@ -266,6 +275,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
266
275
|
|
|
267
276
|
'id': json['id'],
|
|
268
277
|
'name': json['name'],
|
|
278
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
269
279
|
'vCenterID': json['vCenterID'],
|
|
270
280
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
271
281
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -295,6 +305,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
295
305
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
296
306
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
297
307
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
308
|
+
'nicCount': json['nicCount'],
|
|
298
309
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
299
310
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
300
311
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
@@ -318,6 +329,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
318
329
|
|
|
319
330
|
'id': value['id'],
|
|
320
331
|
'name': value['name'],
|
|
332
|
+
'annotation': value['annotation'],
|
|
321
333
|
'vCenterID': value['vCenterID'],
|
|
322
334
|
'uuid': value['uuid'],
|
|
323
335
|
'firmware': value['firmware'],
|
|
@@ -346,6 +358,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
346
358
|
'toolsStatus': value['toolsStatus'],
|
|
347
359
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
348
360
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
361
|
+
'nicCount': value['nicCount'],
|
|
349
362
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
350
363
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
351
364
|
'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,12 @@ 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 './HostStorageAdapter.js';
|
|
44
|
+
export * from './HostStorageLun.js';
|
|
42
45
|
export * from './Infra.js';
|
|
43
46
|
export * from './InspectionStatus.js';
|
|
44
47
|
export * from './InspectorStatus.js';
|
|
45
48
|
export * from './Inventory.js';
|
|
46
|
-
export * from './Inventory1.js';
|
|
47
49
|
export * from './InventoryData.js';
|
|
48
50
|
export * from './IssuesBreakdown.js';
|
|
49
51
|
export * from './MigrationIssue.js';
|
|
@@ -53,6 +55,7 @@ export * from './OsInfo.js';
|
|
|
53
55
|
export * from './PairCapability.js';
|
|
54
56
|
export * from './PairCapabilityRequest.js';
|
|
55
57
|
export * from './Process.js';
|
|
58
|
+
export * from './RDMBacking.js';
|
|
56
59
|
export * from './RightsizingClusterResponse.js';
|
|
57
60
|
export * from './RightsizingClusterUtilization.js';
|
|
58
61
|
export * from './StartForecasterRequest.js';
|
|
@@ -71,6 +74,7 @@ export * from './VcenterCredentials.js';
|
|
|
71
74
|
export * from './VddkProperties.js';
|
|
72
75
|
export * from './VersionInfo.js';
|
|
73
76
|
export * from './VirtualMachine.js';
|
|
77
|
+
export * from './VirtualMachineDatastore.js';
|
|
74
78
|
export * from './VirtualMachineDetail.js';
|
|
75
79
|
export * from './VirtualMachineDevice.js';
|
|
76
80
|
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;
|