Google Cloud Build V1 Client - Class ReceiveTriggerWebhookRequest (0.16.3)

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the ReceiveTriggerWebhook to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

↳ 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.

getName

The name of the ReceiveTriggerWebhook to retrieve.

Format: projects/{project}/locations/{location}/triggers/{trigger}

Returns
Type Description
string

setName

The name of the ReceiveTriggerWebhook to retrieve.

Format: projects/{project}/locations/{location}/triggers/{trigger}

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

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