Google Cloud Build V1 Client - Class CreateBuildTriggerRequest (0.13.2)

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

setParent

The parent resource where this trigger will be created.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

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

Returns
TypeDescription
string

setProjectId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTrigger

Required. BuildTrigger to create.

Returns
TypeDescription
Google\Cloud\Build\V1\BuildTrigger|null

hasTrigger

clearTrigger

setTrigger

Required. BuildTrigger to create.

Parameter
NameDescription
var Google\Cloud\Build\V1\BuildTrigger
Returns
TypeDescription
$this