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 O11yPeriodClusterRecord {
    #[serde(rename = "clusterCPU", skip_serializing_if = "Option::is_none")]
    pub cluster_cpu: Option<f64>,
    #[serde(rename = "clusterCPUAllocatable", skip_serializing_if = "Option::is_none")]
    pub cluster_cpu_allocatable: Option<f64>,
    #[serde(rename = "clusterMemory", skip_serializing_if = "Option::is_none")]
    pub cluster_memory: Option<f64>,
    #[serde(rename = "clusterMemoryAllocatable", skip_serializing_if = "Option::is_none")]
    pub cluster_memory_allocatable: Option<f64>,
    /// TODO(nikhilmantri0902): once the underlying attr key is migrated to k8s.cluster.uid (see ClusterNameAttrKey), surface ClusterUID alongside (or replace) ClusterName.
    #[serde(rename = "clusterName", skip_serializing_if = "Option::is_none")]
    pub cluster_name: Option<String>,
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "nodeCountsByReadiness", skip_serializing_if = "Option::is_none")]
    pub node_counts_by_readiness: Option<Box<models::O11yPeriodNodeCountsByReadiness>>,
    #[serde(rename = "podCountsByPhase", skip_serializing_if = "Option::is_none")]
    pub pod_counts_by_phase: Option<Box<models::O11yPeriodPodCountsByPhase>>,
}

impl O11yPeriodClusterRecord {
    pub fn new() -> O11yPeriodClusterRecord {
        O11yPeriodClusterRecord {
            cluster_cpu: None,
            cluster_cpu_allocatable: None,
            cluster_memory: None,
            cluster_memory_allocatable: None,
            cluster_name: None,
            meta: None,
            node_counts_by_readiness: None,
            pod_counts_by_phase: None,
        }
    }
}