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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PolarsConnectionSettings200Response {
    #[serde(rename = "endpoint_url")]
    pub endpoint_url: String,
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
    pub secret: Option<String>,
    #[serde(rename = "use_ssl")]
    pub use_ssl: bool,
    #[serde(rename = "cache_regions")]
    pub cache_regions: bool,
    #[serde(rename = "client_kwargs")]
    pub client_kwargs: Box<models::PolarsClientKwargs>,
}

impl PolarsConnectionSettings200Response {
    pub fn new(endpoint_url: String, use_ssl: bool, cache_regions: bool, client_kwargs: models::PolarsClientKwargs) -> PolarsConnectionSettings200Response {
        PolarsConnectionSettings200Response {
            endpoint_url,
            key: None,
            secret: None,
            use_ssl,
            cache_regions,
            client_kwargs: Box::new(client_kwargs),
        }
    }
}

