#[non_exhaustive]pub struct ConnectSettings {
pub kind: String,
pub server_ca_cert: Option<SslCert>,
pub ip_addresses: Vec<IpMapping>,
pub region: String,
pub database_version: SqlDatabaseVersion,
pub backend_type: SqlBackendType,
pub psc_enabled: bool,
pub dns_name: String,
pub server_ca_mode: CaMode,
/* private fields */
}
Expand description
Connect settings retrieval response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: String
This is always sql#connectSettings
.
server_ca_cert: Option<SslCert>
SSL configuration.
ip_addresses: Vec<IpMapping>
The assigned IP addresses for the instance.
region: String
The cloud region for the instance. For example, us-central1
,
europe-west1
. The region cannot be changed after instance creation.
database_version: SqlDatabaseVersion
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
, 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: SqlBackendType
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.
server_ca_mode: CaMode
Specify what type of CA is used for the server certificate.
Implementations§
Source§impl ConnectSettings
impl ConnectSettings
pub fn new() -> Self
Sourcepub fn set_server_ca_cert<T>(self, v: T) -> Self
pub fn set_server_ca_cert<T>(self, v: T) -> Self
Sets the value of server_ca_cert.
Sourcepub fn set_or_clear_server_ca_cert<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_server_ca_cert<T>(self, v: Option<T>) -> Self
Sets or clears the value of server_ca_cert.
Sourcepub fn set_ip_addresses<T, V>(self, v: T) -> Self
pub fn set_ip_addresses<T, V>(self, v: T) -> Self
Sets the value of ip_addresses.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_database_version<T: Into<SqlDatabaseVersion>>(self, v: T) -> Self
pub fn set_database_version<T: Into<SqlDatabaseVersion>>(self, v: T) -> Self
Sets the value of database_version.
Sourcepub fn set_backend_type<T: Into<SqlBackendType>>(self, v: T) -> Self
pub fn set_backend_type<T: Into<SqlBackendType>>(self, v: T) -> Self
Sets the value of backend_type.
Sourcepub fn set_psc_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_psc_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of psc_enabled.
Sourcepub fn set_dns_name<T: Into<String>>(self, v: T) -> Self
pub fn set_dns_name<T: Into<String>>(self, v: T) -> Self
Sets the value of dns_name.
Sourcepub fn set_server_ca_mode<T: Into<CaMode>>(self, v: T) -> Self
pub fn set_server_ca_mode<T: Into<CaMode>>(self, v: T) -> Self
Sets the value of server_ca_mode.
Trait Implementations§
Source§impl Clone for ConnectSettings
impl Clone for ConnectSettings
Source§fn clone(&self) -> ConnectSettings
fn clone(&self) -> ConnectSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more