Google Cloud Build V1 Client - Class CreateBuildRequest (0.14.0)

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

Request to create a new build.

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

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 build will be created. Format: projects/{project}/locations/{location}

↳ project_id
string

Required. ID of the project.

↳ build
Google\Cloud\Build\V1\Build

Required. Build resource to create.

getParent

The parent resource where this build will be created.

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

Returns
Type
Description
string

setParent

The parent resource where this build will be created.

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getProjectId

Required. ID of the project.

Returns
Type
Description
string

setProjectId

Required. ID of the project.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getBuild

Required. Build resource to create.

Returns
Type
Description

hasBuild

clearBuild

setBuild

Required. Build resource to create.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: