UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

95 lines (94 loc) 3.26 kB
/** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { V1LabelSelector, V1TypedLocalObjectReference, V1TypedObjectReference, V1VolumeResourceRequirements } from './'; /** * StorageSpec defines the Storage type specification * @export * @interface V1beta1StorageSpec */ export interface V1beta1StorageSpec { /** * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @type {Array<string>} * @memberof V1beta1StorageSpec */ accessModes?: Array<V1beta1StorageSpecAccessModesEnum>; /** * * @type {V1TypedLocalObjectReference} * @memberof V1beta1StorageSpec */ dataSource?: V1TypedLocalObjectReference; /** * * @type {V1TypedObjectReference} * @memberof V1beta1StorageSpec */ dataSourceRef?: V1TypedObjectReference; /** * * @type {V1VolumeResourceRequirements} * @memberof V1beta1StorageSpec */ resources?: V1VolumeResourceRequirements; /** * * @type {V1LabelSelector} * @memberof V1beta1StorageSpec */ selector?: V1LabelSelector; /** * Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 * @type {string} * @memberof V1beta1StorageSpec */ storageClassName?: string; /** * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. * * Possible enum values: * - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. * - `"Filesystem"` means the volume will be or is formatted with a filesystem. * - `"FromStorageProfile"` means the volume mode will be auto selected by CDI according to a matching StorageProfile * @type {string} * @memberof V1beta1StorageSpec */ volumeMode?: V1beta1StorageSpecVolumeModeEnum; /** * VolumeName is the binding reference to the PersistentVolume backing this claim. * @type {string} * @memberof V1beta1StorageSpec */ volumeName?: string; } /** * @export * @enum {string} */ export declare enum V1beta1StorageSpecAccessModesEnum { ReadOnlyMany = "ReadOnlyMany", ReadWriteMany = "ReadWriteMany", ReadWriteOnce = "ReadWriteOnce", ReadWriteOncePod = "ReadWriteOncePod" } /** * @export * @enum {string} */ export declare enum V1beta1StorageSpecVolumeModeEnum { Block = "Block", Filesystem = "Filesystem", FromStorageProfile = "FromStorageProfile" } export declare function V1beta1StorageSpecFromJSON(json: any): V1beta1StorageSpec; export declare function V1beta1StorageSpecFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1StorageSpec; export declare function V1beta1StorageSpecToJSON(value?: V1beta1StorageSpec | null): any;