hanzo_client/models/git_ops_plane.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GitOpsPlane {
16 /// Applications is every CD Application in the cluster, ordered by namespace then name. Empty (never null) when the plane is not installed, and equally empty when it is installed and tracks nothing — Installed is what separates those two.
17 #[serde(rename = "applications", skip_serializing_if = "Option::is_none")]
18 pub applications: Option<Vec<models::GitOpsApp>>,
19 /// Installed is whether this cluster serves the CD Application CRD at all. False is a fact about the cluster, not a failure of the request: the caller says \"no CD plane here\" rather than rendering an error it cannot act on.
20 #[serde(rename = "installed", skip_serializing_if = "Option::is_none")]
21 pub installed: Option<bool>,
22 /// Reason says why the plane is absent, in words a caller can show. Empty when Installed.
23 #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
24 pub reason: Option<String>,
25}
26
27impl GitOpsPlane {
28 pub fn new() -> GitOpsPlane {
29 GitOpsPlane {
30 applications: None,
31 installed: None,
32 reason: None,
33 }
34 }
35}
36