UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

62 lines 3.2 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 { V1beta1DataVolumeSourceGCSFromJSON, V1beta1DataVolumeSourceGCSToJSON, V1beta1DataVolumeSourceHTTPFromJSON, V1beta1DataVolumeSourceHTTPToJSON, V1beta1DataVolumeSourceImageIOFromJSON, V1beta1DataVolumeSourceImageIOToJSON, V1beta1DataVolumeSourcePVCFromJSON, V1beta1DataVolumeSourcePVCToJSON, V1beta1DataVolumeSourceRegistryFromJSON, V1beta1DataVolumeSourceRegistryToJSON, V1beta1DataVolumeSourceS3FromJSON, V1beta1DataVolumeSourceS3ToJSON, V1beta1DataVolumeSourceSnapshotFromJSON, V1beta1DataVolumeSourceSnapshotToJSON, V1beta1DataVolumeSourceVDDKFromJSON, V1beta1DataVolumeSourceVDDKToJSON, } from './'; export function V1beta1DataVolumeSourceFromJSON(json) { return V1beta1DataVolumeSourceFromJSONTyped(json, false); } export function V1beta1DataVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { blank: !exists(json, 'blank') ? undefined : json['blank'], gcs: !exists(json, 'gcs') ? undefined : V1beta1DataVolumeSourceGCSFromJSON(json['gcs']), http: !exists(json, 'http') ? undefined : V1beta1DataVolumeSourceHTTPFromJSON(json['http']), imageio: !exists(json, 'imageio') ? undefined : V1beta1DataVolumeSourceImageIOFromJSON(json['imageio']), pvc: !exists(json, 'pvc') ? undefined : V1beta1DataVolumeSourcePVCFromJSON(json['pvc']), registry: !exists(json, 'registry') ? undefined : V1beta1DataVolumeSourceRegistryFromJSON(json['registry']), s3: !exists(json, 's3') ? undefined : V1beta1DataVolumeSourceS3FromJSON(json['s3']), snapshot: !exists(json, 'snapshot') ? undefined : V1beta1DataVolumeSourceSnapshotFromJSON(json['snapshot']), upload: !exists(json, 'upload') ? undefined : json['upload'], vddk: !exists(json, 'vddk') ? undefined : V1beta1DataVolumeSourceVDDKFromJSON(json['vddk']), }; } export function V1beta1DataVolumeSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { blank: value.blank, gcs: V1beta1DataVolumeSourceGCSToJSON(value.gcs), http: V1beta1DataVolumeSourceHTTPToJSON(value.http), imageio: V1beta1DataVolumeSourceImageIOToJSON(value.imageio), pvc: V1beta1DataVolumeSourcePVCToJSON(value.pvc), registry: V1beta1DataVolumeSourceRegistryToJSON(value.registry), s3: V1beta1DataVolumeSourceS3ToJSON(value.s3), snapshot: V1beta1DataVolumeSourceSnapshotToJSON(value.snapshot), upload: value.upload, vddk: V1beta1DataVolumeSourceVDDKToJSON(value.vddk), }; } //# sourceMappingURL=V1beta1DataVolumeSource.js.map