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
41
42
43
44
45
46
47
48
/*
* 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 GithubPagesUpdateReq {
/// Branch switches the legacy source branch. Empty leaves the source alone.
#[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
pub branch: Option<String>,
/// BuildType switches the builder: \"legacy\" or \"workflow\". Empty leaves it.
#[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
pub build_type: Option<String>,
/// CNAME is the custom domain. Omit to leave it alone, \"\" to clear it, or a valid FQDN to set it.
#[serde(rename = "cname", skip_serializing_if = "Option::is_none")]
pub cname: Option<String>,
/// HTTPSEnforced toggles GitHub's enforce-HTTPS bit. Omit to leave it alone.
#[serde(rename = "httpsEnforced", skip_serializing_if = "Option::is_none")]
pub https_enforced: Option<bool>,
/// Path is the source directory to pair with Branch: \"/\" (the default) or \"/docs\". Read only when Branch is given.
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// Repo is the repository, from the :repo path segment.
#[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
pub repo: Option<String>,
}
impl GithubPagesUpdateReq {
pub fn new() -> GithubPagesUpdateReq {
GithubPagesUpdateReq {
branch: None,
build_type: None,
cname: None,
https_enforced: None,
path: None,
repo: None,
}
}
}