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
55
56
57
58
59
60
61
62
63
64
/*
* Proxmox Virtual Environment API
*
* Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
*
* The version of the OpenAPI document: 9.x
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NodesCephInitRequest {
/// Declare a separate cluster network, OSDs will route heartbeat, object replication and recovery traffic over it
#[serde(rename = "cluster-network", skip_serializing_if = "Option::is_none")]
pub cluster_network: Option<String>,
/// 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!
#[serde(rename = "disable_cephx", skip_serializing_if = "Option::is_none")]
pub disable_cephx: Option<models::PveBoolean>,
/// Minimum number of available replicas per object to allow I/O
#[serde(rename = "min_size", skip_serializing_if = "Option::is_none")]
pub min_size: Option<i32>,
/// Use specific network for all ceph related traffic
#[serde(rename = "network", skip_serializing_if = "Option::is_none")]
pub network: Option<String>,
/// Placement group bits, used to specify the default number of placement groups. Depreacted. This setting was deprecated in recent Ceph versions.
#[serde(rename = "pg_bits", skip_serializing_if = "Option::is_none")]
pub pg_bits: Option<i32>,
/// Targeted number of replicas per object
#[serde(rename = "size", skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
}
impl NodesCephInitRequest {
pub fn new() -> NodesCephInitRequest {
NodesCephInitRequest {
cluster_network: None,
disable_cephx: None,
min_size: None,
network: None,
pg_bits: None,
size: None,
}
}
}