Google Cloud Functions V2 Client - Class RepoSource (1.1.2)

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

Location of the source in a Google Cloud Source Repository.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ branch_name string

Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

↳ tag_name string

Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

↳ commit_sha string

Explicit commit SHA to build.

↳ project_id string

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

↳ repo_name string

Name of the Cloud Source Repository.

↳ dir string

Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

↳ invert_regex bool

Only trigger a build if the revision regex does NOT match the revision regex.

getBranchName

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Returns
TypeDescription
string

hasBranchName

setBranchName

Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagName

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Returns
TypeDescription
string

hasTagName

setTagName

Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCommitSha

Explicit commit SHA to build.

Returns
TypeDescription
string

hasCommitSha

setCommitSha

Explicit commit SHA to build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

Returns
TypeDescription
string

setProjectId

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepoName

Name of the Cloud Source Repository.

Returns
TypeDescription
string

setRepoName

Name of the Cloud Source Repository.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDir

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

Returns
TypeDescription
string

setDir

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInvertRegex

Only trigger a build if the revision regex does NOT match the revision regex.

Returns
TypeDescription
bool

setInvertRegex

Only trigger a build if the revision regex does NOT match the revision regex.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getRevision

Returns
TypeDescription
string