1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* 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,
}
}
}