public sealed class PrivatePoolV1Config.Types.WorkerConfig : IMessage<PrivatePoolV1Config.Types.WorkerConfig>, IEquatable<PrivatePoolV1Config.Types.WorkerConfig>, IDeepCloneable<PrivatePoolV1Config.Types.WorkerConfig>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Build v1 API class PrivatePoolV1Config.Types.WorkerConfig.
Defines the configuration to be used for creating workers in the pool.
Implements
IMessagePrivatePoolV1ConfigTypesWorkerConfig, IEquatablePrivatePoolV1ConfigTypesWorkerConfig, IDeepCloneablePrivatePoolV1ConfigTypesWorkerConfig, IBufferMessage, IMessageNamespace
Google.Cloud.CloudBuild.V1Assembly
Google.Cloud.CloudBuild.V1.dll
Constructors
WorkerConfig()
public WorkerConfig()WorkerConfig(WorkerConfig)
public WorkerConfig(PrivatePoolV1Config.Types.WorkerConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
PrivatePoolV1ConfigTypesWorkerConfig |
Properties
DiskSizeGb
public long DiskSizeGb { get; set; }Size of the disk attached to the worker, in GB.
See Worker pool config
file.
Specify a value of up to 4000. If 0 is specified, Cloud Build will use
a standard disk size.
| Property Value | |
|---|---|
| Type | Description |
long |
|
EnableNestedVirtualization
public bool EnableNestedVirtualization { get; set; }Optional. Enable nested virtualization on the worker, if supported by the machine type. By default, nested virtualization is disabled.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasEnableNestedVirtualization
public bool HasEnableNestedVirtualization { get; }Gets whether the "enable_nested_virtualization" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MachineType
public string MachineType { get; set; }Optional. Machine type of a worker, such as e2-medium.
See Worker pool config
file.
If left blank, Cloud Build will use a sensible default.
| Property Value | |
|---|---|
| Type | Description |
string |
|