# Google Cloud Container V1 Client - Class EphemeralStorageLocalSsdConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class EphemeralStorageLocalSsdConfig.

EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
storage using Local SSDs.

Generated from protobuf message `google.container.v1.EphemeralStorageLocalSsdConfig`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ local_ssd_count` | `int` Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. A zero (or unset) value has different meanings depending on machine type being used: 1. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: <https://cloud.google.com/compute/docs/disks/local-ssd> for more information. 2. For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn't support local ssds), 0 will be provisioned. See <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds> for more info. |
| `↳ data_cache_count` | `int` Number of local SSDs to use for GKE Data Cache. |

### getLocalSsdCount

Number of local SSDs to use to back ephemeral storage. Uses NVMe
interfaces.

A zero (or unset) value has different meanings depending on machine type
being used:

1. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: <https://cloud.google.com/compute/docs/disks/local-ssd> for more information.
2. For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn't support local ssds), 0 will be provisioned. See <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds> for more info.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLocalSsdCount

Number of local SSDs to use to back ephemeral storage. Uses NVMe
interfaces.

A zero (or unset) value has different meanings depending on machine type
being used:

1. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: <https://cloud.google.com/compute/docs/disks/local-ssd> for more information.
2. For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn't support local ssds), 0 will be provisioned. See <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds> for more info.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataCacheCount

Number of local SSDs to use for GKE Data Cache.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setDataCacheCount

Number of local SSDs to use for GKE Data Cache.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |