/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * 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 BatchReRunJobsRequest {
    #[serde(rename = "job_ids")]
    pub job_ids: Vec<String>,
    #[serde(rename = "script_options_by_path")]
    pub script_options_by_path: std::collections::HashMap<String, models::BatchReRunJobsRequestScriptOptionsByPathValue>,
    #[serde(rename = "flow_options_by_path")]
    pub flow_options_by_path: std::collections::HashMap<String, models::BatchReRunJobsRequestScriptOptionsByPathValue>,
}

impl BatchReRunJobsRequest {
    pub fn new(job_ids: Vec<String>, script_options_by_path: std::collections::HashMap<String, models::BatchReRunJobsRequestScriptOptionsByPathValue>, flow_options_by_path: std::collections::HashMap<String, models::BatchReRunJobsRequestScriptOptionsByPathValue>) -> BatchReRunJobsRequest {
        BatchReRunJobsRequest {
            job_ids,
            script_options_by_path,
            flow_options_by_path,
        }
    }
}

