UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.83 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 { K8sIoApiCoreV1ObjectFieldSelectorFromJSON, K8sIoApiCoreV1ObjectFieldSelectorToJSON, K8sIoApiCoreV1ResourceFieldSelectorFromJSON, K8sIoApiCoreV1ResourceFieldSelectorToJSON, } from './'; export function K8sIoApiCoreV1DownwardAPIVolumeFileFromJSON(json) { return K8sIoApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json, false); } export function K8sIoApiCoreV1DownwardAPIVolumeFileFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { fieldRef: !exists(json, 'fieldRef') ? undefined : K8sIoApiCoreV1ObjectFieldSelectorFromJSON(json['fieldRef']), mode: !exists(json, 'mode') ? undefined : json['mode'], path: json['path'], resourceFieldRef: !exists(json, 'resourceFieldRef') ? undefined : K8sIoApiCoreV1ResourceFieldSelectorFromJSON(json['resourceFieldRef']), }; } export function K8sIoApiCoreV1DownwardAPIVolumeFileToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fieldRef: K8sIoApiCoreV1ObjectFieldSelectorToJSON(value.fieldRef), mode: value.mode, path: value.path, resourceFieldRef: K8sIoApiCoreV1ResourceFieldSelectorToJSON(value.resourceFieldRef), }; } //# sourceMappingURL=K8sIoApiCoreV1DownwardAPIVolumeFile.js.map