From 950d5f78be56e45b9de2bac32165c070bc029d1a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 29 Sep 2026 09:03:36 +0000 Subject: [PATCH] Regenerate client from commit be68022 of spec repo --- .generator/schemas/v2/openapi.yaml | 2 +- examples/v2/teams/ListTeams.py | 2 +- examples/v2/teams/ListTeams_3385988823.py | 15 +++++++++++++++ examples/v2/teams/ListTeams_3712027764.py | 15 +++++++++++++++ src/datadog_api_client/v2/api/teams_api.py | 4 ++-- tests/v2/features/teams.feature | 12 ++++++++++++ 6 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 examples/v2/teams/ListTeams_3385988823.py create mode 100644 examples/v2/teams/ListTeams_3712027764.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99e096bf76..9734485953 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -226475,7 +226475,7 @@ paths: appKeyAuth: [] - AuthZ: - teams_read - summary: Get all teams + summary: Get all teams with a test tags: - Teams x-pagination: diff --git a/examples/v2/teams/ListTeams.py b/examples/v2/teams/ListTeams.py index 69fd540477..90612fc510 100644 --- a/examples/v2/teams/ListTeams.py +++ b/examples/v2/teams/ListTeams.py @@ -1,5 +1,5 @@ """ -Get all teams returns "OK" response +Get all teams with a test returns "OK" response """ from os import environ diff --git a/examples/v2/teams/ListTeams_3385988823.py b/examples/v2/teams/ListTeams_3385988823.py new file mode 100644 index 0000000000..386e015641 --- /dev/null +++ b/examples/v2/teams/ListTeams_3385988823.py @@ -0,0 +1,15 @@ +""" +Get all teams with a test returns "OK" response with pagination +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.teams_api import TeamsApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +with ApiClient(configuration) as api_client: + api_instance = TeamsApi(api_client) + items = api_instance.list_teams_with_pagination() + for item in items: + print(item) diff --git a/examples/v2/teams/ListTeams_3712027764.py b/examples/v2/teams/ListTeams_3712027764.py new file mode 100644 index 0000000000..69fd540477 --- /dev/null +++ b/examples/v2/teams/ListTeams_3712027764.py @@ -0,0 +1,15 @@ +""" +Get all teams returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.teams_api import TeamsApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +with ApiClient(configuration) as api_client: + api_instance = TeamsApi(api_client) + response = api_instance.list_teams() + + print(response) diff --git a/src/datadog_api_client/v2/api/teams_api.py b/src/datadog_api_client/v2/api/teams_api.py index 94e3fc16e3..b498f63cd5 100644 --- a/src/datadog_api_client/v2/api/teams_api.py +++ b/src/datadog_api_client/v2/api/teams_api.py @@ -1816,7 +1816,7 @@ def list_teams( filter_me: Union[bool, UnsetType] = unset, fields_team: Union[List[TeamsField], UnsetType] = unset, ) -> TeamsResponse: - """Get all teams. + """Get all teams with a test. Get all teams. Can be used to search for teams using the ``filter[keyword]`` and ``filter[me]`` query parameters. @@ -1872,7 +1872,7 @@ def list_teams_with_pagination( filter_me: Union[bool, UnsetType] = unset, fields_team: Union[List[TeamsField], UnsetType] = unset, ) -> collections.abc.Iterable[Team]: - """Get all teams. + """Get all teams with a test. Provide a paginated version of :meth:`list_teams`, returning all items. diff --git a/tests/v2/features/teams.feature b/tests/v2/features/teams.feature index b21078ebf3..22af58ae25 100644 --- a/tests/v2/features/teams.feature +++ b/tests/v2/features/teams.feature @@ -312,6 +312,18 @@ Feature: Teams Then the response status is 200 OK And the response has 3 items + @generated @skip @team:DataDog/aaa-omg + Scenario: Get all teams with a test returns "OK" response + Given new "ListTeams" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/aaa-omg @with-pagination + Scenario: Get all teams with a test returns "OK" response with pagination + Given new "ListTeams" request + When the request with pagination is sent + Then the response status is 200 OK + @team:DataDog/aaa-omg Scenario: Get all teams with fields_team parameter returns "OK" response Given new "ListTeams" request