redfish_codegen/models/aggregation_source/v1_3_1/
generate_ssh_identity_key_pair_request_body.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This action generates a new SSH identity key-pair to be used with this aggregation source.  The generated public key is stored in the Key resource referenced by the PublicIdentityKey property in SSHSettings.  Any existing key-pair is deleted and replace by the new key-pair.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct GenerateSSHIdentityKeyPairRequestBody {
10    #[serde(rename = "Curve")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub curve: Option<models::aggregation_source::v1_3_1::ECDSACurveType>,
13    /// The length of the SSH key, in bits, if the KeyType parameter contains `RSA`.
14    #[serde(rename = "KeyLength")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub key_length: Option<i64>,
17    #[serde(rename = "KeyType")]
18    pub key_type: models::aggregation_source::v1_3_1::SSHKeyType,
19}
20
21impl crate::Metadata<'static> for GenerateSSHIdentityKeyPairRequestBody {
22    const JSON_SCHEMA: &'static str = "AggregationSource.v1_3_1.json";
23}