Google Cloud Build V1 Client - Class RepositoryEventConfig (0.16.3)

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

The configuration of a trigger that creates a build whenever an event from Repo API is received.

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ repository string

The resource name of the Repo API resource.

↳ repository_type int

Output only. The type of the SCM vendor the repository points to.

↳ pull_request Google\Cloud\Build\V1\PullRequestFilter

Filter to match changes in pull requests.

↳ push Google\Cloud\Build\V1\PushFilter

Filter to match changes in refs like branches, tags.

getRepository

The resource name of the Repo API resource.

Returns
Type Description
string

setRepository

The resource name of the Repo API resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getRepositoryType

Output only. The type of the SCM vendor the repository points to.

Returns
Type Description
int

setRepositoryType

Output only. The type of the SCM vendor the repository points to.

Parameter
Name Description
var int
Returns
Type Description
$this

getPullRequest

Filter to match changes in pull requests.

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

hasPullRequest

setPullRequest

Filter to match changes in pull requests.

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

getPush

Filter to match changes in refs like branches, tags.

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

hasPush

setPush

Filter to match changes in refs like branches, tags.

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

getFilter

Returns
Type Description
string