UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

41 lines 1.19 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'; export function V1beta1DataVolumeSourceRefFromJSON(json) { return V1beta1DataVolumeSourceRefFromJSONTyped(json, false); } export function V1beta1DataVolumeSourceRefFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { kind: json['kind'], name: json['name'], namespace: !exists(json, 'namespace') ? undefined : json['namespace'], }; } export function V1beta1DataVolumeSourceRefToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { kind: value.kind, name: value.name, namespace: value.namespace, }; } //# sourceMappingURL=V1beta1DataVolumeSourceRef.js.map