Google Cloud Build V1 Client - Class CreateWorkerPoolRequest (0.4.0)

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

Request to create a new WorkerPool.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

ID of the parent project.

↳ worker_pool Google\Cloud\Build\V1\WorkerPool

WorkerPool resource to create.

getParent

ID of the parent project.

Returns
TypeDescription
string

setParent

ID of the parent project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkerPool

WorkerPool resource to create.

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

hasWorkerPool

clearWorkerPool

setWorkerPool

WorkerPool resource to create.

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