@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
|
@@ -13,11 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RDMBackingCompatibilityModeEnum = void 0;
|
|
16
17
|
exports.instanceOfRDMBacking = instanceOfRDMBacking;
|
|
17
18
|
exports.RDMBackingFromJSON = RDMBackingFromJSON;
|
|
18
19
|
exports.RDMBackingFromJSONTyped = RDMBackingFromJSONTyped;
|
|
19
20
|
exports.RDMBackingToJSON = RDMBackingToJSON;
|
|
20
21
|
exports.RDMBackingToJSONTyped = RDMBackingToJSONTyped;
|
|
22
|
+
const RDMHostLun_js_1 = require("./RDMHostLun.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RDMBackingCompatibilityModeEnum = {
|
|
27
|
+
Physical: 'physical',
|
|
28
|
+
Virtual: 'virtual',
|
|
29
|
+
Unknown: 'unknown',
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the RDMBacking interface.
|
|
23
33
|
*/
|
|
@@ -33,6 +43,10 @@ function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
43
|
}
|
|
34
44
|
return {
|
|
35
45
|
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
46
|
+
'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
|
|
47
|
+
'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
|
|
48
|
+
'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
|
|
49
|
+
'hostLun': json['hostLun'] == null ? undefined : (0, RDMHostLun_js_1.RDMHostLunFromJSON)(json['hostLun']),
|
|
36
50
|
};
|
|
37
51
|
}
|
|
38
52
|
function RDMBackingToJSON(json) {
|
|
@@ -44,5 +58,9 @@ function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
58
|
}
|
|
45
59
|
return {
|
|
46
60
|
'lunUuid': value['lunUuid'],
|
|
61
|
+
'deviceName': value['deviceName'],
|
|
62
|
+
'compatibilityMode': value['compatibilityMode'],
|
|
63
|
+
'backingUuid': value['backingUuid'],
|
|
64
|
+
'hostLun': (0, RDMHostLun_js_1.RDMHostLunToJSON)(value['hostLun']),
|
|
47
65
|
};
|
|
48
66
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RDMHostLun
|
|
16
|
+
*/
|
|
17
|
+
export interface RDMHostLun {
|
|
18
|
+
/**
|
|
19
|
+
* Object ID of the uniquely resolved running host that owns the matched LUN
|
|
20
|
+
*/
|
|
21
|
+
hostId: string;
|
|
22
|
+
/**
|
|
23
|
+
* SCSI disk key of the matched host LUN, when available
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Canonical name (e.g. NAA) of the matched host LUN, when available
|
|
28
|
+
*/
|
|
29
|
+
canonicalName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN UUID of the matched host LUN, when available
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfRDMHostLun(value: object): value is RDMHostLun;
|
|
39
|
+
export declare function RDMHostLunFromJSON(json: any): RDMHostLun;
|
|
40
|
+
export declare function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun;
|
|
41
|
+
export declare function RDMHostLunToJSON(json: any): RDMHostLun;
|
|
42
|
+
export declare function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfRDMHostLun = instanceOfRDMHostLun;
|
|
17
|
+
exports.RDMHostLunFromJSON = RDMHostLunFromJSON;
|
|
18
|
+
exports.RDMHostLunFromJSONTyped = RDMHostLunFromJSONTyped;
|
|
19
|
+
exports.RDMHostLunToJSON = RDMHostLunToJSON;
|
|
20
|
+
exports.RDMHostLunToJSONTyped = RDMHostLunToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRDMHostLun(value) {
|
|
25
|
+
if (!('hostId' in value) || value['hostId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RDMHostLunFromJSON(json) {
|
|
30
|
+
return RDMHostLunFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RDMHostLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'hostId': json['hostId'],
|
|
38
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
39
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
40
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RDMHostLunToJSON(json) {
|
|
44
|
+
return RDMHostLunToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RDMHostLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'hostId': value['hostId'],
|
|
52
|
+
'key': value['key'],
|
|
53
|
+
'canonicalName': value['canonicalName'],
|
|
54
|
+
'lunUuid': value['lunUuid'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { Inventory } from './Inventory.js';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -23,7 +23,7 @@ export interface UpdateInventory {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
inventory:
|
|
26
|
+
inventory: Inventory;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the UpdateInventory interface.
|
|
@@ -18,7 +18,7 @@ exports.UpdateInventoryFromJSON = UpdateInventoryFromJSON;
|
|
|
18
18
|
exports.UpdateInventoryFromJSONTyped = UpdateInventoryFromJSONTyped;
|
|
19
19
|
exports.UpdateInventoryToJSON = UpdateInventoryToJSON;
|
|
20
20
|
exports.UpdateInventoryToJSONTyped = UpdateInventoryToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the UpdateInventory interface.
|
|
24
24
|
*/
|
|
@@ -38,7 +38,7 @@ function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'agentId': json['agentId'],
|
|
41
|
-
'inventory': (0,
|
|
41
|
+
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function UpdateInventoryToJSON(json) {
|
|
@@ -50,6 +50,6 @@ function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'agentId': value['agentId'],
|
|
53
|
-
'inventory': (0,
|
|
53
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -14,6 +14,8 @@ import type { InspectionStatus } from './InspectionStatus.js';
|
|
|
14
14
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
15
15
|
import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
|
|
16
16
|
import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
|
|
17
|
+
import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
|
|
18
|
+
import type { Product } from './Product.js';
|
|
17
19
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
18
20
|
import type { Process } from './Process.js';
|
|
19
21
|
import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
|
|
@@ -32,6 +34,10 @@ export interface VirtualMachineDetail {
|
|
|
32
34
|
* Display name of the VirtualMachine
|
|
33
35
|
*/
|
|
34
36
|
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Free-text notes/description for the VirtualMachine in vSphere
|
|
39
|
+
*/
|
|
40
|
+
annotation?: string;
|
|
35
41
|
/**
|
|
36
42
|
* Identifier of the vCenter this VirtualMachine belongs to
|
|
37
43
|
*/
|
|
@@ -150,6 +156,10 @@ export interface VirtualMachineDetail {
|
|
|
150
156
|
*
|
|
151
157
|
*/
|
|
152
158
|
disks: Array<VirtualMachineDisk>;
|
|
159
|
+
/**
|
|
160
|
+
* Physical NICs reported on the VM's host. An empty array means no records were retained.
|
|
161
|
+
*/
|
|
162
|
+
hostPhysicalNics?: Array<HostPhysicalNIC>;
|
|
153
163
|
/**
|
|
154
164
|
* Adapter count reported by the source; 0 when unavailable
|
|
155
165
|
*/
|
|
@@ -182,6 +192,10 @@ export interface VirtualMachineDetail {
|
|
|
182
192
|
* List of processes detected on this VM
|
|
183
193
|
*/
|
|
184
194
|
processes?: Array<Process>;
|
|
195
|
+
/**
|
|
196
|
+
* Products configured in the VM's vApp settings
|
|
197
|
+
*/
|
|
198
|
+
products?: Array<Product>;
|
|
185
199
|
}
|
|
186
200
|
/**
|
|
187
201
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -23,6 +23,8 @@ const InspectionStatus_js_1 = require("./InspectionStatus.js");
|
|
|
23
23
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
24
24
|
const VirtualMachineIssue_js_1 = require("./VirtualMachineIssue.js");
|
|
25
25
|
const VirtualMachineDevice_js_1 = require("./VirtualMachineDevice.js");
|
|
26
|
+
const HostPhysicalNIC_js_1 = require("./HostPhysicalNIC.js");
|
|
27
|
+
const Product_js_1 = require("./Product.js");
|
|
26
28
|
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
27
29
|
const Process_js_1 = require("./Process.js");
|
|
28
30
|
const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
|
|
@@ -65,6 +67,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
return {
|
|
66
68
|
'id': json['id'],
|
|
67
69
|
'name': json['name'],
|
|
70
|
+
'annotation': json['annotation'] == null ? undefined : json['annotation'],
|
|
68
71
|
'vCenterID': json['vCenterID'],
|
|
69
72
|
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
70
73
|
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
@@ -94,6 +97,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
97
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
95
98
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
96
99
|
'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
|
|
100
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICFromJSON)),
|
|
97
101
|
'nicCount': json['nicCount'],
|
|
98
102
|
'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
|
|
99
103
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
|
|
@@ -102,6 +106,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
106
|
'inspection': json['inspection'] == null ? undefined : (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsFromJSON)(json['inspection']),
|
|
103
107
|
'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
|
|
104
108
|
'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
|
|
109
|
+
'products': json['products'] == null ? undefined : (json['products'].map(Product_js_1.ProductFromJSON)),
|
|
105
110
|
};
|
|
106
111
|
}
|
|
107
112
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -114,6 +119,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
114
119
|
return {
|
|
115
120
|
'id': value['id'],
|
|
116
121
|
'name': value['name'],
|
|
122
|
+
'annotation': value['annotation'],
|
|
117
123
|
'vCenterID': value['vCenterID'],
|
|
118
124
|
'uuid': value['uuid'],
|
|
119
125
|
'firmware': value['firmware'],
|
|
@@ -142,6 +148,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
142
148
|
'toolsStatus': value['toolsStatus'],
|
|
143
149
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
144
150
|
'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
|
|
151
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICToJSON)),
|
|
145
152
|
'nicCount': value['nicCount'],
|
|
146
153
|
'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
|
|
147
154
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
|
|
@@ -150,5 +157,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
150
157
|
'inspection': (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsToJSON)(value['inspection']),
|
|
151
158
|
'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
|
|
152
159
|
'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
|
|
160
|
+
'products': value['products'] == null ? undefined : (value['products'].map(Product_js_1.ProductToJSON)),
|
|
153
161
|
};
|
|
154
162
|
}
|
|
@@ -41,6 +41,14 @@ export interface VirtualMachineDisk {
|
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
rdmBacking?: RDMBacking;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported thin provisioning; omitted when unavailable
|
|
46
|
+
*/
|
|
47
|
+
thinProvisioned?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Source-reported eager scrubbing; omitted when unavailable
|
|
50
|
+
*/
|
|
51
|
+
eagerlyScrubbed?: boolean;
|
|
44
52
|
/**
|
|
45
53
|
* Bus type (scsi, ide, sata, nvme)
|
|
46
54
|
*/
|
|
@@ -40,6 +40,8 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
41
41
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
42
42
|
'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
|
|
43
|
+
'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
|
|
44
|
+
'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
|
|
43
45
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
44
46
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
45
47
|
'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
|
|
@@ -59,6 +61,8 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
61
|
'shared': value['shared'],
|
|
60
62
|
'rdm': value['rdm'],
|
|
61
63
|
'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
|
|
64
|
+
'thinProvisioned': value['thinProvisioned'],
|
|
65
|
+
'eagerlyScrubbed': value['eagerlyScrubbed'],
|
|
62
66
|
'bus': value['bus'],
|
|
63
67
|
'mode': value['mode'],
|
|
64
68
|
'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
|
|
@@ -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 VirtualMachineIdentity
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualMachineIdentity {
|
|
18
|
+
/**
|
|
19
|
+
* VM ID
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* VM name
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the VirtualMachineIdentity interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity;
|
|
31
|
+
export declare function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity;
|
|
32
|
+
export declare function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity;
|
|
33
|
+
export declare function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity;
|
|
34
|
+
export declare function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfVirtualMachineIdentity = instanceOfVirtualMachineIdentity;
|
|
17
|
+
exports.VirtualMachineIdentityFromJSON = VirtualMachineIdentityFromJSON;
|
|
18
|
+
exports.VirtualMachineIdentityFromJSONTyped = VirtualMachineIdentityFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineIdentityToJSON = VirtualMachineIdentityToJSON;
|
|
20
|
+
exports.VirtualMachineIdentityToJSONTyped = VirtualMachineIdentityToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VirtualMachineIdentity interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVirtualMachineIdentity(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function VirtualMachineIdentityFromJSON(json) {
|
|
32
|
+
return VirtualMachineIdentityFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function VirtualMachineIdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function VirtualMachineIdentityToJSON(json) {
|
|
44
|
+
return VirtualMachineIdentityToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function VirtualMachineIdentityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -19,6 +19,18 @@ export interface VirtualMachineNIC {
|
|
|
19
19
|
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
20
20
|
*/
|
|
21
21
|
adapter?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Port-group VLAN configuration when supplied; empty when unknown.
|
|
24
|
+
*/
|
|
25
|
+
vlanId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
28
|
+
*/
|
|
29
|
+
ipv4Addresses?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
|
|
32
|
+
*/
|
|
33
|
+
ipv6Addresses?: Array<string>;
|
|
22
34
|
/**
|
|
23
35
|
* MAC address
|
|
24
36
|
*/
|
|
@@ -33,6 +33,9 @@ function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
36
|
+
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
37
|
+
'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
|
|
38
|
+
'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
|
|
36
39
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
37
40
|
'network': json['network'] == null ? undefined : json['network'],
|
|
38
41
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -47,6 +50,9 @@ function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
50
|
}
|
|
48
51
|
return {
|
|
49
52
|
'adapter': value['adapter'],
|
|
53
|
+
'vlanId': value['vlanId'],
|
|
54
|
+
'ipv4Addresses': value['ipv4Addresses'],
|
|
55
|
+
'ipv6Addresses': value['ipv6Addresses'],
|
|
50
56
|
'mac': value['mac'],
|
|
51
57
|
'network': value['network'],
|
|
52
58
|
'index': value['index'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
3
|
export * from './AgentStatusConsoleConnection.js';
|
|
4
|
+
export * from './Appliance.js';
|
|
5
|
+
export * from './ApplianceListResponse.js';
|
|
4
6
|
export * from './ApplicationListResponse.js';
|
|
5
7
|
export * from './ApplicationOverview.js';
|
|
6
8
|
export * from './ApplicationVM.js';
|
|
@@ -10,6 +12,7 @@ export * from './CapabilityStatus.js';
|
|
|
10
12
|
export * from './CapabilityStatusCapabilities.js';
|
|
11
13
|
export * from './ClusterFeatures.js';
|
|
12
14
|
export * from './ClusterUtilization.js';
|
|
15
|
+
export * from './CollectedInventory.js';
|
|
13
16
|
export * from './Collection.js';
|
|
14
17
|
export * from './CollectionAggregate.js';
|
|
15
18
|
export * from './CollectionComparisonDiff.js';
|
|
@@ -37,11 +40,13 @@ export * from './GroupResponse.js';
|
|
|
37
40
|
export * from './GuestNetwork.js';
|
|
38
41
|
export * from './Histogram.js';
|
|
39
42
|
export * from './Host.js';
|
|
43
|
+
export * from './HostPhysicalNIC.js';
|
|
44
|
+
export * from './HostStorageAdapter.js';
|
|
45
|
+
export * from './HostStorageLun.js';
|
|
40
46
|
export * from './Infra.js';
|
|
41
47
|
export * from './InspectionStatus.js';
|
|
42
48
|
export * from './InspectorStatus.js';
|
|
43
49
|
export * from './Inventory.js';
|
|
44
|
-
export * from './Inventory1.js';
|
|
45
50
|
export * from './InventoryData.js';
|
|
46
51
|
export * from './IssuesBreakdown.js';
|
|
47
52
|
export * from './MigrationIssue.js';
|
|
@@ -51,7 +56,9 @@ export * from './OsInfo.js';
|
|
|
51
56
|
export * from './PairCapability.js';
|
|
52
57
|
export * from './PairCapabilityRequest.js';
|
|
53
58
|
export * from './Process.js';
|
|
59
|
+
export * from './Product.js';
|
|
54
60
|
export * from './RDMBacking.js';
|
|
61
|
+
export * from './RDMHostLun.js';
|
|
55
62
|
export * from './RightsizingClusterResponse.js';
|
|
56
63
|
export * from './RightsizingClusterUtilization.js';
|
|
57
64
|
export * from './StartForecasterRequest.js';
|
|
@@ -74,6 +81,7 @@ export * from './VirtualMachineDatastore.js';
|
|
|
74
81
|
export * from './VirtualMachineDetail.js';
|
|
75
82
|
export * from './VirtualMachineDevice.js';
|
|
76
83
|
export * from './VirtualMachineDisk.js';
|
|
84
|
+
export * from './VirtualMachineIdentity.js';
|
|
77
85
|
export * from './VirtualMachineInspectionConcern.js';
|
|
78
86
|
export * from './VirtualMachineInspectionResults.js';
|
|
79
87
|
export * from './VirtualMachineIssue.js';
|
package/dist/models/index.js
CHANGED
|
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
21
|
__exportStar(require("./AgentStatusConsoleConnection.js"), exports);
|
|
22
|
+
__exportStar(require("./Appliance.js"), exports);
|
|
23
|
+
__exportStar(require("./ApplianceListResponse.js"), exports);
|
|
22
24
|
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
24
26
|
__exportStar(require("./ApplicationVM.js"), exports);
|
|
@@ -28,6 +30,7 @@ __exportStar(require("./CapabilityStatus.js"), exports);
|
|
|
28
30
|
__exportStar(require("./CapabilityStatusCapabilities.js"), exports);
|
|
29
31
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
30
32
|
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
33
|
+
__exportStar(require("./CollectedInventory.js"), exports);
|
|
31
34
|
__exportStar(require("./Collection.js"), exports);
|
|
32
35
|
__exportStar(require("./CollectionAggregate.js"), exports);
|
|
33
36
|
__exportStar(require("./CollectionComparisonDiff.js"), exports);
|
|
@@ -55,11 +58,13 @@ __exportStar(require("./GroupResponse.js"), exports);
|
|
|
55
58
|
__exportStar(require("./GuestNetwork.js"), exports);
|
|
56
59
|
__exportStar(require("./Histogram.js"), exports);
|
|
57
60
|
__exportStar(require("./Host.js"), exports);
|
|
61
|
+
__exportStar(require("./HostPhysicalNIC.js"), exports);
|
|
62
|
+
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
63
|
+
__exportStar(require("./HostStorageLun.js"), exports);
|
|
58
64
|
__exportStar(require("./Infra.js"), exports);
|
|
59
65
|
__exportStar(require("./InspectionStatus.js"), exports);
|
|
60
66
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
61
67
|
__exportStar(require("./Inventory.js"), exports);
|
|
62
|
-
__exportStar(require("./Inventory1.js"), exports);
|
|
63
68
|
__exportStar(require("./InventoryData.js"), exports);
|
|
64
69
|
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
65
70
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
@@ -69,7 +74,9 @@ __exportStar(require("./OsInfo.js"), exports);
|
|
|
69
74
|
__exportStar(require("./PairCapability.js"), exports);
|
|
70
75
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
71
76
|
__exportStar(require("./Process.js"), exports);
|
|
77
|
+
__exportStar(require("./Product.js"), exports);
|
|
72
78
|
__exportStar(require("./RDMBacking.js"), exports);
|
|
79
|
+
__exportStar(require("./RDMHostLun.js"), exports);
|
|
73
80
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
74
81
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
75
82
|
__exportStar(require("./StartForecasterRequest.js"), exports);
|
|
@@ -92,6 +99,7 @@ __exportStar(require("./VirtualMachineDatastore.js"), exports);
|
|
|
92
99
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
93
100
|
__exportStar(require("./VirtualMachineDevice.js"), exports);
|
|
94
101
|
__exportStar(require("./VirtualMachineDisk.js"), exports);
|
|
102
|
+
__exportStar(require("./VirtualMachineIdentity.js"), exports);
|
|
95
103
|
__exportStar(require("./VirtualMachineInspectionConcern.js"), exports);
|
|
96
104
|
__exportStar(require("./VirtualMachineInspectionResults.js"), exports);
|
|
97
105
|
__exportStar(require("./VirtualMachineIssue.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
|
|
|
440
440
|
function decodeExtValue(value) {
|
|
441
441
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
442
|
try {
|
|
443
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
443
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
444
444
|
}
|
|
445
445
|
catch (_a) {
|
|
446
446
|
return undefined;
|
|
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
|
|
|
452
452
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
453
|
*/
|
|
454
454
|
function parseHeaderParameters(value) {
|
|
455
|
+
var _a, _b;
|
|
455
456
|
const params = new Map();
|
|
456
457
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
458
|
let match;
|
|
458
459
|
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
-
const name = match[1].toLowerCase();
|
|
460
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
460
461
|
if (!params.has(name)) {
|
|
461
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
return params;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# Appliance
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`vendor` | string
|
|
11
|
+
`version` | string
|
|
12
|
+
`confidence` | number
|
|
13
|
+
`vmCount` | number
|
|
14
|
+
`vms` | [Array<VirtualMachineIdentity>](VirtualMachineIdentity.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { Appliance } from '@openshift-migration-advisor/agent-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"name": null,
|
|
24
|
+
"vendor": null,
|
|
25
|
+
"version": null,
|
|
26
|
+
"confidence": null,
|
|
27
|
+
"vmCount": null,
|
|
28
|
+
"vms": null,
|
|
29
|
+
} satisfies Appliance
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as Appliance
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`appliances` | [Array<Appliance>](Appliance.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApplianceListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"appliances": null,
|
|
19
|
+
} satisfies ApplianceListResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceListResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|