/* 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 IngestersCompliance
 */
export interface IngestersCompliance {
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    compliance_check_type?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    description?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    node_id?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    node_type?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    remediation_ansible?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    remediation_puppet?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    remediation_script?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    resource?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    scan_id?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    status?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    test_category?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    test_desc?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    test_number?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    test_rationale?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    test_severity?: string;
    /**
     * 
     * @type {string}
     * @memberof IngestersCompliance
     */
    type?: string;
}

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

    return isInstance;
}

export function IngestersComplianceFromJSON(json: any): IngestersCompliance {
    return IngestersComplianceFromJSONTyped(json, false);
}

export function IngestersComplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestersCompliance {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'compliance_check_type': !exists(json, 'compliance_check_type') ? undefined : json['compliance_check_type'],
        'description': !exists(json, 'description') ? undefined : json['description'],
        'node_id': !exists(json, 'node_id') ? undefined : json['node_id'],
        'node_type': !exists(json, 'node_type') ? undefined : json['node_type'],
        'remediation_ansible': !exists(json, 'remediation_ansible') ? undefined : json['remediation_ansible'],
        'remediation_puppet': !exists(json, 'remediation_puppet') ? undefined : json['remediation_puppet'],
        'remediation_script': !exists(json, 'remediation_script') ? undefined : json['remediation_script'],
        'resource': !exists(json, 'resource') ? undefined : json['resource'],
        'scan_id': !exists(json, 'scan_id') ? undefined : json['scan_id'],
        'status': !exists(json, 'status') ? undefined : json['status'],
        'test_category': !exists(json, 'test_category') ? undefined : json['test_category'],
        'test_desc': !exists(json, 'test_desc') ? undefined : json['test_desc'],
        'test_number': !exists(json, 'test_number') ? undefined : json['test_number'],
        'test_rationale': !exists(json, 'test_rationale') ? undefined : json['test_rationale'],
        'test_severity': !exists(json, 'test_severity') ? undefined : json['test_severity'],
        'type': !exists(json, 'type') ? undefined : json['type'],
    };
}

export function IngestersComplianceToJSON(value?: IngestersCompliance | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'compliance_check_type': value.compliance_check_type,
        'description': value.description,
        'node_id': value.node_id,
        'node_type': value.node_type,
        'remediation_ansible': value.remediation_ansible,
        'remediation_puppet': value.remediation_puppet,
        'remediation_script': value.remediation_script,
        'resource': value.resource,
        'scan_id': value.scan_id,
        'status': value.status,
        'test_category': value.test_category,
        'test_desc': value.test_desc,
        'test_number': value.test_number,
        'test_rationale': value.test_rationale,
        'test_severity': value.test_severity,
        'type': value.type,
    };
}

