/**
 * Scanning API
 * Use the Vulnerability Scanning Service (VSS) APIs to manage scan recipes, targets, and reports.
 * OpenAPI spec version: 20210215
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * A vulnerability found in one or more host scans in a compartment
 */ export interface HostVulnerability { /**
     * ID of the vulnerability
     */ "id" : string ; /**
     * Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location
     */ "compartmentId" : string ; /**
     * Mechanism used for scan authentication
     */ "authentication" ? : string ; /**
     * Reference to MITRE CVE ID
     */ "cveReference" ? : string ; "cveDetails" ? : model . CveDetails ; /**
     * Severity of the vulnerability
     */ "severity" : model . ScanResultProblemSeverity ; /**
     * State of the vulnerability
     */ "state" ? : model . ScanResultVulnerabilityState ; /**
     * Vulnerability name
     */ "name" : string ; /**
     * Date of scan result that most recently reported the vulnerability
     */ "timeLastDetected" : Date ; /**
     * Date of scan result that first reported the vulnerability
     */ "timeFirstDetected" : Date ; /**
     * Number of scanned hosts in this compartment whose scan results currently report this vulnerability Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
     */ "hostCount" : number ; /**
     * Specifies the type of Vulnerability
     */ "vulnerabilityType" : model . VulnerabilityType ; /**
     * The current state of the resource.
     */ "lifecycleState" ? : model . LifecycleState ; } export namespace HostVulnerability { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "cveDetails" : obj . cveDetails ? model . CveDetails . getJsonObj ( obj . cveDetails ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "cveDetails" : obj . cveDetails ? model . CveDetails . getDeserializedJsonObj ( obj . cveDetails ) : undefined } } ; return jsonObj ; } }