/* tslint:disable */
/* eslint-disable */
/**
 * Deepfence ThreatMapper
 * Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider,  container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
 *
 * The version of the OpenAPI document: v2.5.0
 * Contact: community@deepfence.io
 *
 * 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, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface IngestersVulnerability
 */
export interface IngestersVulnerability {
    /**
     * 
     * @type {boolean}
     * @memberof IngestersVulnerability
     */
    cisa_kev?: boolean;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_attack_vector?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_caused_by_package?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_caused_by_package_path?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_container_layer?: string;
    /**
     * 
     * @type {number}
     * @memberof IngestersVulnerability
     */
    cve_cvss_score?: number;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_description?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_fixed_in?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_id?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_link?: string;
    /**
     * 
     * @type {number}
     * @memberof IngestersVulnerability
     */
    cve_overall_score?: number;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_severity?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    cve_type?: string;
    /**
     * 
     * @type {number}
     * @memberof IngestersVulnerability
     */
    epss_score?: number;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    exploit_poc?: string;
    /**
     * 
     * @type {number}
     * @memberof IngestersVulnerability
     */
    exploitability_score?: number;
    /**
     * 
     * @type {boolean}
     * @memberof IngestersVulnerability
     */
    has_live_connection?: boolean;
    /**
     * 
     * @type {number}
     * @memberof IngestersVulnerability
     */
    init_exploitability_score?: number;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    namespace?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    parsed_attack_vector?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersVulnerability
     */
    scan_id?: string;
    /**
     * 
     * @type {Array<string>}
     * @memberof IngestersVulnerability
     */
    urls?: Array<string> | null;
}

/**
 * Check if a given object implements the IngestersVulnerability interface.
 */
export function instanceOfIngestersVulnerability(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function IngestersVulnerabilityFromJSON(json: any): IngestersVulnerability {
    return IngestersVulnerabilityFromJSONTyped(json, false);
}

export function IngestersVulnerabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestersVulnerability {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'cisa_kev': !exists(json, 'cisa_kev') ? undefined : json['cisa_kev'],
        'cve_attack_vector': !exists(json, 'cve_attack_vector') ? undefined : json['cve_attack_vector'],
        'cve_caused_by_package': !exists(json, 'cve_caused_by_package') ? undefined : json['cve_caused_by_package'],
        'cve_caused_by_package_path': !exists(json, 'cve_caused_by_package_path') ? undefined : json['cve_caused_by_package_path'],
        'cve_container_layer': !exists(json, 'cve_container_layer') ? undefined : json['cve_container_layer'],
        'cve_cvss_score': !exists(json, 'cve_cvss_score') ? undefined : json['cve_cvss_score'],
        'cve_description': !exists(json, 'cve_description') ? undefined : json['cve_description'],
        'cve_fixed_in': !exists(json, 'cve_fixed_in') ? undefined : json['cve_fixed_in'],
        'cve_id': !exists(json, 'cve_id') ? undefined : json['cve_id'],
        'cve_link': !exists(json, 'cve_link') ? undefined : json['cve_link'],
        'cve_overall_score': !exists(json, 'cve_overall_score') ? undefined : json['cve_overall_score'],
        'cve_severity': !exists(json, 'cve_severity') ? undefined : json['cve_severity'],
        'cve_type': !exists(json, 'cve_type') ? undefined : json['cve_type'],
        'epss_score': !exists(json, 'epss_score') ? undefined : json['epss_score'],
        'exploit_poc': !exists(json, 'exploit_poc') ? undefined : json['exploit_poc'],
        'exploitability_score': !exists(json, 'exploitability_score') ? undefined : json['exploitability_score'],
        'has_live_connection': !exists(json, 'has_live_connection') ? undefined : json['has_live_connection'],
        'init_exploitability_score': !exists(json, 'init_exploitability_score') ? undefined : json['init_exploitability_score'],
        'namespace': !exists(json, 'namespace') ? undefined : json['namespace'],
        'parsed_attack_vector': !exists(json, 'parsed_attack_vector') ? undefined : json['parsed_attack_vector'],
        'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'],
        'urls': !exists(json, 'urls') ? undefined : json['urls'],
    };
}

export function IngestersVulnerabilityToJSON(value?: IngestersVulnerability | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'cisa_kev': value.cisa_kev,
        'cve_attack_vector': value.cve_attack_vector,
        'cve_caused_by_package': value.cve_caused_by_package,
        'cve_caused_by_package_path': value.cve_caused_by_package_path,
        'cve_container_layer': value.cve_container_layer,
        'cve_cvss_score': value.cve_cvss_score,
        'cve_description': value.cve_description,
        'cve_fixed_in': value.cve_fixed_in,
        'cve_id': value.cve_id,
        'cve_link': value.cve_link,
        'cve_overall_score': value.cve_overall_score,
        'cve_severity': value.cve_severity,
        'cve_type': value.cve_type,
        'epss_score': value.epss_score,
        'exploit_poc': value.exploit_poc,
        'exploitability_score': value.exploitability_score,
        'has_live_connection': value.has_live_connection,
        'init_exploitability_score': value.init_exploitability_score,
        'namespace': value.namespace,
        'parsed_attack_vector': value.parsed_attack_vector,
        'scan_id': value.scan_id,
        'urls': value.urls,
    };
}

