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

/// UpdateDatasetRequest : Request body for PUT /v1/datasets/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateDatasetRequest {
    #[serde(
        rename = "label",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub label: Option<Option<String>>,
    /// Pin to a specific version, or send null to unpin. Omit the field entirely to leave pinning unchanged.
    #[serde(
        rename = "pinned_version",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub pinned_version: Option<Option<i32>>,
    #[serde(
        rename = "table_name",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub table_name: Option<Option<String>>,
}

impl UpdateDatasetRequest {
    /// Request body for PUT /v1/datasets/{id}
    pub fn new() -> UpdateDatasetRequest {
        UpdateDatasetRequest {
            label: None,
            pinned_version: None,
            table_name: None,
        }
    }
}
