redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use redfish_macros::IntoRedfishMessage;

/// This registry defines the messages for networking devices
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum NetworkDevice {
    /// This message shall be used to indicate that a network cable has been inserted.  This message shall not be sent for a backplane connection.
    #[message(message = "A network cable has been inserted into network adapter '%1' port '%2'.")]
    #[message(id = "NetworkDevice.1.0.2.CableInserted")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
    CableInserted(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter into which a cable has been plugged.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port into which a cable has been plugged.
        String,
    ),
    /// This message shall be used to indicate that a network connection is newly established, but that the link speed is lower than provisioned for the channel.
    #[message(message = "A degraded network connection has been established for network adapter '%1' port '%2' function '%3'.")]
    #[message(id = "NetworkDevice.1.0.2.DegradedConnectionEstablished")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
    DegradedConnectionEstablished(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
        String,
    ),
    /// This message shall be used to indicate that a network connection has repeatedly been established and dropped.  This message shall not be repeated more than once in any 24 hour period.
    #[message(message = "The network connection for network adapter '%1' port '%2' function '%3' has been established and dropped '%4' times in the last '%5' minutes.")]
    #[message(id = "NetworkDevice.1.0.2.LinkFlapDetected")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Contact the network administrator for problem resolution.")]
    LinkFlapDetected(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
        String,
        /// The value of this argument shall be a number representing the count of link establishment/disconnection cycles.
        f64,
        /// The value of this argument shall be a number representing the number of minutes over which link flapping activity has been detected.
        f64,
    ),
    /// This message shall be used to indicate that a network cable has been removed.  This message shall not be sent for a backplane connection.
    #[message(message = "A cable has been removed from network adapter '%1' port '%2'.")]
    #[message(id = "NetworkDevice.1.0.2.CableRemoved")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
    CableRemoved(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a cable has been unplugged.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a cable has been unplugged.
        String,
    ),
    /// This message shall be used to indicate that the link for a network connection is no longer intact.
    #[message(message = "The connection is no longer active for network adapter '%1' port '%2' function '%3'.")]
    #[message(id = "NetworkDevice.1.0.2.ConnectionDropped")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
    ConnectionDropped(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a connection has dropped.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a connection has dropped.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function from which a connection has dropped.
        String,
    ),
    /// This message shall be used to indicate that the link for a network connection is newly established.
    #[message(message = "A network connection has been established for network adapter '%1' port '%2' function '%3'.")]
    #[message(id = "NetworkDevice.1.0.2.ConnectionEstablished")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
    ConnectionEstablished(
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
        String,
        /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
        String,
    ),
}