Skip to main content

clientapi_pve/models/
nodes_ceph_listmon_response_data_inner.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 NodesCephListmonResponseDataInner {
16
17    /// Address as advertised by the monitor; Ceph-formatted (typically 'IP:PORT/NONCE', possibly as a messenger-v2 vector depending on Ceph version and ceph.conf shape).
18    #[serde(rename = "addr", skip_serializing_if = "Option::is_none")]
19    pub addr: Option<String>,
20
21    /// Full Ceph version string of the monitor daemon.
22    #[serde(rename = "ceph_version", skip_serializing_if = "Option::is_none")]
23    pub ceph_version: Option<String>,
24
25    /// Short Ceph version string of the monitor daemon (e.g. '19.2.0').
26    #[serde(rename = "ceph_version_short", skip_serializing_if = "Option::is_none")]
27    pub ceph_version_short: Option<String>,
28
29    /// Set when the monitor's data directory exists on this node.
30    #[serde(rename = "direxists", skip_serializing_if = "Option::is_none")]
31    pub direxists: Option<models::PveBoolean>,
32
33    /// Host the monitor runs on.
34    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
35    pub host: Option<String>,
36
37    /// Monitor id (typically the hostname).
38    #[serde(rename = "name")]
39    pub name: String,
40
41    /// Set when the monitor is part of the current quorum.
42    #[serde(rename = "quorum", skip_serializing_if = "Option::is_none")]
43    pub quorum: Option<models::PveBoolean>,
44
45    /// Rank of the monitor within the mon map.
46    #[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
47    pub rank: Option<i64>,
48
49    /// Set if a ceph-mon@<id> systemd unit is enabled on the hosting node; absent otherwise.
50    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
51    pub service: Option<models::PveBoolean>,
52
53    /// Run state of the monitor: 'running' (in quorum), 'stopped' (systemd unit configured but daemon not visible to the cluster), or 'unknown' (no rados access).
54    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
55    pub state: Option<String>,
56
57
58}
59
60impl NodesCephListmonResponseDataInner {
61    pub fn new(name: String) -> NodesCephListmonResponseDataInner {
62        NodesCephListmonResponseDataInner {
63            
64            addr: None,
65            
66            ceph_version: None,
67            
68            ceph_version_short: None,
69            
70            direxists: None,
71            
72            host: None,
73            
74            name,
75            
76            quorum: None,
77            
78            rank: None,
79            
80            service: None,
81            
82            state: None,
83            
84        }
85    }
86}
87
88