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 StorageUpdateStorageRequest {

    /// ZFS block size
    #[serde(rename = "blocksize", skip_serializing_if = "Option::is_none")]
    pub blocksize: Option<String>,

    /// Set I/O bandwidth limit for various operations (in KiB/s).
    #[serde(rename = "bwlimit", skip_serializing_if = "Option::is_none")]
    pub bwlimit: Option<Box<models::PveBwlimitField>>,

    /// host group for comstar views
    #[serde(rename = "comstar_hg", skip_serializing_if = "Option::is_none")]
    pub comstar_hg: Option<String>,

    /// target group for comstar views
    #[serde(rename = "comstar_tg", skip_serializing_if = "Option::is_none")]
    pub comstar_tg: Option<String>,

    /// Allowed content types.  NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. 
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,

    /// Overrides for default content type directories.
    #[serde(rename = "content-dirs", skip_serializing_if = "Option::is_none")]
    pub content_dirs: Option<String>,

    /// Create the base directory if it doesn't exist.
    #[serde(rename = "create-base-path", skip_serializing_if = "Option::is_none")]
    pub create_base_path: Option<models::PveBoolean>,

    /// Populate the directory with the default structure.
    #[serde(rename = "create-subdirs", skip_serializing_if = "Option::is_none")]
    pub create_subdirs: Option<models::PveBoolean>,

    /// Data Pool (for erasure coding only)
    #[serde(rename = "data-pool", skip_serializing_if = "Option::is_none")]
    pub data_pool: Option<String>,

    /// A list of settings you want to delete.
    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
    pub delete: Option<String>,

    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<String>,

    /// Flag to disable the storage.
    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
    pub disable: Option<models::PveBoolean>,

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

    /// Encryption key. Use 'autogen' to generate one automatically without passphrase.
    #[serde(rename = "encryption-key", skip_serializing_if = "Option::is_none")]
    pub encryption_key: Option<String>,

    /// Certificate SHA 256 fingerprint.
    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
    pub fingerprint: Option<String>,

    /// Default image format.
    #[serde(rename = "format", skip_serializing_if = "Option::is_none")]
    pub format: Option<models::PveFormatFormatEnum>,

    /// The Ceph filesystem name.
    #[serde(rename = "fs-name", skip_serializing_if = "Option::is_none")]
    pub fs_name: Option<String>,

    /// Mount CephFS through FUSE.
    #[serde(rename = "fuse", skip_serializing_if = "Option::is_none")]
    pub fuse: Option<models::PveBoolean>,

    /// Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
    #[serde(rename = "is_mountpoint", skip_serializing_if = "Option::is_none")]
    pub is_mountpoint: Option<String>,

    /// Client keyring contents (for external clusters).
    #[serde(rename = "keyring", skip_serializing_if = "Option::is_none")]
    pub keyring: Option<String>,

    /// Always access rbd through krbd kernel module.
    #[serde(rename = "krbd", skip_serializing_if = "Option::is_none")]
    pub krbd: Option<models::PveBoolean>,

    /// target portal group for Linux LIO targets
    #[serde(rename = "lio_tpg", skip_serializing_if = "Option::is_none")]
    pub lio_tpg: Option<String>,

    /// Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
    #[serde(rename = "master-pubkey", skip_serializing_if = "Option::is_none")]
    pub master_pubkey: Option<String>,

    /// Maximal number of protected backups per guest. Use '-1' for unlimited.
    #[serde(rename = "max-protected-backups", skip_serializing_if = "Option::is_none")]
    pub max_protected_backups: Option<i64>,

    /// Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.
    #[serde(rename = "mkdir", skip_serializing_if = "Option::is_none")]
    pub mkdir: Option<models::PveBoolean>,

    /// IP addresses of monitors (for external clusters).
    #[serde(rename = "monhost", skip_serializing_if = "Option::is_none")]
    pub monhost: Option<String>,

    /// mount point
    #[serde(rename = "mountpoint", skip_serializing_if = "Option::is_none")]
    pub mountpoint: Option<String>,

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

    /// Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
    #[serde(rename = "nocow", skip_serializing_if = "Option::is_none")]
    pub nocow: Option<models::PveBoolean>,

    /// List of nodes for which the storage configuration applies.
    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
    pub nodes: Option<String>,

    /// disable write caching on the target
    #[serde(rename = "nowritecache", skip_serializing_if = "Option::is_none")]
    pub nowritecache: Option<models::PveBoolean>,

    /// NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')
    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
    pub options: Option<String>,

    /// Password for accessing the share/datastore.
    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,

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

    /// Use this port to connect to the storage instead of the default one (for example, with PBS or ESXi). For NFS and CIFS, use the 'options' option to configure the port via the mount options.
    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,

    /// Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
    #[serde(rename = "preallocation", skip_serializing_if = "Option::is_none")]
    pub preallocation: Option<models::PvePreallocationEnum>,

    /// The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
    #[serde(rename = "prune-backups", skip_serializing_if = "Option::is_none")]
    pub prune_backups: Option<String>,

    /// Zero-out data when removing LVs.
    #[serde(rename = "saferemove", skip_serializing_if = "Option::is_none")]
    pub saferemove: Option<models::PveBoolean>,

    /// Wipe step size in MiB. It will be capped to the maximum supported by the storage.
    #[serde(rename = "saferemove-stepsize", skip_serializing_if = "Option::is_none")]
    pub saferemove_stepsize: Option<models::PveSaferemoveStepsizeEnum>,

    /// Wipe throughput (cstream -t parameter value).
    #[serde(rename = "saferemove_throughput", skip_serializing_if = "Option::is_none")]
    pub saferemove_throughput: Option<String>,

    /// Server IP or DNS name.
    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
    pub server: Option<String>,

    /// Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
    #[serde(rename = "shared", skip_serializing_if = "Option::is_none")]
    pub shared: Option<models::PveBoolean>,

    /// Disable TLS certificate verification, only enable on fully trusted networks!
    #[serde(rename = "skip-cert-verification", skip_serializing_if = "Option::is_none")]
    pub skip_cert_verification: Option<models::PveBoolean>,

    /// SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
    #[serde(rename = "smbversion", skip_serializing_if = "Option::is_none")]
    pub smbversion: Option<models::PveSmbversionEnum>,

    /// Enable support for creating storage-vendor agnostic snapshot through volume backing-chains.
    #[serde(rename = "snapshot-as-volume-chain", skip_serializing_if = "Option::is_none")]
    pub snapshot_as_volume_chain: Option<models::PveBoolean>,

    /// use sparse volumes
    #[serde(rename = "sparse", skip_serializing_if = "Option::is_none")]
    pub sparse: Option<models::PveBoolean>,

    /// Subdir to mount.
    #[serde(rename = "subdir", skip_serializing_if = "Option::is_none")]
    pub subdir: Option<String>,

    /// Only list logical volumes tagged with 'pve-vm-ID'.
    #[serde(rename = "tagged_only", skip_serializing_if = "Option::is_none")]
    pub tagged_only: Option<models::PveBoolean>,

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

    /// Base path where to look for the created ZFS block devices. Set automatically during creation if not specified. Usually '/dev/zvol'.
    #[serde(rename = "zfs-base-path", skip_serializing_if = "Option::is_none")]
    pub zfs_base_path: Option<String>,


}

