Google Cloud Build V1 Client - Class ArtifactResult (0.5.1)

Reference documentation and code samples for the Google Cloud Build V1 Client class ArtifactResult.

An artifact that was uploaded during a build. This is a single record in the artifact manifest JSON file.

Generated from protobuf message google.devtools.cloudbuild.v1.ArtifactResult

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ location string

The path of an artifact in a Google Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

↳ file_hash array<Google\Cloud\Build\V1\FileHashes>

The file hash of the artifact.

getLocation

The path of an artifact in a Google Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

Returns
TypeDescription
string

setLocation

The path of an artifact in a Google Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFileHash

The file hash of the artifact.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFileHash

The file hash of the artifact.

Parameter
NameDescription
var array<Google\Cloud\Build\V1\FileHashes>
Returns
TypeDescription
$this