redfish_codegen/models/external_account_provider/v1_6_0/
role_mapping.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The mapping rules that are used to convert the external account providers account information to the local Redfish role.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct RoleMapping {
10    /// The name of the local Redfish role to which to map the remote user or group.
11    #[serde(rename = "LocalRole")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub local_role: Option<String>,
14    #[serde(rename = "MFABypass")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub mfa_bypass: Option<models::account_service::MFABypass>,
17    #[serde(rename = "Oem")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub oem: Option<models::resource::Oem>,
20    /// The name of the remote group, or the remote role in the case of a Redfish service, that maps to the local Redfish role to which this entity links.
21    #[serde(rename = "RemoteGroup")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub remote_group: Option<String>,
24    /// The name of the remote user that maps to the local Redfish role to which this entity links.
25    #[serde(rename = "RemoteUser")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub remote_user: Option<String>,
28}
29
30impl crate::Metadata<'static> for RoleMapping {
31    const JSON_SCHEMA: &'static str = "ExternalAccountProvider.v1_6_0.json";
32}