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

/// AutoscalingPolicyLoadBalancingUtilization : Configuration parameters of autoscaling based on load balancing.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AutoscalingPolicyLoadBalancingUtilization {
    /// Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8.
    #[serde(rename = "utilizationTarget", skip_serializing_if = "Option::is_none")]
    pub utilization_target: Option<f64>,
}

impl AutoscalingPolicyLoadBalancingUtilization {
    /// Configuration parameters of autoscaling based on load balancing.
    pub fn new() -> AutoscalingPolicyLoadBalancingUtilization {
        AutoscalingPolicyLoadBalancingUtilization {
            utilization_target: None,
        }
    }
}
