Google Cloud Build V1 Client - Class PoolOption (0.14.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this