UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

42 lines 1.52 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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 { V1beta1DataVolumeSourcePVCFromJSON, V1beta1DataVolumeSourcePVCToJSON, V1beta1DataVolumeSourceSnapshotFromJSON, V1beta1DataVolumeSourceSnapshotToJSON, } from './'; export function V1beta1DataSourceSourceFromJSON(json) { return V1beta1DataSourceSourceFromJSONTyped(json, false); } export function V1beta1DataSourceSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { pvc: !exists(json, 'pvc') ? undefined : V1beta1DataVolumeSourcePVCFromJSON(json['pvc']), snapshot: !exists(json, 'snapshot') ? undefined : V1beta1DataVolumeSourceSnapshotFromJSON(json['snapshot']), }; } export function V1beta1DataSourceSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { pvc: V1beta1DataVolumeSourcePVCToJSON(value.pvc), snapshot: V1beta1DataVolumeSourceSnapshotToJSON(value.snapshot), }; } //# sourceMappingURL=V1beta1DataSourceSource.js.map