Google Cloud Build V1 Client - Class ReceiveTriggerWebhookRequest (0.3.8)

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
NameDescription
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
TypeDescription
Google\Api\HttpBody|null

hasBody

clearBody

setBody

HTTP request body.

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

getProjectId

Project in which the specified trigger lives

Returns
TypeDescription
string

setProjectId

Project in which the specified trigger lives

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTrigger

Name of the trigger to run the payload against

Returns
TypeDescription
string

setTrigger

Name of the trigger to run the payload against

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecret

Secret token used for authorization if an OAuth token isn't provided.

Returns
TypeDescription
string

setSecret

Secret token used for authorization if an OAuth token isn't provided.

Parameter
NameDescription
var string
Returns
TypeDescription
$this