Grafeas V1 Client - Class UpgradeDistribution (0.7.1)

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

The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.

Generated from protobuf message grafeas.v1.UpgradeDistribution

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cpe_uri string

Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.

↳ classification string

The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)

↳ severity string

The severity as specified by the upstream operating system.

↳ cve array

The cve tied to this Upgrade.

getCpeUri

Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.

Returns
TypeDescription
string

setCpeUri

Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClassification

The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)

Returns
TypeDescription
string

setClassification

The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSeverity

The severity as specified by the upstream operating system.

Returns
TypeDescription
string

setSeverity

The severity as specified by the upstream operating system.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCve

The cve tied to this Upgrade.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCve

The cve tied to this Upgrade.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this