Skip to main content

orvanta_api/models/
bpmn_migration_check.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: 3.0.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnMigrationCheck : Whether an instance pinned to `from_version` may be repinned to `to_version`, and if not, why. A property of the pair, not of an instance.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnMigrationCheck {
17    #[serde(rename = "from_version")]
18    pub from_version: i64,
19    #[serde(rename = "to_version")]
20    pub to_version: i64,
21    #[serde(rename = "bpmn_flow_path")]
22    pub bpmn_flow_path: String,
23    #[serde(rename = "eligible")]
24    pub eligible: bool,
25    #[serde(rename = "blockers")]
26    pub blockers: Vec<models::BpmnMigrationBlocker>,
27}
28
29impl BpmnMigrationCheck {
30    /// Whether an instance pinned to `from_version` may be repinned to `to_version`, and if not, why. A property of the pair, not of an instance.
31    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, eligible: bool, blockers: Vec<models::BpmnMigrationBlocker>) -> BpmnMigrationCheck {
32        BpmnMigrationCheck {
33            from_version,
34            to_version,
35            bpmn_flow_path,
36            eligible,
37            blockers,
38        }
39    }
40}
41