Reference documentation and code samples for the Grafeas V1 Client class Detail.
A detail for a distro and package affected by this vulnerability and its associated fix (if one is available).
Generated from protobuf message grafeas.v1.VulnerabilityNote.Detail
Namespace
Grafeas \ V1 \ VulnerabilityNoteMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ severity_name |
string
The distro assigned severity of this vulnerability. |
↳ description |
string
A vendor-specific description of this vulnerability. |
↳ package_type |
string
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). |
↳ affected_cpe_uri |
string
Required. The CPE URI this vulnerability affects. |
↳ affected_package |
string
Required. The package this vulnerability affects. |
↳ affected_version_start |
Grafeas\V1\Version
The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail. |
↳ affected_version_end |
Grafeas\V1\Version
The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail. |
↳ fixed_cpe_uri |
string
The distro recommended CPE URI to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_cpe_uri. |
↳ fixed_package |
string
The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package. |
↳ fixed_version |
Grafeas\V1\Version
The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available. |
↳ is_obsolete |
bool
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. |
↳ 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. |
↳ source |
string
The source from which the information in this Detail was obtained. |
↳ vendor |
string
The name of the vendor of the product. |
getSeverityName
The distro assigned severity of this vulnerability.
Returns | |
---|---|
Type | Description |
string |
setSeverityName
The distro assigned severity of this vulnerability.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
A vendor-specific description of this vulnerability.
Returns | |
---|---|
Type | Description |
string |
setDescription
A vendor-specific description of this vulnerability.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
Returns | |
---|---|
Type | Description |
string |
setPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAffectedCpeUri
Required. The CPE URI this vulnerability affects.
Returns | |
---|---|
Type | Description |
string |
setAffectedCpeUri
Required. The CPE URI this vulnerability affects.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAffectedPackage
Required. The package this vulnerability affects.
Returns | |
---|---|
Type | Description |
string |
setAffectedPackage
Required. The package this vulnerability affects.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAffectedVersionStart
The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
Returns | |
---|---|
Type | Description |
Grafeas\V1\Version|null |
hasAffectedVersionStart
clearAffectedVersionStart
setAffectedVersionStart
The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\Version
|
Returns | |
---|---|
Type | Description |
$this |
getAffectedVersionEnd
The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
Returns | |
---|---|
Type | Description |
Grafeas\V1\Version|null |
hasAffectedVersionEnd
clearAffectedVersionEnd
setAffectedVersionEnd
The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\Version
|
Returns | |
---|---|
Type | Description |
$this |
getFixedCpeUri
The distro recommended CPE URI to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_cpe_uri.
Returns | |
---|---|
Type | Description |
string |
setFixedCpeUri
The distro recommended CPE URI to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_cpe_uri.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getFixedPackage
The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package.
Returns | |
---|---|
Type | Description |
string |
setFixedPackage
The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getFixedVersion
The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available.
Returns | |
---|---|
Type | Description |
Grafeas\V1\Version|null |
hasFixedVersion
clearFixedVersion
setFixedVersion
The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available.
Parameter | |
---|---|
Name | Description |
var |
Grafeas\V1\Version
|
Returns | |
---|---|
Type | Description |
$this |
getIsObsolete
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
Returns | |
---|---|
Type | Description |
bool |
setIsObsolete
Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getSource
The source from which the information in this Detail was obtained.
Returns | |
---|---|
Type | Description |
string |
setSource
The source from which the information in this Detail was obtained.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVendor
The name of the vendor of the product.
Returns | |
---|---|
Type | Description |
string |
setVendor
The name of the vendor of the product.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |