redfish_codegen/registries/license/
v1_0_2.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines the license status and error messages.
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum License {
9    /// This message shall be used to indicate that a license has been installed.  Existing licenses may have been updated or otherwise affected by the installation.
10    #[message(message = "The license '%1' has been installed.")]
11    #[message(id = "License.1.0.2.LicenseInstalled")]
12    #[message(severity = "crate::models::resource::Health::OK")]
13    #[message(resolution = "None.")]
14    LicenseInstalled(
15        /// This argument shall contain the human readable identifier of the license.
16        String,
17    ),
18    /// This message shall be used to indicate the number of days remaining on a license before expiration.
19    #[message(message = "The license '%1' will expire in %2 days.")]
20    #[message(id = "License.1.0.2.DaysBeforeExpiration")]
21    #[message(severity = "crate::models::resource::Health::OK")]
22    #[message(resolution = "None.")]
23    DaysBeforeExpiration(
24        /// This argument shall contain the human readable identifier of the license.
25        String,
26        /// This argument shall contain the number of days before the license expires.
27        f64,
28    ),
29    /// This message shall be used to indicate that the license is not applicable to the target.
30    #[message(message = "The license is not applicable to the target.")]
31    #[message(id = "License.1.0.2.NotApplicableToTarget")]
32    #[message(severity = "crate::models::resource::Health::Critical")]
33    #[message(resolution = "Check the license compatibility or applicability to the specified target.")]
34    NotApplicableToTarget,
35
36    /// This message shall be used to indicate that one or more targets need to be specified with the license.
37    #[message(message = "The license requires targets to be specified.")]
38    #[message(id = "License.1.0.2.TargetsRequired")]
39    #[message(severity = "crate::models::resource::Health::Critical")]
40    #[message(resolution = "Add `AuthorizedDevices` to `Links` and resubmit the request.")]
41    TargetsRequired,
42
43    /// This message shall be used to indicate that the service failed to install the license.
44    #[message(message = "Failed to install the license.  Reason: %1.")]
45    #[message(id = "License.1.0.2.InstallFailed")]
46    #[message(severity = "crate::models::resource::Health::Critical")]
47    #[message(resolution = "None.")]
48    InstallFailed(
49        /// This argument shall contain the reason for the license installation failure.
50        String,
51    ),
52    /// This message shall be used to indicate that a license has expired and its functionality has been disabled.
53    #[message(message = "The license '%1' has expired.")]
54    #[message(id = "License.1.0.2.Expired")]
55    #[message(severity = "crate::models::resource::Health::Warning")]
56    #[message(resolution = "None.")]
57    Expired(
58        /// This argument shall contain the human readable identifier of the license.
59        String,
60    ),
61    /// This message shall be used to indicate that a license has expired and entered its grace period.
62    #[message(message = "The license '%1' has expired, %2 day grace period before licensed functionality is disabled.")]
63    #[message(id = "License.1.0.2.GracePeriod")]
64    #[message(severity = "crate::models::resource::Health::Warning")]
65    #[message(resolution = "None.")]
66    GracePeriod(
67        /// This argument shall contain the human readable identifier of the license.
68        String,
69        /// This argument shall contain the number day of grace period for the licensed functionality.
70        f64,
71    ),
72    /// This message shall be used to indicate that the content of the license was not recognized, is corrupted, or is invalid.
73    #[message(message = "The content of the license was not recognized, is corrupted, or is invalid.")]
74    #[message(id = "License.1.0.2.InvalidLicense")]
75    #[message(severity = "crate::models::resource::Health::Critical")]
76    #[message(resolution = "Verify the license content is correct and resubmit the request.")]
77    InvalidLicense,
78
79}