orvanta-api 6.5.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: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// BpmnValidationRequest : A document to check without committing it (#1560). Nothing is stored.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnValidationRequest {
    /// The BPMN 2.0 XML to check, as a string.
    #[serde(rename = "bpmn_xml")]
    pub bpmn_xml: String,
    /// The workspace path this document is *destined* for, if you have one. Used only for the scope check -- no row is read or written under it, and a path that does not exist yet is fine. Omit it and the check is \"any path\", which is honest: the answer does not depend on one.
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}

impl BpmnValidationRequest {
    /// A document to check without committing it (#1560). Nothing is stored.
    pub fn new(bpmn_xml: String) -> BpmnValidationRequest {
        BpmnValidationRequest {
            bpmn_xml,
            path: None,
        }
    }
}