Struct google_api_proto::google::privacy::dlp::v2::CloudSqlProperties
source · pub struct CloudSqlProperties {
pub connection_name: String,
pub max_connections: i32,
pub database_engine: i32,
pub credential: Option<Credential>,
}
Expand description
Cloud SQL connection properties.
Fields§
§connection_name: String
Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated.
It is an error to use a connection_name from different project or region
than the one that holds the connection.
For example, a Connection resource for Cloud SQL connection_name
project-id:us-central1:sql-instance
must be created under the parent
projects/project-id/locations/us-central1
max_connections: i32
Required. DLP will limit its connections to max_connections. Must be 2 or greater.
database_engine: i32
Required. The database engine used by the Cloud SQL instance that this connection configures.
credential: Option<Credential>
How to authenticate to the instance.
Implementations§
source§impl CloudSqlProperties
impl CloudSqlProperties
sourcepub fn database_engine(&self) -> DatabaseEngine
pub fn database_engine(&self) -> DatabaseEngine
Returns the enum value of database_engine
, or the default if the field is set to an invalid enum value.
sourcepub fn set_database_engine(&mut self, value: DatabaseEngine)
pub fn set_database_engine(&mut self, value: DatabaseEngine)
Sets database_engine
to the provided enum value.
Trait Implementations§
source§impl Clone for CloudSqlProperties
impl Clone for CloudSqlProperties
source§fn clone(&self) -> CloudSqlProperties
fn clone(&self) -> CloudSqlProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudSqlProperties
impl Debug for CloudSqlProperties
source§impl Default for CloudSqlProperties
impl Default for CloudSqlProperties
source§impl Message for CloudSqlProperties
impl Message for CloudSqlProperties
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 CloudSqlProperties
impl PartialEq for CloudSqlProperties
source§fn eq(&self, other: &CloudSqlProperties) -> bool
fn eq(&self, other: &CloudSqlProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudSqlProperties
Auto Trait Implementations§
impl Freeze for CloudSqlProperties
impl RefUnwindSafe for CloudSqlProperties
impl Send for CloudSqlProperties
impl Sync for CloudSqlProperties
impl Unpin for CloudSqlProperties
impl UnwindSafe for CloudSqlProperties
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