UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.59 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 { V1DataVolumeSourceFromJSON, V1DataVolumeSourceToJSON, V1PersistentVolumeClaimVolumeSourceFromJSON, V1PersistentVolumeClaimVolumeSourceToJSON, } from './'; export function V1HotplugVolumeSourceFromJSON(json) { return V1HotplugVolumeSourceFromJSONTyped(json, false); } export function V1HotplugVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { dataVolume: !exists(json, 'dataVolume') ? undefined : V1DataVolumeSourceFromJSON(json['dataVolume']), persistentVolumeClaim: !exists(json, 'persistentVolumeClaim') ? undefined : V1PersistentVolumeClaimVolumeSourceFromJSON(json['persistentVolumeClaim']), }; } export function V1HotplugVolumeSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { dataVolume: V1DataVolumeSourceToJSON(value.dataVolume), persistentVolumeClaim: V1PersistentVolumeClaimVolumeSourceToJSON(value.persistentVolumeClaim), }; } //# sourceMappingURL=V1HotplugVolumeSource.js.map