redfish_codegen/models/endpoint_group/v1_3_2/
group_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum GroupType {
6    /// This value shall indicate that the endpoint group contains client (initiator) endpoints.  If the associated endpoints contain the EntityRole property, the EntityRole property shall contain the value `Initiator` or `Both`.
7    Client,
8    /// This value shall indicate that the endpoint group contains server (target) endpoints.  If the associated endpoints contain the EntityRole property, the EntityRole property shall contain the value `Target` or `Both`.
9    Server,
10    /// This value shall indicate that the endpoint group contains initiator endpoints.  If the associated endpoints contain the EntityRole property, the EntityRole property shall contain the value `Initiator` or `Both`. Added in version v1_3_0.
11    Initiator,
12    /// This value shall indicate that the endpoint group contains target endpoints.  If the associated endpoints contain the EntityRole property, the EntityRole property shall contain the value `Target` or `Both`. Added in version v1_3_0.
13    Target,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for GroupType {
18     fn default() -> GroupType {
19        GroupType::Client
20     }
21}
22
23impl crate::Metadata<'static> for GroupType {
24    const JSON_SCHEMA: &'static str = "EndpointGroup.v1_3_2.json";
25}