#[non_exhaustive]pub struct OnPremisesConfiguration {
pub host_port: String,
pub kind: String,
pub username: String,
pub password: String,
pub ca_certificate: String,
pub client_certificate: String,
pub client_key: String,
pub dump_file_path: String,
pub source_instance: Option<InstanceReference>,
/* private fields */
}Expand description
On-premises instance configuration.
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.host_port: StringThe host and port of the on-premises instance in host:port format
kind: StringThis is always sql#onPremisesConfiguration.
username: StringThe username for connecting to on-premises instance.
password: StringThe password for connecting to on-premises instance.
ca_certificate: StringPEM representation of the trusted CA’s x509 certificate.
client_certificate: StringPEM representation of the replica’s x509 certificate.
client_key: StringPEM representation of the replica’s private key. The corresponsing public key is encoded in the client’s certificate.
dump_file_path: StringThe dump file to create the Cloud SQL replica.
source_instance: Option<InstanceReference>The reference to Cloud SQL instance if the source is Cloud SQL.
Implementations§
Source§impl OnPremisesConfiguration
impl OnPremisesConfiguration
pub fn new() -> Self
Sourcepub fn set_host_port<T: Into<String>>(self, v: T) -> Self
pub fn set_host_port<T: Into<String>>(self, v: T) -> Self
Sets the value of host_port.
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of password.
Sourcepub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of ca_certificate.
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Sourcepub fn set_dump_file_path<T: Into<String>>(self, v: T) -> Self
pub fn set_dump_file_path<T: Into<String>>(self, v: T) -> Self
Sets the value of dump_file_path.
Sourcepub fn set_source_instance<T: Into<Option<InstanceReference>>>(
self,
v: T,
) -> Self
pub fn set_source_instance<T: Into<Option<InstanceReference>>>( self, v: T, ) -> Self
Sets the value of source_instance.
Trait Implementations§
Source§impl Clone for OnPremisesConfiguration
impl Clone for OnPremisesConfiguration
Source§fn clone(&self) -> OnPremisesConfiguration
fn clone(&self) -> OnPremisesConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more