Skip to main content

orvanta_api/models/
bpmn_flow_with_draft.rs

1/*
2 * Orvanta 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.6.0
7 * Contact: contact@orvanta.cloud
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 BpmnFlowWithDraft {
16    #[serde(rename = "path")]
17    pub path: String,
18    #[serde(rename = "summary")]
19    pub summary: String,
20    #[serde(rename = "description")]
21    pub description: String,
22    #[serde(rename = "bpmn_xml")]
23    pub bpmn_xml: String,
24    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
25    pub schema: Option<serde_json::Value>,
26    #[serde(rename = "extra_perms")]
27    pub extra_perms: std::collections::HashMap<String, bool>,
28    #[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
29    pub draft_only: Option<bool>,
30    #[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
31    pub draft: Option<serde_json::Value>,
32    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
33    pub labels: Option<Vec<String>>,
34}
35
36impl BpmnFlowWithDraft {
37    pub fn new(path: String, summary: String, description: String, bpmn_xml: String, extra_perms: std::collections::HashMap<String, bool>) -> BpmnFlowWithDraft {
38        BpmnFlowWithDraft {
39            path,
40            summary,
41            description,
42            bpmn_xml,
43            schema: None,
44            extra_perms,
45            draft_only: None,
46            draft: None,
47            labels: None,
48        }
49    }
50}
51