Google Cloud Build V2 Client - Class ProcessWebhookRequest (0.14.0)

Reference documentation and code samples for the Google Cloud Build V2 Client class ProcessWebhookRequest.

RPC request object accepted by the ProcessWebhook RPC method.

Generated from protobuf message google.devtools.cloudbuild.v2.ProcessWebhookRequest

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Project and location where the webhook will be received. Format: projects/*/locations/*.

↳ body Google\Api\HttpBody

HTTP request body.

↳ webhook_key string

Arbitrary additional key to find the maching repository for a webhook event if needed.

getParent

Required. Project and location where the webhook will be received.

Format: projects/*/locations/*.

Returns
TypeDescription
string

setParent

Required. Project and location where the webhook will be received.

Format: projects/*/locations/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBody

HTTP request body.

Returns
TypeDescription
Google\Api\HttpBody|null

hasBody

clearBody

setBody

HTTP request body.

Parameter
NameDescription
var Google\Api\HttpBody
Returns
TypeDescription
$this

getWebhookKey

Arbitrary additional key to find the maching repository for a webhook event if needed.

Returns
TypeDescription
string

setWebhookKey

Arbitrary additional key to find the maching repository for a webhook event if needed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this