1.7.1 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class PscInstanceConfig.

PscInstanceConfig contains PSC related configuration at an
instance level.

Generated from protobuf message `google.cloud.alloydb.v1.Instance.PscInstanceConfig`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1 \\ Instance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_attachment_link` | `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>` |
| `↳ allowed_consumer_projects` | `string[]` Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. |
| `↳ psc_dns_name` | `string` Output only. The DNS name of the instance for PSC connectivity. Name convention: |
| `↳ psc_interface_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.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_auto_connections` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscAutoConnectionConfig>` Optional. Configurations for setting up PSC service automation. |

### getServiceAttachmentLink

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>`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAttachmentLink

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>`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAllowedConsumerProjects

Optional. List of consumer projects that are allowed to create
PSC endpoints to service-attachments to this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setAllowedConsumerProjects

Optional. List of consumer projects that are allowed to create
PSC endpoints to service-attachments to this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscDnsName

Output only. The DNS name of the instance for PSC connectivity.

Name convention:


| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPscDnsName

Output only. The DNS name of the instance for PSC connectivity.

Name convention:


| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscInterfaceConfigs

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** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscInterfaceConfig>` |   |

### setPscInterfaceConfigs

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscInterfaceConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscAutoConnections

Optional. Configurations for setting up PSC service automation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscAutoConnectionConfig>` |   |

### setPscAutoConnections

Optional. Configurations for setting up PSC service automation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscAutoConnectionConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |