/*
 * 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 AutoscalingEvent {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i64>,
    #[serde(rename = "worker_group", skip_serializing_if = "Option::is_none")]
    pub worker_group: Option<String>,
    #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")]
    pub event_type: Option<String>,
    #[serde(rename = "desired_workers", skip_serializing_if = "Option::is_none")]
    pub desired_workers: Option<i32>,
    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    #[serde(rename = "applied_at", skip_serializing_if = "Option::is_none")]
    pub applied_at: Option<String>,
}

impl AutoscalingEvent {
    pub fn new() -> AutoscalingEvent {
        AutoscalingEvent {
            id: None,
            worker_group: None,
            event_type: None,
            desired_workers: None,
            reason: None,
            applied_at: None,
        }
    }
}

