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 CdApp {
    /// Automated is whether CD applies git without being asked. It is cd.automated in the values file, rendered by the ApplicationSet's templatePatch — false means the Application reports drift and nothing moves.
    #[serde(rename = "automated", skip_serializing_if = "Option::is_none")]
    pub automated: Option<bool>,
    /// Health is the workload's verdict: Healthy, Progressing, Degraded, Missing.
    #[serde(rename = "health", skip_serializing_if = "Option::is_none")]
    pub health: Option<String>,
    /// Message is why, when Health is not Healthy.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    /// Name is the Application name the generator mints: <namespace>-<app>. It is the join key against a Declaration.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Namespace is the DESTINATION namespace as the CR declares it — where the workload lands. For a fleet Application that is the org, but this is the OBSERVED field and not our model of it: the two can disagree, and a board whose whole job is drift must be able to show that they do.
    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(rename = "operationMessage", skip_serializing_if = "Option::is_none")]
    pub operation_message: Option<String>,
    /// Path is the values file CD renders against, relative to the chart source.
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// Phase is the last sync operation's phase (Running, Succeeded, Failed) and OperationMessage is its message. A Failed phase with a Synced verdict is the shape a stuck Application takes.
    #[serde(rename = "phase", skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    /// Project is the AppProject fence the sync is admitted under.
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<String>,
    /// ReconciledAt is when CD last compared this Application.
    #[serde(rename = "reconciledAt", skip_serializing_if = "Option::is_none")]
    pub reconciled_at: Option<String>,
    /// Revision is the universe commit CD last applied. Empty means it has not applied one — never assume it means main.
    #[serde(rename = "revision", skip_serializing_if = "Option::is_none")]
    pub revision: Option<String>,
    /// SelfHeal is whether CD also corrects drift the cluster introduced.
    #[serde(rename = "selfHeal", skip_serializing_if = "Option::is_none")]
    pub self_heal: Option<bool>,
    /// Sync is CD's verdict on git-versus-cluster: Synced, OutOfSync, or Unknown.
    #[serde(rename = "sync", skip_serializing_if = "Option::is_none")]
    pub sync: Option<String>,
}

impl CdApp {
    pub fn new() -> CdApp {
        CdApp {
            automated: None,
            health: None,
            message: None,
            name: None,
            namespace: None,
            operation_message: None,
            path: None,
            phase: None,
            project: None,
            reconciled_at: None,
            revision: None,
            self_heal: None,
            sync: None,
        }
    }
}