Reference documentation and code samples for the Google Cloud Build V1 Client class GitHubEventsConfig.
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
This message is experimental.
Generated from protobuf message google.devtools.cloudbuild.v1.GitHubEventsConfig
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ installation_id |
int|string
The installationID that emits the GitHub event. |
↳ owner |
string
Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform". |
↳ name |
string
Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders". |
↳ 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. |
getInstallationId
The installationID that emits the GitHub event.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setInstallationId
The installationID that emits the GitHub event.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOwner
Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".
| Returns | |
|---|---|
| Type | Description |
string |
|
setOwner
Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| 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 |
|
getEvent
| Returns | |
|---|---|
| Type | Description |
string |
|