# Network Connectivity V1 API - Class Google::Cloud::NetworkConnectivity::V1::ServiceConnectionMap::ConsumerPscConfig (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Network Connectivity V1 API class Google::Cloud::NetworkConnectivity::V1::ServiceConnectionMap::ConsumerPscConfig.

Allow the producer to specify which consumers can connect to it.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #consumer_instance_project

    def consumer_instance_project() -> ::String

**Returns**

- (::String) --- Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/

### #consumer_instance_project=

    def consumer_instance_project=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/
**Returns**

- (::String) --- Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/

### #disable_global_access

    def disable_global_access() -> ::Boolean

**Returns**

- (::Boolean) --- This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.

### #disable_global_access=

    def disable_global_access=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
**Returns**

- (::Boolean) --- This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.

### #ip_version

    def ip_version() -> ::Google::Cloud::NetworkConnectivity::V1::IPVersion

**Returns**

- ([::Google::Cloud::NetworkConnectivity::V1::IPVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-IPVersion)) --- The requested IP version for the PSC connection.

### #ip_version=

    def ip_version=(value) -> ::Google::Cloud::NetworkConnectivity::V1::IPVersion

**Parameter**

- **value** ([::Google::Cloud::NetworkConnectivity::V1::IPVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-IPVersion)) --- The requested IP version for the PSC connection.
**Returns**

- ([::Google::Cloud::NetworkConnectivity::V1::IPVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-IPVersion)) --- The requested IP version for the PSC connection.

### #network

    def network() -> ::String

**Returns**

- (::String) --- The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
**Returns**

- (::String) --- The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.

### #producer_instance_id

    def producer_instance_id() -> ::String

**Returns**

- (::String) --- Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

### #producer_instance_id=

    def producer_instance_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
**Returns**

- (::String) --- Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.

### #producer_instance_metadata

    def producer_instance_metadata() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Immutable. An immutable map for the producer instance metadata.

### #producer_instance_metadata=

    def producer_instance_metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Immutable. An immutable map for the producer instance metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Immutable. An immutable map for the producer instance metadata.

### #project

    def project() -> ::String

**Returns**

- (::String) --- The consumer project where PSC connections are allowed to be created in.

### #project=

    def project=(value) -> ::String

**Parameter**

- **value** (::String) --- The consumer project where PSC connections are allowed to be created in.
**Returns**

- (::String) --- The consumer project where PSC connections are allowed to be created in.

### #service_attachment_ip_address_map

    def service_attachment_ip_address_map() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.

### #state

    def state() -> ::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionMap::ConsumerPscConfig::State

**Returns**

- ([::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionMap::ConsumerPscConfig::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-ServiceConnectionMap-ConsumerPscConfig-State)) --- Output only. Overall state of PSC Connections management for this consumer psc config.