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
49
50
51
52
53
54
55
56
/*
* 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 ProjectsRelease {
/// Active is whether this is the release the site is SERVING right now. Exactly one release of a site is active; the others are kept so they can be activated again, until retention reclaims them.
#[serde(rename = "active", skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
/// Bytes is their total size in bytes.
#[serde(rename = "bytes", skip_serializing_if = "Option::is_none")]
pub bytes: Option<i32>,
/// CreatedAt is when the release was cut, as Unix seconds — not when it was last activated.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// Objects is how many files the release holds.
#[serde(rename = "objects", skip_serializing_if = "Option::is_none")]
pub objects: Option<i32>,
/// ReleaseID is derived from a DIGEST of the release's own manifest, so identical content is the same release and a release can never be confused with another one. Activating an older id IS the rollback.
#[serde(rename = "releaseId", skip_serializing_if = "Option::is_none")]
pub release_id: Option<String>,
/// Slug is the site this release belongs to.
#[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
pub slug: Option<String>,
/// Source is what the release was cut from — the build output or upload it was promoted out of.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// URL is where the site serves. Present only on the ACTIVE release, since an inactive one is not answering anywhere.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
impl ProjectsRelease {
pub fn new() -> ProjectsRelease {
ProjectsRelease {
active: None,
bytes: None,
created_at: None,
objects: None,
release_id: None,
slug: None,
source: None,
url: None,
}
}
}