redfish_codegen/models/task/v1_7_1/
task_state.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum TaskState {
6    /// This value shall represent that the task is newly created, but has not started.
7    New,
8    /// This value shall represent that the task is starting.
9    Starting,
10    /// This value shall represent that the task is executing.
11    Running,
12    /// This value shall represent that the task has been suspended but is expected to restart and is therefore not complete.
13    Suspended,
14    /// This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.
15    Interrupted,
16    /// This value shall represent that the task is pending some condition and has not yet begun to execute.
17    Pending,
18    /// This value shall represent that the task is stopping but is not yet complete.
19    Stopping,
20    /// This value shall represent that the task completed successfully or with warnings.
21    Completed,
22    /// This value shall represent that the task is complete because an operator killed it.
23    Killed,
24    /// This value shall represent that the task completed with errors.
25    Exception,
26    /// This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.
27    Service,
28    /// This value shall represent that the task is in the process of being cancelled. Added in version v1_2_0.
29    Cancelling,
30    /// This value shall represent that either a DELETE operation on a task monitor or Task resource or by an internal process cancelled the task. Added in version v1_2_0.
31    Cancelled,
32}
33
34#[allow(clippy::derivable_impls)]
35impl Default for TaskState {
36     fn default() -> TaskState {
37        TaskState::New
38     }
39}
40
41impl crate::Metadata<'static> for TaskState {
42    const JSON_SCHEMA: &'static str = "Task.v1_7_1.json";
43}