authentik_client/models/
kubernetes_service_connection_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.0
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// KubernetesServiceConnectionRequest : KubernetesServiceConnection Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct KubernetesServiceConnectionRequest {
17    #[serde(rename = "name")]
18    pub name: String,
19    /// If enabled, use the local connection. Required Docker socket/Kubernetes Integration
20    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
21    pub local: Option<bool>,
22    /// Paste your kubeconfig here. authentik will automatically use the currently selected context.
23    #[serde(rename = "kubeconfig", skip_serializing_if = "Option::is_none")]
24    pub kubeconfig: Option<std::collections::HashMap<String, serde_json::Value>>,
25    /// Verify SSL Certificates of the Kubernetes API endpoint
26    #[serde(rename = "verify_ssl", skip_serializing_if = "Option::is_none")]
27    pub verify_ssl: Option<bool>,
28}
29
30impl KubernetesServiceConnectionRequest {
31    /// KubernetesServiceConnection Serializer
32    pub fn new(name: String) -> KubernetesServiceConnectionRequest {
33        KubernetesServiceConnectionRequest {
34            name,
35            local: None,
36            kubeconfig: None,
37            verify_ssl: None,
38        }
39    }
40}