/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LaunchSpecificationModel {
    /// List of volume FIDs
    #[serde(rename = "volumes")]
    pub volumes: Vec<String>,
    /// List of SSH key FIDs
    #[serde(rename = "ssh_keys")]
    pub ssh_keys: Vec<String>,
    #[serde(rename = "startup_script", skip_serializing_if = "Option::is_none")]
    pub startup_script: Option<String>,
    #[serde(rename = "kubernetes_cluster", skip_serializing_if = "Option::is_none")]
    pub kubernetes_cluster: Option<String>,
    #[serde(rename = "image_version", skip_serializing_if = "Option::is_none")]
    pub image_version: Option<String>,
    #[serde(rename = "memory_gb", skip_serializing_if = "Option::is_none")]
    pub memory_gb: Option<i32>,
}

impl LaunchSpecificationModel {
    pub fn new(volumes: Vec<String>, ssh_keys: Vec<String>) -> LaunchSpecificationModel {
        LaunchSpecificationModel {
            volumes,
            ssh_keys,
            startup_script: None,
            kubernetes_cluster: None,
            image_version: None,
            memory_gb: None,
        }
    }
}
