Skip to main content

hanzo_client/models/
cluster_attach.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClusterAttach {
16    /// Default marks this the org's default cluster for scheduling.
17    #[serde(rename = "default", skip_serializing_if = "Option::is_none")]
18    pub default: Option<bool>,
19    /// Kubeconfig is the cluster's kubeconfig, verbatim. Required — a body without one is not an attach.
20    #[serde(rename = "kubeconfig", skip_serializing_if = "Option::is_none")]
21    pub kubeconfig: Option<String>,
22    /// Name is the fleet-local name for the cluster; lower-cased, and the key the detach route addresses it by. Required.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// Provider is a free-form label for where the cluster runs (\"gke\", \"on-prem\"); it is display only, not a routing key.
26    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
27    pub provider: Option<String>,
28}
29
30impl ClusterAttach {
31    pub fn new() -> ClusterAttach {
32        ClusterAttach {
33            default: None,
34            kubeconfig: None,
35            name: None,
36            provider: None,
37        }
38    }
39}
40