/* 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 { V1VirtualMachineInstanceProfile, V1VirtualMachineInstanceProfileFromJSON, V1VirtualMachineInstanceProfileToJSON, } from './'; /** * SeccompConfiguration holds Seccomp configuration for Kubevirt components * @export * @interface V1SeccompConfiguration */ export interface V1SeccompConfiguration { /** * * @type {V1VirtualMachineInstanceProfile} * @memberof V1SeccompConfiguration */ virtualMachineInstanceProfile?: V1VirtualMachineInstanceProfile; } export function V1SeccompConfigurationFromJSON(json: any): V1SeccompConfiguration { return V1SeccompConfigurationFromJSONTyped(json, false); } export function V1SeccompConfigurationFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1SeccompConfiguration { if (json === undefined || json === null) { return json; } return { virtualMachineInstanceProfile: !exists(json, 'virtualMachineInstanceProfile') ? undefined : V1VirtualMachineInstanceProfileFromJSON(json['virtualMachineInstanceProfile']), }; } export function V1SeccompConfigurationToJSON(value?: V1SeccompConfiguration | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { virtualMachineInstanceProfile: V1VirtualMachineInstanceProfileToJSON( value.virtualMachineInstanceProfile, ), }; }