clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Virtual Environment API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccessUsersCreateUserRequest {

    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,

    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,

    /// Enable the account (default). You can set this to '0' to disable the account
    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
    pub enable: Option<models::PveBoolean>,

    /// Account expiration date (seconds since epoch). '0' means no expiration date.
    #[serde(rename = "expire", skip_serializing_if = "Option::is_none")]
    pub expire: Option<i64>,

    #[serde(rename = "firstname", skip_serializing_if = "Option::is_none")]
    pub firstname: Option<String>,

    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
    pub groups: Option<String>,

    /// Keys for two factor auth (yubico).
    #[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
    pub keys: Option<String>,

    #[serde(rename = "lastname", skip_serializing_if = "Option::is_none")]
    pub lastname: Option<String>,

    /// Initial password.
    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,

    /// Full User ID, in the `name@realm` format.
    #[serde(rename = "userid")]
    pub userid: String,


}

impl AccessUsersCreateUserRequest {
    pub fn new(userid: String) -> AccessUsersCreateUserRequest {
        AccessUsersCreateUserRequest {
            
            comment: None,
            
            email: None,
            
            enable: None,
            
            expire: None,
            
            firstname: None,
            
            groups: None,
            
            keys: None,
            
            lastname: None,
            
            password: None,
            
            userid,
            
        }
    }
}