late 0.0.913

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api  Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal.  Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
 *
 * 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};

/// GooglePmaxAssetGroupInput : Google Performance Max creative assets. At least one description must be 60 characters or fewer. Texts within each list must be distinct.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GooglePmaxAssetGroupInput {
    /// Defaults to the request name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Required destination URL.
    #[serde(rename = "finalUrl")]
    pub final_url: String,
    #[serde(rename = "headlines")]
    pub headlines: Vec<String>,
    #[serde(rename = "longHeadline")]
    pub long_headline: String,
    /// At least one description must be 60 characters or fewer.
    #[serde(rename = "descriptions")]
    pub descriptions: Vec<String>,
    #[serde(rename = "businessName")]
    pub business_name: String,
    #[serde(rename = "images")]
    pub images: Box<models::GooglePmaxAssetGroupInputImages>,
    /// Optional existing YouTube video id. Google can generate video when omitted. Video uploads and arbitrary video URLs are not supported.
    #[serde(rename = "youtubeVideoId", skip_serializing_if = "Option::is_none")]
    pub youtube_video_id: Option<String>,
}

impl GooglePmaxAssetGroupInput {
    /// Google Performance Max creative assets. At least one description must be 60 characters or fewer. Texts within each list must be distinct.
    pub fn new(
        final_url: String,
        headlines: Vec<String>,
        long_headline: String,
        descriptions: Vec<String>,
        business_name: String,
        images: models::GooglePmaxAssetGroupInputImages,
    ) -> GooglePmaxAssetGroupInput {
        GooglePmaxAssetGroupInput {
            name: None,
            final_url,
            headlines,
            long_headline,
            descriptions,
            business_name,
            images: Box::new(images),
            youtube_video_id: None,
        }
    }
}