/* 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'; /** * CertConfig contains the tunables for TLS certificates * @export * @interface V1CertConfig */ export interface V1CertConfig { /** * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. * @type {string} * @memberof V1CertConfig */ duration?: string; /** * Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. * @type {string} * @memberof V1CertConfig */ renewBefore?: string; } export function V1CertConfigFromJSON(json: any): V1CertConfig { return V1CertConfigFromJSONTyped(json, false); } export function V1CertConfigFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1CertConfig { if (json === undefined || json === null) { return json; } return { duration: !exists(json, 'duration') ? undefined : json['duration'], renewBefore: !exists(json, 'renewBefore') ? undefined : json['renewBefore'], }; } export function V1CertConfigToJSON(value?: V1CertConfig | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { duration: value.duration, renewBefore: value.renewBefore, }; }