Google Cloud OsConfig V1 Client - Class Details (2.0.0-RC1)

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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var float
Returns
Type Description
$this

getCvssV3

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

Returns
Type Description
Google\Cloud\OsConfig\V1\CVSSv3|null

hasCvssV3

clearCvssV3

setCvssV3

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

Parameter
Name Description
var Google\Cloud\OsConfig\V1\CVSSv3
Returns
Type Description
$this

getSeverity

Assigned severity/impact ranking from the distro.

Returns
Type Description
string

setSeverity

Assigned severity/impact ranking from the distro.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

The note or description describing the vulnerability from the distro.

Returns
Type Description
string

setDescription

The note or description describing the vulnerability from the distro.

Parameter
Name Description
var string
Returns
Type Description
$this

getReferences

Corresponds to the references attached to the VulnerabilityDetails.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReferences

Corresponds to the references attached to the VulnerabilityDetails.

Parameter
Name Description
var array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details\Reference>
Returns
Type Description
$this