ash_api 0.1.7

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Hai (Ash API) specifications.
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.7
 * Contact: E36 Knots
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewGoogleCredentialsSecret {
    /// Secret name
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "secretType")]
    pub secret_type: Box<crate::models::SecretType>,
    /// Google Cloud project ID
    #[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    /// Google Cloud client email
    #[serde(rename = "clientEmail", skip_serializing_if = "Option::is_none")]
    pub client_email: Option<String>,
    /// Google Cloud client ID
    #[serde(rename = "clientId", skip_serializing_if = "Option::is_none")]
    pub client_id: Option<String>,
    /// Base-64 encoded Google Cloud private key
    #[serde(rename = "privateKey", skip_serializing_if = "Option::is_none")]
    pub private_key: Option<String>,
}

impl NewGoogleCredentialsSecret {
    pub fn new(name: String, secret_type: crate::models::SecretType) -> NewGoogleCredentialsSecret {
        NewGoogleCredentialsSecret {
            name,
            secret_type: Box::new(secret_type),
            project_id: None,
            client_email: None,
            client_id: None,
            private_key: None,
        }
    }
}