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 ArgoStatus {
    /// Health is the application's reconciled health.
    #[serde(rename = "health", skip_serializing_if = "Option::is_none")]
    pub health: Option<Box<models::ArgoHealth>>,
    /// ReconciledAt is when the desired state was last compared against the cluster, RFC 3339. Empty for an App CR — the projection derives its verdict at read time and nothing records a comparison — and CD's own status.reconciledAt for a CD row.
    #[serde(rename = "reconciledAt", skip_serializing_if = "Option::is_none")]
    pub reconciled_at: Option<String>,
    /// Resources are the objects the application owns. EMPTY on the list — filling it would walk the cluster once per row — and populated only by the read of ONE application, which is what makes that the detail view.
    #[serde(rename = "resources", skip_serializing_if = "Option::is_none")]
    pub resources: Option<Vec<models::ArgoResourceStatus>>,
    /// Summary is the small aggregate the list column renders: the images.
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<Box<models::ArgoSummary>>,
    /// Sync is the declared-versus-running verdict and what it was reached against.
    #[serde(rename = "sync", skip_serializing_if = "Option::is_none")]
    pub sync: Option<Box<models::ArgoSyncStatus>>,
}

impl ArgoStatus {
    pub fn new() -> ArgoStatus {
        ArgoStatus {
            health: None,
            reconciled_at: None,
            resources: None,
            summary: None,
            sync: None,
        }
    }
}