/* 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 Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. * @export * @interface IoK8sApiCoreV1FCVolumeSource */ export interface IoK8sApiCoreV1FCVolumeSource { /** * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. * @type {string} * @memberof IoK8sApiCoreV1FCVolumeSource */ fsType?: string; /** * lun is Optional: FC target lun number * @type {number} * @memberof IoK8sApiCoreV1FCVolumeSource */ lun?: number; /** * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @type {boolean} * @memberof IoK8sApiCoreV1FCVolumeSource */ readOnly?: boolean; /** * targetWWNs is Optional: FC target worldwide names (WWNs) * @type {Array} * @memberof IoK8sApiCoreV1FCVolumeSource */ targetWWNs?: Array; /** * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. * @type {Array} * @memberof IoK8sApiCoreV1FCVolumeSource */ wwids?: Array; } export function IoK8sApiCoreV1FCVolumeSourceFromJSON(json: any): IoK8sApiCoreV1FCVolumeSource { return IoK8sApiCoreV1FCVolumeSourceFromJSONTyped(json, false); } export function IoK8sApiCoreV1FCVolumeSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1FCVolumeSource { if (json === undefined || json === null) { return json; } return { fsType: !exists(json, 'fsType') ? undefined : json['fsType'], lun: !exists(json, 'lun') ? undefined : json['lun'], readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'], targetWWNs: !exists(json, 'targetWWNs') ? undefined : json['targetWWNs'], wwids: !exists(json, 'wwids') ? undefined : json['wwids'], }; } export function IoK8sApiCoreV1FCVolumeSourceToJSON( value?: IoK8sApiCoreV1FCVolumeSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fsType: value.fsType, lun: value.lun, readOnly: value.readOnly, targetWWNs: value.targetWWNs, wwids: value.wwids, }; }