# Memorystore V1BETA API - Class Google::Cloud::Memorystore::V1beta::PscAutoConnection (v0.12.0)

0.12.0 (latest) 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1BETA API class Google::Cloud::Memorystore::V1beta::PscAutoConnection.

Details of consumer resources in a PSC connection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #connection_type

    def connection_type() -> ::Google::Cloud::Memorystore::V1beta::ConnectionType

**Returns**

- ([::Google::Cloud::Memorystore::V1beta::ConnectionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-ConnectionType)) --- Output only. Type of the PSC connection.

### #forwarding_rule

    def forwarding_rule() -> ::String

**Returns**

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

### #ip_address

    def ip_address() -> ::String

**Returns**

- (::String) --- Output only. The IP allocated on the consumer network for the PSC forwarding rule.

### #network

    def network() -> ::String

**Returns**

- (::String) --- Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.
**Returns**

- (::String) --- Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.

### #project_id

    def project_id() -> ::String

**Returns**

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

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.
**Returns**

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

### #psc_connection_id

    def psc_connection_id() -> ::String

**Returns**

- (::String) --- Output only. The PSC connection id of the forwarding rule connected to the service attachment.

### #psc_connection_status

    def psc_connection_status() -> ::Google::Cloud::Memorystore::V1beta::PscConnectionStatus

**Returns**

- ([::Google::Cloud::Memorystore::V1beta::PscConnectionStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-PscConnectionStatus)) --- 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.

### #service_attachment

    def service_attachment() -> ::String

**Returns**

- (::String) --- 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}.