Skip to main content

clientapi_pve/models/
cluster_acme_get_plugins_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 ClusterAcmeGetPluginsResponseDataInner {
16
17    /// API plugin name
18    #[serde(rename = "api", skip_serializing_if = "Option::is_none")]
19    pub api: Option<models::PveApiEnum>,
20
21    /// DNS plugin data. (base64 encoded)
22    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
23    pub data: Option<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    /// Flag to disable the config.
30    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
31    pub disable: Option<models::PveBoolean>,
32
33    /// List of cluster node names.
34    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
35    pub nodes: Option<String>,
36
37    /// Unique identifier for ACME plugin instance.
38    #[serde(rename = "plugin")]
39    pub plugin: String,
40
41    /// ACME challenge type.
42    #[serde(rename = "type")]
43    pub r#type: models::PveClusterAcmeTypeEnum,
44
45    /// Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
46    #[serde(rename = "validation-delay", skip_serializing_if = "Option::is_none")]
47    pub validation_delay: Option<i32>,
48
49
50}
51
52impl ClusterAcmeGetPluginsResponseDataInner {
53    pub fn new(plugin: String, r#type: models::PveClusterAcmeTypeEnum) -> ClusterAcmeGetPluginsResponseDataInner {
54        ClusterAcmeGetPluginsResponseDataInner {
55            
56            api: None,
57            
58            data: None,
59            
60            digest: None,
61            
62            disable: None,
63            
64            nodes: None,
65            
66            plugin,
67            
68            r#type,
69            
70            validation_delay: None,
71            
72        }
73    }
74}
75
76