#[non_exhaustive]pub struct SqlActiveDirectoryConfig {
pub kind: String,
pub domain: String,
pub mode: ActiveDirectoryMode,
pub dns_servers: Vec<String>,
pub admin_credential_secret_name: String,
pub organizational_unit: String,
/* private fields */
}Expand description
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringThis is always sql#activeDirectoryConfig.
domain: StringThe name of the domain (e.g., mydomain.com).
mode: ActiveDirectoryModeOptional. The mode of the Active Directory configuration.
dns_servers: Vec<String>Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
admin_credential_secret_name: StringOptional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
organizational_unit: StringOptional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
Implementations§
Source§impl SqlActiveDirectoryConfig
impl SqlActiveDirectoryConfig
pub fn new() -> Self
Sourcepub fn set_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_domain<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mode<T: Into<ActiveDirectoryMode>>(self, v: T) -> Self
pub fn set_mode<T: Into<ActiveDirectoryMode>>(self, v: T) -> Self
Sets the value of mode.
§Example
ⓘ
use google_cloud_sql_v1::model::sql_active_directory_config::ActiveDirectoryMode;
let x0 = SqlActiveDirectoryConfig::new().set_mode(ActiveDirectoryMode::ManagedActiveDirectory);
let x1 = SqlActiveDirectoryConfig::new().set_mode(ActiveDirectoryMode::CustomerManagedActiveDirectory);Sourcepub fn set_dns_servers<T, V>(self, v: T) -> Self
pub fn set_dns_servers<T, V>(self, v: T) -> Self
Sets the value of dns_servers.
§Example
ⓘ
let x = SqlActiveDirectoryConfig::new().set_dns_servers(["a", "b", "c"]);Sourcepub fn set_admin_credential_secret_name<T: Into<String>>(self, v: T) -> Self
pub fn set_admin_credential_secret_name<T: Into<String>>(self, v: T) -> Self
Sets the value of admin_credential_secret_name.
§Example
ⓘ
let x = SqlActiveDirectoryConfig::new().set_admin_credential_secret_name("example");Sourcepub fn set_organizational_unit<T: Into<String>>(self, v: T) -> Self
pub fn set_organizational_unit<T: Into<String>>(self, v: T) -> Self
Sets the value of organizational_unit.
§Example
ⓘ
let x = SqlActiveDirectoryConfig::new().set_organizational_unit("example");Trait Implementations§
Source§impl Clone for SqlActiveDirectoryConfig
impl Clone for SqlActiveDirectoryConfig
Source§fn clone(&self) -> SqlActiveDirectoryConfig
fn clone(&self) -> SqlActiveDirectoryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlActiveDirectoryConfig
impl Debug for SqlActiveDirectoryConfig
Source§impl Default for SqlActiveDirectoryConfig
impl Default for SqlActiveDirectoryConfig
Source§fn default() -> SqlActiveDirectoryConfig
fn default() -> SqlActiveDirectoryConfig
Returns the “default value” for a type. Read more
Source§impl Message for SqlActiveDirectoryConfig
impl Message for SqlActiveDirectoryConfig
Source§impl PartialEq for SqlActiveDirectoryConfig
impl PartialEq for SqlActiveDirectoryConfig
impl StructuralPartialEq for SqlActiveDirectoryConfig
Auto Trait Implementations§
impl Freeze for SqlActiveDirectoryConfig
impl RefUnwindSafe for SqlActiveDirectoryConfig
impl Send for SqlActiveDirectoryConfig
impl Sync for SqlActiveDirectoryConfig
impl Unpin for SqlActiveDirectoryConfig
impl UnwindSafe for SqlActiveDirectoryConfig
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
Mutably borrows from an owned value. Read more