windmill_api/models/
git_repository_settings_settings.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.513.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GitRepositorySettingsSettings {
16    #[serde(rename = "include_path", skip_serializing_if = "Option::is_none")]
17    pub include_path: Option<Vec<String>>,
18    #[serde(rename = "include_type", skip_serializing_if = "Option::is_none")]
19    pub include_type: Option<Vec<IncludeType>>,
20    #[serde(rename = "exclude_path", skip_serializing_if = "Option::is_none")]
21    pub exclude_path: Option<Vec<String>>,
22    #[serde(rename = "extra_include_path", skip_serializing_if = "Option::is_none")]
23    pub extra_include_path: Option<Vec<String>>,
24}
25
26impl GitRepositorySettingsSettings {
27    pub fn new() -> GitRepositorySettingsSettings {
28        GitRepositorySettingsSettings {
29            include_path: None,
30            include_type: None,
31            exclude_path: None,
32            extra_include_path: None,
33        }
34    }
35}
36/// 
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum IncludeType {
39    #[serde(rename = "script")]
40    Script,
41    #[serde(rename = "flow")]
42    Flow,
43    #[serde(rename = "app")]
44    App,
45    #[serde(rename = "folder")]
46    Folder,
47    #[serde(rename = "resource")]
48    Resource,
49    #[serde(rename = "variable")]
50    Variable,
51    #[serde(rename = "secret")]
52    Secret,
53    #[serde(rename = "resourcetype")]
54    Resourcetype,
55    #[serde(rename = "schedule")]
56    Schedule,
57    #[serde(rename = "user")]
58    User,
59    #[serde(rename = "group")]
60    Group,
61    #[serde(rename = "trigger")]
62    Trigger,
63    #[serde(rename = "settings")]
64    Settings,
65    #[serde(rename = "key")]
66    Key,
67}
68
69impl Default for IncludeType {
70    fn default() -> IncludeType {
71        Self::Script
72    }
73}
74