Skip to main content

clientapi_pve/models/
nodes_storage_read_status_response_data.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 NodesStorageReadStatusResponseData {
16
17    /// Set when storage is accessible.
18    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
19    pub active: Option<models::PveBoolean>,
20
21    /// Available storage space in bytes.
22    #[serde(rename = "avail", skip_serializing_if = "Option::is_none")]
23    pub avail: Option<i64>,
24
25    /// Allowed storage content types.
26    #[serde(rename = "content")]
27    pub content: String,
28
29    /// Set when storage is enabled (not disabled).
30    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
31    pub enabled: Option<models::PveBoolean>,
32
33    /// Shared flag from storage configuration.
34    #[serde(rename = "shared", skip_serializing_if = "Option::is_none")]
35    pub shared: Option<models::PveBoolean>,
36
37    /// Total storage space in bytes.
38    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
39    pub total: Option<i64>,
40
41    /// Storage type.
42    #[serde(rename = "type")]
43    pub r#type: String,
44
45    /// Used storage space in bytes.
46    #[serde(rename = "used", skip_serializing_if = "Option::is_none")]
47    pub used: Option<i64>,
48
49
50}
51
52impl NodesStorageReadStatusResponseData {
53    pub fn new(content: String, r#type: String) -> NodesStorageReadStatusResponseData {
54        NodesStorageReadStatusResponseData {
55            
56            active: None,
57            
58            avail: None,
59            
60            content,
61            
62            enabled: None,
63            
64            shared: None,
65            
66            total: None,
67            
68            r#type,
69            
70            used: None,
71            
72        }
73    }
74}
75
76