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
44
45
46
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.848.0
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// EditVariableExpirationHandler : Request body for editing the workspace variable expiration handler. Omit `path` (or send null) to unset the handler.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EditVariableExpirationHandler {
/// Path to the variable expiration handler script or flow
#[serde(rename = "path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub path: Option<Option<String>>,
/// The arguments to pass to the script or flow
#[serde(rename = "extra_args", skip_serializing_if = "Option::is_none")]
pub extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
/// Do not run the handler for variables on a personal (u/) path
#[serde(rename = "muted_on_user_path", skip_serializing_if = "Option::is_none")]
pub muted_on_user_path: Option<bool>,
/// How long before a variable's value expires the handler runs. 1 day when omitted.
#[serde(rename = "notify_before_secs", skip_serializing_if = "Option::is_none")]
pub notify_before_secs: Option<i32>,
/// Run the handler again at this interval until the value expires. No reminders when omitted or 0.
#[serde(rename = "remind_every_secs", skip_serializing_if = "Option::is_none")]
pub remind_every_secs: Option<i32>,
}
impl EditVariableExpirationHandler {
/// Request body for editing the workspace variable expiration handler. Omit `path` (or send null) to unset the handler.
pub fn new() -> EditVariableExpirationHandler {
EditVariableExpirationHandler {
path: None,
extra_args: None,
muted_on_user_path: None,
notify_before_secs: None,
remind_every_secs: None,
}
}
}