Google Cloud Build V1 Client - Class PoolOption (0.16.3)

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

Details about how a build should be executed on a WorkerPool.

See running builds in a private pool for more information.

Generated from protobuf message google.devtools.cloudbuild.v1.BuildOptions.PoolOption

Namespace

Google \ Cloud \ Build \ V1 \ BuildOptions

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The WorkerPool resource to execute the build on. You must have cloudbuild.workerpools.use on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}

getName

The WorkerPool resource to execute the build on.

You must have cloudbuild.workerpools.use on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}

Returns
Type Description
string

setName

The WorkerPool resource to execute the build on.

You must have cloudbuild.workerpools.use on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}

Parameter
Name Description
var string
Returns
Type Description
$this