Skip to main content

clientapi_pbs/models/
config_notifications_update_gotify_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 ConfigNotificationsUpdateGotifyRequest {
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::PbsConfigNotificationsInlineEnum>>,
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 target.
30    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
31    pub disable: Option<bool>,
32
33    /// Gotify Server URL.
34    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
35    pub server: Option<String>,
36
37    /// Authentication token
38    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
39    pub token: Option<String>,
40
41
42}
43
44impl ConfigNotificationsUpdateGotifyRequest {
45    pub fn new() -> ConfigNotificationsUpdateGotifyRequest {
46        ConfigNotificationsUpdateGotifyRequest {
47            
48            comment: None,
49            
50            delete: None,
51            
52            digest: None,
53            
54            disable: None,
55            
56            server: None,
57            
58            token: None,
59            
60        }
61    }
62}
63
64