Google Cloud Build V1 Client - Class RepositoryEventConfig (0.9.0)

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
NameDescription
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
TypeDescription
string

setRepository

The resource name of the Repo API resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepositoryType

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

Returns
TypeDescription
int

setRepositoryType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPullRequest

Filter to match changes in pull requests.

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

hasPullRequest

setPullRequest

Filter to match changes in pull requests.

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

getPush

Filter to match changes in refs like branches, tags.

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

hasPush

setPush

Filter to match changes in refs like branches, tags.

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

getFilter

Returns
TypeDescription
string