@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
53 lines • 2.09 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists } from '../runtime';
export function V1VirtualMachineInstanceNetworkInterfaceFromJSON(json) {
return V1VirtualMachineInstanceNetworkInterfaceFromJSONTyped(json, false);
}
export function V1VirtualMachineInstanceNetworkInterfaceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
infoSource: !exists(json, 'infoSource') ? undefined : json['infoSource'],
interfaceName: !exists(json, 'interfaceName') ? undefined : json['interfaceName'],
ipAddress: !exists(json, 'ipAddress') ? undefined : json['ipAddress'],
ipAddresses: !exists(json, 'ipAddresses') ? undefined : json['ipAddresses'],
linkState: !exists(json, 'linkState') ? undefined : json['linkState'],
mac: !exists(json, 'mac') ? undefined : json['mac'],
name: !exists(json, 'name') ? undefined : json['name'],
podInterfaceName: !exists(json, 'podInterfaceName') ? undefined : json['podInterfaceName'],
queueCount: !exists(json, 'queueCount') ? undefined : json['queueCount'],
};
}
export function V1VirtualMachineInstanceNetworkInterfaceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
infoSource: value.infoSource,
interfaceName: value.interfaceName,
ipAddress: value.ipAddress,
ipAddresses: value.ipAddresses,
linkState: value.linkState,
mac: value.mac,
name: value.name,
podInterfaceName: value.podInterfaceName,
queueCount: value.queueCount,
};
}
//# sourceMappingURL=V1VirtualMachineInstanceNetworkInterface.js.map