Skip to main content

clientapi_pbs/models/
config_notifications_update_sendmail_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 ConfigNotificationsUpdateSendmailRequest {
16
17    /// Author of the mail. Defaults to 'Proxmox Backup Server ($hostname)'
18    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
19    pub author: Option<String>,
20
21    /// Comment.
22    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
23    pub comment: Option<String>,
24
25    /// List of properties to delete.
26    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
27    pub delete: Option<Vec<models::PbsConfigNotificationsInlineEnum2>>,
28
29    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
30    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
31    pub digest: Option<String>,
32
33    /// Disable this target.
34    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
35    pub disable: Option<bool>,
36
37    /// `From` address for sent E-Mails. If the parameter is not set, the plugin will fall back to the email-from setting from node.cfg (PBS). If that is also not set, the plugin will default to root@$hostname, where $hostname is the hostname of the node.
38    #[serde(rename = "from-address", skip_serializing_if = "Option::is_none")]
39    pub from_address: Option<String>,
40
41    /// Mail address to send a mail to.
42    #[serde(rename = "mailto", skip_serializing_if = "Option::is_none")]
43    pub mailto: Option<Vec<String>>,
44
45    /// Users to send a mail to. The email address of the user will be looked up in users.cfg.
46    #[serde(rename = "mailto-user", skip_serializing_if = "Option::is_none")]
47    pub mailto_user: Option<Vec<String>>,
48
49
50}
51
52impl ConfigNotificationsUpdateSendmailRequest {
53    pub fn new() -> ConfigNotificationsUpdateSendmailRequest {
54        ConfigNotificationsUpdateSendmailRequest {
55            
56            author: None,
57            
58            comment: None,
59            
60            delete: None,
61            
62            digest: None,
63            
64            disable: None,
65            
66            from_address: None,
67            
68            mailto: None,
69            
70            mailto_user: None,
71            
72        }
73    }
74}
75
76