2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class ForwardSshTunnelConnectivity : IMessage<ForwardSshTunnelConnectivity>, IEquatable<ForwardSshTunnelConnectivity>, IDeepCloneable<ForwardSshTunnelConnectivity>, IBufferMessage, IMessage

Reference documentation and code samples for the DataStream v1 API class ForwardSshTunnelConnectivity.

Forward SSH Tunnel connectivity.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ForwardSshTunnelConnectivity

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.ForwardSshTunnelConnectivity.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.ForwardSshTunnelConnectivity.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ForwardSshTunnelConnectivity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.ForwardSshTunnelConnectivity.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Datastream.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.md.txt)

## Assembly

Google.Cloud.Datastream.V1.dll

## Constructors

### ForwardSshTunnelConnectivity()

    public ForwardSshTunnelConnectivity()

### ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity)

    public ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ForwardSshTunnelConnectivity` |

## Properties

### AuthenticationMethodCase

    public ForwardSshTunnelConnectivity.AuthenticationMethodOneofCase AuthenticationMethodCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ForwardSshTunnelConnectivityAuthenticationMethodOneofCase` |   |

### HasPassword

    public bool HasPassword { get; }

Gets whether the "password" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasPrivateKey

    public bool HasPrivateKey { get; }

Gets whether the "private_key" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Hostname

    public string Hostname { get; set; }

Required. Hostname for the SSH tunnel.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Password

    public string Password { get; set; }

Input only. SSH password.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Port

    public int Port { get; set; }

Port for the SSH tunnel, default value is 22.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### PrivateKey

    public string PrivateKey { get; set; }

Input only. SSH private key.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Username

    public string Username { get; set; }

Required. Username for the SSH tunnel.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |