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;

/// UsableSubnetworkSecondaryRange : Secondary IP range of a usable subnetwork.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UsableSubnetworkSecondaryRange {
    /// The range of IP addresses belonging to this subnetwork secondary range.
    #[serde(rename = "ipCidrRange", skip_serializing_if = "Option::is_none")]
    pub ip_cidr_range: Option<String>,
    /// The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
    #[serde(rename = "rangeName", skip_serializing_if = "Option::is_none")]
    pub range_name: Option<String>,
}

impl UsableSubnetworkSecondaryRange {
    /// Secondary IP range of a usable subnetwork.
    pub fn new() -> UsableSubnetworkSecondaryRange {
        UsableSubnetworkSecondaryRange {
            ip_cidr_range: None,
            range_name: None,
        }
    }
}
