/*
 * 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 GetJobUpdates200Response {
    #[serde(rename = "running", skip_serializing_if = "Option::is_none")]
    pub running: Option<bool>,
    #[serde(rename = "completed", skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[serde(rename = "new_logs", skip_serializing_if = "Option::is_none")]
    pub new_logs: Option<String>,
    #[serde(rename = "log_offset", skip_serializing_if = "Option::is_none")]
    pub log_offset: Option<i32>,
    #[serde(rename = "mem_peak", skip_serializing_if = "Option::is_none")]
    pub mem_peak: Option<i32>,
    #[serde(rename = "progress", skip_serializing_if = "Option::is_none")]
    pub progress: Option<i32>,
    #[serde(rename = "stream_offset", skip_serializing_if = "Option::is_none")]
    pub stream_offset: Option<i32>,
    #[serde(rename = "new_result_stream", skip_serializing_if = "Option::is_none")]
    pub new_result_stream: Option<String>,
    #[serde(rename = "flow_status", skip_serializing_if = "Option::is_none")]
    pub flow_status: Option<Box<models::FlowStatus>>,
    #[serde(rename = "workflow_as_code_status", skip_serializing_if = "Option::is_none")]
    pub workflow_as_code_status: Option<Box<models::WorkflowStatus>>,
}

impl GetJobUpdates200Response {
    pub fn new() -> GetJobUpdates200Response {
        GetJobUpdates200Response {
            running: None,
            completed: None,
            new_logs: None,
            log_offset: None,
            mem_peak: None,
            progress: None,
            stream_offset: None,
            new_result_stream: None,
            flow_status: None,
            workflow_as_code_status: None,
        }
    }
}

