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 O11yPeriodO11yLogConfigVersion {
    /// Config is the rendered collector config the version deployed.
    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
    pub config: Option<String>,
    /// CreatedAt is when the version was created.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// CreatedBy is the id of who created the version.
    #[serde(rename = "createdBy", skip_serializing_if = "Option::is_none")]
    pub created_by: Option<String>,
    /// CreatedByName is the display name of who created the version.
    #[serde(rename = "createdByName", skip_serializing_if = "Option::is_none")]
    pub created_by_name: Option<String>,
    /// DeployResult is the deployment's outcome message.
    #[serde(rename = "deployResult", skip_serializing_if = "Option::is_none")]
    pub deploy_result: Option<String>,
    /// DeploySequence orders this deployment among the version's deployments.
    #[serde(rename = "deploySequence", skip_serializing_if = "Option::is_none")]
    pub deploy_sequence: Option<i32>,
    /// DeployStatus is where the deployment stands, e.g. dirty, deploying, deployed, in_progress, failed, unknown.
    #[serde(rename = "deployStatus", skip_serializing_if = "Option::is_none")]
    pub deploy_status: Option<String>,
    /// ElementType is the config element the version carries — log_pipelines.
    #[serde(rename = "elementType", skip_serializing_if = "Option::is_none")]
    pub element_type: Option<String>,
    /// ID is the version record's id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// LastHash is the deployed config's hash.
    #[serde(rename = "lastHash", skip_serializing_if = "Option::is_none")]
    pub last_hash: Option<String>,
    /// OrgID is the org the version belongs to.
    #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
    pub org_id: Option<String>,
    /// UpdatedAt is when the version last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
    /// UpdatedBy is the id of who last changed it.
    #[serde(rename = "updatedBy", skip_serializing_if = "Option::is_none")]
    pub updated_by: Option<String>,
    /// Version is the config version number.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<i32>,
}

impl O11yPeriodO11yLogConfigVersion {
    pub fn new() -> O11yPeriodO11yLogConfigVersion {
        O11yPeriodO11yLogConfigVersion {
            config: None,
            created_at: None,
            created_by: None,
            created_by_name: None,
            deploy_result: None,
            deploy_sequence: None,
            deploy_status: None,
            element_type: None,
            id: None,
            last_hash: None,
            org_id: None,
            updated_at: None,
            updated_by: None,
            version: None,
        }
    }
}