/* 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 ModelCloudNodeComplianceControl
 */
export interface ModelCloudNodeComplianceControl {
    /**
     * 
     * @type {Array<string>}
     * @memberof ModelCloudNodeComplianceControl
     */
    category_hierarchy?: Array<string> | null;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    category_hierarchy_short?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    compliance_type?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    control_id?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    description?: string;
    /**
     * 
     * @type {boolean}
     * @memberof ModelCloudNodeComplianceControl
     */
    enabled?: boolean;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    node_id?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    problem_title?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    service?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeComplianceControl
     */
    title?: string;
}

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

    return isInstance;
}

export function ModelCloudNodeComplianceControlFromJSON(json: any): ModelCloudNodeComplianceControl {
    return ModelCloudNodeComplianceControlFromJSONTyped(json, false);
}

export function ModelCloudNodeComplianceControlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelCloudNodeComplianceControl {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'category_hierarchy': !exists(json, 'category_hierarchy') ? undefined : json['category_hierarchy'],
        'category_hierarchy_short': !exists(json, 'category_hierarchy_short') ? undefined : json['category_hierarchy_short'],
        'compliance_type': !exists(json, 'compliance_type') ? undefined : json['compliance_type'],
        'control_id': !exists(json, 'control_id') ? undefined : json['control_id'],
        'description': !exists(json, 'description') ? undefined : json['description'],
        'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
        'node_id': !exists(json, 'node_id') ? undefined : json['node_id'],
        'problem_title': !exists(json, 'problem_title') ? undefined : json['problem_title'],
        'service': !exists(json, 'service') ? undefined : json['service'],
        'title': !exists(json, 'title') ? undefined : json['title'],
    };
}

export function ModelCloudNodeComplianceControlToJSON(value?: ModelCloudNodeComplianceControl | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'category_hierarchy': value.category_hierarchy,
        'category_hierarchy_short': value.category_hierarchy_short,
        'compliance_type': value.compliance_type,
        'control_id': value.control_id,
        'description': value.description,
        'enabled': value.enabled,
        'node_id': value.node_id,
        'problem_title': value.problem_title,
        'service': value.service,
        'title': value.title,
    };
}

