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 \ PrivatePoolV1ConfigMethods
__construct
Constructor.
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.
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.
var
string
$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.
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.
var
int|string
$this