hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 GitOpsDeploy {
    /// Automated is whether CD started this deploy itself, from its own polling of the tracked git ref (initiatedBy.automated), rather than someone asking for it.
    #[serde(rename = "automated", skip_serializing_if = "Option::is_none")]
    pub automated: Option<bool>,
    /// DeployedAt is when the apply finished, RFC 3339. Absent when CD recorded none.
    #[serde(rename = "deployedAt", skip_serializing_if = "Option::is_none")]
    pub deployed_at: Option<String>,
    /// ID is CD's own sequence number for this deploy (status.history[].id). It increases with every applied revision, so the largest id in `history` is the most recent deploy — which is the first entry, since the list is reversed.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// Revision is the git commit this deploy applied, as CD recorded it.
    #[serde(rename = "revision", skip_serializing_if = "Option::is_none")]
    pub revision: Option<String>,
    /// StartedAt is when CD began applying the revision (deployStartedAt), RFC 3339. Absent when CD recorded none.
    #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
    pub started_at: Option<String>,
}

impl GitOpsDeploy {
    pub fn new() -> GitOpsDeploy {
        GitOpsDeploy {
            automated: None,
            deployed_at: None,
            id: None,
            revision: None,
            started_at: None,
        }
    }
}