Reference documentation and code samples for the Google Cloud Build V1 Client class WebhookConfig.
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
Generated from protobuf message google.devtools.cloudbuild.v1.WebhookConfig
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ secret |
string
Required. Resource name for the secret required as a URL parameter. |
↳ state |
int
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. |
getSecret
Required. Resource name for the secret required as a URL parameter.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSecret
setSecret
Required. Resource name for the secret required as a URL parameter.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
| Returns | |
|---|---|
| Type | Description |
int |
|
setState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthMethod
| Returns | |
|---|---|
| Type | Description |
string |
|