Grafeas V1 Client - Class ImageOccurrence (0.5.0)

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

Details of the derived image portion of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.

Generated from protobuf message grafeas.v1.ImageOccurrence

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ fingerprint Grafeas\V1\Fingerprint

Required. The fingerprint of the derived image.

↳ distance int

Output only. The number of layers by which this image differs from the associated image basis.

↳ layer_info array<Grafeas\V1\Layer>

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

↳ base_resource_url string

Output only. This contains the base image URL for the derived image occurrence.

getFingerprint

Required. The fingerprint of the derived image.

Returns
TypeDescription
Grafeas\V1\Fingerprint|null

hasFingerprint

clearFingerprint

setFingerprint

Required. The fingerprint of the derived image.

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

getDistance

Output only. The number of layers by which this image differs from the associated image basis.

Returns
TypeDescription
int

setDistance

Output only. The number of layers by which this image differs from the associated image basis.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLayerInfo

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLayerInfo

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

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

getBaseResourceUrl

Output only. This contains the base image URL for the derived image occurrence.

Returns
TypeDescription
string

setBaseResourceUrl

Output only. This contains the base image URL for the derived image occurrence.

Parameter
NameDescription
var string
Returns
TypeDescription
$this