/*
* 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 MirrorReq {
/// Name is the local repo to mirror into, from the :name path segment. It is CREATED on first use.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Project is the sub-scope to land the repo in; empty uses the caller's own, exactly as a create would.
#[serde(rename = "project", skip_serializing_if = "Option::is_none")]
pub project: Option<String>,
/// Source is the http(s) git URL to fetch from. The host is SSRF-guarded, and a credential is sent only if we hold one NAMED FOR that host — so a tenant-supplied URL to anywhere else fetches anonymously.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
}
impl MirrorReq {
pub fn new() -> MirrorReq {
MirrorReq {
name: None,
project: None,
source: None,
}
}
}