Grafeas V1 Client - Class Artifact (1.0.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

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

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

setChecksum

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

Parameter
Name Description
var string
Returns
Type Description
$this

getId

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

Returns
Type Description
string

setId

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this