Google Cloud Build V1 Client - Class ArtifactObjects (0.9.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getPaths

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPaths

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getTiming

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

Returns
TypeDescription
Google\Cloud\Build\V1\TimeSpan|null

hasTiming

clearTiming

setTiming

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

Parameter
NameDescription
var Google\Cloud\Build\V1\TimeSpan
Returns
TypeDescription
$this