/*
* 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 ArgoDestination {
/// ArgoCD allows a destination by cluster name; omitted for the in-cluster projection.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Namespace is where in that cluster the workload lands. \"*\" on a project's destination fence means any namespace.
#[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
pub namespace: Option<String>,
/// Server is the cluster API URL the application reconciles into. Everything this plane projects lands in the cluster it runs in, so it is https://kubernetes.default.svc — except on a project's destination fence, where \"*\" means any cluster.
#[serde(rename = "server", skip_serializing_if = "Option::is_none")]
pub server: Option<String>,
}
impl ArgoDestination {
pub fn new() -> ArgoDestination {
ArgoDestination {
name: None,
namespace: None,
server: None,
}
}
}