UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.67 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 } from '../runtime'; import { V1DHCPPrivateOptionsFromJSON, V1DHCPPrivateOptionsToJSON } from './'; export function V1DHCPOptionsFromJSON(json) { return V1DHCPOptionsFromJSONTyped(json, false); } export function V1DHCPOptionsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { bootFileName: !exists(json, 'bootFileName') ? undefined : json['bootFileName'], ntpServers: !exists(json, 'ntpServers') ? undefined : json['ntpServers'], privateOptions: !exists(json, 'privateOptions') ? undefined : json['privateOptions'].map(V1DHCPPrivateOptionsFromJSON), tftpServerName: !exists(json, 'tftpServerName') ? undefined : json['tftpServerName'], }; } export function V1DHCPOptionsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { bootFileName: value.bootFileName, ntpServers: value.ntpServers, privateOptions: value.privateOptions === undefined ? undefined : value.privateOptions.map(V1DHCPPrivateOptionsToJSON), tftpServerName: value.tftpServerName, }; } //# sourceMappingURL=V1DHCPOptions.js.map