hanzo_client/models/github_pages_update_req.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 GithubPagesUpdateReq {
16 /// Branch switches the legacy source branch. Empty leaves the source alone.
17 #[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
18 pub branch: Option<String>,
19 /// BuildType switches the builder: \"legacy\" or \"workflow\". Empty leaves it.
20 #[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
21 pub build_type: Option<String>,
22 /// CNAME is the custom domain. Omit to leave it alone, \"\" to clear it, or a valid FQDN to set it.
23 #[serde(rename = "cname", skip_serializing_if = "Option::is_none")]
24 pub cname: Option<String>,
25 /// HTTPSEnforced toggles GitHub's enforce-HTTPS bit. Omit to leave it alone.
26 #[serde(rename = "httpsEnforced", skip_serializing_if = "Option::is_none")]
27 pub https_enforced: Option<bool>,
28 /// Path is the source directory to pair with Branch: \"/\" (the default) or \"/docs\". Read only when Branch is given.
29 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
30 pub path: Option<String>,
31 /// Repo is the repository, from the :repo path segment.
32 #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
33 pub repo: Option<String>,
34}
35
36impl GithubPagesUpdateReq {
37 pub fn new() -> GithubPagesUpdateReq {
38 GithubPagesUpdateReq {
39 branch: None,
40 build_type: None,
41 cname: None,
42 https_enforced: None,
43 path: None,
44 repo: None,
45 }
46 }
47}
48