/* 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 V1CDRomTarget */ export interface V1CDRomTarget { /** * Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi. * @type {string} * @memberof V1CDRomTarget */ bus?: string; /** * ReadOnly. Defaults to true. * @type {boolean} * @memberof V1CDRomTarget */ readonly?: boolean; /** * Tray indicates if the tray of the device is open or closed. Allowed values are "open" and "closed". Defaults to closed. * @type {string} * @memberof V1CDRomTarget */ tray?: string; } export function V1CDRomTargetFromJSON(json: any): V1CDRomTarget { return V1CDRomTargetFromJSONTyped(json, false); } export function V1CDRomTargetFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1CDRomTarget { if (json === undefined || json === null) { return json; } return { bus: !exists(json, 'bus') ? undefined : json['bus'], readonly: !exists(json, 'readonly') ? undefined : json['readonly'], tray: !exists(json, 'tray') ? undefined : json['tray'], }; } export function V1CDRomTargetToJSON(value?: V1CDRomTarget | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { bus: value.bus, readonly: value.readonly, tray: value.tray, }; }