redfish_codegen/models/log_service/v1_4_0/
collect_diagnostic_data_request_body.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The action to collect the diagnostic data for the given type.  When the diagnostic data is collected, a new log entry will be created and the additional data referenced by the new log entry will contain the diagnostic data.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct CollectDiagnosticDataRequestBody {
10    #[serde(rename = "DiagnosticDataType")]
11    pub diagnostic_data_type: models::log_service::v1_4_0::LogDiagnosticDataTypes,
12    /// The OEM-defined type of diagnostic data to collect.
13    #[serde(rename = "OEMDiagnosticDataType")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub oem_diagnostic_data_type: Option<String>,
16}
17
18impl crate::Metadata<'static> for CollectDiagnosticDataRequestBody {
19    const JSON_SCHEMA: &'static str = "LogService.v1_4_0.json";
20}