redfish_codegen/models/resource/reset_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ResetType {
6 /// This value shall indicate the resource will transition to a power on state. Upon successful completion, the PowerState property, if supported, shall contain the value `On`.
7 On,
8 /// This value shall indicate the resource will transition to a power off state. The transition will start immediately. Upon successful completion, the PowerState property, if supported, shall contain the value `Off`.
9 ForceOff,
10 /// This value shall indicate the resource will transition to a power off state. The transition will start after first performing tasks to safely shutdown the resource. For example, when shutting down a computer system, the hosted operating system is allowed to safely shutdown processes and close connections. Upon successful completion, the PowerState property, if supported, shall contain the value `Off`.
11 GracefulShutdown,
12 /// This value shall indicate the resource will transition to a power on state, after transiting through a restart. The transition will start after first performing tasks to safely shutdown the resource. For example, when shutting down a computer system, the hosted operating system is allowed to safely shutting down processes and close connections. Upon successful completion, the PowerState property, if supported, shall contain the value `On`.
13 GracefulRestart,
14 /// This value shall indicate the resource will transition to a power on state, after transiting through a restart. The transition will start immediately. Upon successful completion, the PowerState property, if supported, shall shall contain the value `On`.
15 ForceRestart,
16 /// This value shall indicate the resource will generate a diagnostic interrupt.
17 Nmi,
18 /// This value shall indicate the resource will transition to a power on state. The transition will start immediately. Upon successful completion, the PowerState property shall contain the value `On`.
19 ForceOn,
20 /// This value shall indicate the resource will behave as if the physical power button is pressed. The behavior of pressing the physical power button may be dependent on the state of the unit and the behavior may be configurable.
21 PushPowerButton,
22 /// This value shall indicate the resource will perform a power cycle. If currently in the power on state, the resource will transition to a power off state, then transition to a power on state. If currently in the power off state, the resource will transition to a power on state. Upon successful completion, the PowerState property, if supported, shall contain the value `On`. Added in version v1_4_0.
23 PowerCycle,
24 /// This value shall indicate the resource will have any state information written to persistent memory and then transition to a power off state. Upon successful completion, the PowerState property, if supported, shall contain the value `Off`. Added in version v1_13_0.
25 Suspend,
26 /// This value shall indicate the resource will transition to a paused state. Upon successful completion, the PowerState property, if supported, shall contain the value `Paused`. Added in version v1_13_0.
27 Pause,
28 /// This value shall indicate the resource will transition to a power on state. Upon successful completion, the PowerState property, if supported, shall contain the value `On`. Added in version v1_13_0.
29 Resume,
30}
31
32#[allow(clippy::derivable_impls)]
33impl Default for ResetType {
34 fn default() -> ResetType {
35 ResetType::On
36 }
37}
38
39impl crate::Metadata<'static> for ResetType {
40 const JSON_SCHEMA: &'static str = "Resource.json";
41}