# Cloud Build V1 API - Class Google::Cloud::Build::V1::PrivatePoolV1Config::WorkerConfig (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::PrivatePoolV1Config::WorkerConfig.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disk_size_gb

    def disk_size_gb() -> ::Integer

**Returns**

- (::Integer) --- Size of the disk attached to the worker, in GB. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of up to 4000. If `0` is specified, Cloud Build will use a standard disk size.

### #disk_size_gb=

    def disk_size_gb=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Size of the disk attached to the worker, in GB. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of up to 4000. If `0` is specified, Cloud Build will use a standard disk size.
**Returns**

- (::Integer) --- Size of the disk attached to the worker, in GB. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). Specify a value of up to 4000. If `0` is specified, Cloud Build will use a standard disk size.

### #enable_nested_virtualization

    def enable_nested_virtualization() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Enable nested virtualization on the worker, if supported by the machine type. By default, nested virtualization is disabled.

### #enable_nested_virtualization=

    def enable_nested_virtualization=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Enable nested virtualization on the worker, if supported by the machine type. By default, nested virtualization is disabled.
**Returns**

- (::Boolean) --- Optional. Enable nested virtualization on the worker, if supported by the machine type. By default, nested virtualization is disabled.

### #machine_type

    def machine_type() -> ::String

**Returns**

- (::String) --- Optional. Machine type of a worker, such as `e2-medium`. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.

### #machine_type=

    def machine_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Machine type of a worker, such as `e2-medium`. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.
**Returns**

- (::String) --- Optional. Machine type of a worker, such as `e2-medium`. See [Worker pool config
  file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.