Skip to main content

clientapi_pve/models/
cluster_ceph_set_flags_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 ClusterCephSetFlagsRequest {
16
17    /// Backfilling of PGs is suspended.
18    #[serde(rename = "nobackfill", skip_serializing_if = "Option::is_none")]
19    pub nobackfill: Option<models::PveBoolean>,
20
21    /// Deep Scrubbing is disabled.
22    #[serde(rename = "nodeep-scrub", skip_serializing_if = "Option::is_none")]
23    pub nodeep_scrub: Option<models::PveBoolean>,
24
25    /// OSD failure reports are being ignored, such that the monitors will not mark OSDs down.
26    #[serde(rename = "nodown", skip_serializing_if = "Option::is_none")]
27    pub nodown: Option<models::PveBoolean>,
28
29    /// OSDs that were previously marked out will not be marked back in when they start.
30    #[serde(rename = "noin", skip_serializing_if = "Option::is_none")]
31    pub noin: Option<models::PveBoolean>,
32
33    /// OSDs will not automatically be marked out after the configured interval.
34    #[serde(rename = "noout", skip_serializing_if = "Option::is_none")]
35    pub noout: Option<models::PveBoolean>,
36
37    /// Rebalancing of PGs is suspended.
38    #[serde(rename = "norebalance", skip_serializing_if = "Option::is_none")]
39    pub norebalance: Option<models::PveBoolean>,
40
41    /// Recovery of PGs is suspended.
42    #[serde(rename = "norecover", skip_serializing_if = "Option::is_none")]
43    pub norecover: Option<models::PveBoolean>,
44
45    /// Scrubbing is disabled.
46    #[serde(rename = "noscrub", skip_serializing_if = "Option::is_none")]
47    pub noscrub: Option<models::PveBoolean>,
48
49    /// Cache tiering activity is suspended.
50    #[serde(rename = "notieragent", skip_serializing_if = "Option::is_none")]
51    pub notieragent: Option<models::PveBoolean>,
52
53    /// OSDs are not allowed to start.
54    #[serde(rename = "noup", skip_serializing_if = "Option::is_none")]
55    pub noup: Option<models::PveBoolean>,
56
57    /// Pauses read and writes.
58    #[serde(rename = "pause", skip_serializing_if = "Option::is_none")]
59    pub pause: Option<models::PveBoolean>,
60
61
62}
63
64impl ClusterCephSetFlagsRequest {
65    pub fn new() -> ClusterCephSetFlagsRequest {
66        ClusterCephSetFlagsRequest {
67            
68            nobackfill: None,
69            
70            nodeep_scrub: None,
71            
72            nodown: None,
73            
74            noin: None,
75            
76            noout: None,
77            
78            norebalance: None,
79            
80            norecover: None,
81            
82            noscrub: None,
83            
84            notieragent: None,
85            
86            noup: None,
87            
88            pause: None,
89            
90        }
91    }
92}
93
94