UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

52 lines 1.93 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 { V1MediatedHostDeviceFromJSON, V1MediatedHostDeviceToJSON, V1PciHostDeviceFromJSON, V1PciHostDeviceToJSON, V1USBHostDeviceFromJSON, V1USBHostDeviceToJSON, } from './'; export function V1PermittedHostDevicesFromJSON(json) { return V1PermittedHostDevicesFromJSONTyped(json, false); } export function V1PermittedHostDevicesFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { mediatedDevices: !exists(json, 'mediatedDevices') ? undefined : json['mediatedDevices'].map(V1MediatedHostDeviceFromJSON), pciHostDevices: !exists(json, 'pciHostDevices') ? undefined : json['pciHostDevices'].map(V1PciHostDeviceFromJSON), usb: !exists(json, 'usb') ? undefined : json['usb'].map(V1USBHostDeviceFromJSON), }; } export function V1PermittedHostDevicesToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { mediatedDevices: value.mediatedDevices === undefined ? undefined : value.mediatedDevices.map(V1MediatedHostDeviceToJSON), pciHostDevices: value.pciHostDevices === undefined ? undefined : value.pciHostDevices.map(V1PciHostDeviceToJSON), usb: value.usb === undefined ? undefined : value.usb.map(V1USBHostDeviceToJSON), }; } //# sourceMappingURL=V1PermittedHostDevices.js.map