-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathparameter_create.rs
More file actions
39 lines (36 loc) · 1.7 KB
/
parameter_create.rs
File metadata and controls
39 lines (36 loc) · 1.7 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
/*
* 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
*/
/// ParameterCreate : A single parameter inside of a project.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ParameterCreate {
/// 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", skip_serializing_if = "Option::is_none")]
pub secret: Option<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>,
}
impl ParameterCreate {
/// A single parameter inside of a project.
pub fn new(name: String) -> ParameterCreate {
ParameterCreate {
name,
description: None,
secret: None,
_type: None,
}
}
}