Google Cloud Functions V2 Client - Class Source (1.4.2)

Reference documentation and code samples for the Google Cloud Functions V2 Client class Source.

The location of the function source code.

Generated from protobuf message google.cloud.functions.v2.Source

Namespace

Google \ Cloud \ Functions \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ storage_source Google\Cloud\Functions\V2\StorageSource

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

↳ repo_source Google\Cloud\Functions\V2\RepoSource

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

getStorageSource

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

Returns
TypeDescription
Google\Cloud\Functions\V2\StorageSource|null

hasStorageSource

setStorageSource

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

Parameter
NameDescription
var Google\Cloud\Functions\V2\StorageSource
Returns
TypeDescription
$this

getRepoSource

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

Returns
TypeDescription
Google\Cloud\Functions\V2\RepoSource|null

hasRepoSource

setRepoSource

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

Parameter
NameDescription
var Google\Cloud\Functions\V2\RepoSource
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string