Google Cloud Build V1 Client - Class ReceiveTriggerWebhookRequest (0.11.0)

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
NameDescription
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
TypeDescription
string

setName

The name of the ReceiveTriggerWebhook to retrieve.

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

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

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