Skip to main content

hanzo_client/models/
console_settings.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 ConsoleSettings {
16    /// AppsInAnyNamespaceEnabled is false: applications are projected from operator App CRs in the platform namespaces, never declared in an arbitrary one.
17    #[serde(rename = "appsInAnyNamespaceEnabled", skip_serializing_if = "Option::is_none")]
18    pub apps_in_any_namespace_enabled: Option<bool>,
19    #[serde(rename = "dexConfig", skip_serializing_if = "Option::is_none")]
20    pub dex_config: Option<Box<models::ConsoleSettingsDexConfig>>,
21    /// ExecEnabled is false: this plane serves no container terminal.
22    #[serde(rename = "execEnabled", skip_serializing_if = "Option::is_none")]
23    pub exec_enabled: Option<bool>,
24    #[serde(rename = "googleAnalytics", skip_serializing_if = "Option::is_none")]
25    pub google_analytics: Option<Box<models::ConsoleSettingsGoogleAnalytics>>,
26    #[serde(rename = "help", skip_serializing_if = "Option::is_none")]
27    pub help: Option<Box<models::ConsoleSettingsHelp>>,
28    /// HydratorEnabled is false: there is no manifest hydrator on this plane.
29    #[serde(rename = "hydratorEnabled", skip_serializing_if = "Option::is_none")]
30    pub hydrator_enabled: Option<bool>,
31    /// KustomizeVersions is always empty: an App CR is an image pin, not a kustomize build.
32    #[serde(rename = "kustomizeVersions", skip_serializing_if = "Option::is_none")]
33    pub kustomize_versions: Option<Vec<String>>,
34    #[serde(rename = "oidcConfig", skip_serializing_if = "Option::is_none")]
35    pub oidc_config: Option<serde_json::Value>,
36    /// Plugins is always empty: this plane loads no argocd config-management plugins.
37    #[serde(rename = "plugins", skip_serializing_if = "Option::is_none")]
38    pub plugins: Option<Vec<serde_json::Value>>,
39    /// StatusBadgeEnabled is false: no badge endpoint is served.
40    #[serde(rename = "statusBadgeEnabled", skip_serializing_if = "Option::is_none")]
41    pub status_badge_enabled: Option<bool>,
42    /// StatusBadgeRootUrl is always empty, for the same reason.
43    #[serde(rename = "statusBadgeRootUrl", skip_serializing_if = "Option::is_none")]
44    pub status_badge_root_url: Option<String>,
45    /// SyncWithReplaceAllowed is false: a sync here asks the operator to reconcile an App CR, and never replaces an object.
46    #[serde(rename = "syncWithReplaceAllowed", skip_serializing_if = "Option::is_none")]
47    pub sync_with_replace_allowed: Option<bool>,
48    /// UiBannerContent is always empty: this console shows no banner.
49    #[serde(rename = "uiBannerContent", skip_serializing_if = "Option::is_none")]
50    pub ui_banner_content: Option<String>,
51    /// UiCssURL is always empty: no stylesheet is injected.
52    #[serde(rename = "uiCssURL", skip_serializing_if = "Option::is_none")]
53    pub ui_css_url: Option<String>,
54    /// Url is the console's public origin, https://cd.hanzo.ai.
55    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
56    pub url: Option<String>,
57    /// UserLoginsDisabled is true: the SPA must not render its own username/password form. Signing in goes through IAM, at GET /v1/deploy/login.
58    #[serde(rename = "userLoginsDisabled", skip_serializing_if = "Option::is_none")]
59    pub user_logins_disabled: Option<bool>,
60}
61
62impl ConsoleSettings {
63    pub fn new() -> ConsoleSettings {
64        ConsoleSettings {
65            apps_in_any_namespace_enabled: None,
66            dex_config: None,
67            exec_enabled: None,
68            google_analytics: None,
69            help: None,
70            hydrator_enabled: None,
71            kustomize_versions: None,
72            oidc_config: None,
73            plugins: None,
74            status_badge_enabled: None,
75            status_badge_root_url: None,
76            sync_with_replace_allowed: None,
77            ui_banner_content: None,
78            ui_css_url: None,
79            url: None,
80            user_logins_disabled: None,
81        }
82    }
83}
84