/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// AvailableIp : Representation of an IP address which does not exist in the database.  Response serializer for a GET to /api/ipam/prefixes/{id}/available-ips/.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AvailableIp {
    #[serde(rename = "ip_version", skip_serializing_if = "Option::is_none")]
    pub ip_version: Option<i32>,
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
}

impl AvailableIp {
    /// Representation of an IP address which does not exist in the database.  Response serializer for a GET to /api/ipam/prefixes/{id}/available-ips/.
    pub fn new() -> AvailableIp {
        AvailableIp {
            ip_version: None,
            address: None,
        }
    }
}
