@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,55 @@
|
|
|
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
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageAdapter(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageAdapterFromJSON(json) {
|
|
21
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
34
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
35
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function HostStorageAdapterToJSON(json) {
|
|
39
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'device': value['device'],
|
|
47
|
+
'key': value['key'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'protocol': value['protocol'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'driver': value['driver'],
|
|
52
|
+
'nodeWwn': value['nodeWwn'],
|
|
53
|
+
'portWwn': value['portWwn'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,51 @@
|
|
|
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
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageLun(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageLunFromJSON(json) {
|
|
21
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
31
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HostStorageLunToJSON(json) {
|
|
37
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canonicalName': value['canonicalName'],
|
|
45
|
+
'key': value['key'],
|
|
46
|
+
'lunUuid': value['lunUuid'],
|
|
47
|
+
'vendor': value['vendor'],
|
|
48
|
+
'model': value['model'],
|
|
49
|
+
'adapterDevices': value['adapterDevices'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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.
|
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
|
+
import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the Inventory interface.
|
|
17
18
|
*/
|
|
18
19
|
export function instanceOfInventory(value) {
|
|
19
|
-
if (!('
|
|
20
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
20
23
|
return false;
|
|
21
24
|
return true;
|
|
22
25
|
}
|
|
@@ -28,7 +31,12 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
31
|
return json;
|
|
29
32
|
}
|
|
30
33
|
return {
|
|
31
|
-
'
|
|
34
|
+
'vcenter_id': json['vcenter_id'],
|
|
35
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
36
|
+
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
|
+
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
|
+
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
32
40
|
};
|
|
33
41
|
}
|
|
34
42
|
export function InventoryToJSON(json) {
|
|
@@ -39,6 +47,11 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
47
|
return value;
|
|
40
48
|
}
|
|
41
49
|
return {
|
|
42
|
-
'
|
|
50
|
+
'vcenter_id': value['vcenter_id'],
|
|
51
|
+
'vcenter_version': value['vcenter_version'],
|
|
52
|
+
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
53
|
+
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
54
|
+
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
55
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
43
56
|
};
|
|
44
57
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 backing identity for an RDM disk; omitted when unavailable
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RDMBacking
|
|
16
|
+
*/
|
|
17
|
+
export interface RDMBacking {
|
|
18
|
+
/**
|
|
19
|
+
* LUN UUID reported directly by the RDM disk backing, when available
|
|
20
|
+
*/
|
|
21
|
+
lunUuid?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the RDMBacking interface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function instanceOfRDMBacking(value: object): value is RDMBacking;
|
|
27
|
+
export declare function RDMBackingFromJSON(json: any): RDMBacking;
|
|
28
|
+
export declare function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking;
|
|
29
|
+
export declare function RDMBackingToJSON(json: any): RDMBacking;
|
|
30
|
+
export declare function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Check if a given object implements the RDMBacking interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRDMBacking(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RDMBackingFromJSON(json) {
|
|
21
|
+
return RDMBackingFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function RDMBackingToJSON(json) {
|
|
32
|
+
return RDMBackingToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'lunUuid': value['lunUuid'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the UpdateInventory interface.
|
|
17
17
|
*/
|
|
@@ -31,7 +31,7 @@ export function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'agentId': json['agentId'],
|
|
34
|
-
'inventory':
|
|
34
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export function UpdateInventoryToJSON(json) {
|
|
@@ -43,6 +43,6 @@ export function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'agentId': value['agentId'],
|
|
46
|
-
'inventory':
|
|
46
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* Datastore backing this virtual disk
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VirtualMachineDatastore
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualMachineDatastore {
|
|
18
|
+
/**
|
|
19
|
+
* Datastore object ID
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Datastore name
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Datastore type (VMFS, NFS, vSAN, vVol)
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Datastore filesystem type
|
|
32
|
+
*/
|
|
33
|
+
filesystemType?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Datastore filesystem major version when available
|
|
36
|
+
*/
|
|
37
|
+
filesystemMajorVersion?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
|
|
40
|
+
*/
|
|
41
|
+
protocolType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Datastore storage access category when available (Block, File, or Object)
|
|
44
|
+
*/
|
|
45
|
+
storageProtocol?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
48
|
+
*/
|
|
49
|
+
backingDeviceIds?: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Vendor reported by matching backing devices when available
|
|
52
|
+
*/
|
|
53
|
+
vendor?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Model reported by matching backing devices when available
|
|
56
|
+
*/
|
|
57
|
+
model?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore;
|
|
63
|
+
export declare function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore;
|
|
64
|
+
export declare function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore;
|
|
65
|
+
export declare function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore;
|
|
66
|
+
export declare function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVirtualMachineDatastore(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VirtualMachineDatastoreFromJSON(json) {
|
|
21
|
+
return VirtualMachineDatastoreFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
32
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
33
|
+
'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
|
|
34
|
+
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
35
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
36
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function VirtualMachineDatastoreToJSON(json) {
|
|
41
|
+
return VirtualMachineDatastoreToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'filesystemType': value['filesystemType'],
|
|
52
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
53
|
+
'protocolType': value['protocolType'],
|
|
54
|
+
'storageProtocol': value['storageProtocol'],
|
|
55
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
56
|
+
'vendor': value['vendor'],
|
|
57
|
+
'model': value['model'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -32,6 +32,10 @@ export interface VirtualMachineDetail {
|
|
|
32
32
|
* Display name of the VirtualMachine
|
|
33
33
|
*/
|
|
34
34
|
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
37
|
+
*/
|
|
38
|
+
annotation?: string;
|
|
35
39
|
/**
|
|
36
40
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
37
41
|
*/
|
|
@@ -150,6 +154,10 @@ export interface VirtualMachineDetail {
|
|
|
150
154
|
*
|
|
151
155
|
*/
|
|
152
156
|
disks: Array<VirtualMachineDisk>;
|
|
157
|
+
/**
|
|
158
|
+
* Adapter count reported by the source; 0 when unavailable
|
|
159
|
+
*/
|
|
160
|
+
nicCount: number;
|
|
153
161
|
/**
|
|
154
162
|
*
|
|
155
163
|
*/
|
|
@@ -42,6 +42,8 @@ export function instanceOfVirtualMachineDetail(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('disks' in value) || value['disks'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('nics' in value) || value['nics'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
return true;
|
|
@@ -56,6 +58,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
return {
|
|
57
59
|
'id': json['id'],
|
|
58
60
|
'name': json['name'],
|
|
61
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
59
62
|
'vCenterID': json['vCenterID'],
|
|
60
63
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
61
64
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -85,6 +88,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
88
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
86
89
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
87
90
|
'disks': (json['disks'].map(VirtualMachineDiskFromJSON)),
|
|
91
|
+
'nicCount': json['nicCount'],
|
|
88
92
|
'nics': (json['nics'].map(VirtualMachineNICFromJSON)),
|
|
89
93
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDeviceFromJSON)),
|
|
90
94
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
|
|
@@ -104,6 +108,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
104
108
|
return {
|
|
105
109
|
'id': value['id'],
|
|
106
110
|
'name': value['name'],
|
|
111
|
+
'annotation': value['annotation'],
|
|
107
112
|
'vCenterID': value['vCenterID'],
|
|
108
113
|
'uuid': value['uuid'],
|
|
109
114
|
'firmware': value['firmware'],
|
|
@@ -132,6 +137,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
132
137
|
'toolsStatus': value['toolsStatus'],
|
|
133
138
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
134
139
|
'disks': (value['disks'].map(VirtualMachineDiskToJSON)),
|
|
140
|
+
'nicCount': value['nicCount'],
|
|
135
141
|
'nics': (value['nics'].map(VirtualMachineNICToJSON)),
|
|
136
142
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDeviceToJSON)),
|
|
137
143
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RDMBacking } from './RDMBacking.js';
|
|
13
|
+
import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -35,6 +37,10 @@ export interface VirtualMachineDisk {
|
|
|
35
37
|
* Whether this is a Raw Device Mapping
|
|
36
38
|
*/
|
|
37
39
|
rdm?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
rdmBacking?: RDMBacking;
|
|
38
44
|
/**
|
|
39
45
|
* Bus type (scsi, ide, sata, nvme)
|
|
40
46
|
*/
|
|
@@ -43,6 +49,10 @@ export interface VirtualMachineDisk {
|
|
|
43
49
|
* Disk mode (persistent, independent_persistent, independent_nonpersistent)
|
|
44
50
|
*/
|
|
45
51
|
mode?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
datastore?: VirtualMachineDatastore;
|
|
46
56
|
}
|
|
47
57
|
/**
|
|
48
58
|
* Check if a given object implements the VirtualMachineDisk interface.
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RDMBackingFromJSON, RDMBackingToJSON, } from './RDMBacking.js';
|
|
15
|
+
import { VirtualMachineDatastoreFromJSON, VirtualMachineDatastoreToJSON, } from './VirtualMachineDatastore.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the VirtualMachineDisk interface.
|
|
16
18
|
*/
|
|
@@ -30,8 +32,10 @@ export function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
32
|
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
31
33
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
32
34
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
35
|
+
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
33
36
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
34
37
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
38
|
+
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
35
39
|
};
|
|
36
40
|
}
|
|
37
41
|
export function VirtualMachineDiskToJSON(json) {
|
|
@@ -47,7 +51,9 @@ export function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false
|
|
|
47
51
|
'capacity': value['capacity'],
|
|
48
52
|
'shared': value['shared'],
|
|
49
53
|
'rdm': value['rdm'],
|
|
54
|
+
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
50
55
|
'bus': value['bus'],
|
|
51
56
|
'mode': value['mode'],
|
|
57
|
+
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
52
58
|
};
|
|
53
59
|
}
|
|
@@ -15,6 +15,22 @@
|
|
|
15
15
|
* @interface VirtualMachineNIC
|
|
16
16
|
*/
|
|
17
17
|
export interface VirtualMachineNIC {
|
|
18
|
+
/**
|
|
19
|
+
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
20
|
+
*/
|
|
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>;
|
|
18
34
|
/**
|
|
19
35
|
* MAC address
|
|
20
36
|
*/
|
|
@@ -25,6 +25,10 @@ export function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
+
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
29
|
+
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
30
|
+
'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
|
|
31
|
+
'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
|
|
28
32
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
29
33
|
'network': json['network'] == null ? undefined : json['network'],
|
|
30
34
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -38,6 +42,10 @@ export function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
38
42
|
return value;
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
45
|
+
'adapter': value['adapter'],
|
|
46
|
+
'vlanId': value['vlanId'],
|
|
47
|
+
'ipv4Addresses': value['ipv4Addresses'],
|
|
48
|
+
'ipv6Addresses': value['ipv6Addresses'],
|
|
41
49
|
'mac': value['mac'],
|
|
42
50
|
'network': value['network'],
|
|
43
51
|
'index': value['index'],
|