Skip to main content

clientapi_pve/models/
cluster_ceph_metadata_response_data_mon_value.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClusterCephMetadataResponseDataMonValue {
16
17    /// Bind addresses and ports.
18    #[serde(rename = "addrs", skip_serializing_if = "Option::is_none")]
19    pub addrs: Option<String>,
20
21    /// Ceph release codename currently used.
22    #[serde(rename = "ceph_release")]
23    pub ceph_release: String,
24
25    /// Version info currently used by the service.
26    #[serde(rename = "ceph_version")]
27    pub ceph_version: String,
28
29    /// Short version (numerical) info currently used by the service.
30    #[serde(rename = "ceph_version_short")]
31    pub ceph_version_short: String,
32
33    /// Hostname on which the service is running.
34    #[serde(rename = "hostname")]
35    pub hostname: String,
36
37    /// Memory of the service currently in swap.
38    #[serde(rename = "mem_swap_kb")]
39    pub mem_swap_kb: i64,
40
41    /// Memory consumption of the service.
42    #[serde(rename = "mem_total_kb")]
43    pub mem_total_kb: i64,
44
45    /// Name of the service instance.
46    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
47    pub name: Option<String>,
48
49
50}
51
52impl ClusterCephMetadataResponseDataMonValue {
53    pub fn new(ceph_release: String, ceph_version: String, ceph_version_short: String, hostname: String, mem_swap_kb: i64, mem_total_kb: i64) -> ClusterCephMetadataResponseDataMonValue {
54        ClusterCephMetadataResponseDataMonValue {
55            
56            addrs: None,
57            
58            ceph_release,
59            
60            ceph_version,
61            
62            ceph_version_short,
63            
64            hostname,
65            
66            mem_swap_kb,
67            
68            mem_total_kb,
69            
70            name: None,
71            
72        }
73    }
74}
75
76