/*
 * 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 DependencyDependent {
    #[serde(rename = "importer_path")]
    pub importer_path: String,
    #[serde(rename = "importer_kind")]
    pub importer_kind: ImporterKind,
    #[serde(rename = "importer_node_ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub importer_node_ids: Option<Option<Vec<String>>>,
}

impl DependencyDependent {
    pub fn new(importer_path: String, importer_kind: ImporterKind) -> DependencyDependent {
        DependencyDependent {
            importer_path,
            importer_kind,
            importer_node_ids: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ImporterKind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "flow")]
    Flow,
    #[serde(rename = "app")]
    App,
}

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

