hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct O11yPeriodTlsConfig {
    /// Text of the CA cert to use for the targets.
    #[serde(rename = "ca", skip_serializing_if = "Option::is_none")]
    pub ca: Option<String>,
    /// The CA cert to use for the targets.
    #[serde(rename = "ca_file", skip_serializing_if = "Option::is_none")]
    pub ca_file: Option<String>,
    /// CARef is the name of the secret within the secret manager to use as the CA cert for the targets.
    #[serde(rename = "ca_ref", skip_serializing_if = "Option::is_none")]
    pub ca_ref: Option<String>,
    /// Text of the client cert file for the targets.
    #[serde(rename = "cert", skip_serializing_if = "Option::is_none")]
    pub cert: Option<String>,
    /// The client cert file for the targets.
    #[serde(rename = "cert_file", skip_serializing_if = "Option::is_none")]
    pub cert_file: Option<String>,
    /// CertRef is the name of the secret within the secret manager to use as the client cert for the targets.
    #[serde(rename = "cert_ref", skip_serializing_if = "Option::is_none")]
    pub cert_ref: Option<String>,
    /// Disable target certificate validation.
    #[serde(rename = "insecure_skip_verify", skip_serializing_if = "Option::is_none")]
    pub insecure_skip_verify: Option<bool>,
    #[serde(rename = "key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub key: Option<Option<serde_json::Value>>,
    /// The client key file for the targets.
    #[serde(rename = "key_file", skip_serializing_if = "Option::is_none")]
    pub key_file: Option<String>,
    /// KeyRef is the name of the secret within the secret manager to use as the client key for the targets.
    #[serde(rename = "key_ref", skip_serializing_if = "Option::is_none")]
    pub key_ref: Option<String>,
    #[serde(rename = "max_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_version: Option<Option<serde_json::Value>>,
    #[serde(rename = "min_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub min_version: Option<Option<serde_json::Value>>,
    /// Used to verify the hostname for the targets.
    #[serde(rename = "server_name", skip_serializing_if = "Option::is_none")]
    pub server_name: Option<String>,
}

impl O11yPeriodTlsConfig {
    pub fn new() -> O11yPeriodTlsConfig {
        O11yPeriodTlsConfig {
            ca: None,
            ca_file: None,
            ca_ref: None,
            cert: None,
            cert_file: None,
            cert_ref: None,
            insecure_skip_verify: None,
            key: None,
            key_file: None,
            key_ref: None,
            max_version: None,
            min_version: None,
            server_name: None,
        }
    }
}