Google Cloud AlloyDB for PostgreSQL V1 Client - Class PscAutoConnectionConfig (1.3.0)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class PscAutoConnectionConfig.

Configuration for setting up PSC service automation. Consumer projects in the configs will be allowlisted automatically for the instance.

Generated from protobuf message google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig

Namespace

Google \ Cloud \ AlloyDb \ V1 \ Instance

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ consumer_project string

The consumer project to which the PSC service automation endpoint will be created.

↳ consumer_network string

The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project.

↳ ip_address string

Output only. The IP address of the PSC service automation endpoint.

↳ status string

Output only. The status of the PSC service automation connection.

↳ consumer_network_status string

Output only. The status of the service connection policy.

getConsumerProject

The consumer project to which the PSC service automation endpoint will be created.

Returns
Type Description
string

setConsumerProject

The consumer project to which the PSC service automation endpoint will be created.

Parameter
Name Description
var string
Returns
Type Description
$this

getConsumerNetwork

The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".

The consumer network might be hosted a different project than the consumer project.

Returns
Type Description
string

setConsumerNetwork

The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default".

The consumer network might be hosted a different project than the consumer project.

Parameter
Name Description
var string
Returns
Type Description
$this

getIpAddress

Output only. The IP address of the PSC service automation endpoint.

Returns
Type Description
string

setIpAddress

Output only. The IP address of the PSC service automation endpoint.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Output only. The status of the PSC service automation connection.

Returns
Type Description
string

setStatus

Output only. The status of the PSC service automation connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getConsumerNetworkStatus

Output only. The status of the service connection policy.

Returns
Type Description
string

setConsumerNetworkStatus

Output only. The status of the service connection policy.

Parameter
Name Description
var string
Returns
Type Description
$this