@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-347af06813e6
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 +18 -2
- package/README.md +12 -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/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/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 +8 -1
- package/dist/esm/models/index.js +8 -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/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/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 +8 -1
- package/dist/models/index.js +8 -1
- package/dist/runtime.js +4 -3
- package/docs/{Inventory1.md → Appliance.md} +16 -16
- 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/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -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/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +8 -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,71 @@
|
|
|
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.instanceOfAppliance = instanceOfAppliance;
|
|
17
|
+
exports.ApplianceFromJSON = ApplianceFromJSON;
|
|
18
|
+
exports.ApplianceFromJSONTyped = ApplianceFromJSONTyped;
|
|
19
|
+
exports.ApplianceToJSON = ApplianceToJSON;
|
|
20
|
+
exports.ApplianceToJSONTyped = ApplianceToJSONTyped;
|
|
21
|
+
const VirtualMachineIdentity_js_1 = require("./VirtualMachineIdentity.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Appliance interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAppliance(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ApplianceFromJSON(json) {
|
|
41
|
+
return ApplianceFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'vendor': json['vendor'],
|
|
50
|
+
'version': json['version'],
|
|
51
|
+
'confidence': json['confidence'],
|
|
52
|
+
'vmCount': json['vmCount'],
|
|
53
|
+
'vms': (json['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ApplianceToJSON(json) {
|
|
57
|
+
return ApplianceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'vendor': value['vendor'],
|
|
66
|
+
'version': value['version'],
|
|
67
|
+
'confidence': value['confidence'],
|
|
68
|
+
'vmCount': value['vmCount'],
|
|
69
|
+
'vms': (value['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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 { Appliance } from './Appliance.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
appliances: Array<Appliance>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
|
|
28
|
+
export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
|
|
29
|
+
export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
|
|
30
|
+
export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
|
|
31
|
+
export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfApplianceListResponse = instanceOfApplianceListResponse;
|
|
17
|
+
exports.ApplianceListResponseFromJSON = ApplianceListResponseFromJSON;
|
|
18
|
+
exports.ApplianceListResponseFromJSONTyped = ApplianceListResponseFromJSONTyped;
|
|
19
|
+
exports.ApplianceListResponseToJSON = ApplianceListResponseToJSON;
|
|
20
|
+
exports.ApplianceListResponseToJSONTyped = ApplianceListResponseToJSONTyped;
|
|
21
|
+
const Appliance_js_1 = require("./Appliance.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApplianceListResponse(value) {
|
|
26
|
+
if (!('appliances' in value) || value['appliances'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApplianceListResponseFromJSON(json) {
|
|
31
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'appliances': (json['appliances'].map(Appliance_js_1.ApplianceFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApplianceListResponseToJSON(json) {
|
|
42
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'appliances': (value['appliances'].map(Appliance_js_1.ApplianceToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -27,6 +27,10 @@ function instanceOfApplicationOverview(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('description' in value) || value['description'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
33
|
+
return false;
|
|
30
34
|
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
31
35
|
return false;
|
|
32
36
|
if (!('vms' in value) || value['vms'] === undefined)
|
|
@@ -43,6 +47,10 @@ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
47
|
return {
|
|
44
48
|
'name': json['name'],
|
|
45
49
|
'description': json['description'],
|
|
50
|
+
'vendor': json['vendor'],
|
|
51
|
+
'category': json['category'],
|
|
52
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
53
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
46
54
|
'vmCount': json['vmCount'],
|
|
47
55
|
'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
|
|
48
56
|
};
|
|
@@ -57,6 +65,10 @@ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
65
|
return {
|
|
58
66
|
'name': value['name'],
|
|
59
67
|
'description': value['description'],
|
|
68
|
+
'vendor': value['vendor'],
|
|
69
|
+
'category': value['category'],
|
|
70
|
+
'confidence': value['confidence'],
|
|
71
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
60
72
|
'vmCount': value['vmCount'],
|
|
61
73
|
'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
|
|
62
74
|
};
|
|
@@ -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,51 @@
|
|
|
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.instanceOfCollectedInventory = instanceOfCollectedInventory;
|
|
17
|
+
exports.CollectedInventoryFromJSON = CollectedInventoryFromJSON;
|
|
18
|
+
exports.CollectedInventoryFromJSONTyped = CollectedInventoryFromJSONTyped;
|
|
19
|
+
exports.CollectedInventoryToJSON = CollectedInventoryToJSON;
|
|
20
|
+
exports.CollectedInventoryToJSONTyped = CollectedInventoryToJSONTyped;
|
|
21
|
+
const UpdateInventory_js_1 = require("./UpdateInventory.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CollectedInventory interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCollectedInventory(value) {
|
|
26
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function CollectedInventoryFromJSON(json) {
|
|
31
|
+
return CollectedInventoryFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function CollectedInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'inventory': (0, UpdateInventory_js_1.UpdateInventoryFromJSON)(json['inventory']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CollectedInventoryToJSON(json) {
|
|
42
|
+
return CollectedInventoryToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CollectedInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'inventory': (0, UpdateInventory_js_1.UpdateInventoryToJSON)(value['inventory']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -19,7 +19,7 @@ exports.GroupResponseFromJSONTyped = GroupResponseFromJSONTyped;
|
|
|
19
19
|
exports.GroupResponseToJSON = GroupResponseToJSON;
|
|
20
20
|
exports.GroupResponseToJSONTyped = GroupResponseToJSONTyped;
|
|
21
21
|
const Group_js_1 = require("./Group.js");
|
|
22
|
-
const
|
|
22
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
23
23
|
const VirtualMachine_js_1 = require("./VirtualMachine.js");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -46,7 +46,7 @@ function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'group': (0, Group_js_1.GroupFromJSON)(json['group']),
|
|
49
|
-
'inventory': json['inventory'] == null ? undefined : (0,
|
|
49
|
+
'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
50
50
|
'vms': (json['vms'].map(VirtualMachine_js_1.VirtualMachineFromJSON)),
|
|
51
51
|
'total': json['total'],
|
|
52
52
|
'page': json['page'],
|
|
@@ -62,7 +62,7 @@ function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
64
|
'group': (0, Group_js_1.GroupToJSON)(value['group']),
|
|
65
|
-
'inventory': (0,
|
|
65
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
66
66
|
'vms': (value['vms'].map(VirtualMachine_js_1.VirtualMachineToJSON)),
|
|
67
67
|
'total': value['total'],
|
|
68
68
|
'page': value['page'],
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -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/models/Host.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
|
|
|
18
18
|
exports.HostFromJSONTyped = HostFromJSONTyped;
|
|
19
19
|
exports.HostToJSON = HostToJSON;
|
|
20
20
|
exports.HostToJSONTyped = HostToJSONTyped;
|
|
21
|
+
const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
|
|
22
|
+
const HostStorageLun_js_1 = require("./HostStorageLun.js");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the Host interface.
|
|
23
25
|
*/
|
|
@@ -39,11 +41,17 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
42
|
'vendor': json['vendor'],
|
|
41
43
|
'model': json['model'],
|
|
44
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
45
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
46
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
47
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
42
48
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
43
49
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
44
50
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
51
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
46
52
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
53
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
|
|
54
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
|
|
47
55
|
};
|
|
48
56
|
}
|
|
49
57
|
function HostToJSON(json) {
|
|
@@ -57,10 +65,16 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
65
|
'id': value['id'],
|
|
58
66
|
'vendor': value['vendor'],
|
|
59
67
|
'model': value['model'],
|
|
68
|
+
'datacenter': value['datacenter'],
|
|
69
|
+
'cluster': value['cluster'],
|
|
70
|
+
'cpuModel': value['cpuModel'],
|
|
71
|
+
'serialNumber': value['serialNumber'],
|
|
60
72
|
'cpuCores': value['cpuCores'],
|
|
61
73
|
'cpuSockets': value['cpuSockets'],
|
|
62
74
|
'memoryMB': value['memoryMB'],
|
|
63
75
|
'vmotionSupported': value['vmotionSupported'],
|
|
64
76
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
77
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
|
|
78
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
|
|
65
79
|
};
|
|
66
80
|
}
|
|
@@ -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,52 @@
|
|
|
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.instanceOfHostPhysicalNIC = instanceOfHostPhysicalNIC;
|
|
17
|
+
exports.HostPhysicalNICFromJSON = HostPhysicalNICFromJSON;
|
|
18
|
+
exports.HostPhysicalNICFromJSONTyped = HostPhysicalNICFromJSONTyped;
|
|
19
|
+
exports.HostPhysicalNICToJSON = HostPhysicalNICToJSON;
|
|
20
|
+
exports.HostPhysicalNICToJSONTyped = HostPhysicalNICToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HostPhysicalNIC interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHostPhysicalNIC(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function HostPhysicalNICFromJSON(json) {
|
|
30
|
+
return HostPhysicalNICFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function HostPhysicalNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
'linkSpeedMbps': json['linkSpeedMbps'] == null ? undefined : json['linkSpeedMbps'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function HostPhysicalNICToJSON(json) {
|
|
42
|
+
return HostPhysicalNICToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function HostPhysicalNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'linkSpeedMbps': value['linkSpeedMbps'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
}
|