hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 ConsoleSettings {
    /// AppsInAnyNamespaceEnabled is false: applications are projected from operator App CRs in the platform namespaces, never declared in an arbitrary one.
    #[serde(rename = "appsInAnyNamespaceEnabled", skip_serializing_if = "Option::is_none")]
    pub apps_in_any_namespace_enabled: Option<bool>,
    #[serde(rename = "dexConfig", skip_serializing_if = "Option::is_none")]
    pub dex_config: Option<Box<models::ConsoleSettingsDexConfig>>,
    /// ExecEnabled is false: this plane serves no container terminal.
    #[serde(rename = "execEnabled", skip_serializing_if = "Option::is_none")]
    pub exec_enabled: Option<bool>,
    #[serde(rename = "googleAnalytics", skip_serializing_if = "Option::is_none")]
    pub google_analytics: Option<Box<models::ConsoleSettingsGoogleAnalytics>>,
    #[serde(rename = "help", skip_serializing_if = "Option::is_none")]
    pub help: Option<Box<models::ConsoleSettingsHelp>>,
    /// HydratorEnabled is false: there is no manifest hydrator on this plane.
    #[serde(rename = "hydratorEnabled", skip_serializing_if = "Option::is_none")]
    pub hydrator_enabled: Option<bool>,
    /// KustomizeVersions is always empty: an App CR is an image pin, not a kustomize build.
    #[serde(rename = "kustomizeVersions", skip_serializing_if = "Option::is_none")]
    pub kustomize_versions: Option<Vec<String>>,
    #[serde(rename = "oidcConfig", skip_serializing_if = "Option::is_none")]
    pub oidc_config: Option<serde_json::Value>,
    /// Plugins is always empty: this plane loads no argocd config-management plugins.
    #[serde(rename = "plugins", skip_serializing_if = "Option::is_none")]
    pub plugins: Option<Vec<serde_json::Value>>,
    /// StatusBadgeEnabled is false: no badge endpoint is served.
    #[serde(rename = "statusBadgeEnabled", skip_serializing_if = "Option::is_none")]
    pub status_badge_enabled: Option<bool>,
    /// StatusBadgeRootUrl is always empty, for the same reason.
    #[serde(rename = "statusBadgeRootUrl", skip_serializing_if = "Option::is_none")]
    pub status_badge_root_url: Option<String>,
    /// SyncWithReplaceAllowed is false: a sync here asks the operator to reconcile an App CR, and never replaces an object.
    #[serde(rename = "syncWithReplaceAllowed", skip_serializing_if = "Option::is_none")]
    pub sync_with_replace_allowed: Option<bool>,
    /// UiBannerContent is always empty: this console shows no banner.
    #[serde(rename = "uiBannerContent", skip_serializing_if = "Option::is_none")]
    pub ui_banner_content: Option<String>,
    /// UiCssURL is always empty: no stylesheet is injected.
    #[serde(rename = "uiCssURL", skip_serializing_if = "Option::is_none")]
    pub ui_css_url: Option<String>,
    /// Url is the console's public origin, https://cd.hanzo.ai.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    /// UserLoginsDisabled is true: the SPA must not render its own username/password form. Signing in goes through IAM, at GET /v1/deploy/login.
    #[serde(rename = "userLoginsDisabled", skip_serializing_if = "Option::is_none")]
    pub user_logins_disabled: Option<bool>,
}

impl ConsoleSettings {
    pub fn new() -> ConsoleSettings {
        ConsoleSettings {
            apps_in_any_namespace_enabled: None,
            dex_config: None,
            exec_enabled: None,
            google_analytics: None,
            help: None,
            hydrator_enabled: None,
            kustomize_versions: None,
            oidc_config: None,
            plugins: None,
            status_badge_enabled: None,
            status_badge_root_url: None,
            sync_with_replace_allowed: None,
            ui_banner_content: None,
            ui_css_url: None,
            url: None,
            user_logins_disabled: None,
        }
    }
}