Skip to main content

clientapi_pve/models/
nodes_ceph_init_request.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 NodesCephInitRequest {
16
17    /// Declare a separate cluster network, OSDs will route heartbeat, object replication and recovery traffic over it
18    #[serde(rename = "cluster-network", skip_serializing_if = "Option::is_none")]
19    pub cluster_network: Option<String>,
20
21    /// Disable cephx authentication.  WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!
22    #[serde(rename = "disable_cephx", skip_serializing_if = "Option::is_none")]
23    pub disable_cephx: Option<models::PveBoolean>,
24
25    /// Minimum number of available replicas per object to allow I/O
26    #[serde(rename = "min_size", skip_serializing_if = "Option::is_none")]
27    pub min_size: Option<i32>,
28
29    /// Use specific network for all ceph related traffic
30    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
31    pub network: Option<String>,
32
33    /// Placement group bits, used to specify the default number of placement groups.  Depreacted. This setting was deprecated in recent Ceph versions.
34    #[serde(rename = "pg_bits", skip_serializing_if = "Option::is_none")]
35    pub pg_bits: Option<i32>,
36
37    /// Targeted number of replicas per object
38    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
39    pub size: Option<i32>,
40
41
42}
43
44impl NodesCephInitRequest {
45    pub fn new() -> NodesCephInitRequest {
46        NodesCephInitRequest {
47            
48            cluster_network: None,
49            
50            disable_cephx: None,
51            
52            min_size: None,
53            
54            network: None,
55            
56            pg_bits: None,
57            
58            size: None,
59            
60        }
61    }
62}
63
64