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 O11yPeriodBasicAuth {
    #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub password: Option<Option<serde_json::Value>>,
    #[serde(rename = "password_file", skip_serializing_if = "Option::is_none")]
    pub password_file: Option<String>,
    /// PasswordRef is the name of the secret within the secret manager to use as the password.
    #[serde(rename = "password_ref", skip_serializing_if = "Option::is_none")]
    pub password_ref: Option<String>,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "username_file", skip_serializing_if = "Option::is_none")]
    pub username_file: Option<String>,
    /// UsernameRef is the name of the secret within the secret manager to use as the username.
    #[serde(rename = "username_ref", skip_serializing_if = "Option::is_none")]
    pub username_ref: Option<String>,
}

impl O11yPeriodBasicAuth {
    pub fn new() -> O11yPeriodBasicAuth {
        O11yPeriodBasicAuth {
            password: None,
            password_file: None,
            password_ref: None,
            username: None,
            username_file: None,
            username_ref: None,
        }
    }
}