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 O11yPeriodO11yDashboard {
    /// CreatedAt is when the dashboard was created.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// CreatedBy is who created it.
    #[serde(rename = "createdBy", skip_serializing_if = "Option::is_none")]
    pub created_by: Option<String>,
    /// ID is the dashboard's id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Image is an optional cover image reference.
    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    /// Locked reports whether the dashboard is locked against edits.
    #[serde(rename = "locked", skip_serializing_if = "Option::is_none")]
    pub locked: Option<bool>,
    /// Name is the dashboard's unique internal name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// OrgID is the org the dashboard belongs to.
    #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
    pub org_id: Option<String>,
    /// SchemaVersion is the dashboard schema version.
    #[serde(rename = "schemaVersion", skip_serializing_if = "Option::is_none")]
    pub schema_version: Option<String>,
    /// Source is where the dashboard came from: user, system or integration.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: 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.
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<models::O11yPeriodO11yDashboardTag>>,
    /// UpdatedAt is when it last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
    /// UpdatedBy is who last changed it.
    #[serde(rename = "updatedBy", skip_serializing_if = "Option::is_none")]
    pub updated_by: Option<String>,
}

impl O11yPeriodO11yDashboard {
    pub fn new() -> O11yPeriodO11yDashboard {
        O11yPeriodO11yDashboard {
            created_at: None,
            created_by: None,
            id: None,
            image: None,
            locked: None,
            name: None,
            org_id: None,
            schema_version: None,
            source: None,
            spec: None,
            tags: None,
            updated_at: None,
            updated_by: None,
        }
    }
}