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 BackendServiceGroupHealth {
    /// Metadata defined as annotations on the network endpoint group.
    #[serde(rename = "annotations", skip_serializing_if = "Option::is_none")]
    pub annotations: Option<std::collections::HashMap<String, String>>,
    /// Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.
    #[serde(rename = "healthStatus", skip_serializing_if = "Option::is_none")]
    pub health_status: Option<Vec<models::HealthStatus>>,
    /// [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
}

impl BackendServiceGroupHealth {
    pub fn new() -> BackendServiceGroupHealth {
        BackendServiceGroupHealth {
            annotations: None,
            health_status: None,
            kind: None,
        }
    }
}
