pub struct KanidmGroupSpec {
pub kanidm_ref: KanidmRef,
pub kanidm_name: Option<String>,
pub entry_managed_by: Option<String>,
pub mail: Option<Vec<String>>,
pub members: Option<Vec<String>>,
pub posix_attributes: Option<KanidmGroupPosixAttributes>,
pub account_policy: Option<KanidmGroupAccountPolicy>,
}Expand description
Groups are a collection of other entities that exist within Kanidm. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Fields§
§kanidm_ref: KanidmRef§kanidm_name: Option<String>The name of the entity in Kanidm. If not specified, the Kubernetes resource name is used.
Use this field to manage Kanidm entities with names that don’t conform to Kubernetes naming rules
(e.g., entities with underscores like idm_admin or idm_all_persons).
This field is immutable and cannot be changed after creation.
entry_managed_by: Option<String>Optional name/spn of a group or account that have entry manager rights over this group.
mail: Option<Vec<String>>Set the exact list of mail addresses that this group is associated with. The first mail
address in the list is the primary and the remainder are aliases. Setting an empty list
will clear the mail attribute.
members: Option<Vec<String>>Name or SPN of group members. Set the exact list of members that this group should contain, removing any not listed in the set operation. If you want to manage members from the database, do not set them here.
posix_attributes: Option<KanidmGroupPosixAttributes>POSIX attributes for the group account. When specified, the operator will activate them. If omitted, the operator retains the attributes in the database but ceases to manage them.
account_policy: Option<KanidmGroupAccountPolicy>Account policy settings for the group.
When set, the operator will enable account policy on this group and configure the specified settings. Account policy defines security requirements that accounts must meet when they are members of this group.
When an account is affected by multiple policies, the strictest component from each policy is applied.
More info: https://kanidm.github.io/kanidm/stable/accounts/account_policy.html
Trait Implementations§
Source§impl Clone for KanidmGroupSpec
impl Clone for KanidmGroupSpec
Source§fn clone(&self) -> KanidmGroupSpec
fn clone(&self) -> KanidmGroupSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KanidmGroupSpec
impl Debug for KanidmGroupSpec
Source§impl Default for KanidmGroupSpec
impl Default for KanidmGroupSpec
Source§fn default() -> KanidmGroupSpec
fn default() -> KanidmGroupSpec
Source§impl<'de> Deserialize<'de> for KanidmGroupSpec
impl<'de> Deserialize<'de> for KanidmGroupSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for KanidmGroupSpec
impl JsonSchema for KanidmGroupSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for KanidmGroupSpec
impl PartialEq for KanidmGroupSpec
Source§fn eq(&self, other: &KanidmGroupSpec) -> bool
fn eq(&self, other: &KanidmGroupSpec) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for KanidmGroupSpec
impl Serialize for KanidmGroupSpec
impl StructuralPartialEq for KanidmGroupSpec
Auto Trait Implementations§
impl Freeze for KanidmGroupSpec
impl RefUnwindSafe for KanidmGroupSpec
impl Send for KanidmGroupSpec
impl Sync for KanidmGroupSpec
impl Unpin for KanidmGroupSpec
impl UnsafeUnpin for KanidmGroupSpec
impl UnwindSafe for KanidmGroupSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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