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 composition related events
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum Composition {
    /// This message shall be used to indicate that the `CompositionState` property within the `CompositionStatus` object of a `ResourceBlock` has changed.
    #[message(message = "The composition status of the `ResourceBlock` '%1' has changed.")]
    #[message(id = "Composition.1.1.1.ResourceBlockCompositionStateChanged")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
    ResourceBlockCompositionStateChanged(
        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
        String,
    ),
    /// This message shall be used to indicate that the referenced resource block is not found.
    #[message(message = "Resource block '%1' is not found.")]
    #[message(id = "Composition.1.1.1.ResourceBlockNotFound")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Remove the resource block and resubmit the request.")]
    ResourceBlockNotFound(
        /// The value of this argument shall contain the value of the URI of the resource block that is not found.
        String,
    ),
    /// This message shall be used to indicate that the `Id` of a referenced resource block is no longer valid.
    #[message(message = "Resource block '%1' is not valid.")]
    #[message(id = "Composition.1.1.1.ResourceBlockInvalid")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Remove the resource block and resubmit the request.")]
    ResourceBlockInvalid(
        /// The value of this argument shall contain the value of the `Id` property of the resource block that is no longer valid.
        String,
    ),
    /// This message shall be used to indicate that the requested resources are already reserved in response to a constrained composition request.
    #[message(message = "The requested resources are reserved under reservation '%1'.")]
    #[message(id = "Composition.1.1.1.ConstrainedResourceAlreadyReserved")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Delete the reservation containing the resources and resubmit the request.")]
    ConstrainedResourceAlreadyReserved(
        /// The value of this argument shall contain the value of the `Id` property of the reservation containing the requested resources.
        String,
    ),
    /// This message shall be used to indicate that the `State` property within the `Status` object of a `ResourceBlock` has changed.
    #[message(message = "The state of the `ResourceBlock` '%1' has changed.")]
    #[message(id = "Composition.1.1.1.ResourceBlockStateChanged")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
    ResourceBlockStateChanged(
        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
        String,
    ),
    /// This message shall be used to indicate that a resource block is already reserved in response to a specific composition request.
    #[message(message = "Resource block '%1' is already reserved under reservation '%2'.")]
    #[message(id = "Composition.1.1.1.SpecifiedResourceAlreadyReserved")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Delete the reservation containing the resource block or select a different resource block and resubmit the request.")]
    SpecifiedResourceAlreadyReserved(
        /// The value of this argument shall contain the value of the `Id` property of the resource block that is already reserved.
        String,
        /// The value of this argument shall contain the value of the `Id` property of the reservation containing the requested resource.
        String,
    ),
    /// This message shall be used to indicate that the manifest provided for the `Compose` action contains a stanza with `Content` that could not be processed.
    #[message(message = "The provided manifest for the `Compose` action of type %1 contains a stanza with `Id` of value '%2' with a `Content` parameter that could not be processed.")]
    #[message(id = "Composition.1.1.1.UnableToProcessStanzaRequest")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Add the `Content` parameter to the stanza or remove the stanza, and resubmit the request.")]
    UnableToProcessStanzaRequest(
        /// The value of this argument shall contain the value of the `RequestType` parameter of the `Compose` action.
        String,
        /// The value of this argument shall contain the value of the `Id` parameter of the stanza.
        String,
    ),
    /// This message shall be used to indicate that entries found in the `ResourceBlocks` array within the `Links` object for a resource zone have been added or removed.
    #[message(message = "The membership of resource zone '%1' has been changed.")]
    #[message(id = "Composition.1.1.1.ResourceZoneMembershipChanged")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the resource zone to get the updated information from the service.")]
    ResourceZoneMembershipChanged(
        /// The value of this argument shall contain the value of the `Id` property of the resource zone that has changed.
        String,
    ),
    /// This message shall be used to indicate that the composition request contains a `ResourceBlock` that is unable to participate in more compositions due to restrictions specified in its `CompositionStatus` property.  For example, the `ResourceBlock` has reached its composition limit specified by the `MaxCompositions` property.
    #[message(message = "The `ResourceBlock` with Id '%1' cannot be part of any new compositions.")]
    #[message(id = "Composition.1.1.1.ResourceBlockInUse")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Remove the `ResourceBlock` from the request and resubmit the request.")]
    ResourceBlockInUse(
        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that cannot be part of any new compositions.
        String,
    ),
    /// This message shall be used to indicate that the service could not find a matching resource based on the given parameters.
    #[message(message = "The requested resources of type '%1' are not available for allocation.")]
    #[message(id = "Composition.1.1.1.NoResourceMatch")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Change parameters associated with the resource, such as quantity or performance, and resubmit the request.")]
    NoResourceMatch(
        /// This argument shall contain the schema name of the requested resource.
        String,
    ),
    /// This message shall be used to indicate that the manifest contains no stanzas, or a stanza in the manifest contains no request.
    #[message(message = "The provided manifest is empty or a stanza in the manifest contains no request.")]
    #[message(id = "Composition.1.1.1.EmptyManifest")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Provide a request content for the manifest and resubmit.")]
    EmptyManifest,

    /// This message shall be used to indicate that not all referenced resource blocks are in the same resource zone.
    #[message(message = "The requested resource blocks span multiple resource zones.")]
    #[message(id = "Composition.1.1.1.IncompatibleZone")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Request resource blocks from the same resource zone.")]
    IncompatibleZone,

    /// This message shall be used to indicate that one or more properties of a `ResourceBlock` have changed.  This message shall not be used for cases where a more specific message could be used in its place.
    #[message(message = "The `ResourceBlock` '%1' has changed on the service.")]
    #[message(id = "Composition.1.1.1.ResourceBlockChanged")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
    ResourceBlockChanged(
        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
        String,
    ),
}