Grafeas V1 Client - Class Artifact (0.6.0)

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

Artifact describes a build product.

Generated from protobuf message grafeas.v1.Artifact

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ checksum string

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

↳ id string

Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456.

↳ names array

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

getChecksum

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

Returns
TypeDescription
string

setChecksum

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456.

Returns
TypeDescription
string

setId

Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNames

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNames

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this