Skip to main content

hanzo_client/models/
patch_flow_in.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 PatchFlowIn {
16    /// ExternalID sets the caller's own id for this flow.
17    #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
18    pub external_id: Option<String>,
19    /// FolderID moves the flow in the builder's tree.
20    #[serde(rename = "folderId", skip_serializing_if = "Option::is_none")]
21    pub folder_id: Option<String>,
22    /// ID is the flow to update, from the path.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub metadata: Option<Option<serde_json::Value>>,
27    /// PublishedVersionID pins the version runs execute. It must name a version OF THIS FLOW; empty clears the pin, so runs take the latest version again.
28    #[serde(rename = "publishedVersionId", skip_serializing_if = "Option::is_none")]
29    pub published_version_id: Option<String>,
30}
31
32impl PatchFlowIn {
33    pub fn new() -> PatchFlowIn {
34        PatchFlowIn {
35            external_id: None,
36            folder_id: None,
37            id: None,
38            metadata: None,
39            published_version_id: None,
40        }
41    }
42}
43