@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-1e681f2e74af
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 +20 -2
- package/README.md +13 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- 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 +26 -0
- package/dist/esm/models/Host.js +14 -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/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -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 +9 -1
- package/dist/esm/models/index.js +9 -1
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- 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 +26 -0
- package/dist/models/Host.js +14 -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/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/runtime.js +4 -3
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +12 -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/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/{Inventory1.md → RDMHostLun.md} +13 -16
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +51 -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/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +9 -1
- package/src/runtime.ts +3 -3
- 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,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ApplianceFromJSON, ApplianceToJSON, } from './Appliance.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplianceListResponse(value) {
|
|
19
|
+
if (!('appliances' in value) || value['appliances'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApplianceListResponseFromJSON(json) {
|
|
24
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'appliances': (json['appliances'].map(ApplianceFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApplianceListResponseToJSON(json) {
|
|
35
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'appliances': (value['appliances'].map(ApplianceToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
|
|
|
24
24
|
* Application description
|
|
25
25
|
*/
|
|
26
26
|
description: string;
|
|
27
|
+
/**
|
|
28
|
+
* Application vendor
|
|
29
|
+
*/
|
|
30
|
+
vendor: string;
|
|
31
|
+
/**
|
|
32
|
+
* Application category
|
|
33
|
+
*/
|
|
34
|
+
category: string;
|
|
35
|
+
/**
|
|
36
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
37
|
+
*/
|
|
38
|
+
confidence?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the application has a known container deployment option
|
|
41
|
+
*/
|
|
42
|
+
containerizationCandidate?: boolean;
|
|
27
43
|
/**
|
|
28
44
|
* Number of VMs running this application
|
|
29
45
|
*/
|
|
@@ -20,6 +20,10 @@ export function instanceOfApplicationOverview(value) {
|
|
|
20
20
|
return false;
|
|
21
21
|
if (!('description' in value) || value['description'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
26
|
+
return false;
|
|
23
27
|
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
24
28
|
return false;
|
|
25
29
|
if (!('vms' in value) || value['vms'] === undefined)
|
|
@@ -36,6 +40,10 @@ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
40
|
return {
|
|
37
41
|
'name': json['name'],
|
|
38
42
|
'description': json['description'],
|
|
43
|
+
'vendor': json['vendor'],
|
|
44
|
+
'category': json['category'],
|
|
45
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
46
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
39
47
|
'vmCount': json['vmCount'],
|
|
40
48
|
'vms': (json['vms'].map(ApplicationVMFromJSON)),
|
|
41
49
|
};
|
|
@@ -50,6 +58,10 @@ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
50
58
|
return {
|
|
51
59
|
'name': value['name'],
|
|
52
60
|
'description': value['description'],
|
|
61
|
+
'vendor': value['vendor'],
|
|
62
|
+
'category': value['category'],
|
|
63
|
+
'confidence': value['confidence'],
|
|
64
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
53
65
|
'vmCount': value['vmCount'],
|
|
54
66
|
'vms': (value['vms'].map(ApplicationVMToJSON)),
|
|
55
67
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { UpdateInventory } from './UpdateInventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CollectedInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface CollectedInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
inventory: UpdateInventory;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CollectedInventory interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfCollectedInventory(value: object): value is CollectedInventory;
|
|
28
|
+
export declare function CollectedInventoryFromJSON(json: any): CollectedInventory;
|
|
29
|
+
export declare function CollectedInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectedInventory;
|
|
30
|
+
export declare function CollectedInventoryToJSON(json: any): CollectedInventory;
|
|
31
|
+
export declare function CollectedInventoryToJSONTyped(value?: CollectedInventory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { UpdateInventoryFromJSON, UpdateInventoryToJSON, } from './UpdateInventory.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CollectedInventory interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCollectedInventory(value) {
|
|
19
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function CollectedInventoryFromJSON(json) {
|
|
24
|
+
return CollectedInventoryFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function CollectedInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'inventory': UpdateInventoryFromJSON(json['inventory']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CollectedInventoryToJSON(json) {
|
|
35
|
+
return CollectedInventoryToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CollectedInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'inventory': UpdateInventoryToJSON(value['inventory']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Group } from './Group.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type { Inventory } from './Inventory.js';
|
|
14
14
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -25,7 +25,7 @@ export interface GroupResponse {
|
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
inventory?:
|
|
28
|
+
inventory?: Inventory;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GroupFromJSON, GroupToJSON, } from './Group.js';
|
|
15
|
-
import {
|
|
15
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
16
16
|
import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
|
|
17
17
|
/**
|
|
18
18
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -39,7 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'group': GroupFromJSON(json['group']),
|
|
42
|
-
'inventory': json['inventory'] == null ? undefined :
|
|
42
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
43
43
|
'vms': (json['vms'].map(VirtualMachineFromJSON)),
|
|
44
44
|
'total': json['total'],
|
|
45
45
|
'page': json['page'],
|
|
@@ -55,7 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
57
|
'group': GroupToJSON(value['group']),
|
|
58
|
-
'inventory':
|
|
58
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
59
59
|
'vms': (value['vms'].map(VirtualMachineToJSON)),
|
|
60
60
|
'total': value['total'],
|
|
61
61
|
'page': value['page'],
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -27,6 +29,22 @@ export interface Host {
|
|
|
27
29
|
*
|
|
28
30
|
*/
|
|
29
31
|
model: string;
|
|
32
|
+
/**
|
|
33
|
+
* Source datacenter name, when available.
|
|
34
|
+
*/
|
|
35
|
+
datacenter?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source cluster name; omitted for standalone hosts.
|
|
38
|
+
*/
|
|
39
|
+
cluster?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Source-reported CPU model, when available.
|
|
42
|
+
*/
|
|
43
|
+
cpuModel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
46
|
+
*/
|
|
47
|
+
serialNumber?: string;
|
|
30
48
|
/**
|
|
31
49
|
* Number of CPU cores
|
|
32
50
|
*/
|
|
@@ -47,6 +65,14 @@ export interface Host {
|
|
|
47
65
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
66
|
*/
|
|
49
67
|
storageVmotionSupported?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
70
|
+
*/
|
|
71
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
72
|
+
/**
|
|
73
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
74
|
+
*/
|
|
75
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
76
|
}
|
|
51
77
|
/**
|
|
52
78
|
* Check if a given object implements the Host interface.
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostStorageAdapterFromJSON, HostStorageAdapterToJSON, } from './HostStorageAdapter.js';
|
|
15
|
+
import { HostStorageLunFromJSON, HostStorageLunToJSON, } from './HostStorageLun.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the Host interface.
|
|
16
18
|
*/
|
|
@@ -32,11 +34,17 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
35
|
'vendor': json['vendor'],
|
|
34
36
|
'model': json['model'],
|
|
37
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
38
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
39
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
40
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
35
41
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
42
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
43
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
44
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
39
45
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
46
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
|
|
47
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
|
|
40
48
|
};
|
|
41
49
|
}
|
|
42
50
|
export function HostToJSON(json) {
|
|
@@ -50,10 +58,16 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
58
|
'id': value['id'],
|
|
51
59
|
'vendor': value['vendor'],
|
|
52
60
|
'model': value['model'],
|
|
61
|
+
'datacenter': value['datacenter'],
|
|
62
|
+
'cluster': value['cluster'],
|
|
63
|
+
'cpuModel': value['cpuModel'],
|
|
64
|
+
'serialNumber': value['serialNumber'],
|
|
53
65
|
'cpuCores': value['cpuCores'],
|
|
54
66
|
'cpuSockets': value['cpuSockets'],
|
|
55
67
|
'memoryMB': value['memoryMB'],
|
|
56
68
|
'vmotionSupported': value['vmotionSupported'],
|
|
57
69
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
70
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
|
|
71
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
|
|
58
72
|
};
|
|
59
73
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HostPhysicalNIC
|
|
16
|
+
*/
|
|
17
|
+
export interface HostPhysicalNIC {
|
|
18
|
+
/**
|
|
19
|
+
* Source physical NIC identity, scoped to the VM's host and collection.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Reported link speed in Mbps; omitted when unknown. This is not measured throughput.
|
|
24
|
+
*/
|
|
25
|
+
linkSpeedMbps?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the HostPhysicalNIC interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfHostPhysicalNIC(value: object): value is HostPhysicalNIC;
|
|
31
|
+
export declare function HostPhysicalNICFromJSON(json: any): HostPhysicalNIC;
|
|
32
|
+
export declare function HostPhysicalNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostPhysicalNIC;
|
|
33
|
+
export declare function HostPhysicalNICToJSON(json: any): HostPhysicalNIC;
|
|
34
|
+
export declare function HostPhysicalNICToJSONTyped(value?: HostPhysicalNIC | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 HostPhysicalNIC interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostPhysicalNIC(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function HostPhysicalNICFromJSON(json) {
|
|
23
|
+
return HostPhysicalNICFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function HostPhysicalNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function HostPhysicalNICToJSON(json) {
|
|
35
|
+
return HostPhysicalNICToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function HostPhysicalNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'linkSpeedMbps': value['linkSpeedMbps'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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,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.
|