/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReqCreateTaskExecution {
    #[serde(rename = "task_id")]
    pub task_id: String,
    #[serde(rename = "started_at", skip_serializing_if = "Option::is_none")]
    pub started_at: Option<String>,
    #[serde(rename = "last_modified", skip_serializing_if = "Option::is_none")]
    pub last_modified: Option<String>,
    #[serde(rename = "uuid")]
    pub uuid: uuid::Uuid,
}

impl ReqCreateTaskExecution {
    pub fn new(task_id: String, uuid: uuid::Uuid) -> ReqCreateTaskExecution {
        ReqCreateTaskExecution {
            task_id,
            started_at: None,
            last_modified: None,
            uuid,
        }
    }
}
