Google Cloud Sql Admin V1beta4 Client - Class ConnectSettings (0.11.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 Client class ConnectSettings.

Connect settings retrieval response.

Generated from protobuf message google.cloud.sql.v1beta4.ConnectSettings

Namespace

Google \ Cloud \ Sql \ V1beta4

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

This is always sql#connectSettings.

↳ server_ca_cert Google\Cloud\Sql\V1beta4\SslCert

SSL configuration.

↳ ip_addresses array<Google\Cloud\Sql\V1beta4\IpMapping>

The assigned IP addresses for the instance.

↳ region string

The cloud region for the instance. e.g. us-central1, europe-west1. The region cannot be changed after instance creation.

↳ database_version int

The database engine type and version. The databaseVersion field cannot be changed after instance creation. MySQL instances: MYSQL_8_0, MYSQL_5_7 (default), or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12 (default), POSTGRES_13, or POSTGRES_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, or SQLSERVER_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 the tier property in the settings object 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.

getKind

This is always sql#connectSettings.

Returns
TypeDescription
string

setKind

This is always sql#connectSettings.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServerCaCert

SSL configuration.

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\SslCert|null

hasServerCaCert

clearServerCaCert

setServerCaCert

SSL configuration.

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\SslCert
Returns
TypeDescription
$this

getIpAddresses

The assigned IP addresses for the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpAddresses

The assigned IP addresses for the instance.

Parameter
NameDescription
var array<Google\Cloud\Sql\V1beta4\IpMapping>
Returns
TypeDescription
$this

getRegion

The cloud region for the instance. e.g. us-central1, europe-west1.

The region cannot be changed after instance creation.

Returns
TypeDescription
string

setRegion

The cloud region for the instance. e.g. us-central1, europe-west1.

The region cannot be changed after instance creation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatabaseVersion

The database engine type and version. The databaseVersion field cannot be changed after instance creation.

MySQL instances: MYSQL_8_0, MYSQL_5_7 (default), or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12 (default), POSTGRES_13, or POSTGRES_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, or SQLSERVER_2019_WEB.

Returns
TypeDescription
int

setDatabaseVersion

The database engine type and version. The databaseVersion field cannot be changed after instance creation.

MySQL instances: MYSQL_8_0, MYSQL_5_7 (default), or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12 (default), POSTGRES_13, or POSTGRES_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, or SQLSERVER_2019_WEB.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBackendType

SECOND_GEN: Cloud SQL database instance.

EXTERNAL: A database server that is not managed by Google. This property is read-only; use the tier property in the settings object to determine the database type.

Returns
TypeDescription
int

setBackendType

SECOND_GEN: Cloud SQL database instance.

EXTERNAL: A database server that is not managed by Google. This property is read-only; use the tier property in the settings object to determine the database type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPscEnabled

Whether PSC connectivity is enabled for this instance.

Returns
TypeDescription
bool

setPscEnabled

Whether PSC connectivity is enabled for this instance.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDnsName

The dns name of the instance.

Returns
TypeDescription
string

setDnsName

The dns name of the instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this