Skip to main content

clientapi_pbs/models/
config_remote_update_remote_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 ConfigRemoteUpdateRemoteRequest {
16
17    /// Authentication ID
18    #[serde(rename = "auth-id", skip_serializing_if = "Option::is_none")]
19    pub auth_id: Option<String>,
20
21    /// Comment.
22    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
23    pub comment: Option<String>,
24
25    /// List of properties to delete.
26    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
27    pub delete: Option<Vec<models::PbsConfigRemoteInlineEnum>>,
28
29    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
30    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
31    pub digest: Option<String>,
32
33    /// X509 certificate fingerprint (sha256).
34    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
35    pub fingerprint: Option<String>,
36
37    /// DNS name or IP address.
38    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
39    pub host: Option<String>,
40
41    /// Password or auth token for remote host.
42    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
43    pub password: Option<String>,
44
45    /// The (optional) port
46    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
47    pub port: Option<i64>,
48
49    /// Use the http proxy configuration of the node for remote connections.
50    #[serde(rename = "use-node-proxy", skip_serializing_if = "Option::is_none")]
51    pub use_node_proxy: Option<bool>,
52
53
54}
55
56impl ConfigRemoteUpdateRemoteRequest {
57    pub fn new() -> ConfigRemoteUpdateRemoteRequest {
58        ConfigRemoteUpdateRemoteRequest {
59            
60            auth_id: None,
61            
62            comment: None,
63            
64            delete: None,
65            
66            digest: None,
67            
68            fingerprint: None,
69            
70            host: None,
71            
72            password: None,
73            
74            port: None,
75            
76            use_node_proxy: None,
77            
78        }
79    }
80}
81
82