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;

/// OperationError : [Output Only] If errors are generated during processing of the operation, this field will be populated.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OperationError {
    /// [Output Only] The array of errors encountered while processing this operation.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<Vec<models::ManagedInstanceLastAttemptErrorsErrorsInner>>,
}

impl OperationError {
    /// [Output Only] If errors are generated during processing of the operation, this field will be populated.
    pub fn new() -> OperationError {
        OperationError { errors: None }
    }
}
