Skip to main content

clientapi_pbs/models/
config_metrics_update_influxdb_http_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 ConfigMetricsUpdateInfluxdbHttpRequest {
16
17    /// InfluxDB Bucket.
18    #[serde(rename = "bucket", skip_serializing_if = "Option::is_none")]
19    pub bucket: 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::PbsConfigMetricsInlineEnum>>,
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    /// Enables or disables the metrics server
34    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
35    pub enable: Option<bool>,
36
37    /// The (optional) maximum body size
38    #[serde(rename = "max-body-size", skip_serializing_if = "Option::is_none")]
39    pub max_body_size: Option<i64>,
40
41    /// InfluxDB Organization.
42    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
43    pub organization: Option<String>,
44
45    /// The (optional) API token
46    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
47    pub token: Option<String>,
48
49    /// HTTP(s) url with optional port.
50    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
51    pub url: Option<String>,
52
53    /// If true, the certificate will be validated.
54    #[serde(rename = "verify-tls", skip_serializing_if = "Option::is_none")]
55    pub verify_tls: Option<bool>,
56
57
58}
59
60impl ConfigMetricsUpdateInfluxdbHttpRequest {
61    pub fn new() -> ConfigMetricsUpdateInfluxdbHttpRequest {
62        ConfigMetricsUpdateInfluxdbHttpRequest {
63            
64            bucket: None,
65            
66            comment: None,
67            
68            delete: None,
69            
70            digest: None,
71            
72            enable: None,
73            
74            max_body_size: None,
75            
76            organization: None,
77            
78            token: None,
79            
80            url: None,
81            
82            verify_tls: None,
83            
84        }
85    }
86}
87
88