Google Cloud Build V1 Client - Class ArtifactObjects (0.16.3)

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

Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.

Generated from protobuf message google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects

Namespace

Google \ Cloud \ Build \ V1 \ Artifacts

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ location string

Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.

↳ paths array

Path globs used to match files in the build's workspace.

↳ timing Google\Cloud\Build\V1\TimeSpan

Output only. Stores timing information for pushing all artifact objects.

getLocation

Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements).

Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.

Returns
Type Description
string

setLocation

Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements).

Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.

Parameter
Name Description
var string
Returns
Type Description
$this

getPaths

Path globs used to match files in the build's workspace.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPaths

Path globs used to match files in the build's workspace.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getTiming

Output only. Stores timing information for pushing all artifact objects.

Returns
Type Description
Google\Cloud\Build\V1\TimeSpan|null

hasTiming

clearTiming

setTiming

Output only. Stores timing information for pushing all artifact objects.

Parameter
Name Description
var Google\Cloud\Build\V1\TimeSpan
Returns
Type Description
$this