-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathparameter_update.rs
More file actions
59 lines (56 loc) · 2.14 KB
/
parameter_update.rs
File metadata and controls
59 lines (56 loc) · 2.14 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* CloudTruth Management API
*
* CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team.
*
* The version of the OpenAPI document: v1
* Contact: support@cloudtruth.com
* Generated by: https://openapi-generator.tech
*/
/// ParameterUpdate : A single parameter inside of a project.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ParameterUpdate {
#[serde(rename = "id")]
pub id: String,
/// The parameter name.
#[serde(rename = "name")]
pub name: String,
/// A description of the parameter. You may find it helpful to document how this parameter is used to assist others when they need to maintain software that uses this content.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used.
#[serde(rename = "secret")]
pub secret: bool,
/// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<String>,
/// The project url.
#[serde(rename = "project")]
pub project: String,
#[serde(rename = "created_at")]
pub created_at: String,
#[serde(rename = "modified_at")]
pub modified_at: Option<String>,
}
impl ParameterUpdate {
/// A single parameter inside of a project.
pub fn new(
id: String,
name: String,
secret: bool,
project: String,
created_at: String,
modified_at: Option<String>,
) -> ParameterUpdate {
ParameterUpdate {
id,
name,
description: None,
secret,
_type: None,
project,
created_at,
modified_at,
}
}
}