Skip to main content

clientapi_pve/models/
cluster_notifications_update_gotify_endpoint_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 ClusterNotificationsUpdateGotifyEndpointRequest {
16
17    /// Comment
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// A list of settings you want to delete.
22    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
23    pub delete: Option<Vec<String>>,
24
25    /// Prevent changes if current configuration file has a different 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<models::PveBoolean>,
32
33    /// Server URL
34    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
35    pub server: Option<String>,
36
37    /// Secret token
38    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
39    pub token: Option<String>,
40
41
42}
43
44impl ClusterNotificationsUpdateGotifyEndpointRequest {
45    pub fn new() -> ClusterNotificationsUpdateGotifyEndpointRequest {
46        ClusterNotificationsUpdateGotifyEndpointRequest {
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