/*
 * 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 Project {
    /// Project name
    #[serde(rename = "project_name", skip_serializing_if = "Option::is_none")]
    pub project_name: Option<String>,
    /// The unique identifier for project
    #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    /// The owner of project
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    /// Funding for the project.
    #[serde(rename = "funding_resource", skip_serializing_if = "Option::is_none")]
    pub funding_resource: Option<String>,
    /// Principal investigator
    #[serde(rename = "pi", skip_serializing_if = "Option::is_none")]
    pub pi: Option<String>,
    /// url of the project
    #[serde(rename = "project_url", skip_serializing_if = "Option::is_none")]
    pub project_url: Option<String>,
    /// id of the infludx storage bucket
    #[serde(rename = "bucket", skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    /// Current status of the project
    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
    pub active: Option<bool>,
    /// User defined metadata for the site
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<serde_json::Value>,
    /// ISO8601 datetime string for object creation date
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// ISO8601 datetime string for object updated date
    #[serde(rename = "last_updated", skip_serializing_if = "Option::is_none")]
    pub last_updated: Option<String>,
}

impl Project {
    pub fn new() -> Project {
        Project {
            project_name: None,
            project_id: None,
            owner: None,
            funding_resource: None,
            pi: None,
            project_url: None,
            bucket: None,
            active: None,
            metadata: None,
            created_at: None,
            last_updated: None,
        }
    }
}
