redfish_codegen/models/license_service/v1_1_0/
license_service.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The LicenseService schema describes the license service and the properties for the service itself with a link to the collection of licenses.  The license service also provides methods for installing licenses in a Redfish service.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct LicenseService {
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(\"#LicenseService.v1_1_0.LicenseService\".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::license_service::v1_1_0::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    /// The number of days prior to a license expiration that a warning message is sent.  A value of zero indicates no warning message is sent.
35    #[serde(rename = "LicenseExpirationWarningDays")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub license_expiration_warning_days: Option<i64>,
38    #[serde(rename = "Licenses")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub licenses: Option<models::odata_v4::IdRef>,
41    #[serde(rename = "Name")]
42    #[serde(skip_deserializing)]
43    pub name: models::resource::Name,
44    #[serde(rename = "Oem")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub oem: Option<models::resource::Oem>,
47    /// An indication of whether this service is enabled.
48    #[serde(rename = "ServiceEnabled")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub service_enabled: Option<bool>,
51}
52
53impl crate::Metadata<'static> for LicenseService {
54    const JSON_SCHEMA: &'static str = "LicenseService.v1_1_0.json";
55}