Google Cloud OsConfig V1 Client - Class Details (1.2.2)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Details.

Contains metadata information for the vulnerability. This information is collected from the upstream feed of the operating system.

Generated from protobuf message google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details

Namespace

Google \ Cloud \ OsConfig \ V1 \ VulnerabilityReport \ Vulnerability

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cve string

The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.

↳ cvss_v2_score float

The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

↳ cvss_v3 Google\Cloud\OsConfig\V1\CVSSv3

The full description of the CVSSv3 for this vulnerability from NVD.

↳ severity string

Assigned severity/impact ranking from the distro.

↳ description string

The note or description describing the vulnerability from the distro.

↳ references array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details\Reference>

Corresponds to the references attached to the VulnerabilityDetails.

getCve

The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.

Returns
TypeDescription
string

setCve

The CVE of the vulnerability. CVE cannot be empty and the combination of <cve, classification> should be unique across vulnerabilities for a VM.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCvssV2Score

The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

Returns
TypeDescription
float

setCvssV2Score

The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getCvssV3

The full description of the CVSSv3 for this vulnerability from NVD.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\CVSSv3|null

hasCvssV3

clearCvssV3

setCvssV3

The full description of the CVSSv3 for this vulnerability from NVD.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\CVSSv3
Returns
TypeDescription
$this

getSeverity

Assigned severity/impact ranking from the distro.

Returns
TypeDescription
string

setSeverity

Assigned severity/impact ranking from the distro.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The note or description describing the vulnerability from the distro.

Returns
TypeDescription
string

setDescription

The note or description describing the vulnerability from the distro.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReferences

Corresponds to the references attached to the VulnerabilityDetails.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReferences

Corresponds to the references attached to the VulnerabilityDetails.

Parameter
NameDescription
var array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details\Reference>
Returns
TypeDescription
$this