Google Cloud Build V1 Client - Class Source (0.15.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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Cloud Storage.

↳ repo_source Google\Cloud\Build\V1\RepoSource

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

↳ git_source Google\Cloud\Build\V1\GitSource

If provided, get the source from this Git repository.

↳ storage_source_manifest Google\Cloud\Build\V1\StorageSourceManifest

If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description here.

getStorageSource

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

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

hasStorageSource

setStorageSource

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

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

getRepoSource

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

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

hasRepoSource

setRepoSource

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

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

getGitSource

If provided, get the source from this Git repository.

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

hasGitSource

setGitSource

If provided, get the source from this Git repository.

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

getStorageSourceManifest

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

This feature is in Preview; see description here.

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

hasStorageSourceManifest

setStorageSourceManifest

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

This feature is in Preview; see description here.

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

getSource

Returns
TypeDescription
string