/* 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 ModelCloudNodeAccountInfo
 */
export interface ModelCloudNodeAccountInfo {
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    account_name?: string;
    /**
     * 
     * @type {boolean}
     * @memberof ModelCloudNodeAccountInfo
     */
    active?: boolean;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    cloud_provider?: ModelCloudNodeAccountInfoCloudProviderEnum;
    /**
     * 
     * @type {number}
     * @memberof ModelCloudNodeAccountInfo
     */
    compliance_percentage?: number;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    host_node_id?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    last_scan_id?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    last_scan_status?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    node_id?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    node_name?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    refresh_message?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    refresh_metadata?: string;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    refresh_status?: string;
    /**
     * 
     * @type {{ [key: string]: number; }}
     * @memberof ModelCloudNodeAccountInfo
     */
    refresh_status_map?: { [key: string]: number; } | null;
    /**
     * 
     * @type {{ [key: string]: number; }}
     * @memberof ModelCloudNodeAccountInfo
     */
    scan_status_map?: { [key: string]: number; } | null;
    /**
     * 
     * @type {string}
     * @memberof ModelCloudNodeAccountInfo
     */
    version?: string;
}


/**
 * @export
 */
export const ModelCloudNodeAccountInfoCloudProviderEnum = {
    Aws: 'aws',
    Gcp: 'gcp',
    Azure: 'azure',
    AwsOrg: 'aws_org',
    GcpOrg: 'gcp_org',
    AzureOrg: 'azure_org'
} as const;
export type ModelCloudNodeAccountInfoCloudProviderEnum = typeof ModelCloudNodeAccountInfoCloudProviderEnum[keyof typeof ModelCloudNodeAccountInfoCloudProviderEnum];


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

    return isInstance;
}

export function ModelCloudNodeAccountInfoFromJSON(json: any): ModelCloudNodeAccountInfo {
    return ModelCloudNodeAccountInfoFromJSONTyped(json, false);
}

export function ModelCloudNodeAccountInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelCloudNodeAccountInfo {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'account_name': !exists(json, 'account_name') ? undefined : json['account_name'],
        'active': !exists(json, 'active') ? undefined : json['active'],
        'cloud_provider': !exists(json, 'cloud_provider') ? undefined : json['cloud_provider'],
        'compliance_percentage': !exists(json, 'compliance_percentage') ? undefined : json['compliance_percentage'],
        'host_node_id': !exists(json, 'host_node_id') ? undefined : json['host_node_id'],
        'last_scan_id': !exists(json, 'last_scan_id') ? undefined : json['last_scan_id'],
        'last_scan_status': !exists(json, 'last_scan_status') ? undefined : json['last_scan_status'],
        'node_id': !exists(json, 'node_id') ? undefined : json['node_id'],
        'node_name': !exists(json, 'node_name') ? undefined : json['node_name'],
        'refresh_message': !exists(json, 'refresh_message') ? undefined : json['refresh_message'],
        'refresh_metadata': !exists(json, 'refresh_metadata') ? undefined : json['refresh_metadata'],
        'refresh_status': !exists(json, 'refresh_status') ? undefined : json['refresh_status'],
        'refresh_status_map': !exists(json, 'refresh_status_map') ? undefined : json['refresh_status_map'],
        'scan_status_map': !exists(json, 'scan_status_map') ? undefined : json['scan_status_map'],
        'version': !exists(json, 'version') ? undefined : json['version'],
    };
}

export function ModelCloudNodeAccountInfoToJSON(value?: ModelCloudNodeAccountInfo | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'account_name': value.account_name,
        'active': value.active,
        'cloud_provider': value.cloud_provider,
        'compliance_percentage': value.compliance_percentage,
        'host_node_id': value.host_node_id,
        'last_scan_id': value.last_scan_id,
        'last_scan_status': value.last_scan_status,
        'node_id': value.node_id,
        'node_name': value.node_name,
        'refresh_message': value.refresh_message,
        'refresh_metadata': value.refresh_metadata,
        'refresh_status': value.refresh_status,
        'refresh_status_map': value.refresh_status_map,
        'scan_status_map': value.scan_status_map,
        'version': value.version,
    };
}

