Skip to main content

clientapi_pve/models/
cluster_notifications_get_gotify_endpoints_response_data_inner.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 ClusterNotificationsGetGotifyEndpointsResponseDataInner {
16
17    /// Comment
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// Disable this target
22    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
23    pub disable: Option<models::PveBoolean>,
24
25    /// The name of the endpoint.
26    #[serde(rename = "name")]
27    pub name: String,
28
29    /// Show if this entry was created by a user or was built-in
30    #[serde(rename = "origin")]
31    pub origin: models::PveOriginEnum,
32
33    /// Server URL
34    #[serde(rename = "server")]
35    pub server: String,
36
37
38}
39
40impl ClusterNotificationsGetGotifyEndpointsResponseDataInner {
41    pub fn new(name: String, origin: models::PveOriginEnum, server: String) -> ClusterNotificationsGetGotifyEndpointsResponseDataInner {
42        ClusterNotificationsGetGotifyEndpointsResponseDataInner {
43            
44            comment: None,
45            
46            disable: None,
47            
48            name,
49            
50            origin,
51            
52            server,
53            
54        }
55    }
56}
57
58