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 update status and error messages.
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum Update {
    /// This message shall be used to indicate that the update operation transitioned to a job for managing the progress of the operation.
    #[message(message = "The update operation has transitioned to the job at URI '%1'.")]
    #[message(id = "Update.1.0.1.OperationTransitionedToJob")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Follow the referenced job and monitor the job for further updates.")]
    OperationTransitionedToJob(
        /// This argument shall contain the URI of the `Job` resource that is managing the progress of the update operation.
        String,
    ),
    /// This message shall be used to indicate that the component failed to apply an image.
    #[message(message = "Installation of image '%1' to '%2' failed.")]
    #[message(id = "Update.1.0.1.ApplyFailed")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "None.")]
    ApplyFailed(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component applying the image.
        String,
    ),
    /// This message shall be used to indicate that a component is verifying an image.
    #[message(message = "Image '%1' is being verified at '%2'.")]
    #[message(id = "Update.1.0.1.VerifyingAtComponent")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    VerifyingAtComponent(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component verifying the image.
        String,
    ),
    /// This message shall be used to indicate that a resource or device was updated.
    #[message(message = "Device '%1' successfully updated with image '%2'.")]
    #[message(id = "Update.1.0.1.UpdateSuccessful")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    UpdateSuccessful(
        /// This argument shall contain the URI of the resource or a unique name of the device that was updated.
        String,
        /// This argument shall contain the identifier for the image.
        String,
    ),
    /// This message shall be used to indicate that the service failed to transfer an image to a component.
    #[message(message = "Transfer of image '%1' to '%2' failed.")]
    #[message(id = "Update.1.0.1.TransferFailed")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "None.")]
    TransferFailed(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component receiving the image.
        String,
    ),
    /// This message shall be used to indicate that the resource or device is awaiting for an action to proceed with installing an image.
    #[message(message = "Awaiting for an action to proceed with installing image '%1' on '%2'.")]
    #[message(id = "Update.1.0.1.AwaitToUpdate")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Perform the requested action to advance the update operation.")]
    AwaitToUpdate(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component awaiting for an action to install the image.
        String,
    ),
    /// This message shall be used to indicate that the service is transferring an image to a component.
    #[message(message = "Image '%1' is being transferred to '%2'.")]
    #[message(id = "Update.1.0.1.TransferringToComponent")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    TransferringToComponent(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component receiving the image.
        String,
    ),
    /// This message shall be used to indicate that a component is applying an image.
    #[message(message = "Image '%1' is being applied on '%2'.")]
    #[message(id = "Update.1.0.1.ApplyingOnComponent")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    ApplyingOnComponent(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component applying the image.
        String,
    ),
    /// This message shall be used to indicate that the component failed to verify an image.
    #[message(message = "Verification of image '%1' at '%2' failed.")]
    #[message(id = "Update.1.0.1.VerificationFailed")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "None.")]
    VerificationFailed(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component verifying the image.
        String,
    ),
    /// This message shall be used to indicate that an update is in progress.
    #[message(message = "An update is in progress.")]
    #[message(id = "Update.1.0.1.UpdateInProgress")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    UpdateInProgress,

    /// This message shall be used to indicate that a target resource or device for a image has been determined for update.
    #[message(message = "The target device '%1' will be updated with image '%2'.")]
    #[message(id = "Update.1.0.1.TargetDetermined")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    TargetDetermined(
        /// This argument shall contain the URI of the resource or a unique name of the device that will be updated.
        String,
        /// This argument shall contain the identifier for the image.
        String,
    ),
    /// This message shall be used to indicate that all target resources or devices for an update operation have been determined by the service.
    #[message(message = "All the target device to be updated have been determined.")]
    #[message(id = "Update.1.0.1.AllTargetsDetermined")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    AllTargetsDetermined,

    /// This message shall be used to indicate that a component is installing an image.
    #[message(message = "Image '%1' is being installed on '%2'.")]
    #[message(id = "Update.1.0.1.InstallingOnComponent")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    InstallingOnComponent(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component installing the image.
        String,
    ),
    /// This message shall be used to indicate that the component failed to activate the image.
    #[message(message = "Activation of image '%1' on '%2' failed.")]
    #[message(id = "Update.1.0.1.ActivateFailed")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "None.")]
    ActivateFailed(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component activating the image.
        String,
    ),
    /// This message shall be used to indicate that the resource or device is awaiting for an action to proceed with activating an image.
    #[message(message = "Awaiting for an action to proceed with activating image '%1' on '%2'.")]
    #[message(id = "Update.1.0.1.AwaitToActivate")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Perform the requested action to advance the update operation.")]
    AwaitToActivate(
        /// This argument shall contain the identifier for the image.
        String,
        /// This argument shall contain the URI of the resource or a unique name of the component awaiting for an action to activate the image.
        String,
    ),
}