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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* 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};
/// BpmnMigrationPlanCheck : Whether a mapping document holds for a version pair, and the substitution it resolves to. Nothing is written by the operations that return this.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationPlanCheck {
#[serde(rename = "from_version")]
pub from_version: i64,
#[serde(rename = "to_version")]
pub to_version: i64,
#[serde(rename = "bpmn_flow_path")]
pub bpmn_flow_path: String,
/// the mapping document holds against this pair
#[serde(rename = "eligible")]
pub eligible: bool,
/// the resolved plan rewrites nothing, so the pair is identity-migratable and `process_status` must not be touched
#[serde(rename = "identity")]
pub identity: bool,
/// this migration can be performed with what exists today. Equal to `identity` until the engine-side applier lands -- a non-identity plan is validated but not yet applicable.
#[serde(rename = "executable_today")]
pub executable_today: bool,
#[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
pub plan: Option<Box<models::BpmnMigrationPlan>>,
#[serde(rename = "blockers")]
pub blockers: Vec<models::BpmnMappingBlocker>,
}
impl BpmnMigrationPlanCheck {
/// Whether a mapping document holds for a version pair, and the substitution it resolves to. Nothing is written by the operations that return this.
pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, eligible: bool, identity: bool, executable_today: bool, blockers: Vec<models::BpmnMappingBlocker>) -> BpmnMigrationPlanCheck {
BpmnMigrationPlanCheck {
from_version,
to_version,
bpmn_flow_path,
eligible,
identity,
executable_today,
plan: None,
blockers,
}
}
}