/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreatePgDatabaseRequest {
    /// Datatable source to determine connection info: 'datatable://name' or '$res:path'
    #[serde(rename = "source")]
    pub source: String,
    /// Name for the new database
    #[serde(rename = "target_dbname")]
    pub target_dbname: String,
}

impl CreatePgDatabaseRequest {
    pub fn new(source: String, target_dbname: String) -> CreatePgDatabaseRequest {
        CreatePgDatabaseRequest {
            source,
            target_dbname,
        }
    }
}

