Skip to main content

clientapi_pbs/models/
config_acme_create_plugins_request.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/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 ConfigAcmeCreatePluginsRequest {
16
17    /// DNS API Plugin Id.
18    #[serde(rename = "api")]
19    pub api: String,
20
21    /// DNS plugin data (base64 encoded with padding).
22    #[serde(rename = "data")]
23    pub data: String,
24
25    /// Flag to disable the config.
26    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
27    pub disable: Option<bool>,
28
29    /// ACME Challenge Plugin ID.
30    #[serde(rename = "id")]
31    pub id: String,
32
33    /// The ACME challenge plugin type.
34    #[serde(rename = "type")]
35    pub r#type: String,
36
37    /// Extra delay in seconds to wait before requesting validation.  Allows to cope with long TTL of DNS records.
38    #[serde(rename = "validation-delay", skip_serializing_if = "Option::is_none")]
39    pub validation_delay: Option<i32>,
40
41
42}
43
44impl ConfigAcmeCreatePluginsRequest {
45    pub fn new(api: String, data: String, id: String, r#type: String) -> ConfigAcmeCreatePluginsRequest {
46        ConfigAcmeCreatePluginsRequest {
47            
48            api,
49            
50            data,
51            
52            disable: None,
53            
54            id,
55            
56            r#type,
57            
58            validation_delay: None,
59            
60        }
61    }
62}
63
64