hanzo_client/models/projects_complete.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 ProjectsComplete {
16 /// Bytes is their total size in bytes.
17 #[serde(rename = "bytes", skip_serializing_if = "Option::is_none")]
18 pub bytes: Option<i32>,
19 /// Commit is the revision that was built, recorded on the deployment.
20 #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
21 pub commit: Option<String>,
22 /// Files is how many objects CI published.
23 #[serde(rename = "files", skip_serializing_if = "Option::is_none")]
24 pub files: Option<i32>,
25 /// ID is the queued deployment to complete, from the path.
26 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27 pub id: Option<String>,
28 /// Keys is the manifest CI just uploaded, RELATIVE to the deployment prefix. It is what replaces `aws s3 sync --delete`: an upload grant authorizes writes only, so CI cannot remove a file, and cloud reconciles the prefix against this list instead (grant.go). Omit it and nothing is deleted — the prefix only grows, which is the old pre-grant behaviour and a safe default.
29 #[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
30 pub keys: Option<Vec<String>>,
31 /// LiveURL is a HINT at the address the site should serve at. The public host is claimed by cloud first, so this can refine the URL a deployment reports but can never assert a subdomain another tenant holds.
32 #[serde(rename = "liveUrl", skip_serializing_if = "Option::is_none")]
33 pub live_url: Option<String>,
34 /// Message is what happened, in words — on an error completion, why it failed.
35 #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
36 pub message: Option<String>,
37 /// Slug is the project the deployment belongs to, from the path.
38 #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
39 pub slug: Option<String>,
40 /// Status is how the build ended: `live` if it succeeded, `error` if it did not. Nothing else is accepted.
41 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
42 pub status: Option<String>,
43}
44
45impl ProjectsComplete {
46 pub fn new() -> ProjectsComplete {
47 ProjectsComplete {
48 bytes: None,
49 commit: None,
50 files: None,
51 id: None,
52 keys: None,
53 live_url: None,
54 message: None,
55 slug: None,
56 status: None,
57 }
58 }
59}
60