authentik_rust/models/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/// ServiceConnectionRequest : ServiceConnection Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ServiceConnectionRequest {
16 #[serde(rename = "name")]
17 pub name: 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}
22
23impl ServiceConnectionRequest {
24 /// ServiceConnection Serializer
25 pub fn new(name: String) -> ServiceConnectionRequest {
26 ServiceConnectionRequest {
27 name,
28 local: None,
29 }
30 }
31}
32