Skip to main content

hanzo_client/models/
environment_row.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 EnvironmentRow {
16    /// ID is the environment's name, which is also its identity — an environment is derived from the apps that target it, so it has no id of its own.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// Name is the environment's name as an app declared it.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Services are the apps that target this environment, by name.
23    #[serde(rename = "services", skip_serializing_if = "Option::is_none")]
24    pub services: Option<Vec<String>>,
25    /// Status rolls up the real states of this environment's apps: degraded, active, idle or empty.
26    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27    pub status: Option<String>,
28    /// Type buckets the name for display: production, staging, development or custom.
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31    /// UpdatedAt is when any of them last changed, RFC3339 UTC; empty when unset.
32    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
33    pub updated_at: Option<String>,
34}
35
36impl EnvironmentRow {
37    pub fn new() -> EnvironmentRow {
38        EnvironmentRow {
39            id: None,
40            name: None,
41            services: None,
42            status: None,
43            r#type: None,
44            updated_at: None,
45        }
46    }
47}
48