/*
 * 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};

/// CreateDatasetResponse : Response body for POST /v1/datasets
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateDatasetResponse {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "label")]
    pub label: String,
    #[serde(rename = "schema_name")]
    pub schema_name: String,
    #[serde(rename = "status")]
    pub status: String,
    #[serde(rename = "table_name")]
    pub table_name: String,
}

impl CreateDatasetResponse {
    /// Response body for POST /v1/datasets
    pub fn new(
        created_at: String,
        id: String,
        label: String,
        schema_name: String,
        status: String,
        table_name: String,
    ) -> CreateDatasetResponse {
        CreateDatasetResponse {
            created_at,
            id,
            label,
            schema_name,
            status,
            table_name,
        }
    }
}
