From 7e95f6ab948b304f377553e8dba7412fa12ac592 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 25 Sep 2025 08:01:52 +0000 Subject: [PATCH] Regenerate client from commit 02072f6 of spec repo --- .generator/schemas/v1/openapi.yaml | 8 +------- examples/v1/synthetics/SearchTests_195957771.rb | 14 -------------- features/scenarios_model_mapping.rb | 1 - features/v1/synthetics.feature | 13 ------------- lib/datadog_api_client/v1/api/synthetics_api.rb | 4 +--- 5 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 examples/v1/synthetics/SearchTests_195957771.rb diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dc6c8110eef5..6c5f428b9c37 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/examples/v1/synthetics/SearchTests_195957771.rb b/examples/v1/synthetics/SearchTests_195957771.rb deleted file mode 100644 index 921a196bbf0c..000000000000 --- a/examples/v1/synthetics/SearchTests_195957771.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Search Synthetic tests with boolean query parameters - -require "datadog_api_client" -api_instance = DatadogAPIClient::V1::SyntheticsAPI.new -opts = { - text: "tag:value", - include_full_config: true, - search_suites: true, - facets_only: true, - start: 10, - count: 5, - sort: "name,desc", -} -p api_instance.search_tests(opts) diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 8dfadba604a9..4e2d08a17003 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -756,7 +756,6 @@ "v1.SearchTests" => { "text" => "String", "include_full_config" => "Boolean", - "search_suites" => "Boolean", "facets_only" => "Boolean", "start" => "Integer", "count" => "Integer", diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index bee6e5de8ca6..401514da28d4 100644 --- a/features/v1/synthetics.feature +++ b/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/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index a6df453f7036..fcd6f7b98c51 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -1785,12 +1785,11 @@ def search_tests(opts = {}) # Search Synthetic tests. # - # Search for Synthetic tests and Test Suites. + # Search for Synthetic tests. # # @param opts [Hash] the optional parameters # @option opts [String] :text The search query. # @option opts [Boolean] :include_full_config If true, include the full configuration for each test in the response. - # @option opts [Boolean] :search_suites If true, returns suites instead of tests. # @option opts [Boolean] :facets_only If true, return only facets instead of full test details. # @option opts [Integer] :start The offset from which to start returning results. # @option opts [Integer] :count The maximum number of results to return. @@ -1808,7 +1807,6 @@ def search_tests_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil? query_params[:'include_full_config'] = opts[:'include_full_config'] if !opts[:'include_full_config'].nil? - query_params[:'search_suites'] = opts[:'search_suites'] if !opts[:'search_suites'].nil? query_params[:'facets_only'] = opts[:'facets_only'] if !opts[:'facets_only'].nil? query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?