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 O11yPeriodO11yDashboardPostable {
    /// GenerateName derives a fresh unique name from spec.display.name instead of taking Name.
    #[serde(rename = "generateName", skip_serializing_if = "Option::is_none")]
    pub generate_name: Option<bool>,
    /// Image is an optional cover image reference.
    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    /// Name is the dashboard's unique internal name (a DNS-1123 label). Omit it with generateName to derive one from the display name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// SchemaVersion is the dashboard schema version; must be the current v6.
    #[serde(rename = "schemaVersion", skip_serializing_if = "Option::is_none")]
    pub schema_version: Option<String>,
    #[serde(rename = "spec", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub spec: Option<Option<serde_json::Value>>,
    /// Tags are the dashboard's tags; at most ten, and none may use a reserved DSL key.
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<models::O11yPeriodO11yDashboardPostableTag>>,
}

impl O11yPeriodO11yDashboardPostable {
    pub fn new() -> O11yPeriodO11yDashboardPostable {
        O11yPeriodO11yDashboardPostable {
            generate_name: None,
            image: None,
            name: None,
            schema_version: None,
            spec: None,
            tags: None,
        }
    }
}