Skip to main content

hanzo_client/models/
restarted.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 Restarted {
16    /// App is the service that was restarted.
17    #[serde(rename = "app", skip_serializing_if = "Option::is_none")]
18    pub app: Option<String>,
19    /// Env is that namespace's lifecycle env.
20    #[serde(rename = "env", skip_serializing_if = "Option::is_none")]
21    pub env: Option<String>,
22    /// Namespace is the namespace its Deployment was patched in.
23    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
24    pub namespace: Option<String>,
25    /// OK is always true — a failure is an error, not a false here.
26    #[serde(rename = "ok", skip_serializing_if = "Option::is_none")]
27    pub ok: Option<bool>,
28    /// RestartedAt is the timestamp stamped onto the pod template, RFC3339 UTC.
29    #[serde(rename = "restartedAt", skip_serializing_if = "Option::is_none")]
30    pub restarted_at: Option<String>,
31}
32
33impl Restarted {
34    pub fn new() -> Restarted {
35        Restarted {
36            app: None,
37            env: None,
38            namespace: None,
39            ok: None,
40            restarted_at: None,
41        }
42    }
43}
44