Skip to main content

clientapi_pbs/models/
config_acme_create_account_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 ConfigAcmeCreateAccountRequest {
16
17    /// List of email addresses.
18    #[serde(rename = "contact")]
19    pub contact: String,
20
21    /// The ACME Directory.
22    #[serde(rename = "directory", skip_serializing_if = "Option::is_none")]
23    pub directory: Option<String>,
24
25    /// HMAC Key for External Account Binding.
26    #[serde(rename = "eab_hmac_key", skip_serializing_if = "Option::is_none")]
27    pub eab_hmac_key: Option<String>,
28
29    /// Key Identifier for External Account Binding.
30    #[serde(rename = "eab_kid", skip_serializing_if = "Option::is_none")]
31    pub eab_kid: Option<String>,
32
33    /// ACME account name.
34    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
35    pub name: Option<String>,
36
37    /// URL of CA TermsOfService - setting this indicates agreement.
38    #[serde(rename = "tos_url", skip_serializing_if = "Option::is_none")]
39    pub tos_url: Option<String>,
40
41
42}
43
44impl ConfigAcmeCreateAccountRequest {
45    pub fn new(contact: String) -> ConfigAcmeCreateAccountRequest {
46        ConfigAcmeCreateAccountRequest {
47            
48            contact,
49            
50            directory: None,
51            
52            eab_hmac_key: None,
53            
54            eab_kid: None,
55            
56            name: None,
57            
58            tos_url: None,
59            
60        }
61    }
62}
63
64