Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class PscInterfaceConfig.
Configuration for setting up a PSC interface to enable outbound connectivity.
Generated from protobuf message google.cloud.alloydb.v1.Instance.PscInterfaceConfig
Namespace
Google \ Cloud \ AlloyDb \ V1 \ InstanceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ network_attachment_resource |
string
The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance. |
getNetworkAttachmentResource
The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
The network attachment must be in the same region as the instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNetworkAttachmentResource
The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
The network attachment must be in the same region as the instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|