Skip to main content

hanzo_client/models/
populated_flow.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 PopulatedFlow {
16    /// Created and Updated are unix milliseconds.
17    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
18    pub created: Option<i32>,
19    /// ExternalID is the caller's own id for this flow, if it set one.
20    #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
21    pub external_id: Option<String>,
22    /// FolderID groups the flow in the builder's tree.
23    #[serde(rename = "folderId", skip_serializing_if = "Option::is_none")]
24    pub folder_id: Option<String>,
25    /// ID is the flow's id.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub metadata: Option<Option<serde_json::Value>>,
30    /// Org is the owning org, which this surface names projectId. Server-derived from the validated principal — never read from a request.
31    #[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
32    pub project_id: Option<String>,
33    /// PublishedVersionID is the version a run executes when set; empty means the latest version runs.
34    #[serde(rename = "publishedVersionId", skip_serializing_if = "Option::is_none")]
35    pub published_version_id: Option<String>,
36    /// Status is ENABLED or DISABLED — whether the flow's trigger is armed.
37    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
38    pub status: Option<String>,
39    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
40    pub updated: Option<i32>,
41    /// Version is the flow's latest version — its display name and step tree.
42    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
43    pub version: Option<Box<models::FlowVersion>>,
44}
45
46impl PopulatedFlow {
47    pub fn new() -> PopulatedFlow {
48        PopulatedFlow {
49            created: None,
50            external_id: None,
51            folder_id: None,
52            id: None,
53            metadata: None,
54            project_id: None,
55            published_version_id: None,
56            status: None,
57            updated: None,
58            version: None,
59        }
60    }
61}
62