redfish_codegen/models/certificate/v1_7_0/
rekey_request_body.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// This action generates a new key-pair for a certificate and produces a certificate signing request.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct RekeyRequestBody {
9    /// The challenge password to apply to the certificate for revocation requests.
10    #[serde(rename = "ChallengePassword")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub challenge_password: Option<String>,
13    /// The length of the key, in bits, if needed based on the KeyPairAlgorithm parameter value.
14    #[serde(rename = "KeyBitLength")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub key_bit_length: Option<i64>,
17    /// The curve ID to use with the key, if needed based on the KeyPairAlgorithm parameter value.
18    #[serde(rename = "KeyCurveId")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub key_curve_id: Option<String>,
21    /// The type of key-pair for use with signing algorithms.
22    #[serde(rename = "KeyPairAlgorithm")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub key_pair_algorithm: Option<String>,
25}
26
27impl crate::Metadata<'static> for RekeyRequestBody {
28    const JSON_SCHEMA: &'static str = "Certificate.v1_7_0.json";
29}