clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * 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 ClusterNotificationsGetMatcherResponseData {

    /// Comment
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,

    /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<String>,

    /// Disable this matcher
    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
    pub disable: Option<models::PveBoolean>,

    /// Invert match of the whole matcher
    #[serde(rename = "invert-match", skip_serializing_if = "Option::is_none")]
    pub invert_match: Option<models::PveBoolean>,

    /// Match notification timestamp
    #[serde(rename = "match-calendar", skip_serializing_if = "Option::is_none")]
    pub match_calendar: Option<Vec<String>>,

    /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>
    #[serde(rename = "match-field", skip_serializing_if = "Option::is_none")]
    pub match_field: Option<Vec<String>>,

    /// Notification severities to match
    #[serde(rename = "match-severity", skip_serializing_if = "Option::is_none")]
    pub match_severity: Option<Vec<String>>,

    /// Choose between 'all' and 'any' for when multiple properties are specified
    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
    pub mode: Option<models::PveModeModeEnum>,

    /// Name of the matcher.
    #[serde(rename = "name")]
    pub name: String,

    /// Targets to notify on match
    #[serde(rename = "target", skip_serializing_if = "Option::is_none")]
    pub target: Option<Vec<String>>,


}

impl ClusterNotificationsGetMatcherResponseData {
    pub fn new(name: String) -> ClusterNotificationsGetMatcherResponseData {
        ClusterNotificationsGetMatcherResponseData {
            
            comment: None,
            
            digest: None,
            
            disable: None,
            
            invert_match: None,
            
            match_calendar: None,
            
            match_field: None,
            
            match_severity: None,
            
            mode: None,
            
            name,
            
            target: None,
            
        }
    }
}