Skip to main content

clientapi_pbs/models/
config_s3_update_s3_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 ConfigS3UpdateS3Request {
16
17    /// Access key for S3 object store.
18    #[serde(rename = "access-key", skip_serializing_if = "Option::is_none")]
19    pub access_key: Option<String>,
20
21    /// Byte size with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).
22    #[serde(rename = "burst-in", skip_serializing_if = "Option::is_none")]
23    pub burst_in: Option<String>,
24
25    /// Byte size with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).
26    #[serde(rename = "burst-out", skip_serializing_if = "Option::is_none")]
27    pub burst_out: Option<String>,
28
29    /// List of properties to delete.
30    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
31    pub delete: Option<Vec<models::PbsConfigS3InlineEnum>>,
32
33    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
34    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
35    pub digest: Option<String>,
36
37    /// Endpoint to access S3 object store.
38    #[serde(rename = "endpoint", skip_serializing_if = "Option::is_none")]
39    pub endpoint: Option<String>,
40
41    /// X509 certificate fingerprint (sha256).
42    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
43    pub fingerprint: Option<String>,
44
45    /// Use path style bucket addressing over vhost style.
46    #[serde(rename = "path-style", skip_serializing_if = "Option::is_none")]
47    pub path_style: Option<bool>,
48
49    /// Port to access S3 object store.
50    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
51    pub port: Option<i64>,
52
53    /// List of provider specific feature implementation quirks.
54    #[serde(rename = "provider-quirks", skip_serializing_if = "Option::is_none")]
55    pub provider_quirks: Option<Vec<models::PbsProviderQuirksEnum>>,
56
57    /// Rate limit for put requests given as #request/s.
58    #[serde(rename = "put-rate-limit", skip_serializing_if = "Option::is_none")]
59    pub put_rate_limit: Option<i64>,
60
61    /// Byte size with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).
62    #[serde(rename = "rate-in", skip_serializing_if = "Option::is_none")]
63    pub rate_in: Option<String>,
64
65    /// Byte size with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).
66    #[serde(rename = "rate-out", skip_serializing_if = "Option::is_none")]
67    pub rate_out: Option<String>,
68
69    /// Region to access S3 object store.
70    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
71    pub region: Option<String>,
72
73    /// S3 client secret key.
74    #[serde(rename = "secret-key", skip_serializing_if = "Option::is_none")]
75    pub secret_key: Option<String>,
76
77
78}
79
80impl ConfigS3UpdateS3Request {
81    pub fn new() -> ConfigS3UpdateS3Request {
82        ConfigS3UpdateS3Request {
83            
84            access_key: None,
85            
86            burst_in: None,
87            
88            burst_out: None,
89            
90            delete: None,
91            
92            digest: None,
93            
94            endpoint: None,
95            
96            fingerprint: None,
97            
98            path_style: None,
99            
100            port: None,
101            
102            provider_quirks: None,
103            
104            put_rate_limit: None,
105            
106            rate_in: None,
107            
108            rate_out: None,
109            
110            region: None,
111            
112            secret_key: None,
113            
114        }
115    }
116}
117
118