Google Cloud Build V1 Client - Class StorageSource (0.14.0)

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

Location of the source in an archive file in Cloud Storage.

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bucket string

Cloud Storage bucket containing the source (see Bucket Name Requirements).

↳ object string

Cloud Storage object containing the source. This object must be a zipped (.zip) or gzipped archive file (.tar.gz) containing source to build.

↳ generation int|string

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

↳ source_fetcher int

Option to specify the tool to fetch the source file for the build.

getBucket

Cloud Storage bucket containing the source (see Bucket Name Requirements).

Returns
TypeDescription
string

setBucket

Cloud Storage bucket containing the source (see Bucket Name Requirements).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getObject

Cloud Storage object containing the source.

This object must be a zipped (.zip) or gzipped archive file (.tar.gz) containing source to build.

Returns
TypeDescription
string

setObject

Cloud Storage object containing the source.

This object must be a zipped (.zip) or gzipped archive file (.tar.gz) containing source to build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGeneration

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Returns
TypeDescription
int|string

setGeneration

Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getSourceFetcher

Option to specify the tool to fetch the source file for the build.

Returns
TypeDescription
int

setSourceFetcher

Option to specify the tool to fetch the source file for the build.

Parameter
NameDescription
var int
Returns
TypeDescription
$this