foxclient 6.1.0

Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
Documentation
/*
 * Fox API
 *
 * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.  To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit.  The requests may be logged for analytics and development purposes. 
 *
 * The version of the OpenAPI document: 6.1.0
 * Contact: admin@orangefox.tech
 * Generated by: https://openapi-generator.tech
 */

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

/// UptimeHealth : FoxHealth summary (without internal endpoint addresses).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UptimeHealth {
    #[serde(rename = "allUp")]
    pub all_up: bool,
    #[serde(rename = "hosts")]
    pub hosts: Vec<models::UptimeHealthHost>,
    #[serde(rename = "requiredUp")]
    pub required_up: bool,
    #[serde(rename = "role")]
    pub role: String,
    #[serde(rename = "status")]
    pub status: String,
}

impl UptimeHealth {
    /// FoxHealth summary (without internal endpoint addresses).
    pub fn new(all_up: bool, hosts: Vec<models::UptimeHealthHost>, required_up: bool, role: String, status: String) -> UptimeHealth {
        UptimeHealth {
            all_up,
            hosts,
            required_up,
            role,
            status,
        }
    }
}