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
/*
* 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};
/// BpmnVersionRollup : Running BPMN instances grouped by pinned definition version (#919) -- \"we have 340 instances on 12 versions\" in one response.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnVersionRollup {
/// most outdated instances first, then most instances, then path
#[serde(rename = "flows")]
pub flows: Vec<models::BpmnFlowVersionRollup>,
#[serde(rename = "running_instances")]
pub running_instances: i64,
#[serde(rename = "outdated_instances")]
pub outdated_instances: i64,
/// distinct (flow, pinned version) groups
#[serde(rename = "pinned_versions")]
pub pinned_versions: i64,
/// live root instances that resolve to no `bpmn_flow_version` at all. Preview runs are excluded outright, so this is normally zero; it is reported so the totals reconcile against `/instances/list`.
#[serde(rename = "unattributed_instances")]
pub unattributed_instances: i64,
/// true when the response's per-version check limit was reached and some versions carry no verdict for that reason alone
#[serde(rename = "checks_truncated")]
pub checks_truncated: bool,
}
impl BpmnVersionRollup {
/// Running BPMN instances grouped by pinned definition version (#919) -- \"we have 340 instances on 12 versions\" in one response.
pub fn new(flows: Vec<models::BpmnFlowVersionRollup>, running_instances: i64, outdated_instances: i64, pinned_versions: i64, unattributed_instances: i64, checks_truncated: bool) -> BpmnVersionRollup {
BpmnVersionRollup {
flows,
running_instances,
outdated_instances,
pinned_versions,
unattributed_instances,
checks_truncated,
}
}
}