/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// InstanceConfig : Unified instance configuration combining global settings and worker group configs
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InstanceConfig {
    /// Global settings keyed by setting name. Known fields include base_url, license_key, retention_period_secs, smtp_settings, otel, etc. Unknown fields are preserved as-is. 
    #[serde(rename = "global_settings", skip_serializing_if = "Option::is_none")]
    pub global_settings: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// Worker group configurations keyed by group name (e.g. \"default\", \"gpu\"). Each value contains worker_tags, init_bash, autoscaling, etc. 
    #[serde(rename = "worker_configs", skip_serializing_if = "Option::is_none")]
    pub worker_configs: Option<std::collections::HashMap<String, std::collections::HashMap<String, serde_json::Value>>>,
}

impl InstanceConfig {
    /// Unified instance configuration combining global settings and worker group configs
    pub fn new() -> InstanceConfig {
        InstanceConfig {
            global_settings: None,
            worker_configs: None,
        }
    }
}

