/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * 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 TriggersCount {
    #[serde(rename = "primary_schedule", skip_serializing_if = "Option::is_none")]
    pub primary_schedule: Option<Box<models::TriggersCountPrimarySchedule>>,
    #[serde(rename = "schedule_count", skip_serializing_if = "Option::is_none")]
    pub schedule_count: Option<f64>,
    #[serde(rename = "http_routes_count", skip_serializing_if = "Option::is_none")]
    pub http_routes_count: Option<f64>,
    #[serde(rename = "webhook_count", skip_serializing_if = "Option::is_none")]
    pub webhook_count: Option<f64>,
    #[serde(rename = "email_count", skip_serializing_if = "Option::is_none")]
    pub email_count: Option<f64>,
    #[serde(rename = "default_email_count", skip_serializing_if = "Option::is_none")]
    pub default_email_count: Option<f64>,
    #[serde(rename = "websocket_count", skip_serializing_if = "Option::is_none")]
    pub websocket_count: Option<f64>,
    #[serde(rename = "postgres_count", skip_serializing_if = "Option::is_none")]
    pub postgres_count: Option<f64>,
    #[serde(rename = "kafka_count", skip_serializing_if = "Option::is_none")]
    pub kafka_count: Option<f64>,
    #[serde(rename = "nats_count", skip_serializing_if = "Option::is_none")]
    pub nats_count: Option<f64>,
    #[serde(rename = "mqtt_count", skip_serializing_if = "Option::is_none")]
    pub mqtt_count: Option<f64>,
    #[serde(rename = "gcp_count", skip_serializing_if = "Option::is_none")]
    pub gcp_count: Option<f64>,
    #[serde(rename = "azure_count", skip_serializing_if = "Option::is_none")]
    pub azure_count: Option<f64>,
    #[serde(rename = "sqs_count", skip_serializing_if = "Option::is_none")]
    pub sqs_count: Option<f64>,
    #[serde(rename = "nextcloud_count", skip_serializing_if = "Option::is_none")]
    pub nextcloud_count: Option<f64>,
    #[serde(rename = "google_count", skip_serializing_if = "Option::is_none")]
    pub google_count: Option<f64>,
    #[serde(rename = "github_count", skip_serializing_if = "Option::is_none")]
    pub github_count: Option<f64>,
}

impl TriggersCount {
    pub fn new() -> TriggersCount {
        TriggersCount {
            primary_schedule: None,
            schedule_count: None,
            http_routes_count: None,
            webhook_count: None,
            email_count: None,
            default_email_count: None,
            websocket_count: None,
            postgres_count: None,
            kafka_count: None,
            nats_count: None,
            mqtt_count: None,
            gcp_count: None,
            azure_count: None,
            sqs_count: None,
            nextcloud_count: None,
            google_count: None,
            github_count: None,
        }
    }
}

