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;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PreservedStatePreservedNetworkIpIpAddress {
    /// The URL of the reservation for this IP address.
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// An IPv4 internal network address to assign to the instance for this network interface.
    #[serde(rename = "literal", skip_serializing_if = "Option::is_none")]
    pub literal: Option<String>,
}

impl PreservedStatePreservedNetworkIpIpAddress {
    pub fn new() -> PreservedStatePreservedNetworkIpIpAddress {
        PreservedStatePreservedNetworkIpIpAddress {
            address: None,
            literal: None,
        }
    }
}
