authentik-client 2026.2.3

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.3
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// PatchedLifecycleRuleRequest : Mixin to validate that a valid enterprise license exists before allowing to save the object
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchedLifecycleRuleRequest {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "content_type", skip_serializing_if = "Option::is_none")]
    pub content_type: Option<models::ContentTypeEnum>,
    #[serde(
        rename = "object_id",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub object_id: Option<Option<String>>,
    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    #[serde(rename = "grace_period", skip_serializing_if = "Option::is_none")]
    pub grace_period: Option<String>,
    #[serde(rename = "reviewer_groups", skip_serializing_if = "Option::is_none")]
    pub reviewer_groups: Option<Vec<uuid::Uuid>>,
    #[serde(rename = "min_reviewers", skip_serializing_if = "Option::is_none")]
    pub min_reviewers: Option<u16>,
    #[serde(rename = "min_reviewers_is_per_group", skip_serializing_if = "Option::is_none")]
    pub min_reviewers_is_per_group: Option<bool>,
    #[serde(rename = "reviewers", skip_serializing_if = "Option::is_none")]
    pub reviewers: Option<Vec<uuid::Uuid>>,
    /// Select which transports should be used to notify the reviewers. If none are selected, the notification will only be shown in the authentik UI.
    #[serde(rename = "notification_transports", skip_serializing_if = "Option::is_none")]
    pub notification_transports: Option<Vec<uuid::Uuid>>,
}

impl PatchedLifecycleRuleRequest {
    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
    pub fn new() -> PatchedLifecycleRuleRequest {
        PatchedLifecycleRuleRequest {
            name: None,
            content_type: None,
            object_id: None,
            interval: None,
            grace_period: None,
            reviewer_groups: None,
            min_reviewers: None,
            min_reviewers_is_per_group: None,
            reviewers: None,
            notification_transports: None,
        }
    }
}