Skip to main content

clientapi_pve/models/
cluster_ceph_metadata_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 ClusterCephMetadataResponseData {
16
17    /// Metadata servers configured in the cluster and their properties, keyed by '<name>@<host>'.
18    #[serde(rename = "mds")]
19    pub mds: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMdsValue>,
20
21    /// Managers configured in the cluster and their properties, keyed by '<name>@<host>'.
22    #[serde(rename = "mgr")]
23    pub mgr: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMgrValue>,
24
25    /// Monitors configured in the cluster and their properties, keyed by '<name>@<host>'.
26    #[serde(rename = "mon")]
27    pub mon: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMonValue>,
28
29    /// Ceph version installed on the nodes, keyed by node name.
30    #[serde(rename = "node")]
31    pub node: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataNodeValue>,
32
33    /// OSDs configured in the cluster and their properties.
34    #[serde(rename = "osd")]
35    pub osd: Vec<models::ClusterCephMetadataResponseDataOsdInner>,
36
37
38}
39
40impl ClusterCephMetadataResponseData {
41    pub fn new(mds: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMdsValue>, mgr: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMgrValue>, mon: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataMonValue>, node: std::collections::HashMap<String, models::ClusterCephMetadataResponseDataNodeValue>, osd: Vec<models::ClusterCephMetadataResponseDataOsdInner>) -> ClusterCephMetadataResponseData {
42        ClusterCephMetadataResponseData {
43            
44            mds,
45            
46            mgr,
47            
48            mon,
49            
50            node,
51            
52            osd,
53            
54        }
55    }
56}
57
58