redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// This action installs one or more licenses from a remote file.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct InstallRequestBody {
    /// An array of links to the devices to be authorized by the license.
    #[serde(rename = "AuthorizedDevices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub authorized_devices: Option<Vec<models::odata_v4::IdRef>>,
    /// The URI of the license file to install.
    #[serde(rename = "LicenseFileURI")]
    pub license_file_uri: String,
    /// The password to access the URI specified by the LicenseFileURI parameter.
    #[serde(rename = "Password")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    /// An array of links to the managers where the license will be installed.
    #[serde(rename = "TargetServices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_services: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "TransferProtocol")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transfer_protocol: Option<models::license_service::v1_1_0::TransferProtocolType>,
    /// The user name to access the URI specified by the LicenseFileURI parameter.
    #[serde(rename = "Username")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
}

impl crate::Metadata<'static> for InstallRequestBody {
    const JSON_SCHEMA: &'static str = "LicenseService.v1_1_0.json";
}