Struct google_api_proto::google::cloud::sql::v1beta4::ConnectSettings
source · pub struct ConnectSettings {
pub kind: String,
pub server_ca_cert: Option<SslCert>,
pub ip_addresses: Vec<IpMapping>,
pub region: String,
pub database_version: i32,
pub backend_type: i32,
pub psc_enabled: bool,
pub dns_name: String,
}
Expand description
Connect settings retrieval response.
Fields§
§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. e.g. us-central1
, europe-west1
.
The region cannot be changed after instance creation.
database_version: i32
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: i32
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.
Implementations§
source§impl ConnectSettings
impl ConnectSettings
sourcepub fn database_version(&self) -> SqlDatabaseVersion
pub fn database_version(&self) -> SqlDatabaseVersion
Returns the enum value of database_version
, or the default if the field is set to an invalid enum value.
sourcepub fn set_database_version(&mut self, value: SqlDatabaseVersion)
pub fn set_database_version(&mut self, value: SqlDatabaseVersion)
Sets database_version
to the provided enum value.
sourcepub fn backend_type(&self) -> SqlBackendType
pub fn backend_type(&self) -> SqlBackendType
Returns the enum value of backend_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_backend_type(&mut self, value: SqlBackendType)
pub fn set_backend_type(&mut self, value: SqlBackendType)
Sets backend_type
to the provided enum value.
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 moresource§impl Debug for ConnectSettings
impl Debug for ConnectSettings
source§impl Default for ConnectSettings
impl Default for ConnectSettings
source§impl Message for ConnectSettings
impl Message for ConnectSettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConnectSettings
impl PartialEq for ConnectSettings
source§fn eq(&self, other: &ConnectSettings) -> bool
fn eq(&self, other: &ConnectSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectSettings
Auto Trait Implementations§
impl Freeze for ConnectSettings
impl RefUnwindSafe for ConnectSettings
impl Send for ConnectSettings
impl Sync for ConnectSettings
impl Unpin for ConnectSettings
impl UnwindSafe for ConnectSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request