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 LicensingPeriodRelease {
    /// AppID scopes the release to an app build (\"hanzo\" | \"lux\" | \"zoo\").
    #[serde(rename = "app_id", skip_serializing_if = "Option::is_none")]
    pub app_id: Option<String>,
    /// ArtifactRef is where the binary lives (object-store key / OCI ref / path).
    #[serde(rename = "artifact_ref", skip_serializing_if = "Option::is_none")]
    pub artifact_ref: Option<String>,
    /// CosignCert is the cosign/Fulcio cert (keyless) or public key ref used to verify CosignSignature. The download response hands this to the client.
    #[serde(rename = "cosign_cert", skip_serializing_if = "Option::is_none")]
    pub cosign_cert: Option<String>,
    /// CosignSignature is the base64 cosign signature over the artifact digest.
    #[serde(rename = "cosign_signature", skip_serializing_if = "Option::is_none")]
    pub cosign_signature: Option<String>,
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// ID is the release identifier, e.g. \"engine-rocm-0.4.2-linux-amd64\". The accelerator belongs here — one product is built several ways — and never in Product below.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// MinFeatures, when set, are features the license must include to download.
    #[serde(rename = "min_features", skip_serializing_if = "Option::is_none")]
    pub min_features: Option<Vec<String>>,
    /// Platform is \"<os>/<arch>\", e.g. \"linux/amd64\".
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    /// Product is the licensed product this artifact belongs to (commerce SKU): \"engine\" for every one of those builds.
    #[serde(rename = "product", skip_serializing_if = "Option::is_none")]
    pub product: Option<String>,
    /// SHA256 is the hex digest of the artifact (integrity + cosign subject).
    #[serde(rename = "sha256", skip_serializing_if = "Option::is_none")]
    pub sha256: Option<String>,
    /// Version is the semantic version of the binary.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    /// Yanked marks a pulled release (download refused; tokens may be revoked release-scoped too).
    #[serde(rename = "yanked", skip_serializing_if = "Option::is_none")]
    pub yanked: Option<bool>,
}

impl LicensingPeriodRelease {
    pub fn new() -> LicensingPeriodRelease {
        LicensingPeriodRelease {
            app_id: None,
            artifact_ref: None,
            cosign_cert: None,
            cosign_signature: None,
            created_at: None,
            id: None,
            min_features: None,
            platform: None,
            product: None,
            sha256: None,
            version: None,
            yanked: None,
        }
    }
}