@openshift-migration-advisor/agent-sdk 0.0.0-62ab9022d189
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 +91 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +170 -0
- package/dist/apis/DefaultApi.d.ts +761 -0
- package/dist/apis/DefaultApi.js +878 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/DefaultApi.d.ts +761 -0
- package/dist/esm/apis/DefaultApi.js +874 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AgentModeRequest.d.ts +40 -0
- package/dist/esm/models/AgentModeRequest.js +50 -0
- package/dist/esm/models/AgentStatus.d.ts +60 -0
- package/dist/esm/models/AgentStatus.js +63 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +44 -0
- package/dist/esm/models/CollectorStartRequest.js +51 -0
- package/dist/esm/models/CollectorStatus.d.ts +51 -0
- package/dist/esm/models/CollectorStatus.js +57 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +50 -0
- package/dist/esm/models/CreateGroupRequest.js +51 -0
- package/dist/esm/models/Datastore.d.ts +80 -0
- package/dist/esm/models/Datastore.js +73 -0
- package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/esm/models/DiskSizeTierSummary.js +47 -0
- package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
- package/dist/esm/models/DiskTypeSummary.js +47 -0
- package/dist/esm/models/GetInventory200Response.d.ts +23 -0
- package/dist/esm/models/GetInventory200Response.js +51 -0
- package/dist/esm/models/Group.d.ts +68 -0
- package/dist/esm/models/Group.js +59 -0
- package/dist/esm/models/GroupListResponse.d.ts +51 -0
- package/dist/esm/models/GroupListResponse.js +56 -0
- package/dist/esm/models/GroupResponse.d.ts +58 -0
- package/dist/esm/models/GroupResponse.js +61 -0
- package/dist/esm/models/GuestNetwork.d.ts +56 -0
- package/dist/esm/models/GuestNetwork.js +49 -0
- package/dist/esm/models/Histogram.d.ts +44 -0
- package/dist/esm/models/Histogram.js +51 -0
- package/dist/esm/models/Host.d.ts +62 -0
- package/dist/esm/models/Host.js +55 -0
- package/dist/esm/models/Infra.d.ts +106 -0
- package/dist/esm/models/Infra.js +74 -0
- package/dist/esm/models/InspectorStartRequest.d.ts +39 -0
- package/dist/esm/models/InspectorStartRequest.js +48 -0
- package/dist/esm/models/InspectorStatus.d.ts +51 -0
- package/dist/esm/models/InspectorStatus.js +57 -0
- package/dist/esm/models/Inventory.d.ts +47 -0
- package/dist/esm/models/Inventory.js +51 -0
- package/dist/esm/models/InventoryData.d.ts +47 -0
- package/dist/esm/models/InventoryData.js +52 -0
- package/dist/esm/models/MigrationIssue.d.ts +50 -0
- package/dist/esm/models/MigrationIssue.js +53 -0
- package/dist/esm/models/Network.d.ts +66 -0
- package/dist/esm/models/Network.js +62 -0
- package/dist/esm/models/OsInfo.d.ts +44 -0
- package/dist/esm/models/OsInfo.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +50 -0
- package/dist/esm/models/UpdateGroupRequest.js +47 -0
- package/dist/esm/models/UpdateInventory.d.ts +39 -0
- package/dist/esm/models/UpdateInventory.js +48 -0
- package/dist/esm/models/VCenter.d.ts +32 -0
- package/dist/esm/models/VCenter.js +43 -0
- package/dist/esm/models/VMDevice.d.ts +32 -0
- package/dist/esm/models/VMDevice.js +41 -0
- package/dist/esm/models/VMDisk.d.ts +68 -0
- package/dist/esm/models/VMDisk.js +53 -0
- package/dist/esm/models/VMIssue.d.ts +56 -0
- package/dist/esm/models/VMIssue.js +62 -0
- package/dist/esm/models/VMNIC.d.ts +44 -0
- package/dist/esm/models/VMNIC.js +45 -0
- package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/esm/models/VMResourceBreakdown.js +58 -0
- package/dist/esm/models/VMs.d.ts +170 -0
- package/dist/esm/models/VMs.js +103 -0
- package/dist/esm/models/VcenterCredentials.d.ts +44 -0
- package/dist/esm/models/VcenterCredentials.js +51 -0
- package/dist/esm/models/VddkPost200Response.d.ts +38 -0
- package/dist/esm/models/VddkPost200Response.js +47 -0
- package/dist/esm/models/VersionInfo.d.ts +44 -0
- package/dist/esm/models/VersionInfo.js +51 -0
- package/dist/esm/models/VirtualMachine.d.ts +99 -0
- package/dist/esm/models/VirtualMachine.js +82 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +218 -0
- package/dist/esm/models/VirtualMachineDetail.js +125 -0
- package/dist/esm/models/VirtualMachineListResponse.d.ts +51 -0
- package/dist/esm/models/VirtualMachineListResponse.js +56 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +56 -0
- package/dist/esm/models/VmInspectionStatus.js +58 -0
- package/dist/esm/models/index.d.ts +39 -0
- package/dist/esm/models/index.js +41 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +349 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AgentModeRequest.d.ts +40 -0
- package/dist/models/AgentModeRequest.js +58 -0
- package/dist/models/AgentStatus.d.ts +60 -0
- package/dist/models/AgentStatus.js +71 -0
- package/dist/models/CollectorStartRequest.d.ts +44 -0
- package/dist/models/CollectorStartRequest.js +58 -0
- package/dist/models/CollectorStatus.d.ts +51 -0
- package/dist/models/CollectorStatus.js +65 -0
- package/dist/models/CreateGroupRequest.d.ts +50 -0
- package/dist/models/CreateGroupRequest.js +58 -0
- package/dist/models/Datastore.d.ts +80 -0
- package/dist/models/Datastore.js +80 -0
- package/dist/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/models/DiskSizeTierSummary.js +54 -0
- package/dist/models/DiskTypeSummary.d.ts +38 -0
- package/dist/models/DiskTypeSummary.js +54 -0
- package/dist/models/GetInventory200Response.d.ts +23 -0
- package/dist/models/GetInventory200Response.js +57 -0
- package/dist/models/Group.d.ts +68 -0
- package/dist/models/Group.js +66 -0
- package/dist/models/GroupListResponse.d.ts +51 -0
- package/dist/models/GroupListResponse.js +63 -0
- package/dist/models/GroupResponse.d.ts +58 -0
- package/dist/models/GroupResponse.js +68 -0
- package/dist/models/GuestNetwork.d.ts +56 -0
- package/dist/models/GuestNetwork.js +56 -0
- package/dist/models/Histogram.d.ts +44 -0
- package/dist/models/Histogram.js +58 -0
- package/dist/models/Host.d.ts +62 -0
- package/dist/models/Host.js +62 -0
- package/dist/models/Infra.d.ts +106 -0
- package/dist/models/Infra.js +81 -0
- package/dist/models/InspectorStartRequest.d.ts +39 -0
- package/dist/models/InspectorStartRequest.js +55 -0
- package/dist/models/InspectorStatus.d.ts +51 -0
- package/dist/models/InspectorStatus.js +65 -0
- package/dist/models/Inventory.d.ts +47 -0
- package/dist/models/Inventory.js +58 -0
- package/dist/models/InventoryData.d.ts +47 -0
- package/dist/models/InventoryData.js +59 -0
- package/dist/models/MigrationIssue.d.ts +50 -0
- package/dist/models/MigrationIssue.js +60 -0
- package/dist/models/Network.d.ts +66 -0
- package/dist/models/Network.js +70 -0
- package/dist/models/OsInfo.d.ts +44 -0
- package/dist/models/OsInfo.js +56 -0
- package/dist/models/UpdateGroupRequest.d.ts +50 -0
- package/dist/models/UpdateGroupRequest.js +54 -0
- package/dist/models/UpdateInventory.d.ts +39 -0
- package/dist/models/UpdateInventory.js +55 -0
- package/dist/models/VCenter.d.ts +32 -0
- package/dist/models/VCenter.js +50 -0
- package/dist/models/VMDevice.d.ts +32 -0
- package/dist/models/VMDevice.js +48 -0
- package/dist/models/VMDisk.d.ts +68 -0
- package/dist/models/VMDisk.js +60 -0
- package/dist/models/VMIssue.d.ts +56 -0
- package/dist/models/VMIssue.js +70 -0
- package/dist/models/VMNIC.d.ts +44 -0
- package/dist/models/VMNIC.js +52 -0
- package/dist/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/models/VMResourceBreakdown.js +65 -0
- package/dist/models/VMs.d.ts +170 -0
- package/dist/models/VMs.js +110 -0
- package/dist/models/VcenterCredentials.d.ts +44 -0
- package/dist/models/VcenterCredentials.js +58 -0
- package/dist/models/VddkPost200Response.d.ts +38 -0
- package/dist/models/VddkPost200Response.js +54 -0
- package/dist/models/VersionInfo.d.ts +44 -0
- package/dist/models/VersionInfo.js +58 -0
- package/dist/models/VirtualMachine.d.ts +99 -0
- package/dist/models/VirtualMachine.js +89 -0
- package/dist/models/VirtualMachineDetail.d.ts +218 -0
- package/dist/models/VirtualMachineDetail.js +132 -0
- package/dist/models/VirtualMachineListResponse.d.ts +51 -0
- package/dist/models/VirtualMachineListResponse.js +63 -0
- package/dist/models/VmInspectionStatus.d.ts +56 -0
- package/dist/models/VmInspectionStatus.js +66 -0
- package/dist/models/index.d.ts +39 -0
- package/dist/models/index.js +57 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +365 -0
- package/docs/AgentModeRequest.md +34 -0
- package/docs/AgentStatus.md +38 -0
- package/docs/CollectorStartRequest.md +38 -0
- package/docs/CollectorStatus.md +36 -0
- package/docs/CreateGroupRequest.md +40 -0
- package/docs/Datastore.md +50 -0
- package/docs/DefaultApi.md +1419 -0
- package/docs/DiskSizeTierSummary.md +36 -0
- package/docs/DiskTypeSummary.md +36 -0
- package/docs/GetInventory200Response.md +42 -0
- package/docs/Group.md +46 -0
- package/docs/GroupListResponse.md +40 -0
- package/docs/GroupResponse.md +42 -0
- package/docs/GuestNetwork.md +42 -0
- package/docs/Histogram.md +38 -0
- package/docs/Host.md +44 -0
- package/docs/Infra.md +56 -0
- package/docs/InspectorStartRequest.md +36 -0
- package/docs/InspectorStatus.md +36 -0
- package/docs/Inventory.md +38 -0
- package/docs/InventoryData.md +38 -0
- package/docs/MigrationIssue.md +40 -0
- package/docs/Network.md +42 -0
- package/docs/OsInfo.md +38 -0
- package/docs/UpdateGroupRequest.md +40 -0
- package/docs/UpdateInventory.md +36 -0
- package/docs/VCenter.md +34 -0
- package/docs/VMDevice.md +34 -0
- package/docs/VMDisk.md +46 -0
- package/docs/VMIssue.md +38 -0
- package/docs/VMNIC.md +38 -0
- package/docs/VMResourceBreakdown.md +42 -0
- package/docs/VMs.md +72 -0
- package/docs/VcenterCredentials.md +38 -0
- package/docs/VddkPost200Response.md +36 -0
- package/docs/VersionInfo.md +38 -0
- package/docs/VirtualMachine.md +56 -0
- package/docs/VirtualMachineDetail.md +94 -0
- package/docs/VirtualMachineListResponse.md +40 -0
- package/docs/VmInspectionStatus.md +38 -0
- package/package.json +22 -0
- package/src/apis/DefaultApi.ts +1607 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/AgentModeRequest.ts +77 -0
- package/src/models/AgentStatus.ts +103 -0
- package/src/models/CollectorStartRequest.ts +84 -0
- package/src/models/CollectorStatus.ts +90 -0
- package/src/models/CreateGroupRequest.ts +91 -0
- package/src/models/Datastore.ts +137 -0
- package/src/models/DiskSizeTierSummary.ts +75 -0
- package/src/models/DiskTypeSummary.ts +75 -0
- package/src/models/GetInventory200Response.ts +76 -0
- package/src/models/Group.ts +116 -0
- package/src/models/GroupListResponse.ts +101 -0
- package/src/models/GroupResponse.ts +117 -0
- package/src/models/GuestNetwork.ts +97 -0
- package/src/models/Histogram.ts +84 -0
- package/src/models/Host.ts +107 -0
- package/src/models/Infra.ts +182 -0
- package/src/models/InspectorStartRequest.ts +83 -0
- package/src/models/InspectorStatus.ts +90 -0
- package/src/models/Inventory.ts +91 -0
- package/src/models/InventoryData.ts +105 -0
- package/src/models/MigrationIssue.ts +92 -0
- package/src/models/Network.ts +112 -0
- package/src/models/OsInfo.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +89 -0
- package/src/models/UpdateInventory.ts +83 -0
- package/src/models/VCenter.ts +66 -0
- package/src/models/VMDevice.ts +65 -0
- package/src/models/VMDisk.ts +113 -0
- package/src/models/VMIssue.ts +99 -0
- package/src/models/VMNIC.ts +81 -0
- package/src/models/VMResourceBreakdown.ts +110 -0
- package/src/models/VMs.ts +263 -0
- package/src/models/VcenterCredentials.ts +84 -0
- package/src/models/VddkPost200Response.ts +75 -0
- package/src/models/VersionInfo.ts +84 -0
- package/src/models/VirtualMachine.ts +170 -0
- package/src/models/VirtualMachineDetail.ts +357 -0
- package/src/models/VirtualMachineListResponse.ts +101 -0
- package/src/models/VmInspectionStatus.ts +97 -0
- package/src/models/index.ts +41 -0
- package/src/runtime.ts +450 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
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.instanceOfVersionInfo = instanceOfVersionInfo;
|
|
17
|
+
exports.VersionInfoFromJSON = VersionInfoFromJSON;
|
|
18
|
+
exports.VersionInfoFromJSONTyped = VersionInfoFromJSONTyped;
|
|
19
|
+
exports.VersionInfoToJSON = VersionInfoToJSON;
|
|
20
|
+
exports.VersionInfoToJSONTyped = VersionInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VersionInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVersionInfo(value) {
|
|
25
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('gitCommit' in value) || value['gitCommit'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('uiGitCommit' in value) || value['uiGitCommit'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function VersionInfoFromJSON(json) {
|
|
34
|
+
return VersionInfoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function VersionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'version': json['version'],
|
|
42
|
+
'gitCommit': json['gitCommit'],
|
|
43
|
+
'uiGitCommit': json['uiGitCommit'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function VersionInfoToJSON(json) {
|
|
47
|
+
return VersionInfoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function VersionInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'version': value['version'],
|
|
55
|
+
'gitCommit': value['gitCommit'],
|
|
56
|
+
'uiGitCommit': value['uiGitCommit'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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: v1
|
|
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 { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VirtualMachine
|
|
17
|
+
*/
|
|
18
|
+
export interface VirtualMachine {
|
|
19
|
+
/**
|
|
20
|
+
* VirtualMachine name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof VirtualMachine
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* VirtualMachine ID in vCenter
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VirtualMachine
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* vCenter state (e.g., poweredOn, poweredOff, suspended)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof VirtualMachine
|
|
35
|
+
*/
|
|
36
|
+
vCenterState: string;
|
|
37
|
+
/**
|
|
38
|
+
* Cluster name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof VirtualMachine
|
|
41
|
+
*/
|
|
42
|
+
cluster: string;
|
|
43
|
+
/**
|
|
44
|
+
* Datacenter name
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof VirtualMachine
|
|
47
|
+
*/
|
|
48
|
+
datacenter: string;
|
|
49
|
+
/**
|
|
50
|
+
* Total disk size in MB
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof VirtualMachine
|
|
53
|
+
*/
|
|
54
|
+
diskSize: number;
|
|
55
|
+
/**
|
|
56
|
+
* Memory size in MB
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof VirtualMachine
|
|
59
|
+
*/
|
|
60
|
+
memory: number;
|
|
61
|
+
/**
|
|
62
|
+
* Number of issues found for this VirtualMachine
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof VirtualMachine
|
|
65
|
+
*/
|
|
66
|
+
issueCount: number;
|
|
67
|
+
/**
|
|
68
|
+
* True if the vm is migratable for MTV. False otherwise
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof VirtualMachine
|
|
71
|
+
*/
|
|
72
|
+
migratable?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* True if the vm is a template. False otherwise
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof VirtualMachine
|
|
77
|
+
*/
|
|
78
|
+
template?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {VmInspectionStatus}
|
|
82
|
+
* @memberof VirtualMachine
|
|
83
|
+
*/
|
|
84
|
+
inspection: VmInspectionStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Tags aggregated from matching groups
|
|
87
|
+
* @type {Array<string>}
|
|
88
|
+
* @memberof VirtualMachine
|
|
89
|
+
*/
|
|
90
|
+
tags?: Array<string>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the VirtualMachine interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfVirtualMachine(value: object): value is VirtualMachine;
|
|
96
|
+
export declare function VirtualMachineFromJSON(json: any): VirtualMachine;
|
|
97
|
+
export declare function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachine;
|
|
98
|
+
export declare function VirtualMachineToJSON(json: any): VirtualMachine;
|
|
99
|
+
export declare function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
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: v1
|
|
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.instanceOfVirtualMachine = instanceOfVirtualMachine;
|
|
17
|
+
exports.VirtualMachineFromJSON = VirtualMachineFromJSON;
|
|
18
|
+
exports.VirtualMachineFromJSONTyped = VirtualMachineFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineToJSON = VirtualMachineToJSON;
|
|
20
|
+
exports.VirtualMachineToJSONTyped = VirtualMachineToJSONTyped;
|
|
21
|
+
const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the VirtualMachine interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfVirtualMachine(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('vCenterState' in value) || value['vCenterState'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('cluster' in value) || value['cluster'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('datacenter' in value) || value['datacenter'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('diskSize' in value) || value['diskSize'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('memory' in value) || value['memory'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('issueCount' in value) || value['issueCount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('inspection' in value) || value['inspection'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function VirtualMachineFromJSON(json) {
|
|
47
|
+
return VirtualMachineFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'vCenterState': json['vCenterState'],
|
|
57
|
+
'cluster': json['cluster'],
|
|
58
|
+
'datacenter': json['datacenter'],
|
|
59
|
+
'diskSize': json['diskSize'],
|
|
60
|
+
'memory': json['memory'],
|
|
61
|
+
'issueCount': json['issueCount'],
|
|
62
|
+
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
63
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
64
|
+
'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
|
|
65
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function VirtualMachineToJSON(json) {
|
|
69
|
+
return VirtualMachineToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'vCenterState': value['vCenterState'],
|
|
79
|
+
'cluster': value['cluster'],
|
|
80
|
+
'datacenter': value['datacenter'],
|
|
81
|
+
'diskSize': value['diskSize'],
|
|
82
|
+
'memory': value['memory'],
|
|
83
|
+
'issueCount': value['issueCount'],
|
|
84
|
+
'migratable': value['migratable'],
|
|
85
|
+
'template': value['template'],
|
|
86
|
+
'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
|
|
87
|
+
'tags': value['tags'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
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: v1
|
|
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 { VMNIC } from './VMNIC.js';
|
|
13
|
+
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
14
|
+
import type { GuestNetwork } from './GuestNetwork.js';
|
|
15
|
+
import type { VMIssue } from './VMIssue.js';
|
|
16
|
+
import type { VMDevice } from './VMDevice.js';
|
|
17
|
+
import type { VMDisk } from './VMDisk.js';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface VirtualMachineDetail
|
|
22
|
+
*/
|
|
23
|
+
export interface VirtualMachineDetail {
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the VirtualMachine in vCenter
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VirtualMachineDetail
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Display name of the VirtualMachine
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VirtualMachineDetail
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Universally unique identifier assigned by vCenter
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VirtualMachineDetail
|
|
40
|
+
*/
|
|
41
|
+
uuid?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Firmware type used by the VirtualMachine (bios or efi)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VirtualMachineDetail
|
|
46
|
+
*/
|
|
47
|
+
firmware?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Current power state of the VirtualMachine (poweredOn, poweredOff, or suspended)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VirtualMachineDetail
|
|
52
|
+
*/
|
|
53
|
+
powerState: string;
|
|
54
|
+
/**
|
|
55
|
+
* State of the connection between vCenter and the VirtualMachine's host (connected, disconnected, orphaned, or inaccessible)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof VirtualMachineDetail
|
|
58
|
+
*/
|
|
59
|
+
connectionState: string;
|
|
60
|
+
/**
|
|
61
|
+
* Reference to the ESXi host where the VirtualMachine is running
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof VirtualMachineDetail
|
|
64
|
+
*/
|
|
65
|
+
host?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the datacenter containing the VirtualMachine
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof VirtualMachineDetail
|
|
70
|
+
*/
|
|
71
|
+
datacenter?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Name of the cluster containing the VirtualMachine
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof VirtualMachineDetail
|
|
76
|
+
*/
|
|
77
|
+
cluster?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Reference to the inventory folder containing the VirtualMachine
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof VirtualMachineDetail
|
|
82
|
+
*/
|
|
83
|
+
folder?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Total number of virtual CPUs allocated to the VirtualMachine
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof VirtualMachineDetail
|
|
88
|
+
*/
|
|
89
|
+
cpuCount: number;
|
|
90
|
+
/**
|
|
91
|
+
* Number of CPU cores per virtual socket
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof VirtualMachineDetail
|
|
94
|
+
*/
|
|
95
|
+
coresPerSocket: number;
|
|
96
|
+
/**
|
|
97
|
+
* List of physical CPU IDs the VirtualMachine is pinned to for scheduling
|
|
98
|
+
* @type {Array<number>}
|
|
99
|
+
* @memberof VirtualMachineDetail
|
|
100
|
+
*/
|
|
101
|
+
cpuAffinity?: Array<number>;
|
|
102
|
+
/**
|
|
103
|
+
* Amount of memory allocated to the VirtualMachine in megabytes
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof VirtualMachineDetail
|
|
106
|
+
*/
|
|
107
|
+
memoryMB: number;
|
|
108
|
+
/**
|
|
109
|
+
* Full name of the guest operating system as reported by VMware Tools
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof VirtualMachineDetail
|
|
112
|
+
*/
|
|
113
|
+
guestName?: string;
|
|
114
|
+
/**
|
|
115
|
+
* VMware identifier for the guest OS type (e.g., rhel8_64Guest)
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof VirtualMachineDetail
|
|
118
|
+
*/
|
|
119
|
+
guestId?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Hostname of the guest OS as reported by VMware Tools
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof VirtualMachineDetail
|
|
124
|
+
*/
|
|
125
|
+
hostName?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Primary IP address of the guest OS as reported by VMware Tools
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof VirtualMachineDetail
|
|
130
|
+
*/
|
|
131
|
+
ipAddress?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Total storage space consumed by the VirtualMachine in bytes
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof VirtualMachineDetail
|
|
136
|
+
*/
|
|
137
|
+
storageUsed?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the VirtualMachine is a template rather than a regular VirtualMachine
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof VirtualMachineDetail
|
|
142
|
+
*/
|
|
143
|
+
template?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the VirtualMachine can be migrated (true if no critical issues)
|
|
146
|
+
* @type {boolean}
|
|
147
|
+
* @memberof VirtualMachineDetail
|
|
148
|
+
*/
|
|
149
|
+
migratable?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof VirtualMachineDetail
|
|
154
|
+
*/
|
|
155
|
+
faultToleranceEnabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether nested virtualization is enabled, allowing hypervisors to run inside the VirtualMachine
|
|
158
|
+
* @type {boolean}
|
|
159
|
+
* @memberof VirtualMachineDetail
|
|
160
|
+
*/
|
|
161
|
+
nestedHVEnabled?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Installation status of VMware Tools (toolsNotInstalled, toolsNotRunning, toolsOld, toolsOk)
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof VirtualMachineDetail
|
|
166
|
+
*/
|
|
167
|
+
toolsStatus?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Whether VMware Tools is currently running in the guest OS
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof VirtualMachineDetail
|
|
172
|
+
*/
|
|
173
|
+
toolsRunningStatus?: string;
|
|
174
|
+
/**
|
|
175
|
+
* List of virtual disks attached to the VirtualMachine
|
|
176
|
+
* @type {Array<VMDisk>}
|
|
177
|
+
* @memberof VirtualMachineDetail
|
|
178
|
+
*/
|
|
179
|
+
disks: Array<VMDisk>;
|
|
180
|
+
/**
|
|
181
|
+
* List of virtual network interface cards attached to the VirtualMachine
|
|
182
|
+
* @type {Array<VMNIC>}
|
|
183
|
+
* @memberof VirtualMachineDetail
|
|
184
|
+
*/
|
|
185
|
+
nics: Array<VMNIC>;
|
|
186
|
+
/**
|
|
187
|
+
* List of other virtual devices attached to the VirtualMachine
|
|
188
|
+
* @type {Array<VMDevice>}
|
|
189
|
+
* @memberof VirtualMachineDetail
|
|
190
|
+
*/
|
|
191
|
+
devices?: Array<VMDevice>;
|
|
192
|
+
/**
|
|
193
|
+
* Network configuration inside the guest OS as reported by VMware Tools
|
|
194
|
+
* @type {Array<GuestNetwork>}
|
|
195
|
+
* @memberof VirtualMachineDetail
|
|
196
|
+
*/
|
|
197
|
+
guestNetworks?: Array<GuestNetwork>;
|
|
198
|
+
/**
|
|
199
|
+
* List of issues affecting this VirtualMachine
|
|
200
|
+
* @type {Array<VMIssue>}
|
|
201
|
+
* @memberof VirtualMachineDetail
|
|
202
|
+
*/
|
|
203
|
+
issues?: Array<VMIssue>;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {VmInspectionStatus}
|
|
207
|
+
* @memberof VirtualMachineDetail
|
|
208
|
+
*/
|
|
209
|
+
inspection?: VmInspectionStatus;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Check if a given object implements the VirtualMachineDetail interface.
|
|
213
|
+
*/
|
|
214
|
+
export declare function instanceOfVirtualMachineDetail(value: object): value is VirtualMachineDetail;
|
|
215
|
+
export declare function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail;
|
|
216
|
+
export declare function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail;
|
|
217
|
+
export declare function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail;
|
|
218
|
+
export declare function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,132 @@
|
|
|
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: v1
|
|
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.instanceOfVirtualMachineDetail = instanceOfVirtualMachineDetail;
|
|
17
|
+
exports.VirtualMachineDetailFromJSON = VirtualMachineDetailFromJSON;
|
|
18
|
+
exports.VirtualMachineDetailFromJSONTyped = VirtualMachineDetailFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineDetailToJSON = VirtualMachineDetailToJSON;
|
|
20
|
+
exports.VirtualMachineDetailToJSONTyped = VirtualMachineDetailToJSONTyped;
|
|
21
|
+
const VMNIC_js_1 = require("./VMNIC.js");
|
|
22
|
+
const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
|
|
23
|
+
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
24
|
+
const VMIssue_js_1 = require("./VMIssue.js");
|
|
25
|
+
const VMDevice_js_1 = require("./VMDevice.js");
|
|
26
|
+
const VMDisk_js_1 = require("./VMDisk.js");
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the VirtualMachineDetail interface.
|
|
29
|
+
*/
|
|
30
|
+
function instanceOfVirtualMachineDetail(value) {
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('powerState' in value) || value['powerState'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('connectionState' in value) || value['connectionState'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('cpuCount' in value) || value['cpuCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('memoryMB' in value) || value['memoryMB'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('disks' in value) || value['disks'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('nics' in value) || value['nics'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function VirtualMachineDetailFromJSON(json) {
|
|
52
|
+
return VirtualMachineDetailFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
62
|
+
'firmware': json['firmware'] == null ? undefined : json['firmware'],
|
|
63
|
+
'powerState': json['powerState'],
|
|
64
|
+
'connectionState': json['connectionState'],
|
|
65
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
66
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
67
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
68
|
+
'folder': json['folder'] == null ? undefined : json['folder'],
|
|
69
|
+
'cpuCount': json['cpuCount'],
|
|
70
|
+
'coresPerSocket': json['coresPerSocket'],
|
|
71
|
+
'cpuAffinity': json['cpuAffinity'] == null ? undefined : json['cpuAffinity'],
|
|
72
|
+
'memoryMB': json['memoryMB'],
|
|
73
|
+
'guestName': json['guestName'] == null ? undefined : json['guestName'],
|
|
74
|
+
'guestId': json['guestId'] == null ? undefined : json['guestId'],
|
|
75
|
+
'hostName': json['hostName'] == null ? undefined : json['hostName'],
|
|
76
|
+
'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
|
|
77
|
+
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
78
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
79
|
+
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
80
|
+
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
81
|
+
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
82
|
+
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
83
|
+
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
84
|
+
'disks': (json['disks'].map(VMDisk_js_1.VMDiskFromJSON)),
|
|
85
|
+
'nics': (json['nics'].map(VMNIC_js_1.VMNICFromJSON)),
|
|
86
|
+
'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDevice_js_1.VMDeviceFromJSON)),
|
|
87
|
+
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
88
|
+
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
89
|
+
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function VirtualMachineDetailToJSON(json) {
|
|
93
|
+
return VirtualMachineDetailToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
'id': value['id'],
|
|
101
|
+
'name': value['name'],
|
|
102
|
+
'uuid': value['uuid'],
|
|
103
|
+
'firmware': value['firmware'],
|
|
104
|
+
'powerState': value['powerState'],
|
|
105
|
+
'connectionState': value['connectionState'],
|
|
106
|
+
'host': value['host'],
|
|
107
|
+
'datacenter': value['datacenter'],
|
|
108
|
+
'cluster': value['cluster'],
|
|
109
|
+
'folder': value['folder'],
|
|
110
|
+
'cpuCount': value['cpuCount'],
|
|
111
|
+
'coresPerSocket': value['coresPerSocket'],
|
|
112
|
+
'cpuAffinity': value['cpuAffinity'],
|
|
113
|
+
'memoryMB': value['memoryMB'],
|
|
114
|
+
'guestName': value['guestName'],
|
|
115
|
+
'guestId': value['guestId'],
|
|
116
|
+
'hostName': value['hostName'],
|
|
117
|
+
'ipAddress': value['ipAddress'],
|
|
118
|
+
'storageUsed': value['storageUsed'],
|
|
119
|
+
'template': value['template'],
|
|
120
|
+
'migratable': value['migratable'],
|
|
121
|
+
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
122
|
+
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
123
|
+
'toolsStatus': value['toolsStatus'],
|
|
124
|
+
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
125
|
+
'disks': (value['disks'].map(VMDisk_js_1.VMDiskToJSON)),
|
|
126
|
+
'nics': (value['nics'].map(VMNIC_js_1.VMNICToJSON)),
|
|
127
|
+
'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDevice_js_1.VMDeviceToJSON)),
|
|
128
|
+
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
129
|
+
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
130
|
+
'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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: v1
|
|
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 { VirtualMachine } from './VirtualMachine.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VirtualMachineListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface VirtualMachineListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<VirtualMachine>}
|
|
22
|
+
* @memberof VirtualMachineListResponse
|
|
23
|
+
*/
|
|
24
|
+
vms: Array<VirtualMachine>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of VMs matching the filter
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof VirtualMachineListResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Current page number
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof VirtualMachineListResponse
|
|
35
|
+
*/
|
|
36
|
+
page: number;
|
|
37
|
+
/**
|
|
38
|
+
* Total number of pages
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof VirtualMachineListResponse
|
|
41
|
+
*/
|
|
42
|
+
pageCount: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the VirtualMachineListResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfVirtualMachineListResponse(value: object): value is VirtualMachineListResponse;
|
|
48
|
+
export declare function VirtualMachineListResponseFromJSON(json: any): VirtualMachineListResponse;
|
|
49
|
+
export declare function VirtualMachineListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineListResponse;
|
|
50
|
+
export declare function VirtualMachineListResponseToJSON(json: any): VirtualMachineListResponse;
|
|
51
|
+
export declare function VirtualMachineListResponseToJSONTyped(value?: VirtualMachineListResponse | null, ignoreDiscriminator?: boolean): any;
|