UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

110 lines 5.4 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 { V1DiskFromJSON, V1DiskToJSON, V1FilesystemFromJSON, V1FilesystemToJSON, V1GPUFromJSON, V1GPUToJSON, V1HostDeviceFromJSON, V1HostDeviceToJSON, V1InputFromJSON, V1InputToJSON, V1InterfaceFromJSON, V1InterfaceToJSON, V1SoundDeviceFromJSON, V1SoundDeviceToJSON, V1TPMDeviceFromJSON, V1TPMDeviceToJSON, V1WatchdogFromJSON, V1WatchdogToJSON, } from './'; export function V1DevicesFromJSON(json) { return V1DevicesFromJSONTyped(json, false); } export function V1DevicesFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { autoattachGraphicsDevice: !exists(json, 'autoattachGraphicsDevice') ? undefined : json['autoattachGraphicsDevice'], autoattachInputDevice: !exists(json, 'autoattachInputDevice') ? undefined : json['autoattachInputDevice'], autoattachMemBalloon: !exists(json, 'autoattachMemBalloon') ? undefined : json['autoattachMemBalloon'], autoattachPodInterface: !exists(json, 'autoattachPodInterface') ? undefined : json['autoattachPodInterface'], autoattachSerialConsole: !exists(json, 'autoattachSerialConsole') ? undefined : json['autoattachSerialConsole'], autoattachVSOCK: !exists(json, 'autoattachVSOCK') ? undefined : json['autoattachVSOCK'], blockMultiQueue: !exists(json, 'blockMultiQueue') ? undefined : json['blockMultiQueue'], clientPassthrough: !exists(json, 'clientPassthrough') ? undefined : json['clientPassthrough'], disableHotplug: !exists(json, 'disableHotplug') ? undefined : json['disableHotplug'], disks: !exists(json, 'disks') ? undefined : json['disks'].map(V1DiskFromJSON), downwardMetrics: !exists(json, 'downwardMetrics') ? undefined : json['downwardMetrics'], filesystems: !exists(json, 'filesystems') ? undefined : json['filesystems'].map(V1FilesystemFromJSON), gpus: !exists(json, 'gpus') ? undefined : json['gpus'].map(V1GPUFromJSON), hostDevices: !exists(json, 'hostDevices') ? undefined : json['hostDevices'].map(V1HostDeviceFromJSON), inputs: !exists(json, 'inputs') ? undefined : json['inputs'].map(V1InputFromJSON), interfaces: !exists(json, 'interfaces') ? undefined : json['interfaces'].map(V1InterfaceFromJSON), logSerialConsole: !exists(json, 'logSerialConsole') ? undefined : json['logSerialConsole'], networkInterfaceMultiqueue: !exists(json, 'networkInterfaceMultiqueue') ? undefined : json['networkInterfaceMultiqueue'], rng: !exists(json, 'rng') ? undefined : json['rng'], sound: !exists(json, 'sound') ? undefined : V1SoundDeviceFromJSON(json['sound']), tpm: !exists(json, 'tpm') ? undefined : V1TPMDeviceFromJSON(json['tpm']), useVirtioTransitional: !exists(json, 'useVirtioTransitional') ? undefined : json['useVirtioTransitional'], watchdog: !exists(json, 'watchdog') ? undefined : V1WatchdogFromJSON(json['watchdog']), }; } export function V1DevicesToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { autoattachGraphicsDevice: value.autoattachGraphicsDevice, autoattachInputDevice: value.autoattachInputDevice, autoattachMemBalloon: value.autoattachMemBalloon, autoattachPodInterface: value.autoattachPodInterface, autoattachSerialConsole: value.autoattachSerialConsole, autoattachVSOCK: value.autoattachVSOCK, blockMultiQueue: value.blockMultiQueue, clientPassthrough: value.clientPassthrough, disableHotplug: value.disableHotplug, disks: value.disks === undefined ? undefined : value.disks.map(V1DiskToJSON), downwardMetrics: value.downwardMetrics, filesystems: value.filesystems === undefined ? undefined : value.filesystems.map(V1FilesystemToJSON), gpus: value.gpus === undefined ? undefined : value.gpus.map(V1GPUToJSON), hostDevices: value.hostDevices === undefined ? undefined : value.hostDevices.map(V1HostDeviceToJSON), inputs: value.inputs === undefined ? undefined : value.inputs.map(V1InputToJSON), interfaces: value.interfaces === undefined ? undefined : value.interfaces.map(V1InterfaceToJSON), logSerialConsole: value.logSerialConsole, networkInterfaceMultiqueue: value.networkInterfaceMultiqueue, rng: value.rng, sound: V1SoundDeviceToJSON(value.sound), tpm: V1TPMDeviceToJSON(value.tpm), useVirtioTransitional: value.useVirtioTransitional, watchdog: V1WatchdogToJSON(value.watchdog), }; } //# sourceMappingURL=V1Devices.js.map