Skip to main content

authentik_client/models/
patched_endpoint_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PatchedEndpointRequest : Endpoint Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedEndpointRequest {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
20    pub provider: Option<i32>,
21    #[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
22    pub protocol: Option<models::ProtocolEnum>,
23    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
24    pub host: Option<String>,
25    #[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
26    pub settings: Option<std::collections::HashMap<String, serde_json::Value>>,
27    #[serde(rename = "property_mappings", skip_serializing_if = "Option::is_none")]
28    pub property_mappings: Option<Vec<uuid::Uuid>>,
29    #[serde(rename = "auth_mode", skip_serializing_if = "Option::is_none")]
30    pub auth_mode: Option<models::EndpointAuthModeEnum>,
31    #[serde(rename = "maximum_connections", skip_serializing_if = "Option::is_none")]
32    pub maximum_connections: Option<i32>,
33}
34
35impl PatchedEndpointRequest {
36    /// Endpoint Serializer
37    pub fn new() -> PatchedEndpointRequest {
38        PatchedEndpointRequest {
39            name: None,
40            provider: None,
41            protocol: None,
42            host: None,
43            settings: None,
44            property_mappings: None,
45            auth_mode: None,
46            maximum_connections: None,
47        }
48    }
49}