@@ -53,6 +53,9 @@ pub struct SyntheticsCITest {
5353 /// Variables to replace in the test.
5454 #[ serde( rename = "variables" ) ]
5555 pub variables : Option < std:: collections:: BTreeMap < String , String > > ,
56+ /// The version number of the Synthetic test version to trigger.
57+ #[ serde( rename = "version" ) ]
58+ pub version : Option < i64 > ,
5659 #[ serde( flatten) ]
5760 pub additional_properties : std:: collections:: BTreeMap < String , serde_json:: Value > ,
5861 #[ serde( skip) ]
@@ -77,6 +80,7 @@ impl SyntheticsCITest {
7780 retry : None ,
7881 start_url : None ,
7982 variables : None ,
83+ version : None ,
8084 additional_properties : std:: collections:: BTreeMap :: new ( ) ,
8185 _unparsed : false ,
8286 }
@@ -147,6 +151,11 @@ impl SyntheticsCITest {
147151 self
148152 }
149153
154+ pub fn version ( mut self , value : i64 ) -> Self {
155+ self . version = Some ( value) ;
156+ self
157+ }
158+
150159 pub fn additional_properties (
151160 mut self ,
152161 value : std:: collections:: BTreeMap < String , serde_json:: Value > ,
@@ -187,6 +196,7 @@ impl<'de> Deserialize<'de> for SyntheticsCITest {
187196 let mut retry: Option < crate :: datadogV1:: model:: SyntheticsTestOptionsRetry > = None ;
188197 let mut start_url: Option < String > = None ;
189198 let mut variables: Option < std:: collections:: BTreeMap < String , String > > = None ;
199+ let mut version: Option < i64 > = None ;
190200 let mut additional_properties: std:: collections:: BTreeMap <
191201 String ,
192202 serde_json:: Value ,
@@ -286,6 +296,12 @@ impl<'de> Deserialize<'de> for SyntheticsCITest {
286296 }
287297 variables = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
288298 }
299+ "version" => {
300+ if v. is_null ( ) {
301+ continue ;
302+ }
303+ version = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
304+ }
289305 & _ => {
290306 if let Ok ( value) = serde_json:: from_value ( v. clone ( ) ) {
291307 additional_properties. insert ( k, value) ;
@@ -310,6 +326,7 @@ impl<'de> Deserialize<'de> for SyntheticsCITest {
310326 retry,
311327 start_url,
312328 variables,
329+ version,
313330 additional_properties,
314331 _unparsed,
315332 } ;
0 commit comments