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
/*
* 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 PatchFlowIn {
/// ExternalID sets the caller's own id for this flow.
#[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
pub external_id: Option<String>,
/// FolderID moves the flow in the builder's tree.
#[serde(rename = "folderId", skip_serializing_if = "Option::is_none")]
pub folder_id: Option<String>,
/// ID is the flow to update, from the path.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub metadata: Option<Option<serde_json::Value>>,
/// 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.
#[serde(rename = "publishedVersionId", skip_serializing_if = "Option::is_none")]
pub published_version_id: Option<String>,
}
impl PatchFlowIn {
pub fn new() -> PatchFlowIn {
PatchFlowIn {
external_id: None,
folder_id: None,
id: None,
metadata: None,
published_version_id: None,
}
}
}