authentik_rust/models/
patched_radius_provider_request.rs1use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedRadiusProviderRequest {
16 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17 pub name: Option<String>,
18 #[serde(rename = "authentication_flow", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20 pub authentication_flow: Option<Option<uuid::Uuid>>,
21 #[serde(rename = "authorization_flow", skip_serializing_if = "Option::is_none")]
23 pub authorization_flow: Option<uuid::Uuid>,
24 #[serde(rename = "property_mappings", skip_serializing_if = "Option::is_none")]
25 pub property_mappings: Option<Vec<uuid::Uuid>>,
26 #[serde(rename = "client_networks", skip_serializing_if = "Option::is_none")]
28 pub client_networks: Option<String>,
29 #[serde(rename = "shared_secret", skip_serializing_if = "Option::is_none")]
31 pub shared_secret: Option<String>,
32 #[serde(rename = "mfa_support", skip_serializing_if = "Option::is_none")]
34 pub mfa_support: Option<bool>,
35}
36
37impl PatchedRadiusProviderRequest {
38 pub fn new() -> PatchedRadiusProviderRequest {
40 PatchedRadiusProviderRequest {
41 name: None,
42 authentication_flow: None,
43 authorization_flow: None,
44 property_mappings: None,
45 client_networks: None,
46 shared_secret: None,
47 mfa_support: None,
48 }
49 }
50}
51