/* 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 { V1KubeVirtSelfSignConfiguration, V1KubeVirtSelfSignConfigurationFromJSON, V1KubeVirtSelfSignConfigurationToJSON, } from './'; /** * * @export * @interface V1KubeVirtCertificateRotateStrategy */ export interface V1KubeVirtCertificateRotateStrategy { /** * * @type {V1KubeVirtSelfSignConfiguration} * @memberof V1KubeVirtCertificateRotateStrategy */ selfSigned?: V1KubeVirtSelfSignConfiguration; } export function V1KubeVirtCertificateRotateStrategyFromJSON( json: any, ): V1KubeVirtCertificateRotateStrategy { return V1KubeVirtCertificateRotateStrategyFromJSONTyped(json, false); } export function V1KubeVirtCertificateRotateStrategyFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1KubeVirtCertificateRotateStrategy { if (json === undefined || json === null) { return json; } return { selfSigned: !exists(json, 'selfSigned') ? undefined : V1KubeVirtSelfSignConfigurationFromJSON(json['selfSigned']), }; } export function V1KubeVirtCertificateRotateStrategyToJSON( value?: V1KubeVirtCertificateRotateStrategy | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { selfSigned: V1KubeVirtSelfSignConfigurationToJSON(value.selfSigned), }; }