/* 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'; /** * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. * @export * @interface IoK8sApiCoreV1HostPathVolumeSource */ export interface IoK8sApiCoreV1HostPathVolumeSource { /** * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @type {string} * @memberof IoK8sApiCoreV1HostPathVolumeSource */ path: string; /** * type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @type {string} * @memberof IoK8sApiCoreV1HostPathVolumeSource */ type?: string; } export function IoK8sApiCoreV1HostPathVolumeSourceFromJSON( json: any, ): IoK8sApiCoreV1HostPathVolumeSource { return IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped(json, false); } export function IoK8sApiCoreV1HostPathVolumeSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1HostPathVolumeSource { if (json === undefined || json === null) { return json; } return { path: json['path'], type: !exists(json, 'type') ? undefined : json['type'], }; } export function IoK8sApiCoreV1HostPathVolumeSourceToJSON( value?: IoK8sApiCoreV1HostPathVolumeSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { path: value.path, type: value.type, }; }