Skip to main content

clientapi_pbs/models/
nodes_certificates_create_custom_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 NodesCertificatesCreateCustomRequest {
16
17    /// PEM encoded certificate (chain).
18    #[serde(rename = "certificates")]
19    pub certificates: String,
20
21    /// Force replacement of existing files.
22    #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
23    pub force: Option<bool>,
24
25    /// PEM encoded private key.
26    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
27    pub key: Option<String>,
28
29    /// UI compatibility parameter, ignored
30    #[serde(rename = "restart", skip_serializing_if = "Option::is_none")]
31    pub restart: Option<bool>,
32
33
34}
35
36impl NodesCertificatesCreateCustomRequest {
37    pub fn new(certificates: String) -> NodesCertificatesCreateCustomRequest {
38        NodesCertificatesCreateCustomRequest {
39            
40            certificates,
41            
42            force: None,
43            
44            key: None,
45            
46            restart: None,
47            
48        }
49    }
50}
51
52