redfish_codegen/models/job/v1_2_1/
job_state.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum JobState {
6    /// This value shall represent that this job is newly created but the operation has not yet started.
7    New,
8    /// This value shall represent that the operation is starting.
9    Starting,
10    /// This value shall represent that the operation is executing.
11    Running,
12    /// This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete.
13    Suspended,
14    /// This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.
15    Interrupted,
16    /// This value shall represent that the operation is pending some condition and has not yet begun to execute.
17    Pending,
18    /// This value shall represent that the operation is stopping but is not yet complete.
19    Stopping,
20    /// This value shall represent that the operation completed successfully or with warnings.
21    Completed,
22    /// This value shall represent that the operation completed because the job was cancelled by an operator.
23    Cancelled,
24    /// This value shall represent that the operation completed with errors.
25    Exception,
26    /// This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.
27    Service,
28    /// This value shall represent that the operation is waiting for a user to intervene and needs to be manually continued, stopped, or cancelled.
29    UserIntervention,
30    /// This value shall represent that the operation has been resumed from a paused condition and should return to a Running state.
31    Continue,
32}
33
34#[allow(clippy::derivable_impls)]
35impl Default for JobState {
36     fn default() -> JobState {
37        JobState::New
38     }
39}
40
41impl crate::Metadata<'static> for JobState {
42    const JSON_SCHEMA: &'static str = "Job.v1_2_1.json";
43}