redfish_codegen/models/resource/v1_15_0/
durable_name_format.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum DurableNameFormat {
6    /// This durable name shall contain a hexadecimal representation of the Name Address Authority structure, as defined in the T11 Fibre Channel - Framing and Signaling - 3 (FC-FS-3) specification.  The DurableName property shall follow the regular expression pattern '^(([0-9A-Fa-f]{2}){8}){1,2}$', where the most significant octet is first.
7    NAA,
8    /// This durable name shall be in the iSCSI Qualified Name (iQN) format, as defined in RFC3720 and RFC3721.
9    #[serde(rename = "iQN")]
10    IQN,
11    /// This durable name shall contain a hexadecimal representation of the World-Wide Name (WWN) format, as defined in the T11 Fibre Channel Physical and Signaling Interface Specification.  The DurableName property shall follow the regular expression pattern '^([0-9A-Fa-f]{2}[:-]){7}([0-9A-Fa-f]{2})$', where the most significant octet is first.
12    #[serde(rename = "FC_WWN")]
13    FCWWN,
14    /// This durable name shall contain the hexadecimal representation of the UUID, as defined by RFC4122.  The DurableName property shall follow the regular expression pattern '([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'.
15    UUID,
16    /// This durable name shall contain the hexadecimal representation of the IEEE-defined 64-bit Extended Unique Identifier (EUI), as defined in the IEEE's Guidelines for 64-bit Global Identifier (EUI-64) Specification.  The DurableName property shall follow the regular expression pattern '^([0-9A-Fa-f]{2}[:-]){7}([0-9A-Fa-f]{2})$', where the most significant octet is first.
17    EUI,
18    /// This durable name shall be in the NVMe Qualified Name (NQN) format, as defined in the NVN Express over Fabric Specification. Added in version v1_6_0.
19    NQN,
20    /// This durable name shall be in the NVM Namespace Identifier (NSID) format, as defined in the NVN Express Specification. Added in version v1_6_0.
21    NSID,
22    /// This durable name shall be in the Namespace Globally Unique Identifier (NGUID), as defined in the NVN Express Specification.  The DurableName property shall follow the regular expression pattern '^([0-9A-Fa-f]{2}){16}$', where the most significant octet is first. Added in version v1_10_0.
23    NGUID,
24    /// This durable name shall be a media access control address (MAC address), which is a unique identifier assigned to a network interface controller (NIC) for use as a network address.  This value should not be used if a more specific type of identifier is available.  The DurableName property shall follow the regular expression pattern '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$', where the most significant octet is first. Added in version v1_14_0.
25    MACAddress,
26    /// This durable name shall be in the globally unique CXL logical device identifier (GCXLID).  The DurableName property shall follow the regular expression pattern '^([0-9A-Fa-f]{2}-){7}[0-9A-Fa-f]{2}:([0-9A-Fa-f]{4})$', where the first eight hyphen-delimited octets contain the PCIe serial number, where the most significant octet is first, and the remaining 16-bit field contains the CXL Logical Device Identifier, where the most significant byte first. Added in version v1_15_0.
27    GCXLID,
28}
29
30#[allow(clippy::derivable_impls)]
31impl Default for DurableNameFormat {
32     fn default() -> DurableNameFormat {
33        DurableNameFormat::NAA
34     }
35}
36
37impl crate::Metadata<'static> for DurableNameFormat {
38    const JSON_SCHEMA: &'static str = "Resource.v1_15_0.json";
39}