@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,58 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageAdapter
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageAdapter {
|
|
18
|
+
/**
|
|
19
|
+
* Host-local adapter device name.
|
|
20
|
+
*/
|
|
21
|
+
device?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source adapter key; distinct from device name.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adapter type as supplied by the source.
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter protocol as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
protocol?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter driver.
|
|
40
|
+
*/
|
|
41
|
+
driver?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
44
|
+
*/
|
|
45
|
+
nodeWwn?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
portWwn?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
|
|
55
|
+
export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
|
|
56
|
+
export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
|
|
57
|
+
export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
|
|
58
|
+
export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfHostStorageAdapter = instanceOfHostStorageAdapter;
|
|
17
|
+
exports.HostStorageAdapterFromJSON = HostStorageAdapterFromJSON;
|
|
18
|
+
exports.HostStorageAdapterFromJSONTyped = HostStorageAdapterFromJSONTyped;
|
|
19
|
+
exports.HostStorageAdapterToJSON = HostStorageAdapterToJSON;
|
|
20
|
+
exports.HostStorageAdapterToJSONTyped = HostStorageAdapterToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHostStorageAdapter(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HostStorageAdapterFromJSON(json) {
|
|
28
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
36
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
37
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
38
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
39
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
41
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
42
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function HostStorageAdapterToJSON(json) {
|
|
46
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'device': value['device'],
|
|
54
|
+
'key': value['key'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
'protocol': value['protocol'],
|
|
57
|
+
'model': value['model'],
|
|
58
|
+
'driver': value['driver'],
|
|
59
|
+
'nodeWwn': value['nodeWwn'],
|
|
60
|
+
'portWwn': value['portWwn'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostStorageLun
|
|
16
|
+
*/
|
|
17
|
+
export interface HostStorageLun {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
20
|
+
*/
|
|
21
|
+
canonicalName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source SCSI disk key.
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
28
|
+
*/
|
|
29
|
+
lunUuid?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN vendor.
|
|
32
|
+
*/
|
|
33
|
+
vendor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN model.
|
|
36
|
+
*/
|
|
37
|
+
model?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
40
|
+
*/
|
|
41
|
+
adapterDevices?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
|
|
47
|
+
export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
|
|
48
|
+
export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
|
|
49
|
+
export declare function HostStorageLunToJSON(json: any): HostStorageLun;
|
|
50
|
+
export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfHostStorageLun = instanceOfHostStorageLun;
|
|
17
|
+
exports.HostStorageLunFromJSON = HostStorageLunFromJSON;
|
|
18
|
+
exports.HostStorageLunFromJSONTyped = HostStorageLunFromJSONTyped;
|
|
19
|
+
exports.HostStorageLunToJSON = HostStorageLunToJSON;
|
|
20
|
+
exports.HostStorageLunToJSONTyped = HostStorageLunToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHostStorageLun(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HostStorageLunFromJSON(json) {
|
|
28
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
36
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
37
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
38
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
39
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function HostStorageLunToJSON(json) {
|
|
44
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'canonicalName': value['canonicalName'],
|
|
52
|
+
'key': value['key'],
|
|
53
|
+
'lunUuid': value['lunUuid'],
|
|
54
|
+
'vendor': value['vendor'],
|
|
55
|
+
'model': value['model'],
|
|
56
|
+
'adapterDevices': value['adapterDevices'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -9,17 +9,39 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { InventoryData } from './InventoryData.js';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface Inventory
|
|
17
17
|
*/
|
|
18
18
|
export interface Inventory {
|
|
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
|
+
};
|
|
19
33
|
/**
|
|
20
34
|
*
|
|
21
35
|
*/
|
|
22
|
-
|
|
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;
|
|
23
45
|
}
|
|
24
46
|
/**
|
|
25
47
|
* Check if a given object implements the Inventory interface.
|
package/dist/models/Inventory.js
CHANGED
|
@@ -18,12 +18,15 @@ exports.InventoryFromJSON = InventoryFromJSON;
|
|
|
18
18
|
exports.InventoryFromJSONTyped = InventoryFromJSONTyped;
|
|
19
19
|
exports.InventoryToJSON = InventoryToJSON;
|
|
20
20
|
exports.InventoryToJSONTyped = InventoryToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
const InventoryData_js_1 = require("./InventoryData.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the Inventory interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfInventory(value) {
|
|
26
|
-
if (!('
|
|
27
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
27
30
|
return false;
|
|
28
31
|
return true;
|
|
29
32
|
}
|
|
@@ -35,7 +38,12 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
38
|
return json;
|
|
36
39
|
}
|
|
37
40
|
return {
|
|
38
|
-
'
|
|
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'])),
|
|
39
47
|
};
|
|
40
48
|
}
|
|
41
49
|
function InventoryToJSON(json) {
|
|
@@ -46,6 +54,11 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
54
|
return value;
|
|
47
55
|
}
|
|
48
56
|
return {
|
|
49
|
-
'
|
|
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']),
|
|
50
63
|
};
|
|
51
64
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { Inventory } from './Inventory.js';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -23,7 +23,7 @@ export interface UpdateInventory {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
inventory:
|
|
26
|
+
inventory: Inventory;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the UpdateInventory interface.
|
|
@@ -18,7 +18,7 @@ exports.UpdateInventoryFromJSON = UpdateInventoryFromJSON;
|
|
|
18
18
|
exports.UpdateInventoryFromJSONTyped = UpdateInventoryFromJSONTyped;
|
|
19
19
|
exports.UpdateInventoryToJSON = UpdateInventoryToJSON;
|
|
20
20
|
exports.UpdateInventoryToJSONTyped = UpdateInventoryToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the UpdateInventory interface.
|
|
24
24
|
*/
|
|
@@ -38,7 +38,7 @@ function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'agentId': json['agentId'],
|
|
41
|
-
'inventory': (0,
|
|
41
|
+
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function UpdateInventoryToJSON(json) {
|
|
@@ -50,6 +50,6 @@ function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'agentId': value['agentId'],
|
|
53
|
-
'inventory': (0,
|
|
53
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -14,6 +14,7 @@ import type { InspectionStatus } from './InspectionStatus.js';
|
|
|
14
14
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
15
15
|
import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
|
|
16
16
|
import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
|
|
17
|
+
import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
|
|
17
18
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
18
19
|
import type { Process } from './Process.js';
|
|
19
20
|
import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
|
|
@@ -32,6 +33,10 @@ export interface VirtualMachineDetail {
|
|
|
32
33
|
* Display name of the VirtualMachine
|
|
33
34
|
*/
|
|
34
35
|
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
38
|
+
*/
|
|
39
|
+
annotation?: string;
|
|
35
40
|
/**
|
|
36
41
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
37
42
|
*/
|
|
@@ -150,6 +155,10 @@ export interface VirtualMachineDetail {
|
|
|
150
155
|
*
|
|
151
156
|
*/
|
|
152
157
|
disks: Array<VirtualMachineDisk>;
|
|
158
|
+
/**
|
|
159
|
+
* Physical NICs reported on the VM's host. An empty array means no records were retained.
|
|
160
|
+
*/
|
|
161
|
+
hostPhysicalNics?: Array<HostPhysicalNIC>;
|
|
153
162
|
/**
|
|
154
163
|
* Adapter count reported by the source; 0 when unavailable
|
|
155
164
|
*/
|
|
@@ -23,6 +23,7 @@ const InspectionStatus_js_1 = require("./InspectionStatus.js");
|
|
|
23
23
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
24
24
|
const VirtualMachineIssue_js_1 = require("./VirtualMachineIssue.js");
|
|
25
25
|
const VirtualMachineDevice_js_1 = require("./VirtualMachineDevice.js");
|
|
26
|
+
const HostPhysicalNIC_js_1 = require("./HostPhysicalNIC.js");
|
|
26
27
|
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
27
28
|
const Process_js_1 = require("./Process.js");
|
|
28
29
|
const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
|
|
@@ -65,6 +66,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
66
|
return {
|
|
66
67
|
'id': json['id'],
|
|
67
68
|
'name': json['name'],
|
|
69
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
68
70
|
'vCenterID': json['vCenterID'],
|
|
69
71
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
70
72
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -94,6 +96,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
96
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
95
97
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
96
98
|
'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
|
|
99
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICFromJSON)),
|
|
97
100
|
'nicCount': json['nicCount'],
|
|
98
101
|
'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
|
|
99
102
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
|
|
@@ -114,6 +117,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
114
117
|
return {
|
|
115
118
|
'id': value['id'],
|
|
116
119
|
'name': value['name'],
|
|
120
|
+
'annotation': value['annotation'],
|
|
117
121
|
'vCenterID': value['vCenterID'],
|
|
118
122
|
'uuid': value['uuid'],
|
|
119
123
|
'firmware': value['firmware'],
|
|
@@ -142,6 +146,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
142
146
|
'toolsStatus': value['toolsStatus'],
|
|
143
147
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
144
148
|
'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
|
|
149
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICToJSON)),
|
|
145
150
|
'nicCount': value['nicCount'],
|
|
146
151
|
'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
|
|
147
152
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
|
|
@@ -19,6 +19,18 @@ export interface VirtualMachineNIC {
|
|
|
19
19
|
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
20
20
|
*/
|
|
21
21
|
adapter?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Port-group VLAN configuration when supplied; empty when unknown.
|
|
24
|
+
*/
|
|
25
|
+
vlanId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
28
|
+
*/
|
|
29
|
+
ipv4Addresses?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
32
|
+
*/
|
|
33
|
+
ipv6Addresses?: Array<string>;
|
|
22
34
|
/**
|
|
23
35
|
* MAC address
|
|
24
36
|
*/
|
|
@@ -33,6 +33,9 @@ function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
36
|
+
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
37
|
+
'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
|
|
38
|
+
'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
|
|
36
39
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
37
40
|
'network': json['network'] == null ? undefined : json['network'],
|
|
38
41
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -47,6 +50,9 @@ function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
50
|
}
|
|
48
51
|
return {
|
|
49
52
|
'adapter': value['adapter'],
|
|
53
|
+
'vlanId': value['vlanId'],
|
|
54
|
+
'ipv4Addresses': value['ipv4Addresses'],
|
|
55
|
+
'ipv6Addresses': value['ipv6Addresses'],
|
|
50
56
|
'mac': value['mac'],
|
|
51
57
|
'network': value['network'],
|
|
52
58
|
'index': value['index'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './CapabilityStatus.js';
|
|
|
10
10
|
export * from './CapabilityStatusCapabilities.js';
|
|
11
11
|
export * from './ClusterFeatures.js';
|
|
12
12
|
export * from './ClusterUtilization.js';
|
|
13
|
+
export * from './CollectedInventory.js';
|
|
13
14
|
export * from './Collection.js';
|
|
14
15
|
export * from './CollectionAggregate.js';
|
|
15
16
|
export * from './CollectionComparisonDiff.js';
|
|
@@ -37,11 +38,13 @@ export * from './GroupResponse.js';
|
|
|
37
38
|
export * from './GuestNetwork.js';
|
|
38
39
|
export * from './Histogram.js';
|
|
39
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostPhysicalNIC.js';
|
|
42
|
+
export * from './HostStorageAdapter.js';
|
|
43
|
+
export * from './HostStorageLun.js';
|
|
40
44
|
export * from './Infra.js';
|
|
41
45
|
export * from './InspectionStatus.js';
|
|
42
46
|
export * from './InspectorStatus.js';
|
|
43
47
|
export * from './Inventory.js';
|
|
44
|
-
export * from './Inventory1.js';
|
|
45
48
|
export * from './InventoryData.js';
|
|
46
49
|
export * from './IssuesBreakdown.js';
|
|
47
50
|
export * from './MigrationIssue.js';
|
package/dist/models/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./CapabilityStatus.js"), exports);
|
|
|
28
28
|
__exportStar(require("./CapabilityStatusCapabilities.js"), exports);
|
|
29
29
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
30
30
|
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
31
|
+
__exportStar(require("./CollectedInventory.js"), exports);
|
|
31
32
|
__exportStar(require("./Collection.js"), exports);
|
|
32
33
|
__exportStar(require("./CollectionAggregate.js"), exports);
|
|
33
34
|
__exportStar(require("./CollectionComparisonDiff.js"), exports);
|
|
@@ -55,11 +56,13 @@ __exportStar(require("./GroupResponse.js"), exports);
|
|
|
55
56
|
__exportStar(require("./GuestNetwork.js"), exports);
|
|
56
57
|
__exportStar(require("./Histogram.js"), exports);
|
|
57
58
|
__exportStar(require("./Host.js"), exports);
|
|
59
|
+
__exportStar(require("./HostPhysicalNIC.js"), exports);
|
|
60
|
+
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
61
|
+
__exportStar(require("./HostStorageLun.js"), exports);
|
|
58
62
|
__exportStar(require("./Infra.js"), exports);
|
|
59
63
|
__exportStar(require("./InspectionStatus.js"), exports);
|
|
60
64
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
61
65
|
__exportStar(require("./Inventory.js"), exports);
|
|
62
|
-
__exportStar(require("./Inventory1.js"), exports);
|
|
63
66
|
__exportStar(require("./InventoryData.js"), exports);
|
|
64
67
|
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
65
68
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# CollectedInventory
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`vcenter_version` | string
|
|
11
|
-
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
|
-
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
|
-
`created_at` | Date
|
|
14
|
-
`collection_time` | Date
|
|
9
|
+
`inventory` | [UpdateInventory](UpdateInventory.md)
|
|
15
10
|
|
|
16
11
|
## Example
|
|
17
12
|
|
|
18
13
|
```typescript
|
|
19
|
-
import type {
|
|
14
|
+
import type { CollectedInventory } from '@openshift-migration-advisor/agent-sdk'
|
|
20
15
|
|
|
21
16
|
// TODO: Update the object below with actual values
|
|
22
17
|
const example = {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"clusters": null,
|
|
26
|
-
"vcenter": null,
|
|
27
|
-
"created_at": null,
|
|
28
|
-
"collection_time": null,
|
|
29
|
-
} satisfies Inventory1
|
|
18
|
+
"inventory": null,
|
|
19
|
+
} satisfies CollectedInventory
|
|
30
20
|
|
|
31
21
|
console.log(example)
|
|
32
22
|
|
|
@@ -35,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
25
|
console.log(exampleJSON)
|
|
36
26
|
|
|
37
27
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CollectedInventory
|
|
39
29
|
console.log(exampleParsed)
|
|
40
30
|
```
|
|
41
31
|
|
package/docs/GroupResponse.md
CHANGED
package/docs/Host.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`memoryMB` | number
|
|
15
15
|
`vmotionSupported` | boolean
|
|
16
16
|
`storageVmotionSupported` | boolean
|
|
17
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
18
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"memoryMB": null,
|
|
31
33
|
"vmotionSupported": null,
|
|
32
34
|
"storageVmotionSupported": null,
|
|
35
|
+
"storageAdapters": null,
|
|
36
|
+
"storageLuns": null,
|
|
33
37
|
} satisfies Host
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# HostPhysicalNIC
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`linkSpeedMbps` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { HostPhysicalNIC } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"linkSpeedMbps": null,
|
|
21
|
+
} satisfies HostPhysicalNIC
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostPhysicalNIC
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|