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 ArgoClusterInfo {
    /// ApplicationsCount is how many of THE CALLER'S applications reconcile into this cluster, so a tenant sees its own count and a SuperAdmin the fleet's. It is zero for the in-cluster destination when the caller owns nothing, since that destination is listed whether or not anything targets it.
    #[serde(rename = "applicationsCount", skip_serializing_if = "Option::is_none")]
    pub applications_count: Option<i32>,
    /// ConnectionState repeats the cluster's own connection state, which is where ArgoCD's UI reads it from on this object.
    #[serde(rename = "connectionState", skip_serializing_if = "Option::is_none")]
    pub connection_state: Option<Box<models::ArgoConnectionState>>,
    /// ServerVersion is the kubernetes version of the destination. Always absent: nothing here queries the API server for it.
    #[serde(rename = "serverVersion", skip_serializing_if = "Option::is_none")]
    pub server_version: Option<String>,
}

impl ArgoClusterInfo {
    pub fn new() -> ArgoClusterInfo {
        ArgoClusterInfo {
            applications_count: None,
            connection_state: None,
            server_version: None,
        }
    }
}