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 messagegoogle.cloud.sql.v1.PscConfig
Namespace
Google \ Cloud \ Sql \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ psc_enabled
bool
Whether PSC connectivity is enabled for this instance.
↳ allowed_consumer_projects
array
Optional. The 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
Type
Description
bool
hasPscEnabled
clearPscEnabled
setPscEnabled
Whether PSC connectivity is enabled for this instance.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getAllowedConsumerProjects
Optional. The 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).
Optional. The 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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Sql Admin V1 Client - Class PscConfig (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.PscConfig)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.PscConfig)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.PscConfig)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.PscConfig)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.PscConfig)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.PscConfig)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.PscConfig)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.PscConfig)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.PscConfig)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.PscConfig)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.PscConfig)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.PscConfig)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.PscConfig)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.PscConfig)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.PscConfig)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.PscConfig)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.PscConfig)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.PscConfig)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.PscConfig) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class PscConfig.\n\nPSC settings for a Cloud SQL instance.\n\nGenerated from protobuf message `google.cloud.sql.v1.PscConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPscEnabled\n\nWhether PSC connectivity is enabled for this instance.\n\n### hasPscEnabled\n\n### clearPscEnabled\n\n### setPscEnabled\n\nWhether PSC connectivity is enabled for this instance.\n\n### getAllowedConsumerProjects\n\nOptional. The list of consumer projects that are allow-listed for PSC\nconnections to this instance. This instance can be connected to with PSC\nfrom any network in these projects.\n\nEach consumer project in this list may be represented by a project number\n(numeric) or by a project id (alphanumeric).\n\n### setAllowedConsumerProjects\n\nOptional. The list of consumer projects that are allow-listed for PSC\nconnections to this instance. This instance can be connected to with PSC\nfrom any network in these projects.\n\nEach consumer project in this list may be represented by a project number\n(numeric) or by a project id (alphanumeric)."]]