Google Cloud AlloyDB for PostgreSQL V1beta Client - Class PscInstanceConfig (0.10.1)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1beta Client class PscInstanceConfig.

PscInstanceConfig contains PSC related configuration at an instance level.

Generated from protobuf message google.cloud.alloydb.v1beta.Instance.PscInstanceConfig

Namespace

Google \ Cloud \ AlloyDb \ V1beta \ 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 array

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

↳ allowed_consumer_networks array

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

↳ psc_interface_configs array<Google\Cloud\AlloyDb\V1beta\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. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

↳ outgoing_service_attachment_links array

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

↳ psc_enabled bool

Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.

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

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

getAllowedConsumerNetworks

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAllowedConsumerNetworks

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

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. All the VMs created for the primary instance will share the same configurations. 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. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

Parameter
Name Description
var array<Google\Cloud\AlloyDb\V1beta\Instance\PscInterfaceConfig>
Returns
Type Description
$this

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPscEnabled

Optional. Whether PSC connectivity is enabled for this instance.

This is populated by referencing the value from the parent cluster.

Returns
Type Description
bool

setPscEnabled

Optional. Whether PSC connectivity is enabled for this instance.

This is populated by referencing the value from the parent cluster.

Parameter
Name Description
var bool
Returns
Type Description
$this