Google Cloud Build V1 Client - Class CreateWorkerPoolRequest (0.16.3)

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

↳ worker_pool Google\Cloud\Build\V1\WorkerPool

Required. WorkerPool resource to create.

↳ worker_pool_id string

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

↳ validate_only bool

If set, validate the request and preview the response, but do not actually post it.

getParent

Required. The parent resource where this worker pool will be created.

Format: projects/{project}/locations/{location}.

Returns
Type Description
string

setParent

Required. The parent resource where this worker pool will be created.

Format: projects/{project}/locations/{location}.

Parameter
Name Description
var string
Returns
Type Description
$this

getWorkerPool

Required. WorkerPool resource to create.

Returns
Type Description
Google\Cloud\Build\V1\WorkerPool|null

hasWorkerPool

clearWorkerPool

setWorkerPool

Required. WorkerPool resource to create.

Parameter
Name Description
var Google\Cloud\Build\V1\WorkerPool
Returns
Type Description
$this

getWorkerPoolId

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Returns
Type Description
string

setWorkerPoolId

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Parameter
Name Description
var string
Returns
Type Description
$this

getValidateOnly

If set, validate the request and preview the response, but do not actually post it.

Returns
Type Description
bool

setValidateOnly

If set, validate the request and preview the response, but do not actually post it.

Parameter
Name Description
var bool
Returns
Type Description
$this