Skip to main content

clientapi_pve/models/
nodes_ceph_setpool_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 NodesCephSetpoolRequest {
16
17    /// The application of the pool.
18    #[serde(rename = "application", skip_serializing_if = "Option::is_none")]
19    pub application: Option<models::PveApplicationEnum>,
20
21    /// The rule to use for mapping object placement in the cluster.
22    #[serde(rename = "crush_rule", skip_serializing_if = "Option::is_none")]
23    pub crush_rule: Option<String>,
24
25    /// Minimum number of replicas per object
26    #[serde(rename = "min_size", skip_serializing_if = "Option::is_none")]
27    pub min_size: Option<i32>,
28
29    /// The automatic PG scaling mode of the pool.
30    #[serde(rename = "pg_autoscale_mode", skip_serializing_if = "Option::is_none")]
31    pub pg_autoscale_mode: Option<models::PvePgAutoscaleModeEnum>,
32
33    /// Number of placement groups.
34    #[serde(rename = "pg_num", skip_serializing_if = "Option::is_none")]
35    pub pg_num: Option<i32>,
36
37    /// Minimal number of placement groups.
38    #[serde(rename = "pg_num_min", skip_serializing_if = "Option::is_none")]
39    pub pg_num_min: Option<i32>,
40
41    /// Number of replicas per object
42    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
43    pub size: Option<i32>,
44
45    /// The estimated target size of the pool for the PG autoscaler.
46    #[serde(rename = "target_size", skip_serializing_if = "Option::is_none")]
47    pub target_size: Option<String>,
48
49    /// The estimated target ratio of the pool for the PG autoscaler.
50    #[serde(rename = "target_size_ratio", skip_serializing_if = "Option::is_none")]
51    pub target_size_ratio: Option<f64>,
52
53
54}
55
56impl NodesCephSetpoolRequest {
57    pub fn new() -> NodesCephSetpoolRequest {
58        NodesCephSetpoolRequest {
59            
60            application: None,
61            
62            crush_rule: None,
63            
64            min_size: None,
65            
66            pg_autoscale_mode: None,
67            
68            pg_num: None,
69            
70            pg_num_min: None,
71            
72            size: None,
73            
74            target_size: None,
75            
76            target_size_ratio: None,
77            
78        }
79    }
80}
81
82