/*
 * 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 ListDataTables200ResponseInner {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "resource_type")]
    pub resource_type: ResourceType,
    #[serde(rename = "resource_path")]
    pub resource_path: String,
}

impl ListDataTables200ResponseInner {
    pub fn new(name: String, resource_type: ResourceType, resource_path: String) -> ListDataTables200ResponseInner {
        ListDataTables200ResponseInner {
            name,
            resource_type,
            resource_path,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ResourceType {
    #[serde(rename = "postgres")]
    Postgres,
    #[serde(rename = "instance")]
    Instance,
}

impl Default for ResourceType {
    fn default() -> ResourceType {
        Self::Postgres
    }
}

