/* 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'; /** * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. * @export * @interface IoK8sApiCoreV1NodeRuntimeHandlerFeatures */ export interface IoK8sApiCoreV1NodeRuntimeHandlerFeatures { /** * RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. * @type {boolean} * @memberof IoK8sApiCoreV1NodeRuntimeHandlerFeatures */ recursiveReadOnlyMounts?: boolean; /** * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. * @type {boolean} * @memberof IoK8sApiCoreV1NodeRuntimeHandlerFeatures */ userNamespaces?: boolean; } export function IoK8sApiCoreV1NodeRuntimeHandlerFeaturesFromJSON( json: any, ): IoK8sApiCoreV1NodeRuntimeHandlerFeatures { return IoK8sApiCoreV1NodeRuntimeHandlerFeaturesFromJSONTyped(json, false); } export function IoK8sApiCoreV1NodeRuntimeHandlerFeaturesFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1NodeRuntimeHandlerFeatures { if (json === undefined || json === null) { return json; } return { recursiveReadOnlyMounts: !exists(json, 'recursiveReadOnlyMounts') ? undefined : json['recursiveReadOnlyMounts'], userNamespaces: !exists(json, 'userNamespaces') ? undefined : json['userNamespaces'], }; } export function IoK8sApiCoreV1NodeRuntimeHandlerFeaturesToJSON( value?: IoK8sApiCoreV1NodeRuntimeHandlerFeatures | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { recursiveReadOnlyMounts: value.recursiveReadOnlyMounts, userNamespaces: value.userNamespaces, }; }