clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/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 NodesDisksCreateZfsRequest {

    /// Configure a datastore using the zpool.
    #[serde(rename = "add-datastore", skip_serializing_if = "Option::is_none")]
    pub add_datastore: Option<bool>,

    /// Pool sector size exponent.
    #[serde(rename = "ashift", skip_serializing_if = "Option::is_none")]
    pub ashift: Option<i32>,

    /// The ZFS compression algorithm to use.
    #[serde(rename = "compression", skip_serializing_if = "Option::is_none")]
    pub compression: Option<models::PbsNodesDisksCompressionEnum>,

    /// A list of disk names, comma separated.
    #[serde(rename = "devices")]
    pub devices: Box<models::PbsDevicesField>,

    /// Datastore name.
    #[serde(rename = "name")]
    pub name: String,

    /// The ZFS RAID level to use.
    #[serde(rename = "raidlevel")]
    pub raidlevel: models::PbsNodesDisksRaidlevelEnum,


}

impl NodesDisksCreateZfsRequest {
    pub fn new(devices: models::PbsDevicesField, name: String, raidlevel: models::PbsNodesDisksRaidlevelEnum) -> NodesDisksCreateZfsRequest {
        NodesDisksCreateZfsRequest {
            
            add_datastore: None,
            
            ashift: None,
            
            compression: None,
            
            devices: Box::new(devices),
            
            name,
            
            raidlevel,
            
        }
    }
}