hanzo_client/models/argo_source.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 ArgoSource {
16 /// Path is the directory within RepoURL. Display-only alongside a display-only RepoURL; CD's own value for a CD row.
17 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18 pub path: Option<String>,
19 /// RepoURL is the git repository the desired state comes from. For an application projected from an App CR it is the fleet manifest repo and is DISPLAY ONLY — an App CR pins an image, and nothing is rendered from this repo to produce it. For a CD row it is the repo CD actually polls.
20 #[serde(rename = "repoURL", skip_serializing_if = "Option::is_none")]
21 pub repo_url: Option<String>,
22 /// TargetRevision is the git ref tracked there — a branch such as \"main\". Display-only for a projected App CR; the ref CD tracks for a CD row.
23 #[serde(rename = "targetRevision", skip_serializing_if = "Option::is_none")]
24 pub target_revision: Option<String>,
25}
26
27impl ArgoSource {
28 pub fn new() -> ArgoSource {
29 ArgoSource {
30 path: None,
31 repo_url: None,
32 target_revision: None,
33 }
34 }
35}
36