# Google Cloud Network Management V1 Client - Class VpnTunnelInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class VpnTunnelInfo.

For display only. Metadata associated with a Compute Engine VPN tunnel.

Generated from protobuf message `google.cloud.networkmanagement.v1.VpnTunnelInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ display_name` | `string` Name of a VPN tunnel. |
| `↳ uri` | `string` URI of a VPN tunnel. |
| `↳ source_gateway` | `string` URI of the VPN gateway at local end of the tunnel. |
| `↳ remote_gateway` | `string` URI of a VPN gateway at remote end of the tunnel. |
| `↳ remote_gateway_ip` | `string` Remote VPN gateway's IP address. |
| `↳ source_gateway_ip` | `string` Local VPN gateway's IP address. |
| `↳ network_uri` | `string` URI of a Compute Engine network where the VPN tunnel is configured. |
| `↳ region` | `string` Name of a Google Cloud region where this VPN tunnel is configured. |
| `↳ routing_type` | `int` Type of the routing policy. |

### getDisplayName

Name of a VPN tunnel.

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

### setDisplayName

Name of a VPN tunnel.

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

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

### getUri

URI of a VPN tunnel.

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

### setUri

URI of a VPN tunnel.

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

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

### getSourceGateway

URI of the VPN gateway at local end of the tunnel.

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

### setSourceGateway

URI of the VPN gateway at local end of the tunnel.

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

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

### getRemoteGateway

URI of a VPN gateway at remote end of the tunnel.

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

### setRemoteGateway

URI of a VPN gateway at remote end of the tunnel.

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

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

### getRemoteGatewayIp

Remote VPN gateway's IP address.

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

### setRemoteGatewayIp

Remote VPN gateway's IP address.

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

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

### getSourceGatewayIp

Local VPN gateway's IP address.

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

### setSourceGatewayIp

Local VPN gateway's IP address.

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

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

### getNetworkUri

URI of a Compute Engine network where the VPN tunnel is configured.

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

### setNetworkUri

URI of a Compute Engine network where the VPN tunnel is configured.

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

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

### getRegion

Name of a Google Cloud region where this VPN tunnel is configured.

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

### setRegion

Name of a Google Cloud region where this VPN tunnel is configured.

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

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

### getRoutingType

Type of the routing policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RoutingType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpnTunnelInfo.RoutingType). |

### setRoutingType

Type of the routing policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RoutingType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpnTunnelInfo.RoutingType). |

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