/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClusterList {
/// Clusters is the merged fleet — kind \"managed\" for Visor-provisioned, \"byo\" for an attached kubeconfig.
#[serde(rename = "clusters", skip_serializing_if = "Option::is_none")]
pub clusters: Option<Vec<models::ClusterView>>,
/// Degraded names any source that did not answer, so an empty Clusters means \"you have none\" only when this is absent. Omitted when everything answered, so a healthy response is unchanged. See degraded.go.
#[serde(rename = "degraded", skip_serializing_if = "Option::is_none")]
pub degraded: Option<Vec<models::SourceFailure>>,
}
impl ClusterList {
pub fn new() -> ClusterList {
ClusterList {
clusters: None,
degraded: None,
}
}
}