Grafeas V1 Client - Class UpgradeNote (0.5.0)

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

An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be an Upgrade Note. For Windows, windows_update field represents the information related to the update.

Generated from protobuf message grafeas.v1.UpgradeNote

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ package string

Required for non-Windows OS. The package this Upgrade is for.

↳ version Grafeas\V1\Version

Required for non-Windows OS. The version of the package in machine + human readable form.

↳ distributions array<Grafeas\V1\UpgradeDistribution>

Metadata about the upgrade for each specific operating system.

↳ windows_update Grafeas\V1\WindowsUpdate

Required for Windows OS. Represents the metadata about the Windows update.

getPackage

Required for non-Windows OS. The package this Upgrade is for.

Returns
TypeDescription
string

setPackage

Required for non-Windows OS. The package this Upgrade is for.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Required for non-Windows OS. The version of the package in machine + human readable form.

Returns
TypeDescription
Grafeas\V1\Version|null

hasVersion

clearVersion

setVersion

Required for non-Windows OS. The version of the package in machine + human readable form.

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

getDistributions

Metadata about the upgrade for each specific operating system.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDistributions

Metadata about the upgrade for each specific operating system.

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

getWindowsUpdate

Required for Windows OS. Represents the metadata about the Windows update.

Returns
TypeDescription
Grafeas\V1\WindowsUpdate|null

hasWindowsUpdate

clearWindowsUpdate

setWindowsUpdate

Required for Windows OS. Represents the metadata about the Windows update.

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