#[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: String
The host and port of the on-premises instance in host:port format
kind: String
This is always sql#onPremisesConfiguration
.
username: String
The username for connecting to on-premises instance.
password: String
The password for connecting to on-premises instance.
ca_certificate: String
PEM representation of the trusted CA’s x509 certificate.
client_certificate: String
PEM representation of the replica’s x509 certificate.
client_key: String
PEM representation of the replica’s private key. The corresponsing public key is encoded in the client’s certificate.
dump_file_path: String
The 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>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_source_instance<T>(self, v: T) -> Selfwhere
T: Into<InstanceReference>,
Sets the value of source_instance.
Sourcepub fn set_or_clear_source_instance<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
pub fn set_or_clear_source_instance<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceReference>,
Sets or clears 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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more