// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Create a workflow test run. Provide a `workflow_id`, and optionally narrow execution with `scope` to a single test or one block. Omit `scope` to run every saved workflow test.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateWorkflowTestRunRequest {
    pub workflow_id: String,
    /// Optional execution scope. Omit (or pass null) to run every saved test in the workflow.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scope: Option<CreateWorkflowTestRunRequestScopeOneOf>,
}
impl CreateWorkflowTestRunRequest {
    /// Construct a new `CreateWorkflowTestRunRequest` with the required fields set.
    #[allow(deprecated)]
    pub fn new(workflow_id: impl Into<String>) -> Self {
        Self {
            workflow_id: workflow_id.into(),
            scope: Default::default(),
        }
    }
}
