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.2.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(
24        rename = "kubeconfig",
25        default,
26        with = "::serde_with::rust::double_option",
27        skip_serializing_if = "Option::is_none"
28    )]
29    pub kubeconfig: Option<Option<serde_json::Value>>,
30    /// Verify SSL Certificates of the Kubernetes API endpoint
31    #[serde(rename = "verify_ssl", skip_serializing_if = "Option::is_none")]
32    pub verify_ssl: Option<bool>,
33}
34
35impl KubernetesServiceConnectionRequest {
36    /// KubernetesServiceConnection Serializer
37    pub fn new(name: String) -> KubernetesServiceConnectionRequest {
38        KubernetesServiceConnectionRequest {
39            name,
40            local: None,
41            kubeconfig: None,
42            verify_ssl: None,
43        }
44    }
45}