UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.55 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 { V1beta1CustomizeComponentsPatchFromJSON, V1beta1CustomizeComponentsPatchToJSON, V1beta1FlagsFromJSON, V1beta1FlagsToJSON, } from './'; export function V1beta1CustomizeComponentsFromJSON(json) { return V1beta1CustomizeComponentsFromJSONTyped(json, false); } export function V1beta1CustomizeComponentsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { flags: !exists(json, 'flags') ? undefined : V1beta1FlagsFromJSON(json['flags']), patches: !exists(json, 'patches') ? undefined : json['patches'].map(V1beta1CustomizeComponentsPatchFromJSON), }; } export function V1beta1CustomizeComponentsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { flags: V1beta1FlagsToJSON(value.flags), patches: value.patches === undefined ? undefined : value.patches.map(V1beta1CustomizeComponentsPatchToJSON), }; } //# sourceMappingURL=V1beta1CustomizeComponents.js.map