hanzo_client/models/deploy_record.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 DeployRecord {
16 /// Created reports whether this call recorded a new attribution edge (201) or found an existing one (200). Absent when nothing was recorded.
17 #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
18 pub created: Option<bool>,
19 /// CreatedAt is when the edge was first recorded, in unix seconds. Absent when nothing was recorded.
20 #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21 pub created_at: Option<i32>,
22 /// DeployID is the attribution edge's handle. Absent when nothing was recorded.
23 #[serde(rename = "deployId", skip_serializing_if = "Option::is_none")]
24 pub deploy_id: Option<String>,
25 /// Reason says why nothing was attributed. Present only when recorded is false.
26 #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
27 pub reason: Option<String>,
28 /// Recorded reports whether the deploy was attributed to an author at all. False is the ordinary answer for a project built from no repository, or from one no author has verified — never an error, so a deploy path can fire this unconditionally.
29 #[serde(rename = "recorded", skip_serializing_if = "Option::is_none")]
30 pub recorded: Option<bool>,
31 /// Self reports that the deploying org IS the author's org. Such a deploy is recorded for provenance but excluded from accrual. Absent when nothing was recorded.
32 #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
33 pub param_self: Option<bool>,
34}
35
36impl DeployRecord {
37 pub fn new() -> DeployRecord {
38 DeployRecord {
39 created: None,
40 created_at: None,
41 deploy_id: None,
42 reason: None,
43 recorded: None,
44 param_self: None,
45 }
46 }
47}
48