Google Cloud Build V1 Client - Class WorkerConfig (0.16.1)

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

Defines the configuration to be used for creating workers in the pool.

Generated from protobuf message google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig

Namespace

Google \ Cloud \ Build \ V1 \ PrivatePoolV1Config

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ machine_type string

Machine type of a worker, such as e2-medium. See Worker pool config file. If left blank, Cloud Build will use a sensible default.

↳ disk_size_gb int|string

Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 2000. If 0 is specified, Cloud Build will use a standard disk size.

getMachineType

Machine type of a worker, such as e2-medium.

See Worker pool config file. If left blank, Cloud Build will use a sensible default.

Returns
Type Description
string

setMachineType

Machine type of a worker, such as e2-medium.

See Worker pool config file. If left blank, Cloud Build will use a sensible default.

Parameter
Name Description
var string
Returns
Type Description
$this

getDiskSizeGb

Size of the disk attached to the worker, in GB.

See Worker pool config file. Specify a value of up to 2000. If 0 is specified, Cloud Build will use a standard disk size.

Returns
Type Description
int|string

setDiskSizeGb

Size of the disk attached to the worker, in GB.

See Worker pool config file. Specify a value of up to 2000. If 0 is specified, Cloud Build will use a standard disk size.

Parameter
Name Description
var int|string
Returns
Type Description
$this