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};

/// BpmnMigrationRequested : A stored migration request (#925). The migration has **not** happened: the engine applies it at the top of the instance's next step, together with the pin move and the ledger row. What was written into `control.migrate` is the mapping document; `plan` is what the engine will re-derive from it, returned for the caller's information only.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationRequested {
    #[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 resolved plan rewrites nothing
    #[serde(rename = "identity")]
    pub identity: bool,
    /// validated only -- no request was stored
    #[serde(rename = "dry_run")]
    pub dry_run: bool,
    #[serde(rename = "plan")]
    pub plan: Box<models::BpmnMigrationPlan>,
}

impl BpmnMigrationRequested {
    /// A stored migration request (#925). The migration has **not** happened: the engine applies it at the top of the instance's next step, together with the pin move and the ledger row. What was written into `control.migrate` is the mapping document; `plan` is what the engine will re-derive from it, returned for the caller's information only.
    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, identity: bool, dry_run: bool, plan: models::BpmnMigrationPlan) -> BpmnMigrationRequested {
        BpmnMigrationRequested {
            from_version,
            to_version,
            bpmn_flow_path,
            identity,
            dry_run,
            plan: Box::new(plan),
        }
    }
}