1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.1.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// PolyglotBpmnSeedResult : Result of seeding the Orvanta Quick Starts Polyglot BPMN process (#1090).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PolyglotBpmnSeedResult {
/// Workspace path the process was (or already was) deployed at.
#[serde(rename = "bpmn_path")]
pub bpmn_path: String,
/// Workspace paths of the five seeded scripts, in template order.
#[serde(rename = "script_paths")]
pub script_paths: Vec<String>,
/// `true` when the process already existed and this call created nothing -- the idempotent short-circuit, not an error.
#[serde(rename = "already_seeded")]
pub already_seeded: bool,
}
impl PolyglotBpmnSeedResult {
/// Result of seeding the Orvanta Quick Starts Polyglot BPMN process (#1090).
pub fn new(bpmn_path: String, script_paths: Vec<String>, already_seeded: bool) -> PolyglotBpmnSeedResult {
PolyglotBpmnSeedResult {
bpmn_path,
script_paths,
already_seeded,
}
}
}