authentik_rust/models/
patched_kubernetes_service_connection_request.rs

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