hanzo_client/models/projects_site_deploy.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 ProjectsSiteDeploy {
16 /// DeploymentID is the deployment this publish recorded, for the history.
17 #[serde(rename = "deploymentId", skip_serializing_if = "Option::is_none")]
18 pub deployment_id: Option<String>,
19 /// Files are the site-relative paths that were uploaded, sorted.
20 #[serde(rename = "files", skip_serializing_if = "Option::is_none")]
21 pub files: Option<Vec<String>>,
22 /// Name is the project's display name.
23 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24 pub name: Option<String>,
25 /// Slug is the project the site was published into, created on the fly when the slug was free.
26 #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
27 pub slug: Option<String>,
28 /// Status is the deployment status, \"live\" on success.
29 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
30 pub status: Option<String>,
31 /// URL is the canonical live URL, https://<slug>.<apex> — empty when the subdomain belongs to another tenant and this site has none.
32 #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
33 pub url: Option<String>,
34}
35
36impl ProjectsSiteDeploy {
37 pub fn new() -> ProjectsSiteDeploy {
38 ProjectsSiteDeploy {
39 deployment_id: None,
40 files: None,
41 name: None,
42 slug: None,
43 status: None,
44 url: None,
45 }
46 }
47}
48