orvanta-api 3.2.0

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

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

/// RuntimeUsageLocation : One concrete usage of a language (#190/#255 runtime governance).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RuntimeUsageLocation {
    #[serde(rename = "kind")]
    pub kind: Kind,
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    #[serde(rename = "path")]
    pub path: String,
}

impl RuntimeUsageLocation {
    /// One concrete usage of a language (#190/#255 runtime governance).
    pub fn new(kind: Kind, workspace_id: String, path: String) -> RuntimeUsageLocation {
        RuntimeUsageLocation {
            kind,
            workspace_id,
            path,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Kind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "flow")]
    Flow,
    #[serde(rename = "app")]
    App,
}

impl Default for Kind {
    fn default() -> Kind {
        Self::Script
    }
}