Google Cloud Build V1 Client - Class WebhookConfig (0.13.2)

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 \ V1

Methods

__construct

Constructor.

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

hasSecret

setSecret

Required. Resource name for the secret required as a URL parameter.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Potential issues with the underlying Pub/Sub subscription configuration.

Only populated on get requests.

Returns
TypeDescription
int

setState

Potential issues with the underlying Pub/Sub subscription configuration.

Only populated on get requests.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAuthMethod

Returns
TypeDescription
string