/* 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 { V1beta1VirtualMachineExportVolumeFormat, V1beta1VirtualMachineExportVolumeFormatFromJSON, V1beta1VirtualMachineExportVolumeFormatToJSON, } from './'; /** * VirtualMachineExportVolume contains the name and available formats for the exported volume * @export * @interface V1beta1VirtualMachineExportVolume */ export interface V1beta1VirtualMachineExportVolume { /** * * @type {Array} * @memberof V1beta1VirtualMachineExportVolume */ formats?: Array; /** * Name is the name of the exported volume * @type {string} * @memberof V1beta1VirtualMachineExportVolume */ name: string; } export function V1beta1VirtualMachineExportVolumeFromJSON( json: any, ): V1beta1VirtualMachineExportVolume { return V1beta1VirtualMachineExportVolumeFromJSONTyped(json, false); } export function V1beta1VirtualMachineExportVolumeFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1VirtualMachineExportVolume { if (json === undefined || json === null) { return json; } return { formats: !exists(json, 'formats') ? undefined : (json['formats'] as Array).map(V1beta1VirtualMachineExportVolumeFormatFromJSON), name: json['name'], }; } export function V1beta1VirtualMachineExportVolumeToJSON( value?: V1beta1VirtualMachineExportVolume | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { formats: value.formats === undefined ? undefined : (value.formats as Array).map(V1beta1VirtualMachineExportVolumeFormatToJSON), name: value.name, }; }