Google Cloud Build V1 Client - Class CancelBuildRequest (0.11.0)

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

Request to cancel an ongoing build.

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

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 Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

↳ project_id string

Required. ID of the project.

↳ id string

Required. ID of the build.

getName

The name of the Build to cancel.

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

Returns
TypeDescription
string

setName

The name of the Build to cancel.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

Required. ID of the project.

Returns
TypeDescription
string

setProjectId

Required. ID of the project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Required. ID of the build.

Returns
TypeDescription
string

setId

Required. ID of the build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this