/*
 * 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 SyncResult {
    #[serde(rename = "already_in_sync")]
    pub already_in_sync: bool,
    #[serde(rename = "added_count")]
    pub added_count: i32,
    #[serde(rename = "added_triggers")]
    pub added_triggers: Vec<String>,
    #[serde(rename = "total_external")]
    pub total_external: i32,
    #[serde(rename = "total_orvanta")]
    pub total_orvanta: i32,
}

impl SyncResult {
    pub fn new(already_in_sync: bool, added_count: i32, added_triggers: Vec<String>, total_external: i32, total_orvanta: i32) -> SyncResult {
        SyncResult {
            already_in_sync,
            added_count,
            added_triggers,
            total_external,
            total_orvanta,
        }
    }
}

