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;

/// RouterAdvertisedIpRange : Description-tagged IP ranges for the router to advertise.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RouterAdvertisedIpRange {
    /// User-specified description for the IP range.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// The IP range to advertise. The value must be a CIDR-formatted string.
    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
    pub range: Option<String>,
}

impl RouterAdvertisedIpRange {
    /// Description-tagged IP ranges for the router to advertise.
    pub fn new() -> RouterAdvertisedIpRange {
        RouterAdvertisedIpRange {
            description: None,
            range: None,
        }
    }
}
