/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * 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 PruneVersionsRequest {
    #[serde(rename = "resource_type")]
    pub resource_type: ResourceType,
}

impl PruneVersionsRequest {
    pub fn new(resource_type: ResourceType) -> PruneVersionsRequest {
        PruneVersionsRequest {
            resource_type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ResourceType {
    #[serde(rename = "scripts")]
    Scripts,
    #[serde(rename = "flows")]
    Flows,
    #[serde(rename = "apps")]
    Apps,
}

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

