/*
* Account API
*
* # Introduction The Account API allows you to manage projects. Project is Scaleway’s resource management feature. Designed to help you organize your infrastructure and cloud services, the feature allows resources to be isolated and grouped into specific projects.
*
* The version of the OpenAPI document: v2
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateSshKeyRequest {
/// The name of the SSH key. Max length is 1000
#[serde(rename = "name")]
pub name: String,
/// SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000
#[serde(rename = "public_key")]
pub public_key: String,
/// Project owning the resource
#[serde(rename = "project_id")]
pub project_id: String,
}
impl CreateSshKeyRequest {
pub fn new(name: String, public_key: String, project_id: String) -> CreateSshKeyRequest {
CreateSshKeyRequest {
name,
public_key,
project_id,
}
}
}