1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* 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 ArgoProjectSpec {
/// ClusterResourceWhitelist are the cluster-scoped kinds it may create — [{group:\"*\", kind:\"*\"}] on a synthesized project.
#[serde(rename = "clusterResourceWhitelist", skip_serializing_if = "Option::is_none")]
pub cluster_resource_whitelist: Option<Vec<models::ArgoGroupKind>>,
/// Description is the project's human label: the IAM project's display name, or its description when it has no display name. Absent when IAM carries neither.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Destinations are the cluster/namespace pairs it may write to — a single {server:\"*\", namespace:\"*\"} on a synthesized project, for the same reason.
#[serde(rename = "destinations", skip_serializing_if = "Option::is_none")]
pub destinations: Option<Vec<models::ArgoDestination>>,
/// SourceRepos are the git repos applications in this project may pull from. [\"*\"] for every project this plane synthesizes or reflects from IAM: the boundary that actually holds on this platform is the IAM org, resolved before a row is ever projected, so the projected fence is deliberately permissive and is NOT an authorization statement.
#[serde(rename = "sourceRepos", skip_serializing_if = "Option::is_none")]
pub source_repos: Option<Vec<String>>,
}
impl ArgoProjectSpec {
pub fn new() -> ArgoProjectSpec {
ArgoProjectSpec {
cluster_resource_whitelist: None,
description: None,
destinations: None,
source_repos: None,
}
}
}