Skip to main content

hanzo_client/models/
settings_view.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 SettingsView {
16    #[serde(rename = "config", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub config: Option<Option<serde_json::Value>>,
18    /// CreatedAt is when this configuration was first written, RFC 3339 UTC.
19    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
20    pub created_at: Option<String>,
21    /// Product is the catalog slug this configuration belongs to.
22    #[serde(rename = "product", skip_serializing_if = "Option::is_none")]
23    pub product: Option<String>,
24    /// SecretKeys names the secret fields that ARE set. Their VALUES live only in KMS and are never returned here — the console renders a mask.
25    #[serde(rename = "secretKeys", skip_serializing_if = "Option::is_none")]
26    pub secret_keys: Option<Vec<String>>,
27    /// UpdatedAt is when this configuration was last written, RFC 3339 UTC. Empty when nothing has been saved.
28    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
29    pub updated_at: Option<String>,
30}
31
32impl SettingsView {
33    pub fn new() -> SettingsView {
34        SettingsView {
35            config: None,
36            created_at: None,
37            product: None,
38            secret_keys: None,
39            updated_at: None,
40        }
41    }
42}
43