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;

/// InstancePropertiesPatch : Represents the change that you want to make to the instance properties.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InstancePropertiesPatch {
    /// The label key-value pairs that you want to patch onto the instance.
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<std::collections::HashMap<String, String>>,
    /// The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<std::collections::HashMap<String, String>>,
}

impl InstancePropertiesPatch {
    /// Represents the change that you want to make to the instance properties.
    pub fn new() -> InstancePropertiesPatch {
        InstancePropertiesPatch {
            labels: None,
            metadata: None,
        }
    }
}
