/*
 * Abaco API
 *
 * Abaco (Actor Based Containers) is an API and distributed computing platform funded by the National Science Foundation to provide Functions-as-a-service to the research computing community. Abaco leverages Docker containers and the Actor Model of Concurrent Computation to provide generic function primitives that are portable, composable and scalable.
 *
 * The version of the OpenAPI document: 1
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActorExecutionSummaries {
    /// the id of the actor
    #[serde(rename = "actor_id", skip_serializing_if = "Option::is_none")]
    pub actor_id: Option<String>,
    /// the base URL for this Abaco instance.
    #[serde(rename = "api_server", skip_serializing_if = "Option::is_none")]
    pub api_server: Option<String>,
    /// The user who owns the associated actor.
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(rename = "total_cpu", skip_serializing_if = "Option::is_none")]
    pub total_cpu: Option<i32>,
    #[serde(rename = "total_executions", skip_serializing_if = "Option::is_none")]
    pub total_executions: Option<i32>,
    #[serde(rename = "total_io", skip_serializing_if = "Option::is_none")]
    pub total_io: Option<i32>,
    #[serde(rename = "total_runtime", skip_serializing_if = "Option::is_none")]
    pub total_runtime: Option<i32>,
    #[serde(rename = "executions", skip_serializing_if = "Option::is_none")]
    pub executions: Option<Vec<models::ExecutionSummary>>,
}

impl ActorExecutionSummaries {
    pub fn new() -> ActorExecutionSummaries {
        ActorExecutionSummaries {
            actor_id: None,
            api_server: None,
            owner: None,
            total_cpu: None,
            total_executions: None,
            total_io: None,
            total_runtime: None,
            executions: None,
        }
    }
}
