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
/// ClusterConfig : General cluster information.

#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct ClusterConfig {
    /// Customer configurable description.
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "devices")]
    pub devices: Vec <crate::models::ClusterConfigDevice>,
    /// Default encoding.
    #[serde(rename = "encoding")]
    pub encoding: String,
    /// Cluster GUID.
    #[serde(rename = "guid")]
    pub guid: String,
    /// If true, the local node is in a group with quorum: It is communicating, storing, and protecting data normally with other nodes in its group.  Under normal circumstances, every node in the cluster is part of one group.
    #[serde(rename = "has_quorum")]
    pub has_quorum: bool,
    /// If true, the cluster is in compliance mode.  Compliance mode clusters do not allow root access and have stricter WORM (Write Once Read Many) features for retaining data in compliance with U.S. Securities and Exchange Commission rule 17a-4.
    #[serde(rename = "is_compliance")]
    pub is_compliance: bool,
    /// true if the cluster is deployed on a desktop VMWorkstation
    #[serde(rename = "is_virtual")]
    pub is_virtual: bool,
    /// true if this is a vOneFS cluster on an ESXi
    #[serde(rename = "is_vonefs")]
    pub is_vonefs: bool,
    /// Node join mode: 'manual' or 'secure'.
    #[serde(rename = "join_mode")]
    pub join_mode: String,
    /// Device ID of the queried node.
    #[serde(rename = "local_devid")]
    pub local_devid: i32,
    /// Device logical node number of the queried node.
    #[serde(rename = "local_lnn")]
    pub local_lnn: i32,
    /// Device serial number of the queried node.
    #[serde(rename = "local_serial")]
    pub local_serial: String,
    /// Cluster name.
    #[serde(rename = "name")]
    pub name: String,
    ///
    #[serde(rename = "onefs_version")]
    pub onefs_version: Option <crate::models::ClusterConfigOnefsVersion>,
    /// The cluster timezone settings.
    #[serde(rename = "timezone")]
    pub timezone: Option <crate::models::ClusterConfigTimezone>,
    #[serde(rename = "upgrade_type")]
    pub upgrade_type: Option<String>,
}