Google Cloud Build V1 Client - Class CreateBuildTriggerRequest (0.16.1)

Reference documentation and code samples for the Google Cloud Build V1 Client class CreateBuildTriggerRequest.

Request to create a new BuildTrigger.

Generated from protobuf message google.devtools.cloudbuild.v1.CreateBuildTriggerRequest

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

↳ project_id string

Required. ID of the project for which to configure automatic builds.

↳ trigger Google\Cloud\Build\V1\BuildTrigger

Required. BuildTrigger to create.

getParent

The parent resource where this trigger will be created.

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

Returns
Type Description
string

setParent

The parent resource where this trigger will be created.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getProjectId

Required. ID of the project for which to configure automatic builds.

Returns
Type Description
string

setProjectId

Required. ID of the project for which to configure automatic builds.

Parameter
Name Description
var string
Returns
Type Description
$this

getTrigger

Required. BuildTrigger to create.

Returns
Type Description
Google\Cloud\Build\V1\BuildTrigger|null

hasTrigger

clearTrigger

setTrigger

Required. BuildTrigger to create.

Parameter
Name Description
var Google\Cloud\Build\V1\BuildTrigger
Returns
Type Description
$this