Reference documentation and code samples for the Google Cloud Build V1 Client class ReceiveTriggerWebhookRequest.
ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by the ReceiveTriggerWebhook method.
Generated from protobuf message google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ body |
Google\Api\HttpBody
HTTP request body. |
↳ project_id |
string
Project in which the specified trigger lives |
↳ trigger |
string
Name of the trigger to run the payload against |
↳ secret |
string
Secret token used for authorization if an OAuth token isn't provided. |
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 |
getProjectId
Project in which the specified trigger lives
Returns | |
---|---|
Type | Description |
string |
setProjectId
Project in which the specified trigger lives
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTrigger
Name of the trigger to run the payload against
Returns | |
---|---|
Type | Description |
string |
setTrigger
Name of the trigger to run the payload against
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSecret
Secret token used for authorization if an OAuth token isn't provided.
Returns | |
---|---|
Type | Description |
string |
setSecret
Secret token used for authorization if an OAuth token isn't provided.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |