redfish_codegen/models/registered_client/v1_1_0/
managed_resource.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// A resource managed by a client.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct ManagedResource {
9    /// Indicates whether the subordinate resources of the managed resource are also managed by the registered client.
10    #[serde(rename = "IncludesSubordinates")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub includes_subordinates: Option<bool>,
13    /// The URI of the resource or resource collection managed by the registered client.
14    #[serde(rename = "ManagedResourceURI")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub managed_resource_uri: Option<String>,
17    /// Indicates whether the registered client expects to have exclusive access to the managed resource.
18    #[serde(rename = "PreferExclusive")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub prefer_exclusive: Option<bool>,
21}
22
23impl crate::Metadata<'static> for ManagedResource {
24    const JSON_SCHEMA: &'static str = "RegisteredClient.v1_1_0.json";
25}