UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.81 kB
/* 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 { V1CertConfigFromJSON, V1CertConfigToJSON } from './'; export function V1KubeVirtSelfSignConfigurationFromJSON(json) { return V1KubeVirtSelfSignConfigurationFromJSONTyped(json, false); } export function V1KubeVirtSelfSignConfigurationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { ca: !exists(json, 'ca') ? undefined : V1CertConfigFromJSON(json['ca']), caOverlapInterval: !exists(json, 'caOverlapInterval') ? undefined : json['caOverlapInterval'], caRotateInterval: !exists(json, 'caRotateInterval') ? undefined : json['caRotateInterval'], certRotateInterval: !exists(json, 'certRotateInterval') ? undefined : json['certRotateInterval'], server: !exists(json, 'server') ? undefined : V1CertConfigFromJSON(json['server']), }; } export function V1KubeVirtSelfSignConfigurationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ca: V1CertConfigToJSON(value.ca), caOverlapInterval: value.caOverlapInterval, caRotateInterval: value.caRotateInterval, certRotateInterval: value.certRotateInterval, server: V1CertConfigToJSON(value.server), }; } //# sourceMappingURL=V1KubeVirtSelfSignConfiguration.js.map