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 ClusterNotificationsGetWebhookEndpointsResponseDataInner {

    /// HTTP body, base64 encoded
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,

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

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

    /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>
    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
    pub header: Option<Vec<String>>,

    /// HTTP method
    #[serde(rename = "method")]
    pub method: models::PveMethodEnum,

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

    /// Show if this entry was created by a user or was built-in
    #[serde(rename = "origin")]
    pub origin: models::PveOriginEnum,

    /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>
    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
    pub secret: Option<Vec<String>>,

    /// Server URL
    #[serde(rename = "url")]
    pub url: String,


}

impl ClusterNotificationsGetWebhookEndpointsResponseDataInner {
    pub fn new(method: models::PveMethodEnum, name: String, origin: models::PveOriginEnum, url: String) -> ClusterNotificationsGetWebhookEndpointsResponseDataInner {
        ClusterNotificationsGetWebhookEndpointsResponseDataInner {
            
            body: None,
            
            comment: None,
            
            disable: None,
            
            header: None,
            
            method,
            
            name,
            
            origin,
            
            secret: None,
            
            url,
            
        }
    }
}