/* 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'; import { V1AccessCredentialSecretSource, V1AccessCredentialSecretSourceFromJSON, V1AccessCredentialSecretSourceToJSON, } from './'; /** * UserPasswordAccessCredentialSource represents where to retrieve the user password credentials Only one of its members may be specified. * @export * @interface V1UserPasswordAccessCredentialSource */ export interface V1UserPasswordAccessCredentialSource { /** * * @type {V1AccessCredentialSecretSource} * @memberof V1UserPasswordAccessCredentialSource */ secret?: V1AccessCredentialSecretSource; } export function V1UserPasswordAccessCredentialSourceFromJSON( json: any, ): V1UserPasswordAccessCredentialSource { return V1UserPasswordAccessCredentialSourceFromJSONTyped(json, false); } export function V1UserPasswordAccessCredentialSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1UserPasswordAccessCredentialSource { if (json === undefined || json === null) { return json; } return { secret: !exists(json, 'secret') ? undefined : V1AccessCredentialSecretSourceFromJSON(json['secret']), }; } export function V1UserPasswordAccessCredentialSourceToJSON( value?: V1UserPasswordAccessCredentialSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { secret: V1AccessCredentialSecretSourceToJSON(value.secret), }; }