clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConfigMetricsUpdateInfluxdbHttpRequest {

    /// InfluxDB Bucket.
    #[serde(rename = "bucket", skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,

    /// Comment.
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,

    /// List of properties to delete.
    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
    pub delete: Option<Vec<models::PbsConfigMetricsInlineEnum>>,

    /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<String>,

    /// Enables or disables the metrics server
    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
    pub enable: Option<bool>,

    /// The (optional) maximum body size
    #[serde(rename = "max-body-size", skip_serializing_if = "Option::is_none")]
    pub max_body_size: Option<i64>,

    /// InfluxDB Organization.
    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
    pub organization: Option<String>,

    /// The (optional) API token
    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
    pub token: Option<String>,

    /// HTTP(s) url with optional port.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,

    /// If true, the certificate will be validated.
    #[serde(rename = "verify-tls", skip_serializing_if = "Option::is_none")]
    pub verify_tls: Option<bool>,


}

impl ConfigMetricsUpdateInfluxdbHttpRequest {
    pub fn new() -> ConfigMetricsUpdateInfluxdbHttpRequest {
        ConfigMetricsUpdateInfluxdbHttpRequest {
            
            bucket: None,
            
            comment: None,
            
            delete: None,
            
            digest: None,
            
            enable: None,
            
            max_body_size: None,
            
            organization: None,
            
            token: None,
            
            url: None,
            
            verify_tls: None,
            
        }
    }
}