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;

/// HealthCheckLogConfig : Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HealthCheckLogConfig {
    /// Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
    pub enable: Option<bool>,
}

impl HealthCheckLogConfig {
    /// Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.
    pub fn new() -> HealthCheckLogConfig {
        HealthCheckLogConfig { enable: None }
    }
}
