redfish_codegen/models/session_service/v1_1_8/
session_service.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The SessionService schema describes the session service and its properties, with links to the actual list of sessions.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct SessionService {
10    #[serde(rename = "@odata.context")]
11    #[serde(skip_deserializing)]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub odata_context: Option<models::odata_v4::Context>,
14    #[serde(rename = "@odata.etag")]
15    #[serde(skip_deserializing)]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub odata_etag: Option<models::odata_v4::Etag>,
18    #[serde(rename = "@odata.id")]
19    #[serde(skip_deserializing)]
20    pub odata_id: models::odata_v4::Id,
21    #[serde(rename = "@odata.type")]
22    #[serde(skip_deserializing)]
23    #[derivative(Default(value = "models::odata_v4::Type(\"#SessionService.v1_1_8.SessionService\".to_string())"))]
24    pub odata_type: models::odata_v4::Type,
25    #[serde(rename = "Actions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub actions: Option<models::session_service::v1_1_8::Actions>,
28    #[serde(rename = "Description")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub description: Option<models::resource::Description>,
31    #[serde(rename = "Id")]
32    #[serde(skip_deserializing)]
33    pub id: models::resource::Id,
34    #[serde(rename = "Name")]
35    #[serde(skip_deserializing)]
36    pub name: models::resource::Name,
37    #[serde(rename = "Oem")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub oem: Option<models::resource::Oem>,
40    /// An indication of whether this service is enabled.  If `true`, this service is enabled.  If `false`, it is disabled, and new sessions cannot be created, old sessions cannot be deleted, and established sessions can continue operating.
41    #[serde(rename = "ServiceEnabled")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub service_enabled: Option<bool>,
44    /// The number of seconds of inactivity that a session can have before the session service closes the session due to inactivity.
45    #[serde(rename = "SessionTimeout")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub session_timeout: Option<i64>,
48    #[serde(rename = "Sessions")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub sessions: Option<models::odata_v4::IdRef>,
51    #[serde(rename = "Status")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub status: Option<models::resource::Status>,
54}
55
56impl crate::Metadata<'static> for SessionService {
57    const JSON_SCHEMA: &'static str = "SessionService.v1_1_8.json";
58}