Skip to main content

clientapi_pve/models/
nodes_ceph_get_mgr_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 NodesCephGetMgrResponseDataInner {
16
17    /// Address as advertised by the manager; Ceph-formatted (typically 'IP:PORT/NONCE').
18    #[serde(rename = "addr", skip_serializing_if = "Option::is_none")]
19    pub addr: Option<String>,
20
21    /// Full Ceph version string of the manager 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 manager 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 manager'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 manager runs on.
34    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
35    pub host: Option<String>,
36
37    /// The name (ID) for the MGR.
38    #[serde(rename = "name")]
39    pub name: String,
40
41    /// Set if a ceph-mgr@<id> systemd unit is enabled on the hosting node; absent otherwise.
42    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
43    pub service: Option<models::PveBoolean>,
44
45    /// Manager state: 'active' or 'standby' for daemons visible to the mgr cluster, 'stopped' or 'unknown' for configured daemons not currently visible.
46    #[serde(rename = "state")]
47    pub state: String,
48
49
50}
51
52impl NodesCephGetMgrResponseDataInner {
53    pub fn new(name: String, state: String) -> NodesCephGetMgrResponseDataInner {
54        NodesCephGetMgrResponseDataInner {
55            
56            addr: None,
57            
58            ceph_version: None,
59            
60            ceph_version_short: None,
61            
62            direxists: None,
63            
64            host: None,
65            
66            name,
67            
68            service: None,
69            
70            state,
71            
72        }
73    }
74}
75
76