Google Cloud Build V1 Client - Class Source (0.4.0)

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

Location of the source in a supported storage service.

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

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ storage_source Google\Cloud\Build\V1\StorageSource

If provided, get the source from this location in Google Cloud Storage.

↳ repo_source Google\Cloud\Build\V1\RepoSource

If provided, get the source from this location in a Cloud Source Repository.

↳ storage_source_manifest Google\Cloud\Build\V1\StorageSourceManifest

If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.

getStorageSource

If provided, get the source from this location in Google Cloud Storage.

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

hasStorageSource

setStorageSource

If provided, get the source from this location in Google Cloud Storage.

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

getRepoSource

If provided, get the source from this location in a Cloud Source Repository.

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

hasRepoSource

setRepoSource

If provided, get the source from this location in a Cloud Source Repository.

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

getStorageSourceManifest

If provided, get the source from this manifest in Google Cloud Storage.

This feature is in Preview.

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

hasStorageSourceManifest

setStorageSourceManifest

If provided, get the source from this manifest in Google Cloud Storage.

This feature is in Preview.

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

getSource

Returns
Type Description
string