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 | |
|---|---|
| Name | Description |
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, |
↳ 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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFileHash
The file hash of the artifact.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setFileHash
The file hash of the artifact.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Build\V1\FileHashes>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|