pub struct AclAuthMethodBuilder { /* private fields */ }
Expand description
Builder for AclAuthMethod
.
Implementations§
Source§impl AclAuthMethodBuilder
impl AclAuthMethodBuilder
pub fn modify_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name is the identifier for this auth-method and is a required parameter.
Sourcepub fn type(&mut self, value: String) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
Type is the SSO identifier this auth-method is. Nomad currently only supports “oidc” and the API contains ACLAuthMethodTypeOIDC for convenience.
Sourcepub fn max_token_ttl(&mut self, value: TimeDelta) -> &mut Self
pub fn max_token_ttl(&mut self, value: TimeDelta) -> &mut Self
MaxTokenTTL is the maximum life of a token created by this method.
Sourcepub fn _default(&mut self, value: bool) -> &mut Self
pub fn _default(&mut self, value: bool) -> &mut Self
Default identifies whether this is the default auth-method to use when attempting to login without specifying an auth-method name to use.
Sourcepub fn config(&mut self, value: Option<AclAuthMethodConfig>) -> &mut Self
pub fn config(&mut self, value: Option<AclAuthMethodConfig>) -> &mut Self
Config contains the detailed configuration which is specific to the auth-method.
pub fn create_time(&mut self, value: DateTime<Utc>) -> &mut Self
Sourcepub fn token_locality(&mut self, value: String) -> &mut Self
pub fn token_locality(&mut self, value: String) -> &mut Self
Defines whether the auth-method creates a local or global token when performing SSO login. This should be set to either “local” or “global” and the API contains ACLAuthMethodTokenLocalityLocal and ACLAuthMethodTokenLocalityGlobal for convenience.
Sourcepub fn token_name_format(&mut self, value: String) -> &mut Self
pub fn token_name_format(&mut self, value: String) -> &mut Self
TokenNameFormat defines the HIL template to use when building the token name
pub fn create_index(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<AclAuthMethod, AclAuthMethodBuilderError>
pub fn build(&self) -> Result<AclAuthMethod, AclAuthMethodBuilderError>
Trait Implementations§
Source§impl Clone for AclAuthMethodBuilder
impl Clone for AclAuthMethodBuilder
Source§fn clone(&self) -> AclAuthMethodBuilder
fn clone(&self) -> AclAuthMethodBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more