/* 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 { V1CustomizeComponentsPatch, V1CustomizeComponentsPatchFromJSON, V1CustomizeComponentsPatchToJSON, V1Flags, V1FlagsFromJSON, V1FlagsToJSON, } from './'; /** * * @export * @interface V1CustomizeComponents */ export interface V1CustomizeComponents { /** * * @type {V1Flags} * @memberof V1CustomizeComponents */ flags?: V1Flags; /** * * @type {Array} * @memberof V1CustomizeComponents */ patches?: Array; } export function V1CustomizeComponentsFromJSON(json: any): V1CustomizeComponents { return V1CustomizeComponentsFromJSONTyped(json, false); } export function V1CustomizeComponentsFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1CustomizeComponents { if (json === undefined || json === null) { return json; } return { flags: !exists(json, 'flags') ? undefined : V1FlagsFromJSON(json['flags']), patches: !exists(json, 'patches') ? undefined : (json['patches'] as Array).map(V1CustomizeComponentsPatchFromJSON), }; } export function V1CustomizeComponentsToJSON(value?: V1CustomizeComponents | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { flags: V1FlagsToJSON(value.flags), patches: value.patches === undefined ? undefined : (value.patches as Array).map(V1CustomizeComponentsPatchToJSON), }; }