@@ -54,7 +54,7 @@ class SyntheticsApi:
5454 Datadog Synthetic Monitoring uses simulated user requests and browser rendering to help you ensure uptime,
5555 identify regional issues, and track your application performance. Synthetic tests come in
5656 two different flavors, `API tests <https://docs.datadoghq.com/synthetics/api_tests/?tab=httptest>`_
57- and `browser tests <https://docs.datadoghq.com/synthetics/browser_tests>`_. You can use Datadog’ s API to
57+ and `browser tests <https://docs.datadoghq.com/synthetics/browser_tests>`_. You can use Datadog' s API to
5858 manage both test types programmatically.
5959
6060 For more information, see the `Synthetic Monitoring documentation <https://docs.datadoghq.com/synthetics/>`_.
@@ -675,6 +675,53 @@ def __init__(self, api_client=None):
675675 api_client = api_client ,
676676 )
677677
678+ self ._search_tests_endpoint = _Endpoint (
679+ settings = {
680+ "response_type" : (SyntheticsListTestsResponse ,),
681+ "auth" : ["apiKeyAuth" , "appKeyAuth" , "AuthZ" ],
682+ "endpoint_path" : "/api/v1/synthetics/tests/search" ,
683+ "operation_id" : "search_tests" ,
684+ "http_method" : "GET" ,
685+ "version" : "v1" ,
686+ },
687+ params_map = {
688+ "include_full_config" : {
689+ "openapi_types" : (bool ,),
690+ "attribute" : "include_full_config" ,
691+ "location" : "query" ,
692+ },
693+ "search_suites" : {
694+ "openapi_types" : (bool ,),
695+ "attribute" : "search_suites" ,
696+ "location" : "query" ,
697+ },
698+ "facets_only" : {
699+ "openapi_types" : (bool ,),
700+ "attribute" : "facets_only" ,
701+ "location" : "query" ,
702+ },
703+ "start" : {
704+ "openapi_types" : (int ,),
705+ "attribute" : "start" ,
706+ "location" : "query" ,
707+ },
708+ "count" : {
709+ "openapi_types" : (int ,),
710+ "attribute" : "count" ,
711+ "location" : "query" ,
712+ },
713+ "sort" : {
714+ "openapi_types" : (str ,),
715+ "attribute" : "sort" ,
716+ "location" : "query" ,
717+ },
718+ },
719+ headers_map = {
720+ "accept" : ["application/json" ],
721+ },
722+ api_client = api_client ,
723+ )
724+
678725 self ._trigger_ci_tests_endpoint = _Endpoint (
679726 settings = {
680727 "response_type" : (SyntheticsTriggerCITestsResponse ,),
@@ -1381,6 +1428,55 @@ def patch_test(
13811428
13821429 return self ._patch_test_endpoint .call_with_http_info (** kwargs )
13831430
1431+ def search_tests (
1432+ self ,
1433+ * ,
1434+ include_full_config : Union [bool , UnsetType ] = unset ,
1435+ search_suites : Union [bool , UnsetType ] = unset ,
1436+ facets_only : Union [bool , UnsetType ] = unset ,
1437+ start : Union [int , UnsetType ] = unset ,
1438+ count : Union [int , UnsetType ] = unset ,
1439+ sort : Union [str , UnsetType ] = unset ,
1440+ ) -> SyntheticsListTestsResponse :
1441+ """Search Synthetic tests.
1442+
1443+ Search for Synthetic tests and Test Suites.
1444+
1445+ :param include_full_config: If true, include the full configuration for each test in the response.
1446+ :type include_full_config: bool, optional
1447+ :param search_suites: If true, returns suites instead of tests.
1448+ :type search_suites: bool, optional
1449+ :param facets_only: If true, return only facets instead of full test details.
1450+ :type facets_only: bool, optional
1451+ :param start: The offset from which to start returning results.
1452+ :type start: int, optional
1453+ :param count: The maximum number of results to return.
1454+ :type count: int, optional
1455+ :param sort: The sort order for the results (e.g., 'name,asc' or 'name,desc').
1456+ :type sort: str, optional
1457+ :rtype: SyntheticsListTestsResponse
1458+ """
1459+ kwargs : Dict [str , Any ] = {}
1460+ if include_full_config is not unset :
1461+ kwargs ["include_full_config" ] = include_full_config
1462+
1463+ if search_suites is not unset :
1464+ kwargs ["search_suites" ] = search_suites
1465+
1466+ if facets_only is not unset :
1467+ kwargs ["facets_only" ] = facets_only
1468+
1469+ if start is not unset :
1470+ kwargs ["start" ] = start
1471+
1472+ if count is not unset :
1473+ kwargs ["count" ] = count
1474+
1475+ if sort is not unset :
1476+ kwargs ["sort" ] = sort
1477+
1478+ return self ._search_tests_endpoint .call_with_http_info (** kwargs )
1479+
13841480 def trigger_ci_tests (
13851481 self ,
13861482 body : SyntheticsCITestBody ,
0 commit comments