authentik_client/models/
patched_docker_service_connection_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.2
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PatchedDockerServiceConnectionRequest : DockerServiceConnection Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedDockerServiceConnectionRequest {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<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    /// Can be in the format of 'unix://<path>' when connecting to a local docker daemon, or 'https://<hostname>:2376' when connecting to a remote system.
23    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
24    pub url: Option<String>,
25    /// CA which the endpoint's Certificate is verified against. Can be left empty for no validation.
26    #[serde(
27        rename = "tls_verification",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub tls_verification: Option<Option<uuid::Uuid>>,
33    /// Certificate/Key used for authentication. Can be left empty for no authentication.
34    #[serde(
35        rename = "tls_authentication",
36        default,
37        with = "::serde_with::rust::double_option",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub tls_authentication: Option<Option<uuid::Uuid>>,
41}
42
43impl PatchedDockerServiceConnectionRequest {
44    /// DockerServiceConnection Serializer
45    pub fn new() -> PatchedDockerServiceConnectionRequest {
46        PatchedDockerServiceConnectionRequest {
47            name: None,
48            local: None,
49            url: None,
50            tls_verification: None,
51            tls_authentication: None,
52        }
53    }
54}