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 \ InstanceMethods
__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 |
↳ allowed_consumer_projects |
array
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<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<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\Internal\RepeatedField |
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\Internal\RepeatedField |
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<PscInterfaceConfig>
|
Returns | |
---|---|
Type | Description |
$this |
getPscAutoConnections
Optional. Configurations for setting up PSC service automation.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPscAutoConnections
Optional. Configurations for setting up PSC service automation.
Parameter | |
---|---|
Name | Description |
var |
array<PscAutoConnectionConfig>
|
Returns | |
---|---|
Type | Description |
$this |