1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Google Cloud Memorystore for Redis (cluster management) v1 API class PscConnection.

Details of consumer resources in a PSC connection.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.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.Redis.Cluster.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.md.txt)

## Assembly

Google.Cloud.Redis.Cluster.V1.dll

## Constructors

### PscConnection()

    public PscConnection()

### PscConnection(PscConnection)

    public PscConnection(PscConnection other)

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

## Properties

### Address

    public string Address { get; set; }

Required. The IP allocated on the consumer network for the PSC forwarding
rule.

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

### ConnectionType

    public ConnectionType ConnectionType { get; set; }

Output only. Type of the PSC connection.

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

### ForwardingRule

    public string ForwardingRule { get; set; }

Required. The URI of the consumer side forwarding rule.
Example:
projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.

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

### ForwardingRuleAsForwardingRuleName

    public ForwardingRuleName ForwardingRuleAsForwardingRuleName { get; set; }

[ForwardingRuleName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.ForwardingRuleName.md.txt)-typed view over the [ForwardingRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.md.txt#Google_Cloud_Redis_Cluster_V1_PscConnection_ForwardingRule) resource name property.

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

### Network

    public string Network { get; set; }

Required. The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_id}.

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

### NetworkAsNetworkName

    public NetworkName NetworkAsNetworkName { get; set; }

[NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.NetworkName.md.txt)-typed view over the [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.md.txt#Google_Cloud_Redis_Cluster_V1_PscConnection_Network) resource name property.

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

### ProjectId

    public string ProjectId { get; set; }

Optional. Project ID of the consumer project where the forwarding rule is
created in.

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

### PscConnectionId

    public string PscConnectionId { get; set; }

Required. The PSC connection id of the forwarding rule connected to the
service attachment.

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

### PscConnectionStatus

    public PscConnectionStatus PscConnectionStatus { get; set; }

Output only. The status of the PSC connection.
Please note that this value is updated periodically.
To get the latest status of a PSC connection, follow
<https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details>.

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

### ServiceAttachment

    public string ServiceAttachment { get; set; }

Required. The service attachment which is the target of the PSC connection,
in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

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

### ServiceAttachmentAsServiceAttachmentName

    public ServiceAttachmentName ServiceAttachmentAsServiceAttachmentName { get; set; }

[ServiceAttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.ServiceAttachmentName.md.txt)-typed view over the [ServiceAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.Cluster.V1/latest/Google.Cloud.Redis.Cluster.V1.PscConnection.md.txt#Google_Cloud_Redis_Cluster_V1_PscConnection_ServiceAttachment) resource name
property.

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