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

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

impl RefreshDatasetResponse {
    /// Response body for POST /v1/datasets/{id}/refresh
    pub fn new(
        created_at: String,
        id: String,
        status: String,
        version: i32,
    ) -> RefreshDatasetResponse {
        RefreshDatasetResponse {
            created_at,
            id,
            status,
            version,
        }
    }
}
