hanzo_client/models/create_flow_req.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 CreateFlowReq {
16 /// DisplayName names the flow's initial draft version.
17 #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
18 pub display_name: Option<String>,
19 /// ExternalID is the caller's own id for this flow. Optional.
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. Optional.
23 #[serde(rename = "folderId", skip_serializing_if = "Option::is_none")]
24 pub folder_id: Option<String>,
25 /// Trigger is the root of the step tree — how the flow starts, and the action chain that follows. Optional: a flow may be created empty and edited later.
26 #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")]
27 pub trigger: Option<Box<models::FlowTrigger>>,
28}
29
30impl CreateFlowReq {
31 pub fn new() -> CreateFlowReq {
32 CreateFlowReq {
33 display_name: None,
34 external_id: None,
35 folder_id: None,
36 trigger: None,
37 }
38 }
39}
40