@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,39 @@
|
|
|
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 { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateInventory
|
|
23
|
+
*/
|
|
24
|
+
agentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Inventory}
|
|
28
|
+
* @memberof UpdateInventory
|
|
29
|
+
*/
|
|
30
|
+
inventory: Inventory;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateInventory(value: object): value is UpdateInventory;
|
|
36
|
+
export declare function UpdateInventoryFromJSON(json: any): UpdateInventory;
|
|
37
|
+
export declare function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInventory;
|
|
38
|
+
export declare function UpdateInventoryToJSON(json: any): UpdateInventory;
|
|
39
|
+
export declare function UpdateInventoryToJSONTyped(value?: UpdateInventory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUpdateInventory(value) {
|
|
19
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function UpdateInventoryFromJSON(json) {
|
|
26
|
+
return UpdateInventoryFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'agentId': json['agentId'],
|
|
34
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function UpdateInventoryToJSON(json) {
|
|
38
|
+
return UpdateInventoryToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'agentId': value['agentId'],
|
|
46
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VCenter
|
|
16
|
+
*/
|
|
17
|
+
export interface VCenter {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VCenter
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VCenter interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVCenter(value: object): value is VCenter;
|
|
29
|
+
export declare function VCenterFromJSON(json: any): VCenter;
|
|
30
|
+
export declare function VCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): VCenter;
|
|
31
|
+
export declare function VCenterToJSON(json: any): VCenter;
|
|
32
|
+
export declare function VCenterToJSONTyped(value?: VCenter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VCenter interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVCenter(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function VCenterFromJSON(json) {
|
|
23
|
+
return VCenterFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function VCenterFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function VCenterToJSON(json) {
|
|
34
|
+
return VCenterToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function VCenterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': value['id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VMDevice
|
|
16
|
+
*/
|
|
17
|
+
export interface VMDevice {
|
|
18
|
+
/**
|
|
19
|
+
* Type of virtual device (e.g., cdrom, floppy, usb, serial, parallel)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VMDevice
|
|
22
|
+
*/
|
|
23
|
+
kind?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VMDevice interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVMDevice(value: object): value is VMDevice;
|
|
29
|
+
export declare function VMDeviceFromJSON(json: any): VMDevice;
|
|
30
|
+
export declare function VMDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMDevice;
|
|
31
|
+
export declare function VMDeviceToJSON(json: any): VMDevice;
|
|
32
|
+
export declare function VMDeviceToJSONTyped(value?: VMDevice | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VMDevice interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVMDevice(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VMDeviceFromJSON(json) {
|
|
21
|
+
return VMDeviceFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VMDeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function VMDeviceToJSON(json) {
|
|
32
|
+
return VMDeviceToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function VMDeviceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'kind': value['kind'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VMDisk
|
|
16
|
+
*/
|
|
17
|
+
export interface VMDisk {
|
|
18
|
+
/**
|
|
19
|
+
* Unique key identifying this disk within the VirtualMachine
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof VMDisk
|
|
22
|
+
*/
|
|
23
|
+
key?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Path to the VMDK file in the datastore
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VMDisk
|
|
28
|
+
*/
|
|
29
|
+
file?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Disk capacity in bytes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VMDisk
|
|
34
|
+
*/
|
|
35
|
+
capacity?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this disk is shared between multiple VMs
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof VMDisk
|
|
40
|
+
*/
|
|
41
|
+
shared?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether this is a Raw Device Mapping (direct LUN access)
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof VMDisk
|
|
46
|
+
*/
|
|
47
|
+
rdm?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Bus type (e.g., scsi, ide, sata, nvme)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VMDisk
|
|
52
|
+
*/
|
|
53
|
+
bus?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Disk mode (e.g., persistent, independent_persistent, independent_nonpersistent)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof VMDisk
|
|
58
|
+
*/
|
|
59
|
+
mode?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the VMDisk interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfVMDisk(value: object): value is VMDisk;
|
|
65
|
+
export declare function VMDiskFromJSON(json: any): VMDisk;
|
|
66
|
+
export declare function VMDiskFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMDisk;
|
|
67
|
+
export declare function VMDiskToJSON(json: any): VMDisk;
|
|
68
|
+
export declare function VMDiskToJSONTyped(value?: VMDisk | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VMDisk interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVMDisk(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VMDiskFromJSON(json) {
|
|
21
|
+
return VMDiskFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VMDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
29
|
+
'file': json['file'] == null ? undefined : json['file'],
|
|
30
|
+
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
31
|
+
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
32
|
+
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
33
|
+
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
34
|
+
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function VMDiskToJSON(json) {
|
|
38
|
+
return VMDiskToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function VMDiskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'key': value['key'],
|
|
46
|
+
'file': value['file'],
|
|
47
|
+
'capacity': value['capacity'],
|
|
48
|
+
'shared': value['shared'],
|
|
49
|
+
'rdm': value['rdm'],
|
|
50
|
+
'bus': value['bus'],
|
|
51
|
+
'mode': value['mode'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VMIssue
|
|
16
|
+
*/
|
|
17
|
+
export interface VMIssue {
|
|
18
|
+
/**
|
|
19
|
+
* Short label describing the issue
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VMIssue
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
* Detailed description of the issue with additional context and recommendations
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VMIssue
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* Severity category of the issue. Unknown categories are mapped to 'Other'.
|
|
32
|
+
* @type {VMIssueCategoryEnum}
|
|
33
|
+
* @memberof VMIssue
|
|
34
|
+
*/
|
|
35
|
+
category: VMIssueCategoryEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const VMIssueCategoryEnum: {
|
|
41
|
+
readonly Critical: "Critical";
|
|
42
|
+
readonly Warning: "Warning";
|
|
43
|
+
readonly Information: "Information";
|
|
44
|
+
readonly Advisory: "Advisory";
|
|
45
|
+
readonly Error: "Error";
|
|
46
|
+
readonly Other: "Other";
|
|
47
|
+
};
|
|
48
|
+
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the VMIssue interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfVMIssue(value: object): value is VMIssue;
|
|
53
|
+
export declare function VMIssueFromJSON(json: any): VMIssue;
|
|
54
|
+
export declare function VMIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMIssue;
|
|
55
|
+
export declare function VMIssueToJSON(json: any): VMIssue;
|
|
56
|
+
export declare function VMIssueToJSONTyped(value?: VMIssue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const VMIssueCategoryEnum = {
|
|
18
|
+
Critical: 'Critical',
|
|
19
|
+
Warning: 'Warning',
|
|
20
|
+
Information: 'Information',
|
|
21
|
+
Advisory: 'Advisory',
|
|
22
|
+
Error: 'Error',
|
|
23
|
+
Other: 'Other'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VMIssue interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfVMIssue(value) {
|
|
29
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function VMIssueFromJSON(json) {
|
|
38
|
+
return VMIssueFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function VMIssueFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'label': json['label'],
|
|
46
|
+
'description': json['description'],
|
|
47
|
+
'category': json['category'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function VMIssueToJSON(json) {
|
|
51
|
+
return VMIssueToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function VMIssueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'label': value['label'],
|
|
59
|
+
'description': value['description'],
|
|
60
|
+
'category': value['category'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VMNIC
|
|
16
|
+
*/
|
|
17
|
+
export interface VMNIC {
|
|
18
|
+
/**
|
|
19
|
+
* MAC address of the virtual NIC
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VMNIC
|
|
22
|
+
*/
|
|
23
|
+
mac?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Reference to the network this NIC is connected to
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VMNIC
|
|
28
|
+
*/
|
|
29
|
+
network?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the NIC within the VirtualMachine
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VMNIC
|
|
34
|
+
*/
|
|
35
|
+
index?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the VMNIC interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVMNIC(value: object): value is VMNIC;
|
|
41
|
+
export declare function VMNICFromJSON(json: any): VMNIC;
|
|
42
|
+
export declare function VMNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMNIC;
|
|
43
|
+
export declare function VMNICToJSON(json: any): VMNIC;
|
|
44
|
+
export declare function VMNICToJSONTyped(value?: VMNIC | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VMNIC interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVMNIC(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VMNICFromJSON(json) {
|
|
21
|
+
return VMNICFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VMNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
29
|
+
'network': json['network'] == null ? undefined : json['network'],
|
|
30
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function VMNICToJSON(json) {
|
|
34
|
+
return VMNICToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'mac': value['mac'],
|
|
42
|
+
'network': value['network'],
|
|
43
|
+
'index': value['index'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 { Histogram } from './Histogram.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VMResourceBreakdown
|
|
17
|
+
*/
|
|
18
|
+
export interface VMResourceBreakdown {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof VMResourceBreakdown
|
|
23
|
+
*/
|
|
24
|
+
total: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof VMResourceBreakdown
|
|
29
|
+
*/
|
|
30
|
+
totalForMigratable: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof VMResourceBreakdown
|
|
35
|
+
*/
|
|
36
|
+
totalForMigratableWithWarnings: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof VMResourceBreakdown
|
|
41
|
+
*/
|
|
42
|
+
totalForNotMigratable: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Histogram}
|
|
46
|
+
* @memberof VMResourceBreakdown
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
49
|
+
histogram?: Histogram;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the VMResourceBreakdown interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfVMResourceBreakdown(value: object): value is VMResourceBreakdown;
|
|
55
|
+
export declare function VMResourceBreakdownFromJSON(json: any): VMResourceBreakdown;
|
|
56
|
+
export declare function VMResourceBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMResourceBreakdown;
|
|
57
|
+
export declare function VMResourceBreakdownToJSON(json: any): VMResourceBreakdown;
|
|
58
|
+
export declare function VMResourceBreakdownToJSONTyped(value?: VMResourceBreakdown | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { HistogramFromJSON, HistogramToJSON, } from './Histogram.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the VMResourceBreakdown interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfVMResourceBreakdown(value) {
|
|
19
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('totalForMigratable' in value) || value['totalForMigratable'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalForMigratableWithWarnings' in value) || value['totalForMigratableWithWarnings'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function VMResourceBreakdownFromJSON(json) {
|
|
30
|
+
return VMResourceBreakdownFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function VMResourceBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'total': json['total'],
|
|
38
|
+
'totalForMigratable': json['totalForMigratable'],
|
|
39
|
+
'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
|
|
40
|
+
'totalForNotMigratable': json['totalForNotMigratable'],
|
|
41
|
+
'histogram': json['histogram'] == null ? undefined : HistogramFromJSON(json['histogram']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function VMResourceBreakdownToJSON(json) {
|
|
45
|
+
return VMResourceBreakdownToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function VMResourceBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'totalForMigratable': value['totalForMigratable'],
|
|
54
|
+
'totalForMigratableWithWarnings': value['totalForMigratableWithWarnings'],
|
|
55
|
+
'totalForNotMigratable': value['totalForNotMigratable'],
|
|
56
|
+
'histogram': HistogramToJSON(value['histogram']),
|
|
57
|
+
};
|
|
58
|
+
}
|