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 O11yPeriodPodRecord {
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "podAge", skip_serializing_if = "Option::is_none")]
    pub pod_age: Option<i32>,
    #[serde(rename = "podCPU", skip_serializing_if = "Option::is_none")]
    pub pod_cpu: Option<f64>,
    #[serde(rename = "podCPULimit", skip_serializing_if = "Option::is_none")]
    pub pod_cpu_limit: Option<f64>,
    #[serde(rename = "podCPURequest", skip_serializing_if = "Option::is_none")]
    pub pod_cpu_request: Option<f64>,
    #[serde(rename = "podCountsByPhase", skip_serializing_if = "Option::is_none")]
    pub pod_counts_by_phase: Option<Box<models::O11yPeriodPodCountsByPhase>>,
    #[serde(rename = "podMemory", skip_serializing_if = "Option::is_none")]
    pub pod_memory: Option<f64>,
    #[serde(rename = "podMemoryLimit", skip_serializing_if = "Option::is_none")]
    pub pod_memory_limit: Option<f64>,
    #[serde(rename = "podMemoryRequest", skip_serializing_if = "Option::is_none")]
    pub pod_memory_request: Option<f64>,
    #[serde(rename = "podPhase", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub pod_phase: Option<Option<serde_json::Value>>,
    #[serde(rename = "podUID", skip_serializing_if = "Option::is_none")]
    pub pod_uid: Option<String>,
}

impl O11yPeriodPodRecord {
    pub fn new() -> O11yPeriodPodRecord {
        O11yPeriodPodRecord {
            meta: None,
            pod_age: None,
            pod_cpu: None,
            pod_cpu_limit: None,
            pod_cpu_request: None,
            pod_counts_by_phase: None,
            pod_memory: None,
            pod_memory_limit: None,
            pod_memory_request: None,
            pod_phase: None,
            pod_uid: None,
        }
    }
}