Reference documentation and code samples for the Grafeas V1 Client class PackageIssue.
A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
Generated from protobuf message grafeas.v1.VulnerabilityOccurrence.PackageIssue
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ affected_cpe_uri
↳ affected_package
string
Required. The package this vulnerability was found in.
↳ affected_version
Grafeas\V1\Version
Required. The version of the package that is installed on the resource affected by this vulnerability.
↳ fixed_cpe_uri
string
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
↳ fixed_package
string
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
↳ fixed_version
Grafeas\V1\Version
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
↳ fix_available
bool
Output only. Whether a fix is available for this package.
↳ package_type
string
The type of package (e.g. OS, MAVEN, GO).
↳ effective_severity
int
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
↳ file_location
getAffectedCpeUri
Required. The CPE URI this vulnerability was found in.
string
setAffectedCpeUri
Required. The CPE URI this vulnerability was found in.
var
string
$this
getAffectedPackage
Required. The package this vulnerability was found in.
string
setAffectedPackage
Required. The package this vulnerability was found in.
var
string
$this
getAffectedVersion
Required. The version of the package that is installed on the resource affected by this vulnerability.
hasAffectedVersion
clearAffectedVersion
setAffectedVersion
Required. The version of the package that is installed on the resource affected by this vulnerability.
$this
getFixedCpeUri
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string
setFixedCpeUri
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
var
string
$this
getFixedPackage
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string
setFixedPackage
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
var
string
$this
getFixedVersion
Required. The version of the package this vulnerability was fixed in.
Setting this to VersionKind.MAXIMUM means no fix is yet available.
hasFixedVersion
clearFixedVersion
setFixedVersion
Required. The version of the package this vulnerability was fixed in.
Setting this to VersionKind.MAXIMUM means no fix is yet available.
$this
getFixAvailable
Output only. Whether a fix is available for this package.
bool
setFixAvailable
Output only. Whether a fix is available for this package.
var
bool
$this
getPackageType
The type of package (e.g. OS, MAVEN, GO).
string
setPackageType
The type of package (e.g. OS, MAVEN, GO).
var
string
$this
getEffectiveSeverity
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
int
setEffectiveSeverity
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
var
int
$this
getFileLocation
The location at which this package was found.
setFileLocation
The location at which this package was found.
$this