diff --git a/.generated-info b/.generated-info index 2a89a83fdde2..1d96858d4184 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "bd643af", - "generated": "2025-07-22 16:42:29.313" + "spec_repo_commit": "04d09cb", + "generated": "2025-07-23 09:22:24.045" } diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4850f47115c5..5ce0fd12fcdd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -33827,6 +33827,12 @@ paths: description: Search for Synthetic tests and Test Suites. operationId: SearchTests parameters: + - description: The search query. + in: query + name: text + required: false + schema: + type: string - description: If true, include the full configuration for each test in the response. in: query diff --git a/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.frozen b/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.frozen index 0e385540a56b..e53fbb289c87 100644 --- a/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.frozen +++ b/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.frozen @@ -1 +1 @@ -2025-07-01T15:52:56.329Z \ No newline at end of file +2025-07-22T14:56:49.377Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.yml b/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.yml index 56751b2f6829..c06a26811b78 100644 --- a/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.yml +++ b/cassettes/features/v1/synthetics/Search-Synthetic-tests-with-boolean-query-parameters.yml @@ -1,12 +1,12 @@ http_interactions: -- recorded_at: Tue, 01 Jul 2025 15:52:56 GMT +- recorded_at: Tue, 22 Jul 2025 14:56:49 GMT request: body: null headers: Accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v1/synthetics/tests/search?include_full_config=true&search_suites=true&facets_only=true&start=10&count=5&sort=name%2Cdesc + uri: https://api.datadoghq.com/api/v1/synthetics/tests/search?text=tag%3Avalue&include_full_config=true&search_suites=true&facets_only=true&start=10&count=5&sort=name%2Cdesc response: body: encoding: UTF-8 diff --git a/examples/v1/synthetics/SearchTests_195957771.rb b/examples/v1/synthetics/SearchTests_195957771.rb index 71fe6924b68b..921a196bbf0c 100644 --- a/examples/v1/synthetics/SearchTests_195957771.rb +++ b/examples/v1/synthetics/SearchTests_195957771.rb @@ -3,6 +3,7 @@ require "datadog_api_client" api_instance = DatadogAPIClient::V1::SyntheticsAPI.new opts = { + text: "tag:value", include_full_config: true, search_suites: true, facets_only: true, diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 2f2ba8b275ba..44a43ef961fe 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -754,6 +754,7 @@ "body" => "SyntheticsMobileTest", }, "v1.SearchTests" => { + "text" => "String", "include_full_config" => "Boolean", "search_suites" => "Boolean", "facets_only" => "Boolean", diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index 45ee8ca241d8..4b254da48b64 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -806,6 +806,7 @@ Feature: Synthetics @team:DataDog/synthetics-ct 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 diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 5336e12704e1..a6df453f7036 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -1788,6 +1788,7 @@ def search_tests(opts = {}) # Search for Synthetic tests and Test Suites. # # @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. @@ -1805,6 +1806,7 @@ def search_tests_with_http_info(opts = {}) # query parameters 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?