UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.47 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 { V1CustomizeComponentsPatchFromJSON, V1CustomizeComponentsPatchToJSON, V1FlagsFromJSON, V1FlagsToJSON, } from './'; export function V1CustomizeComponentsFromJSON(json) { return V1CustomizeComponentsFromJSONTyped(json, false); } export function V1CustomizeComponentsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { flags: !exists(json, 'flags') ? undefined : V1FlagsFromJSON(json['flags']), patches: !exists(json, 'patches') ? undefined : json['patches'].map(V1CustomizeComponentsPatchFromJSON), }; } export function V1CustomizeComponentsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { flags: V1FlagsToJSON(value.flags), patches: value.patches === undefined ? undefined : value.patches.map(V1CustomizeComponentsPatchToJSON), }; } //# sourceMappingURL=V1CustomizeComponents.js.map