/*
 * 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 OffboardSummary {
    #[serde(rename = "scripts_reassigned")]
    pub scripts_reassigned: i32,
    #[serde(rename = "flows_reassigned")]
    pub flows_reassigned: i32,
    #[serde(rename = "apps_reassigned")]
    pub apps_reassigned: i32,
    #[serde(rename = "resources_reassigned")]
    pub resources_reassigned: i32,
    #[serde(rename = "variables_reassigned")]
    pub variables_reassigned: i32,
    #[serde(rename = "schedules_reassigned")]
    pub schedules_reassigned: i32,
    #[serde(rename = "triggers_reassigned")]
    pub triggers_reassigned: i32,
    #[serde(rename = "drafts_deleted")]
    pub drafts_deleted: i32,
}

impl OffboardSummary {
    pub fn new(scripts_reassigned: i32, flows_reassigned: i32, apps_reassigned: i32, resources_reassigned: i32, variables_reassigned: i32, schedules_reassigned: i32, triggers_reassigned: i32, drafts_deleted: i32) -> OffboardSummary {
        OffboardSummary {
            scripts_reassigned,
            flows_reassigned,
            apps_reassigned,
            resources_reassigned,
            variables_reassigned,
            schedules_reassigned,
            triggers_reassigned,
            drafts_deleted,
        }
    }
}

