use serde::{Deserialize, Serialize}; /*
                                      * Compute Engine API
                                      *
                                      * Creates and runs virtual machines on Google Cloud Platform.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::compute_v1::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ManagedInstanceVersion {
    /// [Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.
    #[serde(rename = "instanceTemplate", skip_serializing_if = "Option::is_none")]
    pub instance_template: Option<String>,
    /// [Output Only] Name of the version.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

impl ManagedInstanceVersion {
    pub fn new() -> ManagedInstanceVersion {
        ManagedInstanceVersion {
            instance_template: None,
            name: None,
        }
    }
}
