Struct google_api_proto::google::cloud::clouddms::v1::PostgreSqlConnectionProfile
source · pub struct PostgreSqlConnectionProfile {
pub host: String,
pub port: i32,
pub username: String,
pub password: String,
pub password_set: bool,
pub ssl: Option<SslConfig>,
pub cloud_sql_id: String,
pub network_architecture: i32,
pub connectivity: Option<Connectivity>,
}
Expand description
Specifies connection parameters required specifically for PostgreSQL databases.
Fields§
§host: String
Required. The IP or hostname of the source PostgreSQL database.
port: i32
Required. The network port of the source PostgreSQL database.
username: String
Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
password: String
Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
password_set: bool
Output only. Indicates If this connection profile password is stored.
ssl: Option<SslConfig>
SSL configuration for the destination to connect to the source database.
cloud_sql_id: String
If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
network_architecture: i32
Output only. If the source is a Cloud SQL database, this field indicates the network architecture it’s associated with.
connectivity: Option<Connectivity>
Connectivity options used to establish a connection to the database server.
Implementations§
source§impl PostgreSqlConnectionProfile
impl PostgreSqlConnectionProfile
sourcepub fn network_architecture(&self) -> NetworkArchitecture
pub fn network_architecture(&self) -> NetworkArchitecture
Returns the enum value of network_architecture
, or the default if the field is set to an invalid enum value.
sourcepub fn set_network_architecture(&mut self, value: NetworkArchitecture)
pub fn set_network_architecture(&mut self, value: NetworkArchitecture)
Sets network_architecture
to the provided enum value.
Trait Implementations§
source§impl Clone for PostgreSqlConnectionProfile
impl Clone for PostgreSqlConnectionProfile
source§fn clone(&self) -> PostgreSqlConnectionProfile
fn clone(&self) -> PostgreSqlConnectionProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PostgreSqlConnectionProfile
impl Debug for PostgreSqlConnectionProfile
source§impl Message for PostgreSqlConnectionProfile
impl Message for PostgreSqlConnectionProfile
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 PostgreSqlConnectionProfile
impl PartialEq for PostgreSqlConnectionProfile
source§fn eq(&self, other: &PostgreSqlConnectionProfile) -> bool
fn eq(&self, other: &PostgreSqlConnectionProfile) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PostgreSqlConnectionProfile
Auto Trait Implementations§
impl Freeze for PostgreSqlConnectionProfile
impl RefUnwindSafe for PostgreSqlConnectionProfile
impl Send for PostgreSqlConnectionProfile
impl Sync for PostgreSqlConnectionProfile
impl Unpin for PostgreSqlConnectionProfile
impl UnwindSafe for PostgreSqlConnectionProfile
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