clientapi_pbs/models/nodes_status_get_status_response_data_root.rs
1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/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/// NodesStatusGetStatusResponseDataRoot : Storage space usage information.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodesStatusGetStatusResponseDataRoot {
17
18 /// Available space (bytes).
19 #[serde(rename = "avail")]
20 pub avail: i64,
21
22 /// Total space (bytes).
23 #[serde(rename = "total")]
24 pub total: i64,
25
26 /// Used space (bytes).
27 #[serde(rename = "used")]
28 pub used: i64,
29
30
31}
32
33impl NodesStatusGetStatusResponseDataRoot {
34 /// Storage space usage information.
35 pub fn new(avail: i64, total: i64, used: i64) -> NodesStatusGetStatusResponseDataRoot {
36 NodesStatusGetStatusResponseDataRoot {
37
38 avail,
39
40 total,
41
42 used,
43
44 }
45 }
46}
47
48