/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMediaPresignedUrl200Response {
    /// Presigned URL to PUT your file to (expires in 1 hour)
    #[serde(rename = "uploadUrl", skip_serializing_if = "Option::is_none")]
    pub upload_url: Option<String>,
    /// Public URL where the file will be accessible after upload
    #[serde(rename = "publicUrl", skip_serializing_if = "Option::is_none")]
    pub public_url: Option<String>,
    /// Storage key/path of the file
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    /// Seconds until the presigned uploadUrl expires (always 3600)
    #[serde(rename = "expiresIn", skip_serializing_if = "Option::is_none")]
    pub expires_in: Option<i32>,
}

impl GetMediaPresignedUrl200Response {
    pub fn new() -> GetMediaPresignedUrl200Response {
        GetMediaPresignedUrl200Response {
            upload_url: None,
            public_url: None,
            key: None,
            expires_in: None,
        }
    }
}
