/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// TargetingSpecExcludedLocations : Geo to exclude from the audience. A subset of the inclusion geo shape.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TargetingSpecExcludedLocations {
    #[serde(rename = "countries", skip_serializing_if = "Option::is_none")]
    pub countries: Option<Vec<String>>,
    #[serde(rename = "regions", skip_serializing_if = "Option::is_none")]
    pub regions: Option<Vec<models::CreateStandaloneAdRequestZipsInner>>,
    #[serde(rename = "cities", skip_serializing_if = "Option::is_none")]
    pub cities: Option<Vec<models::CreateStandaloneAdRequestZipsInner>>,
    #[serde(rename = "zips", skip_serializing_if = "Option::is_none")]
    pub zips: Option<Vec<models::CreateStandaloneAdRequestZipsInner>>,
}

impl TargetingSpecExcludedLocations {
    /// Geo to exclude from the audience. A subset of the inclusion geo shape.
    pub fn new() -> TargetingSpecExcludedLocations {
        TargetingSpecExcludedLocations {
            countries: None,
            regions: None,
            cities: None,
            zips: None,
        }
    }
}
