UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

45 lines 1.51 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 IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSON(json) { return IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSONTyped(json, false); } export function IoK8sApiCoreV1GlusterfsPersistentVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { endpoints: json['endpoints'], endpointsNamespace: !exists(json, 'endpointsNamespace') ? undefined : json['endpointsNamespace'], path: json['path'], readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'], }; } export function IoK8sApiCoreV1GlusterfsPersistentVolumeSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { endpoints: value.endpoints, endpointsNamespace: value.endpointsNamespace, path: value.path, readOnly: value.readOnly, }; } //# sourceMappingURL=IoK8sApiCoreV1GlusterfsPersistentVolumeSource.js.map