# Google Cloud Tpu V2 Client - Class AccessConfig (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class AccessConfig.

An access config attached to the TPU worker.

Generated from protobuf message `google.cloud.tpu.v2.AccessConfig`

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ external_ip` | `string` Output only. An external IP address associated with the TPU worker. |

### getExternalIp

Output only. An external IP address associated with the TPU worker.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setExternalIp

Output only. An external IP address associated with the TPU worker.

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

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