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

    /// Declare a separate cluster network, OSDs will route heartbeat, object replication and recovery traffic over it
    #[serde(rename = "cluster-network", skip_serializing_if = "Option::is_none")]
    pub cluster_network: Option<String>,

    /// Disable cephx authentication.  WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!
    #[serde(rename = "disable_cephx", skip_serializing_if = "Option::is_none")]
    pub disable_cephx: Option<models::PveBoolean>,

    /// Minimum number of available replicas per object to allow I/O
    #[serde(rename = "min_size", skip_serializing_if = "Option::is_none")]
    pub min_size: Option<i32>,

    /// Use specific network for all ceph related traffic
    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
    pub network: Option<String>,

    /// Placement group bits, used to specify the default number of placement groups.  Depreacted. This setting was deprecated in recent Ceph versions.
    #[serde(rename = "pg_bits", skip_serializing_if = "Option::is_none")]
    pub pg_bits: Option<i32>,

    /// Targeted number of replicas per object
    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
    pub size: Option<i32>,


}

impl NodesCephInitRequest {
    pub fn new() -> NodesCephInitRequest {
        NodesCephInitRequest {
            
            cluster_network: None,
            
            disable_cephx: None,
            
            min_size: None,
            
            network: None,
            
            pg_bits: None,
            
            size: None,
            
        }
    }
}