hanzo_client/models/deploy_logs.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 DeployLogs {
16 /// DeploymentID is the deployment these logs belong to.
17 #[serde(rename = "deploymentId", skip_serializing_if = "Option::is_none")]
18 pub deployment_id: Option<String>,
19 /// Logs is the recorded status timeline followed by the streamed pod output, newline-separated.
20 #[serde(rename = "logs", skip_serializing_if = "Option::is_none")]
21 pub logs: Option<String>,
22 /// Source says which pod the log body carries — `build`, `app`, or `none` when neither pod was reachable — so a console can label the pane honestly.
23 #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
24 pub source: Option<String>,
25}
26
27impl DeployLogs {
28 pub fn new() -> DeployLogs {
29 DeployLogs {
30 deployment_id: None,
31 logs: None,
32 source: None,
33 }
34 }
35}
36