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};

/// NodesCephOsddetailsResponseDataOsd : General information about the OSD
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NodesCephOsddetailsResponseDataOsd {

    /// Address and port used to talk to other OSDs.
    #[serde(rename = "back_addr")]
    pub back_addr: String,

    /// Whether the OSD is encrypted with LUKS via dm-crypt.
    #[serde(rename = "encrypted")]
    pub encrypted: models::PveBoolean,

    /// Address and port used to talk to clients and monitors.
    #[serde(rename = "front_addr")]
    pub front_addr: String,

    /// Heartbeat address and port for other OSDs.
    #[serde(rename = "hb_back_addr")]
    pub hb_back_addr: String,

    /// Heartbeat address and port for clients and monitors.
    #[serde(rename = "hb_front_addr")]
    pub hb_front_addr: String,

    /// Name of the host containing the OSD.
    #[serde(rename = "hostname")]
    pub hostname: String,

    /// ID of the OSD.
    #[serde(rename = "id")]
    pub id: i64,

    /// Proportional set size (PSS) memory usage of the OSD daemon process in bytes; 0 when the process is not running.
    #[serde(rename = "mem_usage")]
    pub mem_usage: i64,

    /// Path to the OSD's data directory.
    #[serde(rename = "osd_data")]
    pub osd_data: String,

    /// The type of object store used.
    #[serde(rename = "osd_objectstore")]
    pub osd_objectstore: String,

    /// OSD process ID; absent if the systemd unit for this OSD is not currently running.
    #[serde(rename = "pid", skip_serializing_if = "Option::is_none")]
    pub pid: Option<i64>,

    /// Ceph version of the OSD service.
    #[serde(rename = "version")]
    pub version: String,


}

impl NodesCephOsddetailsResponseDataOsd {
    /// General information about the OSD
    pub fn new(back_addr: String, encrypted: models::PveBoolean, front_addr: String, hb_back_addr: String, hb_front_addr: String, hostname: String, id: i64, mem_usage: i64, osd_data: String, osd_objectstore: String, version: String) -> NodesCephOsddetailsResponseDataOsd {
        NodesCephOsddetailsResponseDataOsd {
            
            back_addr,
            
            encrypted,
            
            front_addr,
            
            hb_back_addr,
            
            hb_front_addr,
            
            hostname,
            
            id,
            
            mem_usage,
            
            osd_data,
            
            osd_objectstore,
            
            pid: None,
            
            version,
            
        }
    }
}