UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

46 lines 1.64 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 { V1beta1CustomTLSProfileFromJSON, V1beta1CustomTLSProfileToJSON, } from './'; export function V1beta1TLSSecurityProfileFromJSON(json) { return V1beta1TLSSecurityProfileFromJSONTyped(json, false); } export function V1beta1TLSSecurityProfileFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { custom: !exists(json, 'custom') ? undefined : V1beta1CustomTLSProfileFromJSON(json['custom']), intermediate: !exists(json, 'intermediate') ? undefined : json['intermediate'], modern: !exists(json, 'modern') ? undefined : json['modern'], old: !exists(json, 'old') ? undefined : json['old'], type: !exists(json, 'type') ? undefined : json['type'], }; } export function V1beta1TLSSecurityProfileToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { custom: V1beta1CustomTLSProfileToJSON(value.custom), intermediate: value.intermediate, modern: value.modern, old: value.old, type: value.type, }; } //# sourceMappingURL=V1beta1TLSSecurityProfile.js.map