Grafeas V1 Client - Class PackageIssue (0.9.0)

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

Namespace

Grafeas \ V1 \ VulnerabilityOccurrence

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ affected_cpe_uri string

Required. The CPE URI this vulnerability was found in.

↳ 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 array<Grafeas\V1\FileLocation>

The location at which this package was found.

getAffectedCpeUri

Required. The CPE URI this vulnerability was found in.

Returns
TypeDescription
string

setAffectedCpeUri

Required. The CPE URI this vulnerability was found in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAffectedPackage

Required. The package this vulnerability was found in.

Returns
TypeDescription
string

setAffectedPackage

Required. The package this vulnerability was found in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAffectedVersion

Required. The version of the package that is installed on the resource affected by this vulnerability.

Returns
TypeDescription
Grafeas\V1\Version|null

hasAffectedVersion

clearAffectedVersion

setAffectedVersion

Required. The version of the package that is installed on the resource affected by this vulnerability.

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

getFixedCpeUri

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

Returns
TypeDescription
string

setFixedCpeUri

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFixedPackage

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

Returns
TypeDescription
string

setFixedPackage

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFixedVersion

Required. The version of the package this vulnerability was fixed in.

Setting this to VersionKind.MAXIMUM means no fix is yet available.

Returns
TypeDescription
Grafeas\V1\Version|null

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.

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

getFixAvailable

Output only. Whether a fix is available for this package.

Returns
TypeDescription
bool

setFixAvailable

Output only. Whether a fix is available for this package.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPackageType

The type of package (e.g. OS, MAVEN, GO).

Returns
TypeDescription
string

setPackageType

The type of package (e.g. OS, MAVEN, GO).

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFileLocation

The location at which this package was found.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFileLocation

The location at which this package was found.

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