diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dc6c8110e..6c5f428b9 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -34053,7 +34053,7 @@ paths: - synthetics_write /api/v1/synthetics/tests/search: get: - description: Search for Synthetic tests and Test Suites. + description: Search for Synthetic tests. operationId: SearchTests parameters: - description: The search query. @@ -34069,12 +34069,6 @@ paths: required: false schema: type: boolean - - description: If true, returns suites instead of tests. - in: query - name: search_suites - required: false - schema: - type: boolean - description: If true, return only facets instead of full test details. in: query name: facets_only diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index c19a9d103..b8e0c3389 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -116,7 +116,6 @@ retry-policies,https://github.com/TrueLayer/retry-policies,MIT OR Apache-2.0,Luc rustc-demangle,https://github.com/rust-lang/rustc-demangle,MIT OR Apache-2.0,Alex Crichton rustix,https://github.com/bytecodealliance/rustix,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,"Dan Gohman , Jakub Konka " rustls-pemfile,https://github.com/rustls/pemfile,Apache-2.0 OR ISC OR MIT,The rustls-pemfile Authors -rustversion,https://github.com/dtolnay/rustversion,MIT OR Apache-2.0,David Tolnay ryu,https://github.com/dtolnay/ryu,Apache-2.0 OR BSL-1.0,David Tolnay schannel,https://github.com/steffengy/schannel-rs,MIT,"Steven Fackler , Steffen Butzer " schemars,https://github.com/GREsau/schemars,MIT,Graham Esau diff --git a/examples/v1_synthetics_SearchTests_195957771.rs b/examples/v1_synthetics_SearchTests_195957771.rs deleted file mode 100644 index 88e3b5d68..000000000 --- a/examples/v1_synthetics_SearchTests_195957771.rs +++ /dev/null @@ -1,27 +0,0 @@ -// Search Synthetic tests with boolean query parameters -use datadog_api_client::datadog; -use datadog_api_client::datadogV1::api_synthetics::SearchTestsOptionalParams; -use datadog_api_client::datadogV1::api_synthetics::SyntheticsAPI; - -#[tokio::main] -async fn main() { - let configuration = datadog::Configuration::new(); - let api = SyntheticsAPI::with_config(configuration); - let resp = api - .search_tests( - SearchTestsOptionalParams::default() - .text("tag:value".to_string()) - .include_full_config(true) - .search_suites(true) - .facets_only(true) - .start(10) - .count(5) - .sort("name,desc".to_string()), - ) - .await; - if let Ok(value) = resp { - println!("{:#?}", value); - } else { - println!("{:#?}", resp.unwrap_err()); - } -} diff --git a/src/datadogV1/api/api_synthetics.rs b/src/datadogV1/api/api_synthetics.rs index 7c8a2c329..6e0f60653 100644 --- a/src/datadogV1/api/api_synthetics.rs +++ b/src/datadogV1/api/api_synthetics.rs @@ -103,8 +103,6 @@ pub struct SearchTestsOptionalParams { pub text: Option, /// If true, include the full configuration for each test in the response. pub include_full_config: Option, - /// If true, returns suites instead of tests. - pub search_suites: Option, /// If true, return only facets instead of full test details. pub facets_only: Option, /// The offset from which to start returning results. @@ -126,11 +124,6 @@ impl SearchTestsOptionalParams { self.include_full_config = Some(value); self } - /// If true, returns suites instead of tests. - pub fn search_suites(mut self, value: bool) -> Self { - self.search_suites = Some(value); - self - } /// If true, return only facets instead of full test details. pub fn facets_only(mut self, value: bool) -> Self { self.facets_only = Some(value); @@ -3801,7 +3794,7 @@ impl SyntheticsAPI { } } - /// Search for Synthetic tests and Test Suites. + /// Search for Synthetic tests. pub async fn search_tests( &self, params: SearchTestsOptionalParams, @@ -3823,7 +3816,7 @@ impl SyntheticsAPI { } } - /// Search for Synthetic tests and Test Suites. + /// Search for Synthetic tests. pub async fn search_tests_with_http_info( &self, params: SearchTestsOptionalParams, @@ -3837,7 +3830,6 @@ impl SyntheticsAPI { // unbox and build optional parameters let text = params.text; let include_full_config = params.include_full_config; - let search_suites = params.search_suites; let facets_only = params.facets_only; let start = params.start; let count = params.count; @@ -3860,10 +3852,6 @@ impl SyntheticsAPI { local_req_builder = local_req_builder.query(&[("include_full_config", &local_query_param.to_string())]); }; - if let Some(ref local_query_param) = search_suites { - local_req_builder = - local_req_builder.query(&[("search_suites", &local_query_param.to_string())]); - }; if let Some(ref local_query_param) = facets_only { local_req_builder = local_req_builder.query(&[("facets_only", &local_query_param.to_string())]); diff --git a/tests/scenarios/features/v1/synthetics.feature b/tests/scenarios/features/v1/synthetics.feature index bee6e5de8..401514da2 100644 --- a/tests/scenarios/features/v1/synthetics.feature +++ b/tests/scenarios/features/v1/synthetics.feature @@ -803,19 +803,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - Returns the list of Synthetic tests matching the search. - @team:DataDog/synthetics-managing - Scenario: Search Synthetic tests with boolean query parameters - Given new "SearchTests" request - And request contains "text" parameter with value "tag:value" - And request contains "include_full_config" parameter with value true - And request contains "search_suites" parameter with value true - And request contains "facets_only" parameter with value true - And request contains "start" parameter with value 10 - And request contains "count" parameter with value 5 - And request contains "sort" parameter with value "name,desc" - When the request is sent - Then the response status is 200 OK - Returns the list of Synthetic tests matching the search. - @generated @skip @team:DataDog/synthetics-managing Scenario: Trigger Synthetic tests returns "Bad Request" response Given new "TriggerTests" request diff --git a/tests/scenarios/function_mappings.rs b/tests/scenarios/function_mappings.rs index 4d308c950..49ce2f307 100644 --- a/tests/scenarios/function_mappings.rs +++ b/tests/scenarios/function_mappings.rs @@ -10618,9 +10618,6 @@ fn test_v1_search_tests(world: &mut DatadogWorld, _parameters: &HashMap