Google Cloud AlloyDB for PostgreSQL V1alpha Client - Class PscInstanceConfig (0.9.0)

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

PscInstanceConfig contains PSC related configuration at an instance level.

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

Namespace

Google \ Cloud \ AlloyDb \ V1alpha \ Instance

Methods

__construct

Constructor.

Parameters
NameDescription
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/

↳ 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\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. 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/

Returns
TypeDescription
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/

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowedConsumerProjects

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedConsumerProjects

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAllowedConsumerNetworks

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedConsumerNetworks

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\AlloyDb\V1alpha\Instance\PscInterfaceConfig>
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getPscEnabled

Optional. Whether PSC connectivity is enabled for this instance.

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

Returns
TypeDescription
bool

setPscEnabled

Optional. Whether PSC connectivity is enabled for this instance.

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this