redfish_codegen/registries/update/
v1_0_1.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines the update status and error messages.
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum Update {
9    /// This message shall be used to indicate that the update operation transitioned to a job for managing the progress of the operation.
10    #[message(message = "The update operation has transitioned to the job at URI '%1'.")]
11    #[message(id = "Update.1.0.1.OperationTransitionedToJob")]
12    #[message(severity = "crate::models::resource::Health::OK")]
13    #[message(resolution = "Follow the referenced job and monitor the job for further updates.")]
14    OperationTransitionedToJob(
15        /// This argument shall contain the URI of the `Job` resource that is managing the progress of the update operation.
16        String,
17    ),
18    /// This message shall be used to indicate that the component failed to apply an image.
19    #[message(message = "Installation of image '%1' to '%2' failed.")]
20    #[message(id = "Update.1.0.1.ApplyFailed")]
21    #[message(severity = "crate::models::resource::Health::Critical")]
22    #[message(resolution = "None.")]
23    ApplyFailed(
24        /// This argument shall contain the identifier for the image.
25        String,
26        /// This argument shall contain the URI of the resource or a unique name of the component applying the image.
27        String,
28    ),
29    /// This message shall be used to indicate that a component is verifying an image.
30    #[message(message = "Image '%1' is being verified at '%2'.")]
31    #[message(id = "Update.1.0.1.VerifyingAtComponent")]
32    #[message(severity = "crate::models::resource::Health::OK")]
33    #[message(resolution = "None.")]
34    VerifyingAtComponent(
35        /// This argument shall contain the identifier for the image.
36        String,
37        /// This argument shall contain the URI of the resource or a unique name of the component verifying the image.
38        String,
39    ),
40    /// This message shall be used to indicate that a resource or device was updated.
41    #[message(message = "Device '%1' successfully updated with image '%2'.")]
42    #[message(id = "Update.1.0.1.UpdateSuccessful")]
43    #[message(severity = "crate::models::resource::Health::OK")]
44    #[message(resolution = "None.")]
45    UpdateSuccessful(
46        /// This argument shall contain the URI of the resource or a unique name of the device that was updated.
47        String,
48        /// This argument shall contain the identifier for the image.
49        String,
50    ),
51    /// This message shall be used to indicate that the service failed to transfer an image to a component.
52    #[message(message = "Transfer of image '%1' to '%2' failed.")]
53    #[message(id = "Update.1.0.1.TransferFailed")]
54    #[message(severity = "crate::models::resource::Health::Critical")]
55    #[message(resolution = "None.")]
56    TransferFailed(
57        /// This argument shall contain the identifier for the image.
58        String,
59        /// This argument shall contain the URI of the resource or a unique name of the component receiving the image.
60        String,
61    ),
62    /// This message shall be used to indicate that the resource or device is awaiting for an action to proceed with installing an image.
63    #[message(message = "Awaiting for an action to proceed with installing image '%1' on '%2'.")]
64    #[message(id = "Update.1.0.1.AwaitToUpdate")]
65    #[message(severity = "crate::models::resource::Health::OK")]
66    #[message(resolution = "Perform the requested action to advance the update operation.")]
67    AwaitToUpdate(
68        /// This argument shall contain the identifier for the image.
69        String,
70        /// This argument shall contain the URI of the resource or a unique name of the component awaiting for an action to install the image.
71        String,
72    ),
73    /// This message shall be used to indicate that the service is transferring an image to a component.
74    #[message(message = "Image '%1' is being transferred to '%2'.")]
75    #[message(id = "Update.1.0.1.TransferringToComponent")]
76    #[message(severity = "crate::models::resource::Health::OK")]
77    #[message(resolution = "None.")]
78    TransferringToComponent(
79        /// This argument shall contain the identifier for the image.
80        String,
81        /// This argument shall contain the URI of the resource or a unique name of the component receiving the image.
82        String,
83    ),
84    /// This message shall be used to indicate that a component is applying an image.
85    #[message(message = "Image '%1' is being applied on '%2'.")]
86    #[message(id = "Update.1.0.1.ApplyingOnComponent")]
87    #[message(severity = "crate::models::resource::Health::OK")]
88    #[message(resolution = "None.")]
89    ApplyingOnComponent(
90        /// This argument shall contain the identifier for the image.
91        String,
92        /// This argument shall contain the URI of the resource or a unique name of the component applying the image.
93        String,
94    ),
95    /// This message shall be used to indicate that the component failed to verify an image.
96    #[message(message = "Verification of image '%1' at '%2' failed.")]
97    #[message(id = "Update.1.0.1.VerificationFailed")]
98    #[message(severity = "crate::models::resource::Health::Critical")]
99    #[message(resolution = "None.")]
100    VerificationFailed(
101        /// This argument shall contain the identifier for the image.
102        String,
103        /// This argument shall contain the URI of the resource or a unique name of the component verifying the image.
104        String,
105    ),
106    /// This message shall be used to indicate that an update is in progress.
107    #[message(message = "An update is in progress.")]
108    #[message(id = "Update.1.0.1.UpdateInProgress")]
109    #[message(severity = "crate::models::resource::Health::OK")]
110    #[message(resolution = "None.")]
111    UpdateInProgress,
112
113    /// This message shall be used to indicate that a target resource or device for a image has been determined for update.
114    #[message(message = "The target device '%1' will be updated with image '%2'.")]
115    #[message(id = "Update.1.0.1.TargetDetermined")]
116    #[message(severity = "crate::models::resource::Health::OK")]
117    #[message(resolution = "None.")]
118    TargetDetermined(
119        /// This argument shall contain the URI of the resource or a unique name of the device that will be updated.
120        String,
121        /// This argument shall contain the identifier for the image.
122        String,
123    ),
124    /// This message shall be used to indicate that all target resources or devices for an update operation have been determined by the service.
125    #[message(message = "All the target device to be updated have been determined.")]
126    #[message(id = "Update.1.0.1.AllTargetsDetermined")]
127    #[message(severity = "crate::models::resource::Health::OK")]
128    #[message(resolution = "None.")]
129    AllTargetsDetermined,
130
131    /// This message shall be used to indicate that a component is installing an image.
132    #[message(message = "Image '%1' is being installed on '%2'.")]
133    #[message(id = "Update.1.0.1.InstallingOnComponent")]
134    #[message(severity = "crate::models::resource::Health::OK")]
135    #[message(resolution = "None.")]
136    InstallingOnComponent(
137        /// This argument shall contain the identifier for the image.
138        String,
139        /// This argument shall contain the URI of the resource or a unique name of the component installing the image.
140        String,
141    ),
142    /// This message shall be used to indicate that the component failed to activate the image.
143    #[message(message = "Activation of image '%1' on '%2' failed.")]
144    #[message(id = "Update.1.0.1.ActivateFailed")]
145    #[message(severity = "crate::models::resource::Health::Critical")]
146    #[message(resolution = "None.")]
147    ActivateFailed(
148        /// This argument shall contain the identifier for the image.
149        String,
150        /// This argument shall contain the URI of the resource or a unique name of the component activating the image.
151        String,
152    ),
153    /// This message shall be used to indicate that the resource or device is awaiting for an action to proceed with activating an image.
154    #[message(message = "Awaiting for an action to proceed with activating image '%1' on '%2'.")]
155    #[message(id = "Update.1.0.1.AwaitToActivate")]
156    #[message(severity = "crate::models::resource::Health::OK")]
157    #[message(resolution = "Perform the requested action to advance the update operation.")]
158    AwaitToActivate(
159        /// This argument shall contain the identifier for the image.
160        String,
161        /// This argument shall contain the URI of the resource or a unique name of the component awaiting for an action to activate the image.
162        String,
163    ),
164}