1.1.0 (latest) 1.0.0

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

Reference documentation and code samples for the Memorystore v1 API class PscAutoConnection.

Details of consumer resources in a PSC connection.

## Inheritance

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

## Implements

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

## 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.Memorystore.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1)

## Assembly

Google.Cloud.Memorystore.V1.dll

## Constructors

### PscAutoConnection()

    public PscAutoConnection()

### PscAutoConnection(PscAutoConnection)

    public PscAutoConnection(PscAutoConnection other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnection` |

## Properties

### ConnectionType

    public ConnectionType ConnectionType { get; set; }

Output only. Type of the PSC connection.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ConnectionType` |   |

### ForwardingRule

    public string ForwardingRule { get; set; }

Output only. The URI of the consumer side forwarding rule.
Format:
projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ForwardingRuleAsForwardingRuleName

    public ForwardingRuleName ForwardingRuleAsForwardingRuleName { get; set; }

[ForwardingRuleName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ForwardingRuleName)-typed view over the [ForwardingRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnection#Google_Cloud_Memorystore_V1_PscAutoConnection_ForwardingRule) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ForwardingRuleName` |   |

### HasPort

    public bool HasPort { get; }

Gets whether the "port" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### IpAddress

    public string IpAddress { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Network

    public string Network { get; set; }

Required. The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_name}.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### NetworkAsNetworkName

    public NetworkName NetworkAsNetworkName { get; set; }

[NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.NetworkName)-typed view over the [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnection#Google_Cloud_Memorystore_V1_PscAutoConnection_Network) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.NetworkName` |   |

### Port

    public int Port { get; set; }

Optional. port will only be set for Primary/Reader or Discovery endpoint.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PortsCase

    public PscAutoConnection.PortsOneofCase PortsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnectionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnection.PortsOneofCase` |   |

### ProjectId

    public string ProjectId { get; set; }

Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PscConnectionId

    public string PscConnectionId { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PscConnectionStatus

    public PscConnectionStatus PscConnectionStatus { get; set; }

Output only. The status of the PSC connection: whether a connection exists
and ACTIVE or it no longer exists. Please note that this value is updated
periodically. Please use Private Service Connect APIs for the latest
status.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnectionStatus` |   |

### ServiceAttachment

    public string ServiceAttachment { get; set; }

Output only. 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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceAttachmentAsServiceAttachmentName

    public ServiceAttachmentName ServiceAttachmentAsServiceAttachmentName { get; set; }

[ServiceAttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ServiceAttachmentName)-typed view over the [ServiceAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscAutoConnection#Google_Cloud_Memorystore_V1_PscAutoConnection_ServiceAttachment) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ServiceAttachmentName` |   |