redfish_codegen/models/account_service/v1_13_0/
authentication.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The information required to authenticate to the external service.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Authentication {
10    #[serde(rename = "AuthenticationType")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub authentication_type: Option<models::account_service::v1_13_0::AuthenticationTypes>,
13    /// Specifies the encryption key.
14    #[serde(rename = "EncryptionKey")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub encryption_key: Option<String>,
17    /// Indicates if the EncryptionKey property is set.
18    #[serde(rename = "EncryptionKeySet")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub encryption_key_set: Option<bool>,
21    /// The Base64-encoded version of the Kerberos keytab for this service.  A PATCH or PUT operation writes the keytab.  This property is `null` in responses.
22    #[serde(rename = "KerberosKeytab")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub kerberos_keytab: Option<String>,
25    #[serde(rename = "Oem")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub oem: Option<models::resource::Oem>,
28    /// The password for this service.  A PATCH or PUT request writes the password.  This property is `null` in responses.
29    #[serde(rename = "Password")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub password: Option<String>,
32    /// The token for this service.  A PATCH or PUT operation writes the token.  This property is `null` in responses.
33    #[serde(rename = "Token")]
34    #[serde(default, skip_serializing_if = "Option::is_none")]
35    pub token: Option<String>,
36    /// The user name for the service.
37    #[serde(rename = "Username")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub username: Option<String>,
40}
41
42impl crate::Metadata<'static> for Authentication {
43    const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
44}