Skip to main content

clientapi_pve/models/
cluster_notifications_update_webhook_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 ClusterNotificationsUpdateWebhookEndpointRequest {
16
17    /// HTTP body, base64 encoded
18    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
19    pub body: Option<String>,
20
21    /// Comment
22    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
23    pub comment: Option<String>,
24
25    /// A list of settings you want to delete.
26    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
27    pub delete: Option<Vec<String>>,
28
29    /// Prevent changes if current configuration file has a different 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<models::PveBoolean>,
36
37    /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>
38    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
39    pub header: Option<Vec<String>>,
40
41    /// HTTP method
42    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
43    pub method: Option<models::PveMethodEnum>,
44
45    /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>
46    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
47    pub secret: Option<Vec<String>>,
48
49    /// Server URL
50    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
51    pub url: Option<String>,
52
53
54}
55
56impl ClusterNotificationsUpdateWebhookEndpointRequest {
57    pub fn new() -> ClusterNotificationsUpdateWebhookEndpointRequest {
58        ClusterNotificationsUpdateWebhookEndpointRequest {
59            
60            body: None,
61            
62            comment: None,
63            
64            delete: None,
65            
66            digest: None,
67            
68            disable: None,
69            
70            header: None,
71            
72            method: None,
73            
74            secret: None,
75            
76            url: None,
77            
78        }
79    }
80}
81
82