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};

/// 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,
        }
    }
}