Google Cloud Build V1 Client - Class PushFilter (0.4.0)

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

Push contains filter properties for matching GitHub git pushes.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ branch string

Regexes 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 string

Regexes 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

↳ invert_regex bool

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

getBranch

Regexes 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

hasBranch

setBranch

Regexes 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

getTag

Regexes 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

hasTag

setTag

Regexes 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

getInvertRegex

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

Returns
TypeDescription
bool

setInvertRegex

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getGitRef

Returns
TypeDescription
string