pub struct NodesCephCreatepoolRequest {
pub add_storages: Option<PveBoolean>,
pub application: Option<PveApplicationEnum>,
pub crush_rule: Option<String>,
pub erasure_coding: Option<Box<PveErasureCodingField>>,
pub min_size: Option<i32>,
pub name: String,
pub pg_autoscale_mode: Option<PvePgAutoscaleModeEnum>,
pub pg_num: Option<i32>,
pub pg_num_min: Option<i32>,
pub size: Option<i32>,
pub target_size: Option<String>,
pub target_size_ratio: Option<f64>,
}Fields§
§add_storages: Option<PveBoolean>Configure VM and CT storage using the new pool. Defaults to false for replicated pools and to true for erasure-coded pools (since EC pools are typically only useful when wired up to storage).
application: Option<PveApplicationEnum>The application of the pool.
crush_rule: Option<String>The rule to use for mapping object placement in the cluster.
erasure_coding: Option<Box<PveErasureCodingField>>Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. With EC, the common ceph options ‘size’, ‘min_size’ and ‘crush_rule’ parameters will be applied to the metadata pool.
min_size: Option<i32>Minimum number of replicas per object
name: StringThe name of the pool. It must be unique.
pg_autoscale_mode: Option<PvePgAutoscaleModeEnum>The automatic PG scaling mode of the pool.
pg_num: Option<i32>Number of placement groups.
pg_num_min: Option<i32>Minimal number of placement groups.
size: Option<i32>Number of replicas per object
target_size: Option<String>The estimated target size of the pool for the PG autoscaler.
target_size_ratio: Option<f64>The estimated target ratio of the pool for the PG autoscaler.
Implementations§
Source§impl NodesCephCreatepoolRequest
impl NodesCephCreatepoolRequest
pub fn new(name: String) -> NodesCephCreatepoolRequest
Trait Implementations§
Source§impl Clone for NodesCephCreatepoolRequest
impl Clone for NodesCephCreatepoolRequest
Source§fn clone(&self) -> NodesCephCreatepoolRequest
fn clone(&self) -> NodesCephCreatepoolRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodesCephCreatepoolRequest
impl Debug for NodesCephCreatepoolRequest
Source§impl Default for NodesCephCreatepoolRequest
impl Default for NodesCephCreatepoolRequest
Source§fn default() -> NodesCephCreatepoolRequest
fn default() -> NodesCephCreatepoolRequest
Source§impl<'de> Deserialize<'de> for NodesCephCreatepoolRequest
impl<'de> Deserialize<'de> for NodesCephCreatepoolRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for NodesCephCreatepoolRequest
impl PartialEq for NodesCephCreatepoolRequest
Source§fn eq(&self, other: &NodesCephCreatepoolRequest) -> bool
fn eq(&self, other: &NodesCephCreatepoolRequest) -> bool
self and other values to be equal, and is used by ==.