orvanta-api 3.0.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.0.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 BpmnFlow {
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "bpmn_xml")]
    pub bpmn_xml: String,
    /// JSON Schema of the process's start variables, derived from the diagram at deploy time unless the deploying client supplied its own. Renders the run form. Absent for flows deployed before start-variable schemas existed.
    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
    pub schema: Option<serde_json::Value>,
    #[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
    pub draft_only: Option<bool>,
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
    #[serde(rename = "archived")]
    pub archived: bool,
    #[serde(rename = "edited_by")]
    pub edited_by: String,
    #[serde(rename = "edited_at")]
    pub edited_at: String,
    #[serde(rename = "extra_perms")]
    pub extra_perms: std::collections::HashMap<String, bool>,
    #[serde(rename = "version_id", skip_serializing_if = "Option::is_none")]
    pub version_id: Option<i32>,
}

impl BpmnFlow {
    pub fn new(workspace_id: String, path: String, summary: String, description: String, bpmn_xml: String, archived: bool, edited_by: String, edited_at: String, extra_perms: std::collections::HashMap<String, bool>) -> BpmnFlow {
        BpmnFlow {
            workspace_id,
            path,
            summary,
            description,
            bpmn_xml,
            schema: None,
            draft_only: None,
            labels: None,
            archived,
            edited_by,
            edited_at,
            extra_perms,
            version_id: None,
        }
    }
}