/*
 * Streams API
 *
 * Manage Tapis Streams API.
 *
 * The version of the OpenAPI document: 1
 * 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 Transfer {
    /// The filename to create on the destination
    #[serde(rename = "filename", skip_serializing_if = "Option::is_none")]
    pub filename: Option<String>,
    /// ISO8601 datetime string for object creation date
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Owner of this archive
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    /// ID os System ID to send archive too.
    #[serde(rename = "system_id", skip_serializing_if = "Option::is_none")]
    pub system_id: Option<String>,
    /// The directory path to write archive to on selected System.
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// The Project the data is within.
    #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    /// The Instrument to pull measurement data from for the start and end dates.
    #[serde(rename = "inst_id", skip_serializing_if = "Option::is_none")]
    pub inst_id: Option<String>,
    /// The data measurement format - csv or JSON is currently supported
    #[serde(rename = "data_format", skip_serializing_if = "Option::is_none")]
    pub data_format: Option<String>,
    /// A ISO8601 formatted datetime string for the starting time for archival data
    #[serde(rename = "start_date", skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    /// A ISO8601 formatted datetime string for the ending time for archival data
    #[serde(rename = "end_date", skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
}

impl Transfer {
    pub fn new() -> Transfer {
        Transfer {
            filename: None,
            created_at: None,
            owner: None,
            system_id: None,
            path: None,
            project_id: None,
            inst_id: None,
            data_format: None,
            start_date: None,
            end_date: None,
        }
    }
}
