/* 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'; /** * Represents the stock pod network interface. * @export * @interface V1PodNetwork */ export interface V1PodNetwork { /** * IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified. * @type {string} * @memberof V1PodNetwork */ vmIPv6NetworkCIDR?: string; /** * CIDR for vm network. Default 10.0.2.0/24 if not specified. * @type {string} * @memberof V1PodNetwork */ vmNetworkCIDR?: string; } export function V1PodNetworkFromJSON(json: any): V1PodNetwork { return V1PodNetworkFromJSONTyped(json, false); } export function V1PodNetworkFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1PodNetwork { if (json === undefined || json === null) { return json; } return { vmIPv6NetworkCIDR: !exists(json, 'vmIPv6NetworkCIDR') ? undefined : json['vmIPv6NetworkCIDR'], vmNetworkCIDR: !exists(json, 'vmNetworkCIDR') ? undefined : json['vmNetworkCIDR'], }; } export function V1PodNetworkToJSON(value?: V1PodNetwork | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { vmIPv6NetworkCIDR: value.vmIPv6NetworkCIDR, vmNetworkCIDR: value.vmNetworkCIDR, }; }