/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * 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 ListLogFiles200ResponseInner {
    #[serde(rename = "hostname")]
    pub hostname: String,
    #[serde(rename = "mode")]
    pub mode: String,
    #[serde(rename = "worker_group", skip_serializing_if = "Option::is_none")]
    pub worker_group: Option<String>,
    #[serde(rename = "log_ts")]
    pub log_ts: String,
    #[serde(rename = "file_path")]
    pub file_path: String,
    #[serde(rename = "ok_lines", skip_serializing_if = "Option::is_none")]
    pub ok_lines: Option<i32>,
    #[serde(rename = "err_lines", skip_serializing_if = "Option::is_none")]
    pub err_lines: Option<i32>,
    #[serde(rename = "json_fmt")]
    pub json_fmt: bool,
}

impl ListLogFiles200ResponseInner {
    pub fn new(hostname: String, mode: String, log_ts: String, file_path: String, json_fmt: bool) -> ListLogFiles200ResponseInner {
        ListLogFiles200ResponseInner {
            hostname,
            mode,
            worker_group: None,
            log_ts,
            file_path,
            ok_lines: None,
            err_lines: None,
            json_fmt,
        }
    }
}

