# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::PscConnection (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::PscConnection.

Details of consumer resources in a PSC connection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #address

    def address() -> ::String

**Returns**

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

### #address=

    def address=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The IP allocated on the consumer network for the PSC forwarding rule.
**Returns**

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

### #connection_type

    def connection_type() -> ::Google::Cloud::Redis::Cluster::V1::ConnectionType

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1::ConnectionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-ConnectionType)) --- Output only. Type of the PSC connection.

### #forwarding_rule

    def forwarding_rule() -> ::String

**Returns**

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

### #forwarding_rule=

    def forwarding_rule=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
**Returns**

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

### #network

    def network() -> ::String

**Returns**

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

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
**Returns**

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

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- Optional. Project ID of the consumer project where the forwarding rule is created in.

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Project ID of the consumer project where the forwarding rule is created in.
**Returns**

- (::String) --- Optional. Project ID of the consumer project where the forwarding rule is created in.

### #psc_connection_id

    def psc_connection_id() -> ::String

**Returns**

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

### #psc_connection_id=

    def psc_connection_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The PSC connection id of the forwarding rule connected to the service attachment.
**Returns**

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

### #psc_connection_status

    def psc_connection_status() -> ::Google::Cloud::Redis::Cluster::V1::PscConnectionStatus

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1::PscConnectionStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-PscConnectionStatus)) --- 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.

### #service_attachment

    def service_attachment() -> ::String

**Returns**

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

### #service_attachment=

    def service_attachment=(value) -> ::String

**Parameter**

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

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