1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* 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,
}
}
}