1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* 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 ArgoNode {
/// CreatedAt is the object's creationTimestamp, RFC 3339 UTC to the second. Absent when the object carries none.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "group", skip_serializing_if = "Option::is_none")]
pub group: Option<String>,
/// Health is the node's own derived health. Always present on a node of this tree; a kind with no health signal of its own reports Healthy, since a ConfigMap existing IS its healthy state.
#[serde(rename = "health", skip_serializing_if = "Option::is_none")]
pub health: Option<Box<models::ArgoHealth>>,
/// Images are the container images running on this node. Always absent — the tag travels as the \"Image Tag\" chip in Info instead, which is where the SPA reads it on a node.
#[serde(rename = "images", skip_serializing_if = "Option::is_none")]
pub images: Option<Vec<String>>,
/// Info are the chips shown on the node. At most one: the image tag — the RUNNING tag on a Deployment, ReplicaSet or Pod, and the DECLARED tag on the App CR at the root. Absent on a node that carries no image at all.
#[serde(rename = "info", skip_serializing_if = "Option::is_none")]
pub info: Option<Vec<models::ArgoInfoItem>>,
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
pub namespace: Option<String>,
/// ParentRefs are the node's edges UPWARD, which is how the SPA draws the DAG from this flat list. Exactly one entry where present: a depth-1 object points at the App CR, a ReplicaSet at its Deployment, a Pod at its ReplicaSet (or at the Deployment whose selector matches it, when the ReplicaSet is gone). Absent on the root.
#[serde(rename = "parentRefs", skip_serializing_if = "Option::is_none")]
pub parent_refs: Option<Vec<models::ArgoResourceRef>>,
/// ResourceVersion is the k8s version a watch would resume from. Always empty: the tree is rebuilt from live reads on every request, including on every frame of the SSE stream, so there is no revision to resume from.
#[serde(rename = "resourceVersion", skip_serializing_if = "Option::is_none")]
pub resource_version: Option<String>,
#[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
pub uid: Option<String>,
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
impl ArgoNode {
pub fn new() -> ArgoNode {
ArgoNode {
created_at: None,
group: None,
health: None,
images: None,
info: None,
kind: None,
name: None,
namespace: None,
parent_refs: None,
resource_version: None,
uid: None,
version: None,
}
}
}