redfish_codegen/models/drive/v1_17_0/
operations.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// An operation currently running on this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Operations {
10    #[serde(rename = "AssociatedTask")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub associated_task: Option<models::odata_v4::IdRef>,
13    #[serde(rename = "Operation")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub operation: Option<models::volume::OperationType>,
16    /// The name of the operation.
17    #[serde(rename = "OperationName")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub operation_name: Option<String>,
20    /// The percentage of the operation that has been completed.
21    #[serde(rename = "PercentageComplete")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub percentage_complete: Option<i64>,
24}
25
26impl crate::Metadata<'static> for Operations {
27    const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
28}