Skip to main content

orvanta_api/models/
request_bpmn_instance_migration_request.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.2.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 RequestBpmnInstanceMigrationRequest {
16    #[serde(rename = "target_version")]
17    pub target_version: i64,
18    #[serde(rename = "mapping", skip_serializing_if = "Option::is_none")]
19    pub mapping: Option<Box<models::BpmnMigrationMapping>>,
20    /// validate and report, write no request
21    #[serde(rename = "dry_run", skip_serializing_if = "Option::is_none")]
22    pub dry_run: Option<bool>,
23}
24
25impl RequestBpmnInstanceMigrationRequest {
26    pub fn new(target_version: i64) -> RequestBpmnInstanceMigrationRequest {
27        RequestBpmnInstanceMigrationRequest {
28            target_version,
29            mapping: None,
30            dry_run: None,
31        }
32    }
33}
34