@openshift-migration-advisor/agent-sdk 0.0.0-94e9d800ad5c
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,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: 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.instanceOfUpdateGroupRequest = instanceOfUpdateGroupRequest;
|
|
17
|
+
exports.UpdateGroupRequestFromJSON = UpdateGroupRequestFromJSON;
|
|
18
|
+
exports.UpdateGroupRequestFromJSONTyped = UpdateGroupRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateGroupRequestToJSON = UpdateGroupRequestToJSON;
|
|
20
|
+
exports.UpdateGroupRequestToJSONTyped = UpdateGroupRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateGroupRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateGroupRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateGroupRequestFromJSON(json) {
|
|
28
|
+
return UpdateGroupRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
38
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateGroupRequestToJSON(json) {
|
|
42
|
+
return UpdateGroupRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
'filter': value['filter'],
|
|
52
|
+
'tags': value['tags'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,55 @@
|
|
|
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.instanceOfUpdateInventory = instanceOfUpdateInventory;
|
|
17
|
+
exports.UpdateInventoryFromJSON = UpdateInventoryFromJSON;
|
|
18
|
+
exports.UpdateInventoryFromJSONTyped = UpdateInventoryFromJSONTyped;
|
|
19
|
+
exports.UpdateInventoryToJSON = UpdateInventoryToJSON;
|
|
20
|
+
exports.UpdateInventoryToJSONTyped = UpdateInventoryToJSONTyped;
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateInventory(value) {
|
|
26
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UpdateInventoryFromJSON(json) {
|
|
33
|
+
return UpdateInventoryFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'agentId': json['agentId'],
|
|
41
|
+
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function UpdateInventoryToJSON(json) {
|
|
45
|
+
return UpdateInventoryToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'agentId': value['agentId'],
|
|
53
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,50 @@
|
|
|
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.instanceOfVCenter = instanceOfVCenter;
|
|
17
|
+
exports.VCenterFromJSON = VCenterFromJSON;
|
|
18
|
+
exports.VCenterFromJSONTyped = VCenterFromJSONTyped;
|
|
19
|
+
exports.VCenterToJSON = VCenterToJSON;
|
|
20
|
+
exports.VCenterToJSONTyped = VCenterToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VCenter interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVCenter(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function VCenterFromJSON(json) {
|
|
30
|
+
return VCenterFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function VCenterFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function VCenterToJSON(json) {
|
|
41
|
+
return VCenterToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function VCenterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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,48 @@
|
|
|
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.instanceOfVMDevice = instanceOfVMDevice;
|
|
17
|
+
exports.VMDeviceFromJSON = VMDeviceFromJSON;
|
|
18
|
+
exports.VMDeviceFromJSONTyped = VMDeviceFromJSONTyped;
|
|
19
|
+
exports.VMDeviceToJSON = VMDeviceToJSON;
|
|
20
|
+
exports.VMDeviceToJSONTyped = VMDeviceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VMDevice interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVMDevice(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VMDeviceFromJSON(json) {
|
|
28
|
+
return VMDeviceFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VMDeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function VMDeviceToJSON(json) {
|
|
39
|
+
return VMDeviceToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function VMDeviceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'kind': value['kind'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,60 @@
|
|
|
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.instanceOfVMDisk = instanceOfVMDisk;
|
|
17
|
+
exports.VMDiskFromJSON = VMDiskFromJSON;
|
|
18
|
+
exports.VMDiskFromJSONTyped = VMDiskFromJSONTyped;
|
|
19
|
+
exports.VMDiskToJSON = VMDiskToJSON;
|
|
20
|
+
exports.VMDiskToJSONTyped = VMDiskToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VMDisk interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVMDisk(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VMDiskFromJSON(json) {
|
|
28
|
+
return VMDiskFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VMDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
36
|
+
'file': json['file'] == null ? undefined : json['file'],
|
|
37
|
+
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
38
|
+
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
39
|
+
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
40
|
+
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
41
|
+
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function VMDiskToJSON(json) {
|
|
45
|
+
return VMDiskToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function VMDiskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'key': value['key'],
|
|
53
|
+
'file': value['file'],
|
|
54
|
+
'capacity': value['capacity'],
|
|
55
|
+
'shared': value['shared'],
|
|
56
|
+
'rdm': value['rdm'],
|
|
57
|
+
'bus': value['bus'],
|
|
58
|
+
'mode': value['mode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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,70 @@
|
|
|
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.VMIssueCategoryEnum = void 0;
|
|
17
|
+
exports.instanceOfVMIssue = instanceOfVMIssue;
|
|
18
|
+
exports.VMIssueFromJSON = VMIssueFromJSON;
|
|
19
|
+
exports.VMIssueFromJSONTyped = VMIssueFromJSONTyped;
|
|
20
|
+
exports.VMIssueToJSON = VMIssueToJSON;
|
|
21
|
+
exports.VMIssueToJSONTyped = VMIssueToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.VMIssueCategoryEnum = {
|
|
26
|
+
Critical: 'Critical',
|
|
27
|
+
Warning: 'Warning',
|
|
28
|
+
Information: 'Information',
|
|
29
|
+
Advisory: 'Advisory',
|
|
30
|
+
Error: 'Error',
|
|
31
|
+
Other: 'Other'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the VMIssue interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfVMIssue(value) {
|
|
37
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function VMIssueFromJSON(json) {
|
|
46
|
+
return VMIssueFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function VMIssueFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'label': json['label'],
|
|
54
|
+
'description': json['description'],
|
|
55
|
+
'category': json['category'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function VMIssueToJSON(json) {
|
|
59
|
+
return VMIssueToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function VMIssueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'label': value['label'],
|
|
67
|
+
'description': value['description'],
|
|
68
|
+
'category': value['category'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.instanceOfVMNIC = instanceOfVMNIC;
|
|
17
|
+
exports.VMNICFromJSON = VMNICFromJSON;
|
|
18
|
+
exports.VMNICFromJSONTyped = VMNICFromJSONTyped;
|
|
19
|
+
exports.VMNICToJSON = VMNICToJSON;
|
|
20
|
+
exports.VMNICToJSONTyped = VMNICToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VMNIC interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVMNIC(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VMNICFromJSON(json) {
|
|
28
|
+
return VMNICFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VMNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
36
|
+
'network': json['network'] == null ? undefined : json['network'],
|
|
37
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function VMNICToJSON(json) {
|
|
41
|
+
return VMNICToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'mac': value['mac'],
|
|
49
|
+
'network': value['network'],
|
|
50
|
+
'index': value['index'],
|
|
51
|
+
};
|
|
52
|
+
}
|