orvanta-api 3.3.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RequestBpmnInstanceMigrationRequest {
    #[serde(rename = "target_version")]
    pub target_version: i64,
    #[serde(rename = "mapping", skip_serializing_if = "Option::is_none")]
    pub mapping: Option<Box<models::BpmnMigrationMapping>>,
    /// validate and report, write no request
    #[serde(rename = "dry_run", skip_serializing_if = "Option::is_none")]
    pub dry_run: Option<bool>,
}

impl RequestBpmnInstanceMigrationRequest {
    pub fn new(target_version: i64) -> RequestBpmnInstanceMigrationRequest {
        RequestBpmnInstanceMigrationRequest {
            target_version,
            mapping: None,
            dry_run: None,
        }
    }
}