@@ -99,6 +99,8 @@ impl ListTestsOptionalParams {
9999#[ non_exhaustive]
100100#[ derive( Clone , Default , Debug ) ]
101101pub struct SearchTestsOptionalParams {
102+ /// The search query.
103+ pub text : Option < String > ,
102104 /// If true, include the full configuration for each test in the response.
103105 pub include_full_config : Option < bool > ,
104106 /// If true, returns suites instead of tests.
@@ -114,6 +116,11 @@ pub struct SearchTestsOptionalParams {
114116}
115117
116118impl SearchTestsOptionalParams {
119+ /// The search query.
120+ pub fn text ( mut self , value : String ) -> Self {
121+ self . text = Some ( value) ;
122+ self
123+ }
117124 /// If true, include the full configuration for each test in the response.
118125 pub fn include_full_config ( mut self , value : bool ) -> Self {
119126 self . include_full_config = Some ( value) ;
@@ -3828,6 +3835,7 @@ impl SyntheticsAPI {
38283835 let operation_id = "v1.search_tests" ;
38293836
38303837 // unbox and build optional parameters
3838+ let text = params. text ;
38313839 let include_full_config = params. include_full_config ;
38323840 let search_suites = params. search_suites ;
38333841 let facets_only = params. facets_only ;
@@ -3844,6 +3852,10 @@ impl SyntheticsAPI {
38443852 let mut local_req_builder =
38453853 local_client. request ( reqwest:: Method :: GET , local_uri_str. as_str ( ) ) ;
38463854
3855+ if let Some ( ref local_query_param) = text {
3856+ local_req_builder =
3857+ local_req_builder. query ( & [ ( "text" , & local_query_param. to_string ( ) ) ] ) ;
3858+ } ;
38473859 if let Some ( ref local_query_param) = include_full_config {
38483860 local_req_builder =
38493861 local_req_builder. query ( & [ ( "include_full_config" , & local_query_param. to_string ( ) ) ] ) ;
0 commit comments