Grafeas V1 Client - Class Distribution (1.1.1)

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

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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 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
Type Description
string

setCpeUri

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

Parameter
Name Description
var string
Returns
Type Description
$this

getArchitecture

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

Returns
Type Description
int

setArchitecture

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

Parameter
Name Description
var int
Returns
Type Description
$this

getLatestVersion

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

Returns
Type Description
Version|null

hasLatestVersion

clearLatestVersion

setLatestVersion

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

Parameter
Name Description
var Version
Returns
Type Description
$this

getMaintainer

A freeform string denoting the maintainer of this package.

Returns
Type Description
string

setMaintainer

A freeform string denoting the maintainer of this package.

Parameter
Name Description
var string
Returns
Type Description
$this

getUrl

The distribution channel-specific homepage for this package.

Returns
Type Description
string

setUrl

The distribution channel-specific homepage for this package.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

The distribution channel-specific description of this package.

Returns
Type Description
string

setDescription

The distribution channel-specific description of this package.

Parameter
Name Description
var string
Returns
Type Description
$this