redfish_codegen/models/account_service/v1_13_0/certificate_mapping_attribute.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum CertificateMappingAttribute {
6 /// This value shall indicate the service matches the entire certificate with a Certificate resource subordinate to a ManagerAccount resource or the entire certificate matches the appropriate field from an external account provider.
7 Whole,
8 /// This value shall indicate the service matches the RFC5280-defined 'commonName' attribute in the provided certificate to the UserName property in a ManagerAccount resource or the appropriate field from an external account provider.
9 CommonName,
10 /// This value shall indicate the service matches the User Principal Name (UPN) field in the provided certificate to the UserName property in a ManagerAccount resource or the appropriate field from an external account provider.
11 UserPrincipalName,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for CertificateMappingAttribute {
16 fn default() -> CertificateMappingAttribute {
17 CertificateMappingAttribute::Whole
18 }
19}
20
21impl crate::Metadata<'static> for CertificateMappingAttribute {
22 const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
23}