/* 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 IngestersMetaRules
 */
export interface IngestersMetaRules {
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    author?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    date?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    description?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    file_severity?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    filetype?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    info?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    reference?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    rule_id?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    rule_name?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersMetaRules
     */
    version?: string;
}

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

    return isInstance;
}

export function IngestersMetaRulesFromJSON(json: any): IngestersMetaRules {
    return IngestersMetaRulesFromJSONTyped(json, false);
}

export function IngestersMetaRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestersMetaRules {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'author': !exists(json, 'author') ? undefined : json['author'],
        'date': !exists(json, 'date') ? undefined : json['date'],
        'description': !exists(json, 'description') ? undefined : json['description'],
        'file_severity': !exists(json, 'file_severity') ? undefined : json['file_severity'],
        'filetype': !exists(json, 'filetype') ? undefined : json['filetype'],
        'info': !exists(json, 'info') ? undefined : json['info'],
        'reference': !exists(json, 'reference') ? undefined : json['reference'],
        'rule_id': !exists(json, 'rule_id') ? undefined : json['rule_id'],
        'rule_name': !exists(json, 'rule_name') ? undefined : json['rule_name'],
        'version': !exists(json, 'version') ? undefined : json['version'],
    };
}

export function IngestersMetaRulesToJSON(value?: IngestersMetaRules | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'author': value.author,
        'date': value.date,
        'description': value.description,
        'file_severity': value.file_severity,
        'filetype': value.filetype,
        'info': value.info,
        'reference': value.reference,
        'rule_id': value.rule_id,
        'rule_name': value.rule_name,
        'version': value.version,
    };
}

