Skip to main content

authentik_client/models/
docker_service_connection_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/// DockerServiceConnectionRequest : DockerServiceConnection Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DockerServiceConnectionRequest {
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    /// 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")]
24    pub url: 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 DockerServiceConnectionRequest {
44    /// DockerServiceConnection Serializer
45    pub fn new(name: String, url: String) -> DockerServiceConnectionRequest {
46        DockerServiceConnectionRequest {
47            name,
48            local: None,
49            url,
50            tls_verification: None,
51            tls_authentication: None,
52        }
53    }
54}