Google Cloud Sql Admin V1 Client - Class PscConfig (0.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class PscConfig.

PSC settings for a Cloud SQL instance.

Generated from protobuf message google.cloud.sql.v1.PscConfig

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ psc_enabled bool

Whether PSC connectivity is enabled for this instance.

↳ allowed_consumer_projects array

List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).

getPscEnabled

Whether PSC connectivity is enabled for this instance.

Returns
TypeDescription
bool

hasPscEnabled

clearPscEnabled

setPscEnabled

Whether PSC connectivity is enabled for this instance.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAllowedConsumerProjects

List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.

Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedConsumerProjects

List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.

Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this