Google Cloud Build V1 Client - Class UpdateWorkerPoolRequest (0.4.0)

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

Request to update a WorkerPool.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name"

↳ worker_pool Google\Cloud\Build\V1\WorkerPool

WorkerPool resource to update.

getName

The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name"

Returns
TypeDescription
string

setName

The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkerPool

WorkerPool resource to update.

Returns
TypeDescription
Google\Cloud\Build\V1\WorkerPool|null

hasWorkerPool

clearWorkerPool

setWorkerPool

WorkerPool resource to update.

Parameter
NameDescription
var Google\Cloud\Build\V1\WorkerPool
Returns
TypeDescription
$this