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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The |
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 |