Skip to main content

windmill_api/models/
offboard_path_conflict.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.889.0
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 OffboardPathConflict {
16    #[serde(rename = "workspace_id")]
17    pub workspace_id: String,
18    /// Item kind, as its table name (script, flow, app, resource, variable, schedule, eval_dataset, http_trigger, ...)
19    #[serde(rename = "kind")]
20    pub kind: String,
21    /// The offboarded user's item, under u/{username}/
22    #[serde(rename = "source_path")]
23    pub source_path: String,
24    /// The existing item at the reassignment target
25    #[serde(rename = "target_path")]
26    pub target_path: String,
27}
28
29impl OffboardPathConflict {
30    pub fn new(workspace_id: String, kind: String, source_path: String, target_path: String) -> OffboardPathConflict {
31        OffboardPathConflict {
32            workspace_id,
33            kind,
34            source_path,
35            target_path,
36        }
37    }
38}
39