Skip to main content

akeyless_api/models/
gateway_update_ldap_auth_config.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GatewayUpdateLdapAuthConfig : gatewayUpdateLdapAuth is a command that updates ldap auth config
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GatewayUpdateLdapAuthConfig {
17    /// The access ID of the Ldap auth method
18    #[serde(rename = "access-id", skip_serializing_if = "Option::is_none")]
19    pub access_id: Option<String>,
20    /// Bind DN
21    #[serde(rename = "bind-dn", skip_serializing_if = "Option::is_none")]
22    pub bind_dn: Option<String>,
23    /// Bind DN Password
24    #[serde(rename = "bind-dn-password", skip_serializing_if = "Option::is_none")]
25    pub bind_dn_password: Option<String>,
26    /// Group Attr
27    #[serde(rename = "group-attr", skip_serializing_if = "Option::is_none")]
28    pub group_attr: Option<String>,
29    /// Group Dn
30    #[serde(rename = "group-dn", skip_serializing_if = "Option::is_none")]
31    pub group_dn: Option<String>,
32    /// Group Filter
33    #[serde(rename = "group-filter", skip_serializing_if = "Option::is_none")]
34    pub group_filter: Option<String>,
35    /// Set output format to JSON
36    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
37    pub json: Option<bool>,
38    /// LDAP CA Certificate (base64 encoded)
39    #[serde(rename = "ldap-ca-cert", skip_serializing_if = "Option::is_none")]
40    pub ldap_ca_cert: Option<String>,
41    /// Enable Ldap [true/false]
42    #[serde(rename = "ldap-enable", skip_serializing_if = "Option::is_none")]
43    pub ldap_enable: Option<String>,
44    /// LDAP Server URL, e.g. ldap://planetexpress.com:389
45    #[serde(rename = "ldap-url", skip_serializing_if = "Option::is_none")]
46    pub ldap_url: Option<String>,
47    /// The private key (base64 encoded), associated with the public key defined in the Ldap auth
48    #[serde(rename = "signing-key-data", skip_serializing_if = "Option::is_none")]
49    pub signing_key_data: Option<String>,
50    /// Authentication token (see `/auth` and `/configure`)
51    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
52    pub token: Option<String>,
53    /// The universal identity token, Required only for universal_identity authentication
54    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
55    pub uid_token: Option<String>,
56    /// User Attribute
57    #[serde(rename = "user-attribute", skip_serializing_if = "Option::is_none")]
58    pub user_attribute: Option<String>,
59    /// User DN
60    #[serde(rename = "user-dn", skip_serializing_if = "Option::is_none")]
61    pub user_dn: Option<String>,
62}
63
64impl GatewayUpdateLdapAuthConfig {
65    /// gatewayUpdateLdapAuth is a command that updates ldap auth config
66    pub fn new() -> GatewayUpdateLdapAuthConfig {
67        GatewayUpdateLdapAuthConfig {
68            access_id: None,
69            bind_dn: None,
70            bind_dn_password: None,
71            group_attr: None,
72            group_dn: None,
73            group_filter: None,
74            json: None,
75            ldap_ca_cert: None,
76            ldap_enable: None,
77            ldap_url: None,
78            signing_key_data: None,
79            token: None,
80            uid_token: None,
81            user_attribute: None,
82            user_dn: None,
83        }
84    }
85}
86