Grafeas V1 Client - Class VulnerabilityNote (0.7.1)

Reference documentation and code samples for the Grafeas V1 Client class VulnerabilityNote.

A security vulnerability that can be found in resources.

Generated from protobuf message grafeas.v1.VulnerabilityNote

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cvss_score float

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

↳ severity int

The note provider assigned severity of this vulnerability.

↳ details array<Grafeas\V1\VulnerabilityNote\Detail>

Details of all known distros and packages affected by this vulnerability.

↳ cvss_v3 Grafeas\V1\CVSSv3

The full description of the CVSSv3 for this vulnerability.

↳ windows_details array<Grafeas\V1\VulnerabilityNote\WindowsDetail>

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

↳ source_update_time Google\Protobuf\Timestamp

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

↳ cvss_version int

CVSS version used to populate cvss_score and severity.

↳ cvss_v2 Grafeas\V1\CVSS

The full description of the v2 CVSS for this vulnerability.

getCvssScore

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

Returns
TypeDescription
float

setCvssScore

The CVSS score of this vulnerability. CVSS 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

getSeverity

The note provider assigned severity of this vulnerability.

Returns
TypeDescription
int

setSeverity

The note provider assigned severity of this vulnerability.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDetails

Details of all known distros and packages affected by this vulnerability.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetails

Details of all known distros and packages affected by this vulnerability.

Parameter
NameDescription
var array<Grafeas\V1\VulnerabilityNote\Detail>
Returns
TypeDescription
$this

getCvssV3

The full description of the CVSSv3 for this vulnerability.

Returns
TypeDescription
Grafeas\V1\CVSSv3|null

hasCvssV3

clearCvssV3

setCvssV3

The full description of the CVSSv3 for this vulnerability.

Parameter
NameDescription
var Grafeas\V1\CVSSv3
Returns
TypeDescription
$this

getWindowsDetails

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setWindowsDetails

Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

Parameter
NameDescription
var array<Grafeas\V1\VulnerabilityNote\WindowsDetail>
Returns
TypeDescription
$this

getSourceUpdateTime

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasSourceUpdateTime

clearSourceUpdateTime

setSourceUpdateTime

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCvssVersion

CVSS version used to populate cvss_score and severity.

Returns
TypeDescription
int

setCvssVersion

CVSS version used to populate cvss_score and severity.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCvssV2

The full description of the v2 CVSS for this vulnerability.

Returns
TypeDescription
Grafeas\V1\CVSS|null

hasCvssV2

clearCvssV2

setCvssV2

The full description of the v2 CVSS for this vulnerability.

Parameter
NameDescription
var Grafeas\V1\CVSS
Returns
TypeDescription
$this