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
                                      */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InstanceManagedByIgmError {
    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
    pub error: Option<Box<crate::google_rest_apis::compute_v1::models::InstanceManagedByIgmErrorManagedInstanceError>>,
    #[serde(rename = "instanceActionDetails", skip_serializing_if = "Option::is_none")]
    pub instance_action_details: Option<Box<crate::google_rest_apis::compute_v1::models::InstanceManagedByIgmErrorInstanceActionDetails>>,
    /// [Output Only] The time that this error occurred. This value is in RFC3339 text format.
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
}

impl InstanceManagedByIgmError {
    pub fn new() -> InstanceManagedByIgmError {
        InstanceManagedByIgmError {
            error: None,
            instance_action_details: None,
            timestamp: None,
        }
    }
}
