Google Cloud Build V1 Client - Class WorkerConfig (0.10.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this