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
Namespace
Grafeas \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ fingerprint |
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<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 | |
---|---|
Type | Description |
Fingerprint|null |
hasFingerprint
clearFingerprint
setFingerprint
Required. The fingerprint of the derived image.
Parameter | |
---|---|
Name | Description |
var |
Fingerprint
|
Returns | |
---|---|
Type | Description |
$this |
getDistance
Output only. The number of layers by which this image differs from the associated image basis.
Returns | |
---|---|
Type | Description |
int |
setDistance
Output only. The number of layers by which this image differs from the associated image basis.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Layer>
|
Returns | |
---|---|
Type | Description |
$this |
getBaseResourceUrl
Output only. This contains the base image URL for the derived image occurrence.
Returns | |
---|---|
Type | Description |
string |
setBaseResourceUrl
Output only. This contains the base image URL for the derived image occurrence.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |