/* 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'; /** * * @export * @interface V1PanicDevice */ export interface V1PanicDevice { /** * Model specifies what type of panic device is provided. The panic model used when this attribute is missing depends on the hypervisor and guest arch. One of: isa, hyperv, pvpanic. * @type {string} * @memberof V1PanicDevice */ model?: string; } export function V1PanicDeviceFromJSON(json: any): V1PanicDevice { return V1PanicDeviceFromJSONTyped(json, false); } export function V1PanicDeviceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1PanicDevice { if (json === undefined || json === null) { return json; } return { model: !exists(json, 'model') ? undefined : json['model'], }; } export function V1PanicDeviceToJSON(value?: V1PanicDevice | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { model: value.model, }; }