Skip to main content

hanzo_client/models/
runner_build_resp.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 RunnerBuildResp {
16    /// BuildJobID is the queued build's id, and what its progress is read by.
17    #[serde(rename = "buildJobId", skip_serializing_if = "Option::is_none")]
18    pub build_job_id: Option<String>,
19    /// Image is the ref the image lane will push.
20    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
21    pub image: Option<String>,
22    /// Index is the binaries.json URL the artifact lane will publish.
23    #[serde(rename = "index", skip_serializing_if = "Option::is_none")]
24    pub index: Option<String>,
25    /// RunnerPool is the runner class the build was placed on.
26    #[serde(rename = "runnerPool", skip_serializing_if = "Option::is_none")]
27    pub runner_pool: Option<String>,
28    /// Status is `queued` — the build was accepted and has not finished.
29    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
30    pub status: Option<String>,
31    /// Target is the multi-stage build target, echoed back.
32    #[serde(rename = "target", skip_serializing_if = "Option::is_none")]
33    pub target: Option<String>,
34}
35
36impl RunnerBuildResp {
37    pub fn new() -> RunnerBuildResp {
38        RunnerBuildResp {
39            build_job_id: None,
40            image: None,
41            index: None,
42            runner_pool: None,
43            status: None,
44            target: None,
45        }
46    }
47}
48