UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

42 lines 1.47 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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 { V1beta1CertConfigFromJSON, V1beta1CertConfigToJSON } from './'; export function V1beta1CDICertConfigFromJSON(json) { return V1beta1CDICertConfigFromJSONTyped(json, false); } export function V1beta1CDICertConfigFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { ca: !exists(json, 'ca') ? undefined : V1beta1CertConfigFromJSON(json['ca']), client: !exists(json, 'client') ? undefined : V1beta1CertConfigFromJSON(json['client']), server: !exists(json, 'server') ? undefined : V1beta1CertConfigFromJSON(json['server']), }; } export function V1beta1CDICertConfigToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ca: V1beta1CertConfigToJSON(value.ca), client: V1beta1CertConfigToJSON(value.client), server: V1beta1CertConfigToJSON(value.server), }; } //# sourceMappingURL=V1beta1CDICertConfig.js.map