hanzo_client/models/github_pages_enable_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 GithubPagesEnableReq {
16 /// Branch is the legacy source branch; empty defaults to the repo's own default branch. Ignored when buildType is \"workflow\".
17 #[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
18 pub branch: Option<String>,
19 /// BuildType selects the builder: \"workflow\" builds via GitHub Actions, anything else builds from the branch source above.
20 #[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
21 pub build_type: Option<String>,
22 /// Path is the source directory within the branch: \"/\" (the default) or \"/docs\". GitHub allows no others.
23 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
24 pub path: Option<String>,
25 /// Repo is the repository, from the :repo path segment.
26 #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
27 pub repo: Option<String>,
28}
29
30impl GithubPagesEnableReq {
31 pub fn new() -> GithubPagesEnableReq {
32 GithubPagesEnableReq {
33 branch: None,
34 build_type: None,
35 path: None,
36 repo: None,
37 }
38 }
39}
40