/*
 * Hotdata API
 *
 * Powerful data platform API for datasets, queries, and analytics.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: developers@hotdata.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// RefreshResponse : Unified response type for refresh operations
/// Unified response type for refresh operations
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum RefreshResponse {
    SchemaRefreshResult(Box<models::SchemaRefreshResult>),
    TableRefreshResult(Box<models::TableRefreshResult>),
    ConnectionRefreshResult(Box<models::ConnectionRefreshResult>),
    RefreshDatasetResponse(Box<models::RefreshDatasetResponse>),
    SubmitJobResponse(Box<models::SubmitJobResponse>),
}

impl Default for RefreshResponse {
    fn default() -> Self {
        Self::SchemaRefreshResult(Default::default())
    }
}
