/* 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 { V1CustomProfile, V1CustomProfileFromJSON, V1CustomProfileToJSON } from './'; /** * * @export * @interface V1VirtualMachineInstanceProfile */ export interface V1VirtualMachineInstanceProfile { /** * * @type {V1CustomProfile} * @memberof V1VirtualMachineInstanceProfile */ customProfile?: V1CustomProfile; } export function V1VirtualMachineInstanceProfileFromJSON( json: any, ): V1VirtualMachineInstanceProfile { return V1VirtualMachineInstanceProfileFromJSONTyped(json, false); } export function V1VirtualMachineInstanceProfileFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1VirtualMachineInstanceProfile { if (json === undefined || json === null) { return json; } return { customProfile: !exists(json, 'customProfile') ? undefined : V1CustomProfileFromJSON(json['customProfile']), }; } export function V1VirtualMachineInstanceProfileToJSON( value?: V1VirtualMachineInstanceProfile | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { customProfile: V1CustomProfileToJSON(value.customProfile), }; }