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 O11yPeriodStatefulSetRecord {
    #[serde(rename = "currentPods", skip_serializing_if = "Option::is_none")]
    pub current_pods: Option<i32>,
    #[serde(rename = "desiredPods", skip_serializing_if = "Option::is_none")]
    pub desired_pods: Option<i32>,
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "podCountsByPhase", skip_serializing_if = "Option::is_none")]
    pub pod_counts_by_phase: Option<Box<models::O11yPeriodPodCountsByPhase>>,
    #[serde(rename = "statefulSetCPU", skip_serializing_if = "Option::is_none")]
    pub stateful_set_cpu: Option<f64>,
    #[serde(rename = "statefulSetCPULimit", skip_serializing_if = "Option::is_none")]
    pub stateful_set_cpu_limit: Option<f64>,
    #[serde(rename = "statefulSetCPURequest", skip_serializing_if = "Option::is_none")]
    pub stateful_set_cpu_request: Option<f64>,
    #[serde(rename = "statefulSetMemory", skip_serializing_if = "Option::is_none")]
    pub stateful_set_memory: Option<f64>,
    #[serde(rename = "statefulSetMemoryLimit", skip_serializing_if = "Option::is_none")]
    pub stateful_set_memory_limit: Option<f64>,
    #[serde(rename = "statefulSetMemoryRequest", skip_serializing_if = "Option::is_none")]
    pub stateful_set_memory_request: Option<f64>,
    #[serde(rename = "statefulSetName", skip_serializing_if = "Option::is_none")]
    pub stateful_set_name: Option<String>,
}

impl O11yPeriodStatefulSetRecord {
    pub fn new() -> O11yPeriodStatefulSetRecord {
        O11yPeriodStatefulSetRecord {
            current_pods: None,
            desired_pods: None,
            meta: None,
            pod_counts_by_phase: None,
            stateful_set_cpu: None,
            stateful_set_cpu_limit: None,
            stateful_set_cpu_request: None,
            stateful_set_memory: None,
            stateful_set_memory_limit: None,
            stateful_set_memory_request: None,
            stateful_set_name: None,
        }
    }
}