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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchedEndpointDeviceRequest {
    #[serde(rename = "device_uuid", skip_serializing_if = "Option::is_none")]
    pub device_uuid: Option<uuid::Uuid>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(
        rename = "access_group",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub access_group: Option<Option<uuid::Uuid>>,
    #[serde(rename = "access_group_obj", skip_serializing_if = "Option::is_none")]
    pub access_group_obj: Option<models::DeviceAccessGroupRequest>,
    #[serde(rename = "expiring", skip_serializing_if = "Option::is_none")]
    pub expiring: Option<bool>,
    #[serde(
        rename = "expires",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub expires: Option<Option<String>>,
    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
    pub attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl PatchedEndpointDeviceRequest {
    pub fn new() -> PatchedEndpointDeviceRequest {
        PatchedEndpointDeviceRequest {
            device_uuid: None,
            name: None,
            access_group: None,
            access_group_obj: None,
            expiring: None,
            expires: None,
            attributes: None,
        }
    }
}