The cloud region for the instance. For example,us-central1,europe-west1. The region cannot be changed after instance creation.
↳ database_version
int
The database engine type and version. ThedatabaseVersionfield cannot be changed after instance creation. MySQL instances:MYSQL_8_0,MYSQL_5_7(default), orMYSQL_5_6. PostgreSQL instances:POSTGRES_9_6,POSTGRES_10,POSTGRES_11,POSTGRES_12(default),POSTGRES_13, orPOSTGRES_14. SQL Server instances:SQLSERVER_2017_STANDARD(default),SQLSERVER_2017_ENTERPRISE,SQLSERVER_2017_EXPRESS,SQLSERVER_2017_WEB,SQLSERVER_2019_STANDARD,SQLSERVER_2019_ENTERPRISE,SQLSERVER_2019_EXPRESS, orSQLSERVER_2019_WEB.
↳ backend_type
int
SECOND_GEN: Cloud SQL database instance.EXTERNAL: A database server that is not managed by Google. This property is read-only; use thetierproperty in thesettingsobject to determine the database type.
↳ psc_enabled
bool
Whether PSC connectivity is enabled for this instance.
↳ dns_name
string
The dns name of the instance.
↳ server_ca_mode
int
Specify what type of CA is used for the server certificate.
The cloud region for the instance. For example,us-central1,europe-west1. The region cannot be changed after instance creation.
Returns
Type
Description
string
setRegion
The cloud region for the instance. For example,us-central1,europe-west1. The region cannot be changed after instance creation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatabaseVersion
The database engine type and version. ThedatabaseVersionfield cannot be changed after instance creation.
MySQL instances:MYSQL_8_0,MYSQL_5_7(default),
orMYSQL_5_6.
PostgreSQL instances:POSTGRES_9_6,POSTGRES_10,POSTGRES_11,POSTGRES_12(default),POSTGRES_13, orPOSTGRES_14.
SQL Server instances:SQLSERVER_2017_STANDARD(default),SQLSERVER_2017_ENTERPRISE,SQLSERVER_2017_EXPRESS,SQLSERVER_2017_WEB,SQLSERVER_2019_STANDARD,SQLSERVER_2019_ENTERPRISE,SQLSERVER_2019_EXPRESS, orSQLSERVER_2019_WEB.
Returns
Type
Description
int
setDatabaseVersion
The database engine type and version. ThedatabaseVersionfield cannot be changed after instance creation.
MySQL instances:MYSQL_8_0,MYSQL_5_7(default),
orMYSQL_5_6.
PostgreSQL instances:POSTGRES_9_6,POSTGRES_10,POSTGRES_11,POSTGRES_12(default),POSTGRES_13, orPOSTGRES_14.
SQL Server instances:SQLSERVER_2017_STANDARD(default),SQLSERVER_2017_ENTERPRISE,SQLSERVER_2017_EXPRESS,SQLSERVER_2017_WEB,SQLSERVER_2019_STANDARD,SQLSERVER_2019_ENTERPRISE,SQLSERVER_2019_EXPRESS, orSQLSERVER_2019_WEB.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getBackendType
SECOND_GEN: Cloud SQL database instance.
EXTERNAL: A database server that is not managed by Google.
This property is read-only; use thetierproperty in thesettingsobject to determine the database type.
Returns
Type
Description
int
setBackendType
SECOND_GEN: Cloud SQL database instance.
EXTERNAL: A database server that is not managed by Google.
This property is read-only; use thetierproperty in thesettingsobject to determine the database type.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPscEnabled
Whether PSC connectivity is enabled for this instance.
Returns
Type
Description
bool
setPscEnabled
Whether PSC connectivity is enabled for this instance.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getDnsName
The dns name of the instance.
Returns
Type
Description
string
setDnsName
The dns name of the instance.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServerCaMode
Specify what type of CA is used for the server certificate.
Returns
Type
Description
int
setServerCaMode
Specify what type of CA is used for the server certificate.
[[["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 ConnectSettings (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.ConnectSettings)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.ConnectSettings)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.ConnectSettings)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.ConnectSettings)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.ConnectSettings)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.ConnectSettings)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.ConnectSettings)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.ConnectSettings)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.ConnectSettings)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.ConnectSettings)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.ConnectSettings)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.ConnectSettings)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.ConnectSettings)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.ConnectSettings)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.ConnectSettings)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.ConnectSettings)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.ConnectSettings)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.ConnectSettings)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.ConnectSettings) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class ConnectSettings.\n\nConnect settings retrieval response.\n\nGenerated from protobuf message `google.cloud.sql.v1.ConnectSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKind\n\nThis is always `sql#connectSettings`.\n\n### setKind\n\nThis is always `sql#connectSettings`.\n\n### getServerCaCert\n\nSSL configuration.\n\n### hasServerCaCert\n\n### clearServerCaCert\n\n### setServerCaCert\n\nSSL configuration.\n\n### getIpAddresses\n\nThe assigned IP addresses for the instance.\n\n### setIpAddresses\n\nThe assigned IP addresses for the instance.\n\n### getRegion\n\nThe cloud region for the instance. For example, `us-central1`,\n`europe-west1`. The region cannot be changed after instance creation.\n\n### setRegion\n\nThe cloud region for the instance. For example, `us-central1`,\n`europe-west1`. The region cannot be changed after instance creation.\n\n### getDatabaseVersion\n\nThe database engine type and version. The `databaseVersion`\nfield cannot be changed after instance creation.\n\nMySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default),\nor `MYSQL_5_6`.\nPostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,\n`POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`.\nSQL Server instances: `SQLSERVER_2017_STANDARD` (default),\n`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`,\n`SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`,\n`SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or\n`SQLSERVER_2019_WEB`.\n\n### setDatabaseVersion\n\nThe database engine type and version. The `databaseVersion`\nfield cannot be changed after instance creation.\n\nMySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default),\nor `MYSQL_5_6`.\nPostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,\n`POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`.\nSQL Server instances: `SQLSERVER_2017_STANDARD` (default),\n`SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`,\n`SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`,\n`SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or\n`SQLSERVER_2019_WEB`.\n\n### getBackendType\n\n`SECOND_GEN`: Cloud SQL database instance.\n\n`EXTERNAL`: A database server that is not managed by Google.\nThis property is read-only; use the `tier` property in the `settings`\nobject to determine the database type.\n\n### setBackendType\n\n`SECOND_GEN`: Cloud SQL database instance.\n\n`EXTERNAL`: A database server that is not managed by Google.\nThis property is read-only; use the `tier` property in the `settings`\nobject to determine the database type.\n\n### getPscEnabled\n\nWhether PSC connectivity is enabled for this instance.\n\n### setPscEnabled\n\nWhether PSC connectivity is enabled for this instance.\n\n### getDnsName\n\nThe dns name of the instance.\n\n### setDnsName\n\nThe dns name of the instance.\n\n### getServerCaMode\n\nSpecify what type of CA is used for the server certificate.\n\n### setServerCaMode\n\nSpecify what type of CA is used for the server certificate."]]