UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.48 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 { K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON, K8sIoApiCoreV1DownwardAPIVolumeFileToJSON, } from './'; export function V1DownwardAPIVolumeSourceFromJSON(json) { return V1DownwardAPIVolumeSourceFromJSONTyped(json, false); } export function V1DownwardAPIVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { fields: !exists(json, 'fields') ? undefined : json['fields'].map(K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON), volumeLabel: !exists(json, 'volumeLabel') ? undefined : json['volumeLabel'], }; } export function V1DownwardAPIVolumeSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fields: value.fields === undefined ? undefined : value.fields.map(K8sIoApiCoreV1DownwardAPIVolumeFileToJSON), volumeLabel: value.volumeLabel, }; } //# sourceMappingURL=V1DownwardAPIVolumeSource.js.map