@@ -20,6 +20,12 @@ pub struct SyntheticsGlobalVariable {
20
20
/// Unique identifier of the global variable.
21
21
#[ serde( rename = "id" ) ]
22
22
pub id : Option < String > ,
23
+ /// Determines if the global variable is a FIDO variable.
24
+ #[ serde( rename = "is_fido" ) ]
25
+ pub is_fido : Option < bool > ,
26
+ /// Determines if the global variable is a TOTP/MFA variable.
27
+ #[ serde( rename = "is_totp" ) ]
28
+ pub is_totp : Option < bool > ,
23
29
/// Name of the global variable. Unique across Synthetic global variables.
24
30
#[ serde( rename = "name" ) ]
25
31
pub name : String ,
@@ -52,6 +58,8 @@ impl SyntheticsGlobalVariable {
52
58
attributes : None ,
53
59
description,
54
60
id : None ,
61
+ is_fido : None ,
62
+ is_totp : None ,
55
63
name,
56
64
parse_test_options : None ,
57
65
parse_test_public_id : None ,
@@ -74,6 +82,16 @@ impl SyntheticsGlobalVariable {
74
82
self
75
83
}
76
84
85
+ pub fn is_fido ( mut self , value : bool ) -> Self {
86
+ self . is_fido = Some ( value) ;
87
+ self
88
+ }
89
+
90
+ pub fn is_totp ( mut self , value : bool ) -> Self {
91
+ self . is_totp = Some ( value) ;
92
+ self
93
+ }
94
+
77
95
pub fn parse_test_options (
78
96
mut self ,
79
97
value : crate :: datadogV1:: model:: SyntheticsGlobalVariableParseTestOptions ,
@@ -110,6 +128,8 @@ impl<'de> Deserialize<'de> for SyntheticsGlobalVariable {
110
128
> = None ;
111
129
let mut description: Option < String > = None ;
112
130
let mut id: Option < String > = None ;
131
+ let mut is_fido: Option < bool > = None ;
132
+ let mut is_totp: Option < bool > = None ;
113
133
let mut name: Option < String > = None ;
114
134
let mut parse_test_options: Option <
115
135
crate :: datadogV1:: model:: SyntheticsGlobalVariableParseTestOptions ,
@@ -138,6 +158,18 @@ impl<'de> Deserialize<'de> for SyntheticsGlobalVariable {
138
158
}
139
159
id = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
140
160
}
161
+ "is_fido" => {
162
+ if v. is_null ( ) {
163
+ continue ;
164
+ }
165
+ is_fido = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
166
+ }
167
+ "is_totp" => {
168
+ if v. is_null ( ) {
169
+ continue ;
170
+ }
171
+ is_totp = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
172
+ }
141
173
"name" => {
142
174
name = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
143
175
}
@@ -174,6 +206,8 @@ impl<'de> Deserialize<'de> for SyntheticsGlobalVariable {
174
206
attributes,
175
207
description,
176
208
id,
209
+ is_fido,
210
+ is_totp,
177
211
name,
178
212
parse_test_options,
179
213
parse_test_public_id,
0 commit comments