/* 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'; import { IoK8sApiCoreV1LocalObjectReference, IoK8sApiCoreV1LocalObjectReferenceFromJSON, IoK8sApiCoreV1LocalObjectReferenceToJSON, } from './'; /** * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. * @export * @interface IoK8sApiCoreV1CinderVolumeSource */ export interface IoK8sApiCoreV1CinderVolumeSource { /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @type {string} * @memberof IoK8sApiCoreV1CinderVolumeSource */ fsType?: string; /** * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @type {boolean} * @memberof IoK8sApiCoreV1CinderVolumeSource */ readOnly?: boolean; /** * * @type {IoK8sApiCoreV1LocalObjectReference} * @memberof IoK8sApiCoreV1CinderVolumeSource */ secretRef?: IoK8sApiCoreV1LocalObjectReference; /** * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md * @type {string} * @memberof IoK8sApiCoreV1CinderVolumeSource */ volumeID: string; } export function IoK8sApiCoreV1CinderVolumeSourceFromJSON( json: any, ): IoK8sApiCoreV1CinderVolumeSource { return IoK8sApiCoreV1CinderVolumeSourceFromJSONTyped(json, false); } export function IoK8sApiCoreV1CinderVolumeSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1CinderVolumeSource { if (json === undefined || json === null) { return json; } return { fsType: !exists(json, 'fsType') ? undefined : json['fsType'], readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'], secretRef: !exists(json, 'secretRef') ? undefined : IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']), volumeID: json['volumeID'], }; } export function IoK8sApiCoreV1CinderVolumeSourceToJSON( value?: IoK8sApiCoreV1CinderVolumeSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fsType: value.fsType, readOnly: value.readOnly, secretRef: IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef), volumeID: value.volumeID, }; }