use serde::{Deserialize, Serialize}; /*
                                      * Cloud Resource Manager API
                                      *
                                      * Creates, reads, and updates metadata for Google Cloud Platform resource containers.
                                      *
                                      * The version of the OpenAPI document: v3
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::cloudresourcemanager_v3::models;

/// ProjectCreationStatus : A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProjectCreationStatus {
    /// Creation time of the project creation workflow.
    #[serde(rename = "createTime", skip_serializing_if = "Option::is_none")]
    pub create_time: Option<String>,
    /// True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete.
    #[serde(rename = "gettable", skip_serializing_if = "Option::is_none")]
    pub gettable: Option<bool>,
    /// True if the project creation process is complete.
    #[serde(rename = "ready", skip_serializing_if = "Option::is_none")]
    pub ready: Option<bool>,
}

impl ProjectCreationStatus {
    /// A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.
    pub fn new() -> ProjectCreationStatus {
        ProjectCreationStatus {
            create_time: None,
            gettable: None,
            ready: None,
        }
    }
}
