# AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::Instance::PscInstanceConfig (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::Instance::PscInstanceConfig.

PscInstanceConfig contains PSC related configuration at an
instance level.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allowed_consumer_projects

    def allowed_consumer_projects() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

### #allowed_consumer_projects=

    def allowed_consumer_projects=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
**Returns**

- (::Array\<::String\>) --- Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

### #psc_auto_connections

    def psc_auto_connections() -> ::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscAutoConnectionConfig>

**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscAutoConnectionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscAutoConnectionConfig)\>) --- Optional. Configurations for setting up PSC service automation.

### #psc_auto_connections=

    def psc_auto_connections=(value) -> ::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscAutoConnectionConfig>

**Parameter**

- **value** (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscAutoConnectionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscAutoConnectionConfig)\>) --- Optional. Configurations for setting up PSC service automation.
**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscAutoConnectionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscAutoConnectionConfig)\>) --- Optional. Configurations for setting up PSC service automation.

### #psc_dns_name

    def psc_dns_name() -> ::String

**Returns**

- (::String) --- Output only. The DNS name of the instance for PSC connectivity. Name convention:

### #psc_interface_configs

    def psc_interface_configs() -> ::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>

**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscInterfaceConfig)\>) --- Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.

### #psc_interface_configs=

    def psc_interface_configs=(value) -> ::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>

**Parameter**

- **value** (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscInterfaceConfig)\>) --- Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-PscInterfaceConfig)\>) --- Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.

### #service_attachment_link

    def service_attachment_link() -> ::String

**Returns**

- (::String) --- Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`