UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

54 lines 1.99 kB
/* 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, mapValues } from '../runtime'; import { V1InterfaceBindingPluginFromJSON, V1InterfaceBindingPluginToJSON, } from './'; export function V1NetworkConfigurationFromJSON(json) { return V1NetworkConfigurationFromJSONTyped(json, false); } export function V1NetworkConfigurationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { binding: !exists(json, 'binding') ? undefined : mapValues(json['binding'], V1InterfaceBindingPluginFromJSON), defaultNetworkInterface: !exists(json, 'defaultNetworkInterface') ? undefined : json['defaultNetworkInterface'], permitBridgeInterfaceOnPodNetwork: !exists(json, 'permitBridgeInterfaceOnPodNetwork') ? undefined : json['permitBridgeInterfaceOnPodNetwork'], permitSlirpInterface: !exists(json, 'permitSlirpInterface') ? undefined : json['permitSlirpInterface'], }; } export function V1NetworkConfigurationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { binding: value.binding === undefined ? undefined : mapValues(value.binding, V1InterfaceBindingPluginToJSON), defaultNetworkInterface: value.defaultNetworkInterface, permitBridgeInterfaceOnPodNetwork: value.permitBridgeInterfaceOnPodNetwork, permitSlirpInterface: value.permitSlirpInterface, }; } //# sourceMappingURL=V1NetworkConfiguration.js.map