UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

49 lines 1.76 kB
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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 IoK8sApiCoreV1VolumeMountFromJSON(json) { return IoK8sApiCoreV1VolumeMountFromJSONTyped(json, false); } export function IoK8sApiCoreV1VolumeMountFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { mountPath: json['mountPath'], mountPropagation: !exists(json, 'mountPropagation') ? undefined : json['mountPropagation'], name: json['name'], readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'], recursiveReadOnly: !exists(json, 'recursiveReadOnly') ? undefined : json['recursiveReadOnly'], subPath: !exists(json, 'subPath') ? undefined : json['subPath'], subPathExpr: !exists(json, 'subPathExpr') ? undefined : json['subPathExpr'], }; } export function IoK8sApiCoreV1VolumeMountToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { mountPath: value.mountPath, mountPropagation: value.mountPropagation, name: value.name, readOnly: value.readOnly, recursiveReadOnly: value.recursiveReadOnly, subPath: value.subPath, subPathExpr: value.subPathExpr, }; } //# sourceMappingURL=IoK8sApiCoreV1VolumeMount.js.map