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 \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Project and location where the webhook will be received. Format: |
↳ 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 | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Project and location where the webhook will be received.
Format: projects/*/locations/*.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBody
HTTP request body.
| Returns | |
|---|---|
| Type | Description |
Google\Api\HttpBody|null |
|
hasBody
clearBody
setBody
HTTP request body.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Api\HttpBody
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWebhookKey
Arbitrary additional key to find the maching repository for a webhook event if needed.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWebhookKey
Arbitrary additional key to find the maching repository for a webhook event if needed.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|