impl StorageUpdateStorageRequest {
    pub fn new() -> StorageUpdateStorageRequest {
        StorageUpdateStorageRequest {
            
            blocksize: None,
            
            bwlimit: None,
            
            comstar_hg: None,
            
            comstar_tg: None,
            
            content: None,
            
            content_dirs: None,
            
            create_base_path: None,
            
            create_subdirs: None,
            
            data_pool: None,
            
            delete: None,
            
            digest: None,
            
            disable: None,
            
            domain: None,
            
            encryption_key: None,
            
            fingerprint: None,
            
            format: None,
            
            fs_name: None,
            
            fuse: None,
            
            is_mountpoint: None,
            
            keyring: None,
            
            krbd: None,
            
            lio_tpg: None,
            
            master_pubkey: None,
            
            max_protected_backups: None,
            
            mkdir: None,
            
            monhost: None,
            
            mountpoint: None,
            
            namespace: None,
            
            nocow: None,
            
            nodes: None,
            
            nowritecache: None,
            
            options: None,
            
            password: None,
            
            pool: None,
            
            port: None,
            
            preallocation: None,
            
            prune_backups: None,
            
            saferemove: None,
            
            saferemove_stepsize: None,
            
            saferemove_throughput: None,
            
            server: None,
            
            shared: None,
            
            skip_cert_verification: None,
            
            smbversion: None,
            
            snapshot_as_volume_chain: None,
            
            sparse: None,
            
            subdir: None,
            
            tagged_only: None,
            
            username: None,
            
            zfs_base_path: None,
            
        }
    }
}