Grafeas V1 Client - Class Distribution (0.5.0)

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

This represents a particular channel of distribution for a given package.

E.g., Debian's jessie-backports dpkg mirror.

Generated from protobuf message grafeas.v1.Distribution

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cpe_uri string

The cpe_uri in CPE format denoting the package manager version distributing a package.

↳ architecture int

The CPU architecture for which packages in this distribution channel were built.

↳ latest_version Grafeas\V1\Version

The latest available version of this package in this distribution channel.

↳ maintainer string

A freeform string denoting the maintainer of this package.

↳ url string

The distribution channel-specific homepage for this package.

↳ description string

The distribution channel-specific description of this package.

getCpeUri

The cpe_uri in CPE format denoting the package manager version distributing a package.

Returns
TypeDescription
string

setCpeUri

The cpe_uri in CPE format denoting the package manager version distributing a package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArchitecture

The CPU architecture for which packages in this distribution channel were built.

Returns
TypeDescription
int

setArchitecture

The CPU architecture for which packages in this distribution channel were built.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLatestVersion

The latest available version of this package in this distribution channel.

Returns
TypeDescription
Grafeas\V1\Version|null

hasLatestVersion

clearLatestVersion

setLatestVersion

The latest available version of this package in this distribution channel.

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

getMaintainer

A freeform string denoting the maintainer of this package.

Returns
TypeDescription
string

setMaintainer

A freeform string denoting the maintainer of this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUrl

The distribution channel-specific homepage for this package.

Returns
TypeDescription
string

setUrl

The distribution channel-specific homepage for this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The distribution channel-specific description of this package.

Returns
TypeDescription
string

setDescription

The distribution channel-specific description of this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this