Skip to main content

clientapi_pbs/models/
config_notifications_update_matchers_request.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/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 ConfigNotificationsUpdateMatchersRequest {
16
17    /// Comment.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// List of properties to delete.
22    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
23    pub delete: Option<Vec<models::PbsConfigNotificationsInlineEnum5>>,
24
25    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
26    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
27    pub digest: Option<String>,
28
29    /// Disable this matcher.
30    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
31    pub disable: Option<bool>,
32
33    /// Invert match of the whole filter.
34    #[serde(rename = "invert-match", skip_serializing_if = "Option::is_none")]
35    pub invert_match: Option<bool>,
36
37    /// List of matched severity levels.
38    #[serde(rename = "match-calendar", skip_serializing_if = "Option::is_none")]
39    pub match_calendar: Option<Vec<String>>,
40
41    /// List of matched metadata fields.
42    #[serde(rename = "match-field", skip_serializing_if = "Option::is_none")]
43    pub match_field: Option<Vec<String>>,
44
45    /// List of matched severity levels.
46    #[serde(rename = "match-severity", skip_serializing_if = "Option::is_none")]
47    pub match_severity: Option<Vec<String>>,
48
49    /// The mode in which the results of matches are combined.
50    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
51    pub mode: Option<models::PbsModeModeEnum>,
52
53    /// Targets to notify.
54    #[serde(rename = "target", skip_serializing_if = "Option::is_none")]
55    pub target: Option<Vec<String>>,
56
57
58}
59
60impl ConfigNotificationsUpdateMatchersRequest {
61    pub fn new() -> ConfigNotificationsUpdateMatchersRequest {
62        ConfigNotificationsUpdateMatchersRequest {
63            
64            comment: None,
65            
66            delete: None,
67            
68            digest: None,
69            
70            disable: None,
71            
72            invert_match: None,
73            
74            match_calendar: None,
75            
76            match_field: None,
77            
78            match_severity: None,
79            
80            mode: None,
81            
82            target: None,
83            
84        }
85    }
86}
87
88