/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * 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 { exists } from '../runtime'; /** * SecretVolumeSource adapts a Secret into a volume. * @export * @interface V1SecretVolumeSource */ export interface V1SecretVolumeSource { /** * Specify whether the Secret or it's keys must be defined * @type {boolean} * @memberof V1SecretVolumeSource */ optional?: boolean; /** * Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret * @type {string} * @memberof V1SecretVolumeSource */ secretName?: string; /** * The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). * @type {string} * @memberof V1SecretVolumeSource */ volumeLabel?: string; } export function V1SecretVolumeSourceFromJSON(json: any): V1SecretVolumeSource { return V1SecretVolumeSourceFromJSONTyped(json, false); } export function V1SecretVolumeSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1SecretVolumeSource { if (json === undefined || json === null) { return json; } return { optional: !exists(json, 'optional') ? undefined : json['optional'], secretName: !exists(json, 'secretName') ? undefined : json['secretName'], volumeLabel: !exists(json, 'volumeLabel') ? undefined : json['volumeLabel'], }; } export function V1SecretVolumeSourceToJSON(value?: V1SecretVolumeSource | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { optional: value.optional, secretName: value.secretName, volumeLabel: value.volumeLabel, }; }